crash_core-use-panic_try_start-in-crash_kexec.patch removed from -mm tree
The quilt patch titled
Subject: crash_core: use panic_try_start() in crash_kexec()
has been removed from the -mm tree. Its filename was
crash_core-use-panic_try_start-in-crash_kexec.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jinchao Wang <[email protected]>
Subject: crash_core: use panic_try_start() in crash_kexec()
Date: Mon, 25 Aug 2025 10:29:31 +0800
crash_kexec() had its own code to exclude parallel execution by setting panic_cpu. This is already handled by panic_try_start(). Switch to panic_try_start() to remove the duplication and keep the logic consistent.
---
kernel/crash_core.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)
kernel/crash_core.c renamed from kernel/crash_core.c~crash_core-use-panic_try_start-in-crash_kexec +3 -12
@@ -4,6 +4,7 @@* Copyright (C) 2002-2004 Eric Biederman <[email protected]> */ +#include "linux/panic.h" #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/buildid.h>
@@ -143,17 +144,7 @@ STACK_FRAME_NON_STANDARD(__crash_kexec); __bpf_kfunc void crash_kexec(struct pt_regs *regs) { -int old_cpu, this_cpu; - -/* -* Only one CPU is allowed to execute the crash_kexec() code as with -* panic(). Otherwise parallel calls of panic() and crash_kexec() -* may stop each other. To exclude them, we use panic_cpu here too. -*/ - old_cpu =PANIC_CPU_INVALID ; - this_cpu =raw_smp_processor_id (); - -if (atomic_try_cmpxchg (&panic_cpu, &old_cpu, this_cpu)) { +if (panic_try_start ()) {/* This is the 1st CPU which comes here, so go ahead. */ __crash_kexec (regs);
@@ -161,7 +152,7 @@ __bpf_kfunc void crash_kexec(struct pt_r* Reset panic_cpu to allow another panic()/crash_kexec() * call. */ -atomic_set (&panic_cpu,PANIC_CPU_INVALID ); +panic_reset (); } }
_
Patches currently in -mm which might be from [email protected] are