Skip to content

x86/boot/KASLR: skip the specified crashkernel region

Pingfan Liu lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 1 replyIn review
  2. v42 patches 8 repliesSuperseded
  3. v31 patch 10 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch14 repliesSuperseded
v11 patch11 repliesSuperseded

Changes in v5 from the cover letter

drop unnecessary initialization of crash_base in [2/2]

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crash: Carve out crashkernel= cmdline parsingkernel/crash_core.c lib/Makefile lib/parse_crashkernel.c+282 -2730 replies
2/2x86/boot/KASLR: skip the specified crashkernel regionarch/x86/boot/compressed/kaslr.c lib/parse_crashkernel.c+50 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCHv5 0/2] x86/boot/KASLR: skip the specified crashkernel region

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 <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Baoquan He <[email protected]>
Cc Will Deacon <[email protected]>
Cc Nicolas Pitre <[email protected]>
Cc Vivek Goyal <[email protected]>
Cc Chao Fan <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Ard Biesheuvel <[email protected]>
CC Hari Bathini <[email protected]>

---
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
Signature · 1 line
2.7.4