aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/Makefile
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2020-06-16 11:12:57 +0200
committerBorislav Petkov <bp@suse.de>2020-06-29 10:02:00 +0200
commit7ad816762f9bf89e940e618ea40c43138b479e10 (patch)
treec5d8c330779d14854cdc27618bfd323700c9655b /tools/testing/selftests/Makefile
parentLinux 5.8-rc2 (diff)
downloadwireguard-linux-7ad816762f9bf89e940e618ea40c43138b479e10.tar.xz
wireguard-linux-7ad816762f9bf89e940e618ea40c43138b479e10.zip
x86/fpu: Reset MXCSR to default in kernel_fpu_begin()
Previously, kernel floating point code would run with the MXCSR control register value last set by userland code by the thread that was active on the CPU core just before kernel call. This could affect calculation results if rounding mode was changed, or a crash if a FPU/SIMD exception was unmasked. Restore MXCSR to the kernel's default value. [ bp: Carve out from a bigger patch by Petteri, add feature check, add FNINIT call too (amluto). ] Signed-off-by: Petteri Aimonen <jpa@git.mail.kapsi.fi> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://bugzilla.kernel.org/show_bug.cgi?id=207979 Link: https://lkml.kernel.org/r/20200624114646.28953-2-bp@alien8.de
Diffstat (limited to 'tools/testing/selftests/Makefile')
0 files changed, 0 insertions, 0 deletions