Re: [GIT PULL] RISC-V updates for v7.0

From: Mark Brown

Date: Mon Feb 16 2026 - 09:20:15 EST


On Fri, Feb 13, 2026 at 05:23:41PM -0700, Paul Walmsley wrote:
> On Thu, 12 Feb 2026, Linus Torvalds wrote:
> > On Thu, 12 Feb 2026 at 15:39, Paul Walmsley <pjw@xxxxxxxxxx> wrote:

> > And only very tangentially related: I think the indirect branch
> > locking could have been just a separate bit from the enable bit. I
> > don't see why it needed separate prctls for "set status" and "set
> > lock".

> Will think this through and respond back.

If that's the part I think it is it's following the same pattern as
shadow stacks, originally inherited from x86 then generalised. We have
a prctl() that configures the feature and any optional flags for it
(it looks like the indirect branches don't have any) and another that
lets userspace lock each flag to it's current state individually.
They're separate prctl()s so you can use the same defines to specify the
features.

Attachment: signature.asc
Description: PGP signature