Skip to contentSkip to conversation

x86/cpu for v5.16

GIT PULL Merged Borislav Petkov 3 participants 4 messages Nov 1, 2021 – Nov 2, 2021

lore
Share & tools
lore
#0 lore raw

Hi Linus,

please pull x86/cpu updates for v5.16.

Thx.

---
The following changes since commit 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f:

Linux 5.15-rc1 (2021-09-12 16:28:37 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_cpu_for_v5.16_rc1

for you to fetch changes up to 415de44076640483648d6c0f6d645a9ee61328ad:

x86/cpu: Fix migration safety with X86_BUG_NULL_SEL (2021-10-21 20:49:16 +0200)

----------------------------------------------------------------
- Start checking a CPUID bit on AMD Zen3 which states that the CPU clears the segment base when a null selector is written. Do the explicit detection on older CPUs, zen2 and hygon specifically, which have the functionality but do not advertize the CPUID bit. Factor in the presence of a hypervisor underneath the kernel and avoid doing the explicit check there which the HV might've decided to not advertize for migration safety reasons, a.o.

- Add support for a new X86 CPU vendor: VORTEX. Needed for whitelisting those CPUs in the hardware vulnerabilities detection

- Force the compiler to use rIP-relative addressing in the fallback path of static_cpu_has(), in order to avoid unnecessary register pressure

----------------------------------------------------------------
Borislav Petkov (1):
x86/umip: Downgrade warning messages to debug loglevel

H. Peter Anvin (1):
x86/asm: Avoid adding register pressure for the init case in static_cpu_has()

H. Peter Anvin (Intel) (1):

      x86/asm: Add _ASM_RIP() macro for x86-64 (%rip) suffix

Jane Malalane (1):
x86/cpu: Fix migration safety with X86_BUG_NULL_SEL

Marcos Del Sol Vives (1):
x86/CPU: Add support for Vortex CPUs

 arch/x86/Kconfig.cpu              | 13 +++++++++++
 arch/x86/include/asm/asm.h        |  5 +++++
 arch/x86/include/asm/cpufeature.h | 13 +++++++----
 arch/x86/include/asm/processor.h  |  3 ++-
 arch/x86/kernel/cpu/Makefile      |  1 +
 arch/x86/kernel/cpu/amd.c         |  2 ++
 arch/x86/kernel/cpu/common.c      | 46 +++++++++++++++++++++++++++++++++------
 arch/x86/kernel/cpu/cpu.h         |  1 +
 arch/x86/kernel/cpu/hygon.c       |  2 ++
 arch/x86/kernel/cpu/vortex.c      | 39 +++++++++++++++++++++++++++++++++
 arch/x86/kernel/umip.c            |  8 +++----
 11 files changed, 117 insertions(+), 16 deletions(-)
 create mode 100644 arch/x86/kernel/cpu/vortex.c
Signature · 4 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg
#1 lore raw
Quoted 8 lines · Borislav Petkov

- Start checking a CPUID bit on AMD Zen3 which states that the CPU clears the segment base when a null selector is written. Do the explicit detection on older CPUs, zen2 and hygon specifically, which have the functionality but do not advertize the CPUID bit. Factor in the presence of a hypervisor underneath the kernel and avoid doing the explicit check there which the HV might've decided to not advertize for migration safety reasons, a.o.

"a.o."? Is that a common German shorthand, possibly anglicized?

I'm assuming - and rewrote it - that it stands for "or similar".

Possibly "among other" aka "inter alia"? Very occasionally shortened "i.a.", although "e.g." is the _much_ more common form of much the same thing.

Never seen that "a.o." thing.

Linus

#2 lore raw
Quoted 1 line · Linus Torvalds

"a.o."? Is that a common German shorthand, possibly anglicized?

Haha, exactly. :-)

Quoted 1 line

I'm assuming - and rewrote it - that it stands for "or similar".

Apparently, the "proper" thing to write is https://en.wiktionary.org/wiki/i.a.

Quoted 3 lines

Possibly "among other" aka "inter alia"? Very occasionally shortened "i.a.", although "e.g." is the _much_ more common form of much the same thing.

Yeah, I saw "e.g." being suggested also for "among others".

Quoted 1 line

Never seen that "a.o." thing.

Sorry about that - I'll make sure to avoid such misguided abbreviations in the future. We have enough confusion as it is - no reason for me to add more.

Signature · 4 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg
merge bot Merged
#3 lore raw
In reply to Borislav Petkov
The pull request you sent on Mon, 1 Nov 2021 11:29:24 +0100:

The pull request you sent on Mon, 1 Nov 2021 11:29:24 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_cpu_for_v5.16_rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e0f4c59dc4d39b3e9fa61ceb4cf2384787bcd09d

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html