awokd(a)danwin1210.me has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37194 )
Change subject: vc/amd/agesa: Fix uninitialized scalar variable
......................................................................
vc/amd/agesa: Fix uninitialized scalar variable
AllocParams.Persist is used uninitialized when calling HeapAllocateBuffer.
This could lead to unpredictable or unintended results. The f15tn and
f16 versions of AmdS3Save.c have already addressed this by initializing
AllocParams.Persist=0 in the same location in the code, so adding to
f14 only.
Change-Id: I2cbfbc4ad14a861e0cd92f130209b3b0f5b76a17
Signed-off-by: Joe Moore <awokd(a)danwin1210.me>
Found-by: Coverity CID 1241806
---
M src/vendorcode/amd/agesa/f14/Proc/Common/AmdS3Save.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/37194/1
diff --git a/src/vendorcode/amd/agesa/f14/Proc/Common/AmdS3Save.c b/src/vendorcode/amd/agesa/f14/Proc/Common/AmdS3Save.c
index eeab385..bc5102b 100644
--- a/src/vendorcode/amd/agesa/f14/Proc/Common/AmdS3Save.c
+++ b/src/vendorcode/amd/agesa/f14/Proc/Common/AmdS3Save.c
@@ -202,7 +202,7 @@
//
AllocParams.RequestedBufferSize = EarlyBufferSize + LateBufferSize;
AllocParams.BufferHandle = AMD_S3_INFO_BUFFER_HANDLE;
-
+ AllocParams.Persist = 0;
AGESA_TESTPOINT (TpIfBeforeAllocateS3SaveBuffer, &AmdS3SaveParams->StdHeader);
if (HeapAllocateBuffer (&AllocParams, &AmdS3SaveParams->StdHeader) != AGESA_SUCCESS) {
if (AGESA_ERROR > ReturnStatus) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/37194
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2cbfbc4ad14a861e0cd92f130209b3b0f5b76a17
Gerrit-Change-Number: 37194
Gerrit-PatchSet: 1
Gerrit-Owner: awokd(a)danwin1210.me
Gerrit-MessageType: newchange
awokd(a)danwin1210.me has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38048 )
Change subject: vc/amd/agesa/f14/Proc/Mem: Fix uninitialized variable
......................................................................
vc/amd/agesa/f14/Proc/Mem: Fix uninitialized variable
Unitialized variable will contain an arbitrary value left from
earlier computations. This issue has already been addressed
in the f15tn and f16kb versions of this same file, so am
backporting the fix.
Change-Id: Id876107265689e08ad6760e514a4911f32b53da7
Signed-off-by: Joe Moore <awokd(a)danwin1210.me>
Found-by: Coverity CID 1241856
---
M src/vendorcode/amd/agesa/f14/Proc/Mem/Feat/S3/mfs3.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/48/38048/1
diff --git a/src/vendorcode/amd/agesa/f14/Proc/Mem/Feat/S3/mfs3.c b/src/vendorcode/amd/agesa/f14/Proc/Mem/Feat/S3/mfs3.c
index 4963b4b..a19b8bd 100644
--- a/src/vendorcode/amd/agesa/f14/Proc/Mem/Feat/S3/mfs3.c
+++ b/src/vendorcode/amd/agesa/f14/Proc/Mem/Feat/S3/mfs3.c
@@ -249,6 +249,7 @@
// Base on the size of the device list, apply for a buffer for it.
AllocHeapParams.RequestedBufferSize = BufferSize + sizeof (DEVICE_BLOCK_HEADER);
AllocHeapParams.BufferHandle = AMD_S3_NB_INFO_BUFFER_HANDLE;
+ AllocHeapParams.Persist = HEAP_S3_RESUME;
AGESA_TESTPOINT (TpIfBeforeAllocateMemoryS3SaveBuffer, StdHeader);
if (HeapAllocateBuffer (&AllocHeapParams, StdHeader) != AGESA_SUCCESS) {
return AGESA_FATAL;
--
To view, visit https://review.coreboot.org/c/coreboot/+/38048
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id876107265689e08ad6760e514a4911f32b53da7
Gerrit-Change-Number: 38048
Gerrit-PatchSet: 1
Gerrit-Owner: awokd(a)danwin1210.me
Gerrit-MessageType: newchange
Hello Patrick Georgi,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/38931
to review the following change.
Change subject: Makefile: Explicitly silence sub-makes
......................................................................
Makefile: Explicitly silence sub-makes
GNU Make 4.3 doesn't propagate a global .SILENT to sub-processes
anymore. Let's make it explicit to maintain the behaviour we are
used to.
From the changelog:
[SV 54740] Ensure .SILENT settings do not leak into sub-makes
Change-Id: I3de51c245d3344b062dc0fe9c62b8d5c0ac5e67d
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M Makefile
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/38931/1
diff --git a/Makefile b/Makefile
index 41a9b3a..3f60493 100644
--- a/Makefile
+++ b/Makefile
@@ -82,6 +82,7 @@
ifneq ($(V),1)
ifneq ($(Q),)
.SILENT:
+MAKEFLAGS += -s
endif
endif
--
To view, visit https://review.coreboot.org/c/coreboot/+/38931
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3de51c245d3344b062dc0fe9c62b8d5c0ac5e67d
Gerrit-Change-Number: 38931
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange