selftest, ptrace: Add selftest for syscall user dispatch config api
authorGregory Price <gourry.memverge@gmail.com>
Fri, 7 Apr 2023 17:18:34 +0000 (13:18 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 16 Apr 2023 12:23:08 +0000 (14:23 +0200)
commit8c8fa605f7b8b6df3e6fb280a74cff8d7374a7b7
tree6c9755ff247a2be6f1463600b2805b7f8fed56de
parent3f67987cdc09778e75098f9f5168832f8f8e1f1c
selftest, ptrace: Add selftest for syscall user dispatch config api

Validate that the following new ptrace requests work as expected

 * PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
   returns the contents of task->syscall_dispatch

 * PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
   sets the contents of task->syscall_dispatch

Signed-off-by: Gregory Price <gregory.price@memverge.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230407171834.3558-5-gregory.price@memverge.com
tools/testing/selftests/ptrace/.gitignore
tools/testing/selftests/ptrace/Makefile
tools/testing/selftests/ptrace/get_set_sud.c [new file with mode: 0644]