selftests/x86/syscall: Add tests under ptrace to syscall_numbering_64
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Tue, 18 May 2021 19:13:00 +0000 (12:13 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 May 2021 13:19:48 +0000 (15:19 +0200)
commit795e2a023b8080b95442811f26f0762184116caa
tree2926503c36821aeb221578f8e9353475f12a9b0c
parentc5c39488dcb5f818bb07f856a349262d667ef147
selftests/x86/syscall: Add tests under ptrace to syscall_numbering_64

Add tests running under ptrace for syscall_numbering_64. ptrace stopping on
syscall entry and possibly modifying the syscall number (regs.orig_rax) or
the default return value (regs.rax) can have different results than the
normal system call path.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210518191303.4135296-4-hpa@zytor.com
tools/testing/selftests/x86/syscall_numbering.c