All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] arm64: crash: Add crash hotplug support
@ 2026-07-23 13:12 Jinjie Ruan
  2026-07-23 13:12 ` [PATCH 1/8] powerpc/crash: Fix possible memory leak in update_crash_elfcorehdr() Jinjie Ruan
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jinjie Ruan @ 2026-07-23 13:12 UTC (permalink / raw)
  To: catalin.marinas, will, maddy, mpe, npiggin, chleroy, akpm,
	baoquan.he, rppt, pasha.tatashin, pratyush, thuth, ruanjinjie,
	vladimir.murzin, mark.rutland, ardb, james.morse, leitao,
	yeoreum.yun, robh, kees, coxu, sourabhjain, ritesh.list, adityag,
	hbathini, makb, piliu, graf, liaoyuanhong, jbouron, bauerman,
	bgwin, linux-arm-kernel, linux-kernel, linuxppc-dev, kexec

When CPU or memory hotplug events occur, the elfcorehdr in the kdump image
becomes stale, potentially leading to incomplete crash dumps.

Currently, userspace udev rules reload the entire kdump image upon such
events, which is inefficient and leaves kdump inactive for a long time.

Commit 247262756121 ("crash: add generic infrastructure for crash hotplug
support") introduced a kernel mechanism to update only the elfcorehdr.
This patch set implements crash hotplug support for arm64.

It also addresses and fixes several critical pre-existing code issues
and Sashiko AI review findings extracted from the previous patch set,
following Baoquan's suggestions.

The major improvements and fixes included in this series are:

- Fix powerpc memory leak, null-ptr-def and overlapping memory
  range truncation bug.

- Fix several memory leaks for arm64.

- Simplify arm64 load_other_segments().

- Implement infrastructure for arm64 crash memory hotplug support.

This patch set is rebased on liveupdate/crashkernel-cma.

Link: https://lore.kernel.org/all/20260601094805.2928614-1-ruanjinjie@huawei.com/

Jinjie Ruan (8):
  powerpc/crash: Fix possible memory leak in update_crash_elfcorehdr()
  powerpc/kexec_file: Fix null-ptr-def in extra size calculation
  powerpc/kexec_file: Prevent kexec range truncation
  kexec: Extract kexec_free_segment_cma() from kimage_free_cma()
  arm64: kexec_file: Fix CMA page leaks in segment placement retry loops
  arm64: kexec_file: Fix image->elf_headers memory leak during retry
    loop
  arm64: kexec_file: Simplify load_other_segments()
  arm64: crash: Add crash hotplug support

 arch/arm64/Kconfig                     |   3 +
 arch/arm64/include/asm/kexec.h         |  13 +++
 arch/arm64/kernel/Makefile             |   2 +-
 arch/arm64/kernel/crash.c              | 148 +++++++++++++++++++++++++
 arch/arm64/kernel/kexec_image.c        |   1 +
 arch/arm64/kernel/machine_kexec_file.c |  76 ++++++-------
 arch/powerpc/kexec/crash.c             |   2 +-
 arch/powerpc/kexec/file_load_64.c      |   2 +-
 arch/powerpc/kexec/ranges.c            |  12 +-
 include/linux/kexec.h                  |   2 +
 kernel/kexec_core.c                    |  25 +++--
 11 files changed, 223 insertions(+), 63 deletions(-)
 create mode 100644 arch/arm64/kernel/crash.c

-- 
2.34.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-07-26  7:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 13:12 [PATCH 0/8] arm64: crash: Add crash hotplug support Jinjie Ruan
2026-07-23 13:12 ` [PATCH 1/8] powerpc/crash: Fix possible memory leak in update_crash_elfcorehdr() Jinjie Ruan
2026-07-23 13:12 ` [PATCH 2/8] powerpc/kexec_file: Fix null-ptr-def in extra size calculation Jinjie Ruan
2026-07-23 13:12 ` [PATCH 3/8] powerpc/kexec_file: Prevent kexec range truncation Jinjie Ruan
2026-07-23 13:12 ` [PATCH 4/8] kexec: Extract kexec_free_segment_cma() from kimage_free_cma() Jinjie Ruan
2026-07-23 13:12 ` [PATCH 5/8] arm64: kexec_file: Fix CMA page leaks in segment placement retry loops Jinjie Ruan
2026-07-23 13:12 ` [PATCH 6/8] arm64: kexec_file: Fix image->elf_headers memory leak during retry loop Jinjie Ruan
2026-07-23 13:12 ` [PATCH 7/8] arm64: kexec_file: Simplify load_other_segments() Jinjie Ruan
2026-07-23 13:12 ` [PATCH 8/8] arm64: crash: Add crash hotplug support Jinjie Ruan
2026-07-26  7:10 ` [PATCH 0/8] " Mike Rapoport

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.