[PATCH kexec-tools] arm-zImage: prepare for more malloc requirements of zstd

Mukesh Pilaniya mpilaniy at redhat.com
Mon Aug 31 02:59:23 PDT 2026


Hi Andreas,

On 29/08/26 3:16 pm, Andreas Kemnade wrote:
> As there are plans for zstd in zImage for ARM, which requires more malloc
> size fo, decompression, increase the space.
> 
_size fo_ looks like a truncated _size for_ .

The high-level changes look good to me. Feel free to add:
Acked-by: Mukesh Pilaniya <mpilaniy at redhat.com>

> 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);
>  

-- 
Regards,
Mukesh Pilaniya




More information about the kexec mailing list