[PATCH] efi: payload: bootm: fix memory corruption on initrd load error

Sascha Hauer s.hauer at pengutronix.de
Tue Feb 10 01:02:15 PST 2026


On Mon, 09 Feb 2026 16:30:46 +0100, Ahmad Fatoum wrote:
> initrd is a pointer to a pointer and its only used place the pointed at
> pointer on stack. Freeing it will this trigger memory corruption.
> 
> Fix this by actually freeing the heap buffer.
> 
> 

Applied, thanks!

[1/1] efi: payload: bootm: fix memory corruption on initrd load error
      https://git.pengutronix.de/cgit/barebox/commit/?id=57468d3c67f9 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list