From: Alexander Gordeev <agordeev@linux.ibm.com>
To: Heiko Carstens <hca@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Mike Rapoport <rppt@kernel.org>,
linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [PATCH] s390/mm: Skip holes in identity mapping in set_memory()
Date: Tue, 1 Dec 2026 13:41:30 +0100 [thread overview]
Message-ID: <67fbc518-b455-461e-9afd-c75dd91d7742-agordeev@linux.ibm.com> (raw)
In-Reply-To: <20261129165327.1188117-1-hca@linux.ibm.com>
On Sun, Nov 29, 2026 at 05:53:27PM +0100, Heiko Carstens wrote:
> With debug_pagealloc=on, vmem_map_init() panics with "Failed to set
> kernel mapping permissions" if the identity mapping contains holes, e.g.
> standby memory. __set_memory_4k() is called for [0, ident_map_size),
> which may include holes, and change_page_attr() returns -EINVAL for the
> first empty page table entry, which was silently ignored before [1].
>
> Fix this by skipping empty entries if the range is within the identity
> mapping, similar to x86.
>
> Note: the fixes tag points to the commit which reveals this bug, but it
> exists since much longer. Nobody noticed so far, since hardly anybody
> uses debug_pagealloc, and also hardly anybody has configurations with
> holes within the identity mapping.
>
> Fixes: 4634f260683b ("s390/mm: Add error handling to vmem_map_init()") [1]
> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
> ---
> arch/s390/mm/pageattr.c | 53 +++++++++++++++++++++++++++++++----------
> 1 file changed, 41 insertions(+), 12 deletions(-)
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
prev parent reply other threads:[~2026-12-01 12:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 16:53 Heiko Carstens
2026-12-01 11:02 ` Mike Rapoport
2026-12-01 12:41 ` Alexander Gordeev [this message]
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=67fbc518-b455-461e-9afd-c75dd91d7742-agordeev@linux.ibm.com \
--to=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=rppt@kernel.org \
--cc=svens@linux.ibm.com \
/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
all inboxes | Powered by JetHome®