From: Jinjie Ruan <ruanjinjie@huawei.com>
To: <catalin.marinas@arm.com>, <will@kernel.org>,
<akpm@linux-foundation.org>, <baoquan.he@linux.dev>,
<rppt@kernel.org>, <pasha.tatashin@soleen.com>,
<pratyush@kernel.org>, <thuth@redhat.com>, <mark.rutland@arm.com>,
<jic23@kernel.org>, <james.morse@arm.com>, <ardb@kernel.org>,
<leitao@debian.org>, <yeoreum.yun@arm.com>,
<sourabhjain@linux.ibm.com>, <robh@kernel.org>, <kees@kernel.org>,
<coxu@redhat.com>, <makb@juniper.net>, <piliu@redhat.com>,
<graf@amazon.com>, <ebiggers@kernel.org>, <jbouron@amazon.com>,
<bgwin@google.com>, <linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <kexec@lists.infradead.org>
Subject: Re: [PATCH v2 0/5] arm64: crash: Add crash hotplug support
Date: Tue, 11 Aug 2026 21:05:30 +0800 [thread overview]
Message-ID: <8e548d5e-8d80-4ef2-961f-2bcaa7907b8a@huawei.com> (raw)
In-Reply-To: <20260729031235.2840255-1-ruanjinjie@huawei.com>
在 2026/7/29 11:12, Jinjie Ruan 写道:
> 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.
>
> As Baoquan suggested, it also addresses and fixes several
> pre-existing code issues and Sashiko AI review findings extracted
> from the previous patch set.
>
> The major improvements and fixes included in this series are:
> - Fix several memory leaks for arm64.
> - Simplify arm64 load_other_segments().
> - Implement infrastructure for arm64 crash memory hotplug support.
Hi all,
I'd like to ask if anyone has any suggestions for improvement?
>
> This patch set is rebased on liveupdate/crashkernel-cma.
>
> Link: https://lore.kernel.org/all/20260601094805.2928614-1-ruanjinjie@huawei.com/
>
> Changes in v2:
> - Split out Powerpc bugfix patch as Mike suggested.
> - Use phys_to_virt() instead of __va() in update_crash_elfcorehdr().
> - Convert pnum_hdr_sz() to a function.
> - Only assign elfcorehdr_index after kexec_add_buffer succeeds, considering
> crash_handle_hotplug_event() already performs validity check on
> elfcorehdr_index:
> - We can safely remove the check for CPU hotplug
> in arch_crash_handle_hotplug_event().
> - The elfcorehdr_index's segment mem will be valid in
> update_crash_elfcorehdr(), so we can safely remove the NULL check.
> - Simplify the commit message.
> - v1: https://lore.kernel.org/all/20260723131242.1537633-1-ruanjinjie@huawei.com/#t
>
> Jinjie Ruan (5):
> 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 in 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 | 16 +++
> arch/arm64/kernel/Makefile | 2 +-
> arch/arm64/kernel/crash.c | 143 +++++++++++++++++++++++++
> arch/arm64/kernel/kexec_image.c | 1 +
> arch/arm64/kernel/machine_kexec_file.c | 78 +++++++-------
> include/linux/kexec.h | 2 +
> kernel/kexec_core.c | 25 +++--
> 8 files changed, 216 insertions(+), 54 deletions(-)
> create mode 100644 arch/arm64/kernel/crash.c
>
next prev parent reply other threads:[~2026-08-11 13:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 3:12 [PATCH v2 0/5] arm64: crash: Add crash hotplug support Jinjie Ruan
2026-07-29 3:12 ` [PATCH v2 1/5] kexec: Extract kexec_free_segment_cma() from kimage_free_cma() Jinjie Ruan
2026-07-29 3:12 ` [PATCH v2 2/5] arm64: kexec_file: Fix CMA page leaks in segment placement retry loops Jinjie Ruan
2026-07-29 3:12 ` [PATCH v2 3/5] arm64: kexec_file: Fix image->elf_headers memory leak in retry loop Jinjie Ruan
2026-07-29 3:12 ` [PATCH v2 4/5] arm64: kexec_file: Simplify load_other_segments() Jinjie Ruan
2026-07-29 3:12 ` [PATCH v2 5/5] arm64: crash: Add crash hotplug support Jinjie Ruan
2026-08-13 16:05 ` Catalin Marinas
2026-08-11 13:05 ` Jinjie Ruan [this message]
2026-08-13 14:40 ` [PATCH v2 0/5] " Catalin Marinas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8e548d5e-8d80-4ef2-961f-2bcaa7907b8a@huawei.com \
--to=ruanjinjie@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=ardb@kernel.org \
--cc=baoquan.he@linux.dev \
--cc=bgwin@google.com \
--cc=catalin.marinas@arm.com \
--cc=coxu@redhat.com \
--cc=ebiggers@kernel.org \
--cc=graf@amazon.com \
--cc=james.morse@arm.com \
--cc=jbouron@amazon.com \
--cc=jic23@kernel.org \
--cc=kees@kernel.org \
--cc=kexec@lists.infradead.org \
--cc=leitao@debian.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=makb@juniper.net \
--cc=mark.rutland@arm.com \
--cc=pasha.tatashin@soleen.com \
--cc=piliu@redhat.com \
--cc=pratyush@kernel.org \
--cc=robh@kernel.org \
--cc=rppt@kernel.org \
--cc=sourabhjain@linux.ibm.com \
--cc=thuth@redhat.com \
--cc=will@kernel.org \
--cc=yeoreum.yun@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox