summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jorge@foundries.io>2024-10-31 15:12:04 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-11-04 21:34:22 +0000
commitccbe6f5030bb0ac6a098592c3ecfbf35838e5191 (patch)
tree4a0b86a83483e71cacc975e8dcae6241b9fd7385
parent95d8a1c255cfb8e063d679930d08ca6426eb5701 (diff)
downloadedk2-ccbe6f5030bb0ac6a098592c3ecfbf35838e5191.tar.gz
CryptoPkg: Increase ScratchMemory buffer for openssl 3.0.15
Openssl 3.0.15 has a larger memory footprint. Updating from EDK 2022.2 (openssl 1.1.j) to 2024.2 (openssl 3.0.15) causes our EFI provisioning application[1] to fail due to an out of memory condition. On inspection, at the time of that fault, 2022.2 had an additional 900 pages. This is why this patch proposes the increase of the ScratchMemory buffer by that same ammount. [1] https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
-rw-r--r--CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c b/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c
index 0d2ca604ea..27b0b5e008 100644
--- a/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c
+++ b/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c
@@ -33,7 +33,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#define RT_PAGE_FREE 0x00000000
#define RT_PAGE_USED 0x00000001
-#define MIN_REQUIRED_BLOCKS 600
+#define MIN_REQUIRED_BLOCKS 1100
//
// Memory Page Table