x86/FPU: FPU sanitization for in-kernel use
Status from this message: The following commit has been merged into the x86/fpu branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyApplied
- v12 patches 20 repliesSuperseded
Changelog from the cover letter
----------
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86/fpu: Reset MXCSR to default in kernel_fpu_begin()arch/ arch/ | +11 | 0 replies | |
| 2/2 | selftests/fpu: Add an FPU selftestlib/ lib/ lib/ +5 more | +243 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Nick Desaulniers |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] x86/FPU: FPU sanitization for in-kernel use
From: Borislav Petkov <[email protected]>
Ok,
here's v2 with build fixes and other review comments addressed.
Thx.
Changelog:
----------
v1:
==
Hi all,
here's a proper submission of the work started by Petteri. I think I've addressed all the feedback so far. I've added the preparation work for the test to run, to a script run_test_fpu.sh which does some basic checks, loads the module and runs the test for 1000 times on all CPUs, by default. Thought this is a sane default, feel free to prove me wrong and I'll change it.
Thx.
Petteri Aimonen (2):
x86/fpu: Reset MXCSR to default in kernel_fpu_begin() selftests/fpu: Add an FPU selftest
arch/x86/include/asm/fpu/internal.h | 5 ++ arch/x86/kernel/fpu/core.c | 6 ++ lib/Kconfig.debug | 11 +++ lib/Makefile | 24 ++++++ lib/test_fpu.c | 89 +++++++++++++++++++++ tools/testing/selftests/Makefile | 1 + tools/testing/selftests/fpu/.gitignore | 2 + tools/testing/selftests/fpu/Makefile | 9 +++ tools/testing/selftests/fpu/run_test_fpu.sh | 46 +++++++++++ tools/testing/selftests/fpu/test_fpu.c | 61 ++++++++++++++ 10 files changed, 254 insertions(+) create mode 100644 lib/test_fpu.c create mode 100644 tools/testing/selftests/fpu/.gitignore create mode 100644 tools/testing/selftests/fpu/Makefile create mode 100755 tools/testing/selftests/fpu/run_test_fpu.sh create mode 100644 tools/testing/selftests/fpu/test_fpu.c
Signature · 1 line
2.21.0