[RFC 02/30] selftests/x86: Add a test for syscall restart and arg modification

2015-09-01 Thread Andy Lutomirski
This tests assumptions about how fast syscall works wrt pt_regs and, in particular, what happens if IP is decremented by 2 during a syscall. Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/Makefile | 3 +- tools/testing/selftests/x86/ptrace_syscall.c | 294

[RFC 02/30] selftests/x86: Add a test for syscall restart and arg modification

2015-09-01 Thread Andy Lutomirski
This tests assumptions about how fast syscall works wrt pt_regs and, in particular, what happens if IP is decremented by 2 during a syscall. Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/Makefile | 3 +-