The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Chris Down <chris@chrisdown.name>
To: Andrew Morton <akpm@linux-foundation.org>,
	Baoquan He <baoquan.he@linux.dev>,
	Mike Rapoport <rppt@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>,
	Pasha Tatashin <pasha.tatashin@soleen.com>,
	Pratyush Yadav <pratyush@kernel.org>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	linux-doc@vger.kernel.org, kexec@lists.infradead.org,
	linux-kernel@vger.kernel.org, kernel-team@meta.com
Subject: [PATCH 0/3] crash: Restore 1M crashkernel offsets on x86 and report misaligned ones
Date: Fri, 04 Dec 2026 12:59:01 -0800	[thread overview]
Message-ID: <cover.1796416344.git.chris@chrisdown.name> (raw)

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


             reply	other threads:[~2026-12-04 20:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 20:59 Chris Down [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1796416344.git.chris@chrisdown.name \
    --to=chris@chrisdown.name \
    --cc=akpm@linux-foundation.org \
    --cc=baoquan.he@linux.dev \
    --cc=bp@alien8.de \
    --cc=corbet@lwn.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kernel-team@meta.com \
    --cc=kexec@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=pasha.tatashin@soleen.com \
    --cc=pratyush@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rppt@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox