From: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
To: "Zhang, Rui" <rui.zhang@intel.com>
Cc: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"regressions@leemhuis.info" <regressions@leemhuis.info>,
"Neri, Ricardo" <ricardo.neri@intel.com>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"bp@alien8.de" <bp@alien8.de>,
"Gupta, Pawan Kumar" <pawan.kumar.gupta@intel.com>,
"regressions@lists.linux.dev" <regressions@lists.linux.dev>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Luck, Tony" <tony.luck@intel.com>,
"thomas.lindroth@gmail.com" <thomas.lindroth@gmail.com>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [STABLE REGRESSION] Possible missing backport of x86_match_cpu() change in v6.1.96
Date: Wed, 25 Sep 2024 12:51:02 -0700 [thread overview]
Message-ID: <20240925195102.GA17227@ranerica-svr.sc.intel.com> (raw)
In-Reply-To: <c20149f35be104c0aa8e995b0f3c7727e095323a.camel@intel.com>
On Wed, Sep 25, 2024 at 05:20:41AM +0000, Zhang, Rui wrote:
> > >
> > > If so, can you submit the needed backports for us to apply? That's
> > > the
> > > easiest way for us to take them, thanks.
> >
> > I audited all the uses of x86_match_cpu(match). All callers that
> > construct
> > the `match` argument using the family of X86_MATCH_* macros from
> > arch/x86/
> > include/asm/cpu_device_id.h function correctly because the commit B
> > has
> > been backported to v6.1.99 and to v6.6.50 -- 93022482b294 ("x86/cpu:
> > Fix
> > x86_match_cpu() to match just X86_VENDOR_INTEL").
> >
> > Only those callers that use their own thing to compose the `match`
> > argument
> > are buggy:
> > * arch/x86/mm/init.c
> > * drivers/powercap/intel_rapl_msr.c (only in 6.1.99)
>
> Thanks for auditing this. I overlooked the intel_rapl driver case.
> >
> > Summarizing, v6.1.99 needs these two commits from mainline
> > * d05b5e0baf42 ("powercap: RAPL: fix invalid initialization for
> > pl4_supported field")
> > * 2eda374e883a ("x86/mm: Switch to new Intel CPU model defines")
> >
> > v6.6.50 only needs the second commit.
>
> Well, commit B 93022482b294 ("x86/cpu: Fix x86_match_cpu() to match
> just X86_VENDOR_INTEL") is backported to all stable kernels. And the
> above two broken cases are also there.
>
> So I suppose we need to backport all of them to 5.x stable kernel as
> well.
Indeed, this the case. It has been backported to v5.15.y and v5.10.y, but
not to v5.4.y nor 4.19.y.
I found one more case in those two v5.x versions. I will post the
backports.
prev parent reply other threads:[~2024-09-25 19:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-30 16:41 [STABLE REGRESSION] Possible missing backport of x86_match_cpu() change in v6.1.96 Thomas Lindroth
2024-08-07 8:15 ` Thorsten Leemhuis
2024-08-12 12:11 ` Greg KH
2024-09-18 6:54 ` Zhang, Rui
2024-09-19 11:19 ` gregkh
2024-09-24 2:45 ` Ricardo Neri
2024-09-25 5:20 ` Zhang, Rui
2024-09-25 19:51 ` Ricardo Neri [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=20240925195102.GA17227@ranerica-svr.sc.intel.com \
--to=ricardo.neri-calderon@linux.intel.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pawan.kumar.gupta@intel.com \
--cc=regressions@leemhuis.info \
--cc=regressions@lists.linux.dev \
--cc=ricardo.neri@intel.com \
--cc=rui.zhang@intel.com \
--cc=stable@vger.kernel.org \
--cc=thomas.lindroth@gmail.com \
--cc=tony.luck@intel.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