[PATCH kexec-tools] arm-zImage: prepare for more malloc requirements of zstd
Andreas Kemnade
andreas at kemnade.info
Sat Aug 29 02:46:07 PDT 2026
As there are plans for zstd in zImage for ARM, which requires more malloc
size fo, decompression, increase the space.
References:
https://lore.kernel.org/lkml/ZFDMRst2O+RJUYuu@shell.armlinux.org.uk/#t
https://lore.kernel.org/lkml/20260828-zstd2-v2-0-4d9ce7150877@kemnade.info/
Suggested-by: Russell King (Oracle) <linux at armlinux.org.uk>
Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
---
kexec/arch/arm/kexec-zImage-arm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kexec/arch/arm/kexec-zImage-arm.c b/kexec/arch/arm/kexec-zImage-arm.c
index 8b474dd..97db7f3 100644
--- a/kexec/arch/arm/kexec-zImage-arm.c
+++ b/kexec/arch/arm/kexec-zImage-arm.c
@@ -663,9 +663,9 @@ int zImage_arm_load(int argc, char **argv, const char *buf, off_t len,
/*
* The zImage length does not include its stack (4k) or its
- * malloc space (64k). Include this.
+ * malloc space (128k). Include this.
*/
- len += 0x11000;
+ len += 0x21000;
dbgprintf("zImage requires 0x%08llx bytes\n", (unsigned long long)len);
--
2.47.3
More information about the kexec
mailing list