Skip to content

Commit 8c90dbc

Browse files
jinpuwanggregkh
authored andcommitted
x86: Fix X86_FEATURE_VERW_CLEAR definition
This is a mistake during backport. VERW_CLEAR is on bit 5, not bit 10. Fixes: d12145e ("x86/bugs: Add a Transient Scheduler Attacks mitigation") Cc: Borislav Petkov (AMD) <bp@alien8.de> Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Acked-by: Borislav Petkov (AMD) <bp@alien8.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1cf79d3 commit 8c90dbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/include/asm/cpufeatures.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@
429429
#define X86_FEATURE_V_TSC_AUX (19*32+ 9) /* "" Virtual TSC_AUX */
430430
#define X86_FEATURE_SME_COHERENT (19*32+10) /* "" AMD hardware-enforced cache coherency */
431431

432+
#define X86_FEATURE_VERW_CLEAR (20*32+ 5) /* "" The memory form of VERW mitigates TSA */
432433
#define X86_FEATURE_AUTOIBRS (20*32+ 8) /* "" Automatic IBRS */
433-
#define X86_FEATURE_VERW_CLEAR (20*32+ 10) /* "" The memory form of VERW mitigates TSA */
434434
#define X86_FEATURE_SBPB (20*32+27) /* "" Selective Branch Prediction Barrier */
435435
#define X86_FEATURE_IBPB_BRTYPE (20*32+28) /* "" MSR_PRED_CMD[IBPB] flushes all branch type predictions */
436436
#define X86_FEATURE_SRSO_NO (20*32+29) /* "" CPU is not affected by SRSO */

0 commit comments

Comments
 (0)