Messages in this thread | | | From | Pingfan Liu <> | Subject | [PATCHv5 0/2] x86/boot/KASLR: skip the specified crashkernel region | Date | Tue, 7 May 2019 12:31:32 +0800 |
| |
crashkernel=x@y or or =range1:size1[,range2:size2,...]@offset option may fail to reserve the required memory region if KASLR puts kernel into the region. To avoid this uncertainty, asking KASLR to skip the required region. And the parsing routine can be re-used at this early boot stage.
Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Baoquan He <bhe@redhat.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Nicolas Pitre <nico@linaro.org> Cc: Vivek Goyal <vgoyal@redhat.com> Cc: Chao Fan <fanc.fnst@cn.fujitsu.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> CC: Hari Bathini <hbathini@linux.vnet.ibm.com> Cc: linux-kernel@vger.kernel.org --- v3 -> v4: reuse the parse_crashkernel_xx routines v4 -> v5: drop unnecessary initialization of crash_base in [2/2]
Pingfan Liu (2): kernel/crash_core: separate the parsing routines to lib/parse_crashkernel.c x86/boot/KASLR: skip the specified crashkernel region
arch/x86/boot/compressed/kaslr.c | 40 ++++++ kernel/crash_core.c | 273 ------------------------------------ lib/Makefile | 2 + lib/parse_crashkernel.c | 289 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 331 insertions(+), 273 deletions(-) create mode 100644 lib/parse_crashkernel.c
-- 2.7.4
| |