Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Chris Down" <chris@chrisdown.name>,
	"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>,
	kexec@lists.infradead.org, kernel-team@meta.com
Subject: Re: [PATCH 3/3] Documentation: kdump: Mention that the crashkernel offset must be aligned
Date: Fri, 04 Dec 2026 21:05:46 +0000	[thread overview]
Message-ID: <sashiko-outbox-250659@kernel.org> (raw)
In-Reply-To: <75b211a9a4dbd50816719d1f5867d33259a4b662.1796416344.git.chris@chrisdown.name>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] docs: kdump.rst inaccurately claims s390 wastes space below
  aligned offset
- [Low] docs: kernel-parameters.txt uses informal slang term cromulent
--

commit a86c416e8179825cd40f250e0eaeb32cd11df0c7
Author: Chris Down <chris@chrisdown.name>

Documentation: kdump: Mention that the crashkernel offset must be aligned

This commit updates kdump.rst and kernel-parameters.txt to note that
explicit crashkernel start addresses must be aligned on architectures
using reserve_crashkernel_generic(), or no memory will be reserved.

> diff --git a/Documentation/admin-guide/kdump/kdump.rst b/Documentation/admin-guide/kdump/kdump.rst
> index 7587caadbae1a..7638881282aac 100644
> --- a/Documentation/admin-guide/kdump/kdump.rst
> +++ b/Documentation/admin-guide/kdump/kdump.rst
> @@ -264,10 +264,14 @@ crashkernel syntax
>  
>           crashkernel=256M
>  
> -   If the start address is specified, note that the start address of the
> -   kernel will be aligned to a value (which is Arch dependent), so if the
> -   start address is not then any space below the alignment point will be
> -   wasted.
> +   If the start address is specified, it has to be aligned to a value which
> +   is arch dependent. For example, it is 1MiB on x86, and 2MiB on arm64,
> +   loongarch, and 64-bit riscv. If it is not aligned properly, nothing will
> +   be reserved.
> +
> +   However, note well that on some architectures like s390, unaligned start
> +   addresses are rounded up instead, and so any space below the alignment
> +   point is simply wasted.

[Severity: Low]
Is the space below the alignment point actually wasted on s390, as stated
here and in the commit message?

In arch/s390/kernel/setup.c, reserve_crashkernel() aligns crash_base up
before calling memblock_phys_alloc_range() and memblock_remove().  Only
the aligned range is reserved and removed, so the memory below the
alignment point remains usable RAM.

[ ... ]

> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index dce9b8f3ae980..8a41b45b1e474 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -1061,7 +1061,9 @@ Kernel parameters
>  			upon panic. This parameter reserves the physical
>  			memory region [offset, offset + size] for that kernel
>  			image. If '@offset' is omitted, then a suitable offset
> -			is selected automatically.
> +			is selected automatically. Some architectures require
> +			offset to be aligned, and will fail to reserve anything
> +			if the alignment is not cromulent.

[Severity: Low]
"cromulent" is informal pop-culture slang and may be unclear to non-native
English readers of kernel-parameters.txt.  Plain wording such as "if it is
not properly aligned" would be clearer here.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796416344.git.chris@chrisdown.name?part=3


  reply	other threads:[~2026-12-04 21:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2026-12-04 21:05   ` sashiko-bot [this message]
2026-12-04 21:09 ` [PATCH 0/3] crash: Restore 1M crashkernel offsets on x86 and report misaligned ones sashiko-bot

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=sashiko-outbox-250659@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=baoquan.he@linux.dev \
    --cc=bp@alien8.de \
    --cc=chris@chrisdown.name \
    --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=mingo@redhat.com \
    --cc=pasha.tatashin@soleen.com \
    --cc=pratyush@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rppt@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --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