ptrace: Provide set/get interface for syscall user dispatch
authorGregory Price <gourry.memverge@gmail.com>
Fri, 7 Apr 2023 17:18:33 +0000 (13:18 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 16 Apr 2023 12:23:07 +0000 (14:23 +0200)
commit3f67987cdc09778e75098f9f5168832f8f8e1f1c
tree48648bbc78fee9bc257739aff7f79031071ae0e8
parent463b7715e7ce367fce89769c5d85e31595715ee1
ptrace: Provide set/get interface for syscall user dispatch

The syscall user dispatch configuration can only be set by the task itself,
but lacks a ptrace set/get interface which makes it impossible to implement
checkpoint/restore for it.

Add the required ptrace requests and the get/set functions in the syscall
user dispatch code to make that possible.

Signed-off-by: Gregory Price <gregory.price@memverge.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20230407171834.3558-4-gregory.price@memverge.com
Documentation/admin-guide/syscall-user-dispatch.rst
include/linux/syscall_user_dispatch.h
include/uapi/linux/ptrace.h
kernel/entry/syscall_user_dispatch.c
kernel/ptrace.c