syscalls/ptrace07: new test for ptrace FPU state corruption
PATCH v3 1/1 syscalls/ptrace07: new test for ptrace FPU state corruption
From: Eric Biggers <[email protected]>
Add a test for a bug which allowed a task to be assigned an invalid FPU state, causing the FPU registers to not be restored on context switch.
Signed-off-by Eric Biggers <[email protected]>
---
Changed since v2:
- Added CVE number
- For compatibility with old kernels, don't fail the test if PTRACE_SETREGSET succeeds
runtest/cve | 1 + runtest/syscalls | 1 + testcases/kernel/syscalls/.gitignore | 1 + testcases/kernel/syscalls/ptrace/ptrace07.c | 176 ++++++++++++++++++++++++++++ 4 files changed, 179 insertions(+) create mode 100644 testcases/kernel/syscalls/ptrace/ptrace07.c
runtest/cve +1 -0
@@ -18,4 +18,5 @@ cve-2017-5669 cve-2017-5669 cve-2017-6951 cve-2017-6951 cve-2017-7472 keyctl04 cve-2017-15274 add_key02 +cve-2017-15537 ptrace07 cve-2017-1000364 stack_clash
runtest/syscalls +1 -0
@@ -843,6 +843,7 @@ ptrace04 ptrace04 ptrace05 ptrace05 # Broken test; See: testcases/kernel/syscalls/ptrace/Makefile for more details. #ptrace06 ptrace06 +ptrace07 ptrace07 pwrite01 pwrite01 pwrite02 pwrite02
testcases/kernel/syscalls/.gitignore +1 -0
@@ -705,6 +705,7 @@ /ptrace/ptrace03 /ptrace/ptrace04 /ptrace/ptrace05 +/ptrace/ptrace07 /ptrace/simple_tracer /pwrite/f /pwrite/pwrite01
testcases/kernel/syscalls/ptrace/ptrace07.c new file +176 -0
176 lines not on this page · raw message
Signature · 1 line
2.15.0.rc1.287.g2b38de12cc-goog
PATCH v3 1/1 syscalls/ptrace07: new test for ptrace FPU state corruption
Hi!
Pushed, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]