crash-remove-dependency-of-fa_dump-on-crash_dump.patch removed from -mm tree
The quilt patch titled
Subject: crash: remove dependency of FA_DUMP on CRASH_DUMP
has been removed from the -mm tree. Its filename was
crash-remove-dependency-of-fa_dump-on-crash_dump.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Baoquan He <[email protected]>
Subject: crash: remove dependency of FA_DUMP on CRASH_DUMP
Date: Wed, 24 Jan 2024 13:12:43 +0800
In kdump kernel, /proc/vmcore is an elf file mapping the crashed kernel's old memory content. Its elf header is constructed in 1st kernel and passed to kdump kernel via elfcorehdr_addr. Config CRASH_DUMP enables the code of 1st kernel's old memory accessing in different architectures.
Currently, config FA_DUMP has dependency on CRASH_DUMP because fadump needs access global variable 'elfcorehdr_addr' to judge if it's in kdump kernel within function is_kdump_kernel(). In the current kernel/crash_dump.c, variable 'elfcorehdr_addr' is defined, and function setup_elfcorehdr() used to parse kernel parameter to fetch the passed value of elfcorehdr_addr. Only for accessing elfcorehdr_addr, FA_DUMP really doesn't have to depends on CRASH_DUMP.
To remove the dependency of FA_DUMP on CRASH_DUMP to avoid confusion, rename kernel/crash_dump.c to kernel/elfcorehdr.c, and build it when CONFIG_VMCORE_INFO is ebabled. With this, FA_DUMP doesn't need to depend on CRASH_DUMP.
---
arch/powerpc/Kconfig | 2 - kernel/Makefile | 3 -- kernel/crash_dump.c | 41 -------------------------------------- kernel/elfcorehdr.c | 41 ++++++++++++++++++++++++++++++++++++++ kernel/kexec_internal.h | 2 + 5 files changed, 44 insertions(+), 45 deletions(-)
arch/powerpc/Kconfig renamed from arch/powerpc/Kconfig~crash-remove-dependency-of-fa_dump-on-crash_dump +0 -2
@@ -690,8 +690,6 @@ config ARCH_SELECTS_CRASH_DUMP config FA_DUMP bool "Firmware-assisted dump" depends on PPC64 && (PPC_RTAS || PPC_POWERNV) - select VMCORE_INFO - select CRASH_RESERVE select CRASH_DUMP help A robust mechanism to get reliable kernel crash dump with
kernel/crash_dump.c deleted +0 -41
41 lines not on this page · raw message
kernel/elfcorehdr.c new file +41 -0
41 lines not on this page · raw message
kernel/kexec_internal.h renamed from kernel/kexec_internal.h~crash-remove-dependency-of-fa_dump-on-crash_dump +2 -0
@@ -4,6 +4,8 @@#include <linux/kexec.h> +struct kexec_segment ; +struct kimage *do_kimage_alloc_init (void );int sanity_check_segment_list (struct kimage *image);void kimage_free_page_list (struct list_head *list);
kernel/Makefile renamed from kernel/Makefile~crash-remove-dependency-of-fa_dump-on-crash_dump +1 -2
@@ -68,7 +68,7 @@ obj-$(CONFIG_MODULE_SIG_FORMAT) += modul obj-$(CONFIG_KALLSYMS) += kallsyms.o obj-$(CONFIG_KALLSYMS_SELFTEST) += kallsyms_selftest.o obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o -obj-$(CONFIG_VMCORE_INFO) += vmcore_info.o +obj-$(CONFIG_VMCORE_INFO) += vmcore_info.o elfcorehdr.o obj-$(CONFIG_CRASH_RESERVE) += crash_reserve.o obj-$(CONFIG_KEXEC_CORE) += kexec_core.o crash_core.o obj-$(CONFIG_KEXEC) += kexec.o
@@ -121,7 +121,6 @@ obj-$(CONFIG_PERF_EVENTS) += events/ obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o obj-$(CONFIG_PADATA) += padata.o -obj-$(CONFIG_CRASH_DUMP) += crash_dump.o obj-$(CONFIG_JUMP_LABEL) += jump_label.o obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o obj-$(CONFIG_TORTURE_TEST) += torture.o
_
Patches currently in -mm which might be from [email protected] are