Pull generic entry code updates from Thomas Gleixner: - Split the code into syscall and exception/interrupt parts to ease the conversion of ARM[64] to the generic entry infrastructure - Extend syscall user dispatching to support a single intercepted range instead of the default single non-intercepted range. That allows monitoring/analysis of a specific executable range, e.g. a library, and also provides flexibility for sandboxing scenarios - Cleanup and extend the user dispatch selftest * tag 'core-entry-2025-07-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: entry: Split generic entry into generic exception and syscall entry selftests: Add tests for PR_SYS_DISPATCH_INCLUSIVE_ON syscall_user_dispatch: Add PR_SYS_DISPATCH_INCLUSIVE_ON selftests: Fix errno checking in syscall_user_dispatch test
Showing the changes to include/uapi/linux (1 of 13 files). Show all
Unified · Split
| @@ -255,7 +255,12 @@ struct prctl_mm_map { · 254 unmodified lines | |||
| 255 | /* Dispatch syscalls to a userspace handler */ | 255 | /* Dispatch syscalls to a userspace handler */ |
| 256 | #define PR_SET_SYSCALL_USER_DISPATCH 59 | 256 | #define PR_SET_SYSCALL_USER_DISPATCH 59 |
| 257 | # define PR_SYS_DISPATCH_OFF 0 | 257 | # define PR_SYS_DISPATCH_OFF 0 |
| 258 | # define PR_SYS_DISPATCH_ON 1 | 258 | /* Enable dispatch except for the specified range */ |
| 259 | # define PR_SYS_DISPATCH_EXCLUSIVE_ON 1 | ||
| 260 | /* Enable dispatch for the specified range */ | ||
| 261 | # define PR_SYS_DISPATCH_INCLUSIVE_ON 2 | ||
| 262 | /* Legacy name for backwards compatibility */ | ||
| 263 | # define PR_SYS_DISPATCH_ON PR_SYS_DISPATCH_EXCLUSIVE_ON | ||
| 259 | /* The control values for the user space selector when dispatch is enabled */ | 264 | /* The control values for the user space selector when dispatch is enabled */ |
| 260 | # define SYSCALL_DISPATCH_FILTER_ALLOW 0 | 265 | # define SYSCALL_DISPATCH_FILTER_ALLOW 0 |
| 261 | # define SYSCALL_DISPATCH_FILTER_BLOCK 1 | 266 | # define SYSCALL_DISPATCH_FILTER_BLOCK 1 |