Skip to content
Commit 128f3828 authored by Borislav Petkov's avatar Borislav Petkov Committed by Greg Kroah-Hartman
Browse files

x86/fpu: Mask out the invalid MXCSR bits properly

commit b2381acd upstream.

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: d298b035

 ("x86/fpu: Restore the masking out of reserved MXCSR bits")
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Tested-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Tested-by: default avatarSer Olmy <ser.olmy@protonmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/YWgYIYXLriayyezv@intel.com
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bce9adf0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment