[PATCH v7 11/15] kexec: Free the elf core header in kimage_file_post_load_cleanup()

sashiko-bot at kernel.org sashiko-bot at kernel.org
Mon Oct 26 03:47:49 PDT 2026


> The elf core header buffer is generic state, but arm64, LoongArch,
> RISC-V, x86 and powerpc each free it in their post-load cleanup.  Move
> it into the generic cleanup, which also gives the loader a helper to
> release it on error.
> 
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> Cc: Huacai Chen <chenhuacai at kernel.org>
> Cc: Palmer Dabbelt <palmer at rivosinc.com>
> Cc: Alexandre Ghiti <alexghiti at rivosinc.com>
> Cc: Thomas Gleixner <tglx at linutronix.de>
> Cc: Ingo Molnar <mingo at redhat.com>
> Cc: Borislav Petkov <bp at alien8.de>
> Cc: Dave Hansen <dave.hansen at linux.intel.com>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Cc: Nicholas Piggin <npiggin at gmail.com>
> Cc: Christophe Leroy <christophe.leroy at csgroup.eu>
> Cc: Andrew Morton <akpm at linux-foundation.org>
> Cc: Baoquan He <baoquan.he at linux.dev>
> Cc: Mike Rapoport <rppt at kernel.org>
> Signed-off-by: Jinjie Ruan <ruanjinjie at huawei.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261026075201.699550-1-ruanjinjie@huawei.com?part=11




More information about the kexec mailing list