Linux Documentation
 help / color / mirror / Atom feed
* [PATCH 0/3] crash: Restore 1M crashkernel offsets on x86 and report misaligned ones
@ 2026-12-04 20:59 Chris Down
  2026-12-04 20:59 ` [PATCH 1/3] x86/crash: Reserve crashkernel=size@offset at 1M-aligned offsets again Chris Down
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Down @ 2026-12-04 20:59 UTC (permalink / raw)
  To: Andrew Morton, Baoquan He, Mike Rapoport
  Cc: Jonathan Corbet, Shuah Khan, Randy Dunlap, Pasha Tatashin,
	Pratyush Yadav, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, x86, H. Peter Anvin, linux-doc, kexec, linux-kernel,
	kernel-team

Since v6.7, crashkernel=size@offset on x86 only reserves anything when
offset is a multiple of 16M, and the kernel just says that the memory is
in use otherwise. Before that, any 1M-aligned offset worked. The result
is that unfortunately, some existing crashkernel configs stopped working.
Of course, they are in the minority, since usually most sensible people
would set it to powers of two above 16M... but anyway.

Patch 1 fixes that by asking for 1M alignment again for an explicit
offset on x86. This is the one that probably should go to stable, given
this is a somewhat unintended behaviour change.

Patch 2 reports misalignment, since previously we just write that it
failed, with no docs or message to really help the user understand why.
The new message gives the alignment the offset has to meet, instead of
claiming that the memory is in use.

Patch 3 documents the alignment. kdump.rst currently says that a
misaligned offset only wastes the memory below the alignment point, but
on x86, arm64, riscv and loongarch nothing is reserved at all.

Patches 2 and 3 build on patch 1, but don't need to go to stable.

Chris Down (3):
  x86/crash: Reserve crashkernel=size@offset at 1M-aligned offsets again
  crash: Don't report a misaligned crashkernel offset as memory in use
  Documentation: kdump: Mention that the crashkernel offset must be
    aligned

 Documentation/admin-guide/kdump/kdump.rst       | 15 ++++++++++-----
 Documentation/admin-guide/kernel-parameters.txt |  4 +++-
 arch/x86/include/asm/crash_reserve.h            |  2 ++
 include/linux/crash_reserve.h                   |  3 +++
 kernel/crash_reserve.c                          |  9 ++++++++-
 5 files changed, 26 insertions(+), 7 deletions(-)


base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
-- 
2.56.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-04 20:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 20:59 [PATCH 0/3] crash: Restore 1M crashkernel offsets on x86 and report misaligned ones Chris Down
2026-12-04 20:59 ` [PATCH 1/3] x86/crash: Reserve crashkernel=size@offset at 1M-aligned offsets again Chris Down
2026-12-04 20:59 ` [PATCH 2/3] crash: Don't report a misaligned crashkernel offset as memory in use Chris Down
2026-12-04 20:59 ` [PATCH 3/3] Documentation: kdump: Mention that the crashkernel offset must be aligned Chris Down

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox