]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu: Mask out the invalid MXCSR bits properly
authorBorislav Petkov <bp@suse.de>
Fri, 15 Oct 2021 10:46:25 +0000 (12:46 +0200)
committerBorislav Petkov <bp@suse.de>
Sat, 16 Oct 2021 10:37:50 +0000 (12:37 +0200)
commit5b3d556bbf05707d9159491b640c9d784f594388
tree06fa807068753d83013046b19d3a11f0f6450de9
parent8c5a512a87764bb09f402357427d4e4193cda4d4
x86/fpu: Mask out the invalid MXCSR bits properly

This is a fix for the fix (yeah, /facepalm).

The correct mask to use is not the negation of the MXCSR_MASK but the
actual mask which contains the supported bits in the MXCSR register.

Reported and debugged by Ville Syrjälä <ville.syrjala@linux.intel.com>

Fixes: 4726560991e2 ("x86/fpu: Restore the masking out of reserved MXCSR bits")
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Tested-by: Ser Olmy <ser.olmy@protonmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/YWgYIYXLriayyezv@intel.com
arch/x86/kernel/fpu/signal.c