All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jisheng Zhang <jszhang@kernel.org>
To: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Cc: Albert Ou <aou@eecs.berkeley.edu>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Paul Walmsley <pjw@kernel.org>, Alexandre Ghiti <alex@ghiti.fr>,
	linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org
Subject: Re: [PATCH v2 0/2] riscv: mm: fix set_memory_x() and kernel_page_present()
Date: Tue, 17 Nov 2026 22:00:43 +0800	[thread overview]
Message-ID: <avxeCy_ovH1BSyOo@xhacker> (raw)
In-Reply-To: <20261117-fixes-riscv-v2-0-5edc9bdc54fd@kernel.org>

On Tue, Nov 17, 2026 at 04:00:19PM +0200, Mike Rapoport (Microsoft) wrote:
> These are two riscv fixes I found while working on a generic
> implementation of the set_memory APIs.
> 
> The first one stops set_memory_x() from making the linear map alias of
> module and BPF text executable.
> 
> The second one makes kernel_page_present() report the pages removed from
> the linear map as not present. Today it says they are mapped, and
> hibernation could copy them without mapping them first.
> 
> ---
> Changes in v2:
> - read the PMD entry once in kernel_page_present() (Jisheng)
> - Link to v1: https://patch.msgid.link/20261112-fixes-riscv-v1-0-1caac19897b5@kernel.org

for the series:

Reviewed-by: Jisheng Zhang <jszhang@kernel.org>


> 
> ---
> Mike Rapoport (Microsoft) (2):
>       riscv: mm: do not make the linear map alias executable in set_memory_*()
>       riscv: mm: check the valid bit in kernel_page_present()
> 
>  arch/riscv/mm/pageattr.c | 21 ++++++++++++++-------
>  1 file changed, 14 insertions(+), 7 deletions(-)
> ---
> base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
> change-id: 20261112-fixes-riscv-3e48788f58fe
> 
> --
> Sincerely yours,
> Mike.
> 

WARNING: multiple messages have this Message-ID (diff)
From: Jisheng Zhang <jszhang@kernel.org>
To: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Cc: Albert Ou <aou@eecs.berkeley.edu>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Paul Walmsley <pjw@kernel.org>, Alexandre Ghiti <alex@ghiti.fr>,
	linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org
Subject: Re: [PATCH v2 0/2] riscv: mm: fix set_memory_x() and kernel_page_present()
Date: Tue, 17 Nov 2026 22:00:43 +0800	[thread overview]
Message-ID: <avxeCy_ovH1BSyOo@xhacker> (raw)
In-Reply-To: <20261117-fixes-riscv-v2-0-5edc9bdc54fd@kernel.org>

On Tue, Nov 17, 2026 at 04:00:19PM +0200, Mike Rapoport (Microsoft) wrote:
> These are two riscv fixes I found while working on a generic
> implementation of the set_memory APIs.
> 
> The first one stops set_memory_x() from making the linear map alias of
> module and BPF text executable.
> 
> The second one makes kernel_page_present() report the pages removed from
> the linear map as not present. Today it says they are mapped, and
> hibernation could copy them without mapping them first.
> 
> ---
> Changes in v2:
> - read the PMD entry once in kernel_page_present() (Jisheng)
> - Link to v1: https://patch.msgid.link/20261112-fixes-riscv-v1-0-1caac19897b5@kernel.org

for the series:

Reviewed-by: Jisheng Zhang <jszhang@kernel.org>


> 
> ---
> Mike Rapoport (Microsoft) (2):
>       riscv: mm: do not make the linear map alias executable in set_memory_*()
>       riscv: mm: check the valid bit in kernel_page_present()
> 
>  arch/riscv/mm/pageattr.c | 21 ++++++++++++++-------
>  1 file changed, 14 insertions(+), 7 deletions(-)
> ---
> base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
> change-id: 20261112-fixes-riscv-3e48788f58fe
> 
> --
> Sincerely yours,
> Mike.
> 

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  parent reply	other threads:[~2026-11-17 14:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 14:00 [PATCH v2 0/2] riscv: mm: fix set_memory_x() and kernel_page_present() Mike Rapoport (Microsoft)
2026-11-17 14:00 ` Mike Rapoport (Microsoft)
2026-11-17 14:00 ` [PATCH v2 1/2] riscv: mm: do not make the linear map alias executable in set_memory_*() Mike Rapoport (Microsoft)
2026-11-17 14:00   ` Mike Rapoport (Microsoft)
2026-11-17 14:00 ` [PATCH v2 2/2] riscv: mm: check the valid bit in kernel_page_present() Mike Rapoport (Microsoft)
2026-11-17 14:00   ` Mike Rapoport (Microsoft)
2026-11-17 14:00 ` Jisheng Zhang [this message]
2026-11-17 14:00   ` [PATCH v2 0/2] riscv: mm: fix set_memory_x() and kernel_page_present() Jisheng Zhang

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=avxeCy_ovH1BSyOo@xhacker \
    --to=jszhang@kernel.org \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=rppt@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 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.