Linux 6.6.150
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 6 -SUBLEVEL = 149 +SUBLEVEL = 150 EXTRAVERSION = NAME = Pinguïn Aangedreven
arch/x86/include/asm/nospec-branch.h +6 -3
@@ -219,11 +219,14 @@* The LFENCE fixes this by ensuring step 5 is never reached speculatively. * Note that this LFENCE only occurs if safe-RET was actually interrupted (so * it's outside of the normal path). +* +* (The 128 below is RIP offset, used as a naked number here for ease of +* backporting). */ #define __HANDLE_INTR_SAFERET (name, pt_regs) \ - cmpq $(name), RIP+pt_regs; \ + cmpq $(name), 128+pt_regs; \ jb 1f; \ - cmpq $(name)+5, RIP+pt_regs; \ + cmpq $(name)+5, 128+pt_regs; \ ja 1f; \ lfence; \ leaq pt_regs, %rdi; \
@@ -360,7 +363,7 @@ __UNTRAIN_RET X86_FEATURE_ENTRY_IBPB, __stringify(RESET_CALL_DEPTH_FROM_CALL) .macro HANDLE_INTR_SAFERET pt_regs -#ifdef CONFIG_MITIGATION_SRSO +#ifdef CONFIG_CPU_SRSO ALTERNATIVE_2 "", \ __stringify(__HANDLE_INTR_SAFERET(srso_safe_ret, \pt_regs)), X86_FEATURE_SRSO, \ __stringify(__HANDLE_INTR_SAFERET(srso_alias_safe_ret, \pt_regs)), X86_FEATURE_SRSO_ALIAS
arch/x86/kernel/cpu/bugs.c +2 -2
@@ -3490,7 +3490,7 @@ ssize_t cpu_show_vmscape(struct device *dev, struct device_attribute *attr, char }#endif -#ifdef CONFIG_MITIGATION_SRSO +#ifdef CONFIG_CPU_SRSO /* * Called during exception/interrupt entry if interrupted during the * safe-RET sequence. The safe-RET sequence consists of 3 instructions:
@@ -3527,4 +3527,4 @@ void noinstr handle_interrupted_saferet(struct pt_regs *regs)/* 2. Pop rIP off the stack: */ regs->sp += 8; } -#endif /* CONFIG_MITIGATION_SRSO */ +#endif /* CONFIG_CPU_SRSO */
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.6.150 kernel.
All users of the 6.6 kernel series must upgrade.
The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.6.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 +- arch/x86/include/asm/nospec-branch.h | 9 ++++++--- arch/x86/kernel/cpu/bugs.c | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-)
Borislav Petkov (AMD) (1):
x86/bugs: Make Safe-RET robust against interrupt injection
Greg Kroah-Hartman (2):
Revert "x86/bugs: Make Safe-RET robust against interrupt injection" Linux 6.6.150