[PATCH] x86: Check SSBD and STIBP only on Intel CPUs
H.J. Lu
hjl.tools@gmail.com
Sat Jan 30 13:59:55 GMT 2021
On Sat, Jan 30, 2021 at 2:26 AM Winfried Magerl
<winfried.magerl@t-online.de> wrote:
>
> Hello,
>
> On Sat, Jan 30, 2021 at 09:34:56AM +0100, Winfried Magerl wrote:
> > Hello,
> >
> > I got a suspicious error when building current upcoming glibc-2.33:
> >
> > FAIL: elf/tst-cpu-features-cpuinfo
> >
> > The relavant details from elf/tst-cpu-features-cpuinfo.out
> > (likely invariant_tsc can be ignored):
> >
> > Checking HAS_CPU_FEATURE (INVARIANT_TSC):
> > HAS_CPU_FEATURE (INVARIANT_TSC): 1
> > cpuinfo (invariant_tsc): 0
> > *** missing in /proc/cpuinfo ***
> > Checking HAS_CPU_FEATURE (SSBD):
> > HAS_CPU_FEATURE (SSBD): 0
> > cpuinfo (ssbd): 1
> > *** failure ***
> > Checking HAS_CPU_FEATURE (STIBP):
> > HAS_CPU_FEATURE (STIBP): 0
> > cpuinfo (stibp): 1
> > *** failure ***
> > 2 differences between /proc/cpuinfo and glibc code.
> >
> > The details of the build-system:
> > cpu: AMD Ryzen 9 3900X 12-Core Processor
> > os: openSUSE Tumbleweed 20210128
> > gcc: gcc-10-3.1.x86_64
> > binutils: binutils-2.35.1-1.1
>
> the missing kernel-version:
> openSUSE: kernel-default-5.10.9-1.2.x86_64
>
> also tested with vanilla-kernels with identical result:
> linux-5.9.16
> linux-5.11-rc5
>
> > Maybe this helps to track down the problem. From a quick look it's
> > likely uncritical because the feature is simply missing (as opposed
> > to a missdetected non-existing feature).
Try this.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Check-SSBD-and-STIBP-only-on-Intel-CPUs.patch
Type: text/x-patch
Size: 2536 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20210130/80180dc8/attachment.bin>
More information about the Libc-alpha
mailing list