summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-02-07 10:16:24 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-02-07 10:16:24 -0800
commitc6792d44d8f08451047051351dfdcc8332a028e3 (patch)
tree6a8456c6eb5b312e64131c1943bd552aed35d967 /include/uapi
parent6fed85df5d097298d265dfcc31cf1e0c1633f41e (diff)
parent36a6c843fd0d8e02506681577e96dabd203dd8e8 (diff)
downloadlwn-c6792d44d8f08451047051351dfdcc8332a028e3.tar.gz
lwn-c6792d44d8f08451047051351dfdcc8332a028e3.zip
Merge tag 'core_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull syscall entry fixes from Borislav Petkov: - For syscall user dispatch, separate prctl operation from syscall redirection range specification before the API has been made official in 5.11. - Ensure tasks using the generic syscall code do trap after returning from a syscall when single-stepping is requested. * tag 'core_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: entry: Use different define for selector variable in SUD entry: Ensure trap after single-step on system call return
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/prctl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/prctl.h b/include/uapi/linux/prctl.h
index 90deb41c8a34..667f1aed091c 100644
--- a/include/uapi/linux/prctl.h
+++ b/include/uapi/linux/prctl.h
@@ -251,5 +251,8 @@ struct prctl_mm_map {
#define PR_SET_SYSCALL_USER_DISPATCH 59
# define PR_SYS_DISPATCH_OFF 0
# define PR_SYS_DISPATCH_ON 1
+/* The control values for the user space selector when dispatch is enabled */
+# define SYSCALL_DISPATCH_FILTER_ALLOW 0
+# define SYSCALL_DISPATCH_FILTER_BLOCK 1
#endif /* _LINUX_PRCTL_H */