From: Mike Rapoport <rppt@kernel.org>
To: Heiko Carstens <hca@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
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:02:50 +0200 [thread overview]
Message-ID: <aw6pWrBmty3v3yt7@kernel.org> (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>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
> ---
> arch/s390/mm/pageattr.c | 53 +++++++++++++++++++++++++++++++----------
> 1 file changed, 41 insertions(+), 12 deletions(-)
--
Sincerely yours,
Mike.
next prev parent reply other threads:[~2026-12-01 11:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 16:53 [PATCH] s390/mm: Skip holes in identity mapping in set_memory() Heiko Carstens
2026-11-29 16:59 ` sashiko-bot
2026-12-01 11:02 ` Mike Rapoport [this message]
2026-12-01 12:41 ` Alexander Gordeev
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=aw6pWrBmty3v3yt7@kernel.org \
--to=rppt@kernel.org \
--cc=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=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.