Borislav Petkov b2381acd3f 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: d298b03506d3 ("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
2021-10-16 12:37:50 +02:00
..
2021-06-07 11:02:30 +02:00
2020-11-24 16:47:49 +01:00
2021-04-26 15:10:25 -07:00
2021-03-15 16:24:59 +01:00
2021-06-29 12:36:59 -07:00
2021-03-18 15:31:53 +01:00
2021-03-18 15:31:53 +01:00
2021-07-23 11:32:43 +10:00
2021-03-18 15:31:53 +01:00
2020-08-20 13:12:58 +02:00
2020-06-11 15:54:31 -07:00
2020-07-27 14:31:07 -04:00
2021-03-18 15:31:53 +01:00
2020-08-04 14:47:45 -07:00