diff options
author | 2024-01-02 22:49:05 +0800 | |
---|---|---|
committer | 2024-01-05 10:45:25 -0800 | |
commit | 6dff315972640bfe542e2d044933751afd8e6c4a (patch) | |
tree | fb099685e3fc324142ae21dbe592cca96248f4fe /arch/s390/kernel/traps.c | |
parent | x86/crash: use SZ_1M macro instead of hardcoded value (diff) | |
download | linux-6dff315972640bfe542e2d044933751afd8e6c4a.tar.gz linux-6dff315972640bfe542e2d044933751afd8e6c4a.tar.bz2 linux-6dff315972640bfe542e2d044933751afd8e6c4a.zip |
crash_core: fix and simplify the logic of crash_exclude_mem_range()
The purpose of crash_exclude_mem_range() is to remove all memory ranges
that overlap with [mstart-mend]. However, the current logic only removes
the first overlapping memory range.
Commit a2e9a95d2190 ("kexec: Improve & fix crash_exclude_mem_range() to
handle overlapping ranges") attempted to address this issue, but it did
not fix all error cases.
Let's fix and simplify the logic of crash_exclude_mem_range().
Link: https://lkml.kernel.org/r/20240102144905.110047-4-ytcoode@gmail.com
Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Borislav Petkov (AMD) <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Hari Bathini <hbathini@linux.ibm.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Sourabh Jain <sourabhjain@linux.ibm.com>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/s390/kernel/traps.c')
0 files changed, 0 insertions, 0 deletions