[PATCH v8] arm64: kexec_file: Fix elf_headers memory leak in retry loop

Catalin Marinas catalin.marinas at arm.com
Fri Nov 6 10:36:43 PST 2026


On Thu, 05 Nov 2026 20:57:24 +0800, Jinjie Ruan wrote:
> A retry allocates new elf headers and overwrites image->elf_headers,
> leaking the previous buffer.
> 
> Free it before assigning.

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: kexec_file: Fix elf_headers memory leak in retry loop
      https://git.kernel.org/arm64/c/ac302aea3d82



More information about the linux-arm-kernel mailing list