Commit a7051ecd authored by Dave Hansen's avatar Dave Hansen Committed by Zeng Heng
Browse files

Documentation/x86: Fix backwards on/off logic about YMM support

mainline inclusion
from mainline-v6.5-rc6
commit 1b0fc034
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7XLNT
CVE: CVE-2022-40982

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1b0fc0345f2852ffe54fb9ae0e12e2ee69ad6a20



---------------------------

commit 1b0fc034 upstream

These options clearly turn *off* XSAVE YMM support.  Correct the
typo.

Reported-by: default avatarBen Hutchings <ben@decadent.org.uk>
Fixes: 553a5c03 ("x86/speculation: Add force option to GDS mitigation")
Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent f92ed284
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ GDS can also be mitigated on systems that don't have updated microcode by
disabling AVX. This can be done by setting gather_data_sampling="force" or
"clearcpuid=avx" on the kernel command-line.

If used, these options will disable AVX use by turning on XSAVE YMM support.
If used, these options will disable AVX use by turning off XSAVE YMM support.
However, the processor will still enumerate AVX support.  Userspace that
does not follow proper AVX enumeration to check both AVX *and* XSAVE YMM
support will break.