mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Walmsley <pjw@kernel.org>
To: Jisheng Zhang <jszhang@kernel.org>
Cc: Paul Walmsley <pjw@kernel.org>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	 Albert Ou <aou@eecs.berkeley.edu>,
	Alexandre Ghiti <alex@ghiti.fr>,
	 linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] riscv: make runtime const not usable by modules
Date: Mon, 23 Mar 2026 17:59:58 -0600 (MDT)	[thread overview]
Message-ID: <94f9aad7-b31b-da59-46bc-0aed11941c3f@kernel.org> (raw)
In-Reply-To: <20260221023731.3476-1-jszhang@kernel.org>

On Sat, 21 Feb 2026, Jisheng Zhang wrote:

> Similar as commit 284922f4c563 ("x86: uaccess: don't use runtime-const
> rewriting in modules") does, make riscv's runtime const not usable by
> modules too, to "make sure this doesn't get forgotten the next time
> somebody wants to do runtime constant optimizations". The reason is
> well explained in the above commit: "The runtime-const infrastructure
> was never designed to handle the modular case, because the constant
> fixup is only done at boot time for core kernel code."
> 
> Signed-off-by: Jisheng Zhang <jszhang@kernel.org>

Thanks, queued for v7.0-rc.


- Paul

      reply	other threads:[~2026-03-24  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-21  2:37 Jisheng Zhang
2026-03-23 23:59 ` Paul Walmsley [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=94f9aad7-b31b-da59-46bc-0aed11941c3f@kernel.org \
    --to=pjw@kernel.org \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=jszhang@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.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®