From: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
To: "Jitindar Singh, Suraj" <surajjs@amazon.com>
Cc: "stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH 5.10 0/4] x86/speculation: Make {JMP, CALL}_NOSPEC Consistent
Date: Wed, 17 Sep 2025 09:40:34 +0200 [thread overview]
Message-ID: <2025091712-gizzard-patrol-e59d@gregkh> (raw)
In-Reply-To: <ecfff771b6fdd3f5bcca3c29019dafb28d20abe1.camel@amazon.com>
On Tue, Sep 16, 2025 at 08:41:33PM +0000, Jitindar Singh, Suraj wrote:
> On Thu, 2025-09-04 at 14:00 +0200, Greg KH wrote:
> > On Wed, Sep 03, 2025 at 03:49:59PM -0700, Suraj Jitindar Singh wrote:
> > > The 4 patches in this series make the JMP_NOSPEC and CALL_NOSPEC
> > > macros used
> > > in the kernel consistent with what is generated by the compiler.
> > >
> > > ("x86,nospec: Simplify {JMP,CALL}_NOSPEC") was merged in v6.0 and
> > > the remaining
> > > 3 patches in this series were merged in v6.15. All 4 were included
> > > in kernels
> > > v5.15+ as prerequisites for the backport of the ITS mitigations
> > > [1].
> > >
> > > None of these patches were included in the backport of the ITS
> > > mitigations to
> > > the 5.10 kernel [2]. They all apply cleanly and are applicable to
> > > the 5.10
> > > kernel. Thus I see no reason that they weren't applied here, unless
> > > someone can
> > > correct me?
> >
> > Do they actually fix anything?
>
> They do not, no.
>
> >
> > > I am sending them for inclusion in the 5.10 kernel as this kernel
> > > is still
> > > actively maintained for these kind of vulnerability mitigations and
> > > as such
> > > having these patches will unify the handling of these cases with
> > > subsequent
> > > kernel versions easing code understanding and the ease of backports
> > > in the
> > > future.
> >
> > Does this actually allow this to happen? I think there are a few
> > speculation fixes that have not been backported to this kernel tree,
> > so
> > why not just make this as a part of that work instead? Just adding
> > infastructure that doesn't do anything isn't usually a good idea.
> >
>
> In my case at least, it does. I had to spend time working out why this
> code was different compared to newer stable and upstream, and
> determining if this required special handling - which would not have
> been necessary if this code was the same. Other speculation fixes don't
> touch this path which is why it was included in the ITS mitigation
> patch series for other stable versions. It does do something, any where
> the macros are used this does something and is then rewritten by the
> alternatives code.
>
> Trying to save my own (and anyone elses) sanity for having to work out
> why this is different in the future in an area which does still get
> regularly touched for these old kernels. Understand it doesn't fit the
> regular stable patch mold but wanted to help in case these were just
> unintentionally missed in this stable stream. But I acknowledge as you
> point out that they are not fixing anything.
If you want to include this as part of a patch series that does add
additional speculation bugfixes, as it would make that series work
easier, that's great, but on its own, it wouldn't make much sense to do
this for no reason.
good luck with keeping this alive, that's not an easy task.
greg k-h
next prev parent reply other threads:[~2025-09-17 7:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 22:49 [PATCH 5.10 0/4] x86/speculation: Make {JMP,CALL}_NOSPEC Consistent Suraj Jitindar Singh
2025-09-03 22:50 ` [PATCH 5.10 1/4] x86,nospec: Simplify {JMP,CALL}_NOSPEC Suraj Jitindar Singh
2025-09-03 22:50 ` [PATCH 5.10 2/4] x86/speculation: Simplify and make CALL_NOSPEC consistent Suraj Jitindar Singh
2025-09-03 22:50 ` [PATCH 5.10 3/4] x86/speculation: Add a conditional CS prefix to CALL_NOSPEC Suraj Jitindar Singh
2025-09-03 22:50 ` [PATCH 5.10 4/4] x86/speculation: Remove the extra #ifdef around CALL_NOSPEC Suraj Jitindar Singh
2025-09-04 12:00 ` [PATCH 5.10 0/4] x86/speculation: Make {JMP,CALL}_NOSPEC Consistent Greg KH
2025-09-16 20:41 ` [PATCH 5.10 0/4] x86/speculation: Make {JMP, CALL}_NOSPEC Consistent Jitindar Singh, Suraj
2025-09-17 7:40 ` gregkh [this message]
2025-09-04 12:01 ` [PATCH 5.10 0/4] x86/speculation: Make {JMP,CALL}_NOSPEC Consistent Greg KH
2025-09-16 20:44 ` [PATCH 5.10 0/4] x86/speculation: Make {JMP, CALL}_NOSPEC Consistent Jitindar Singh, Suraj
2025-09-17 7:52 ` gregkh
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=2025091712-gizzard-patrol-e59d@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=stable@vger.kernel.org \
--cc=surajjs@amazon.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