History

Merge tag 'core-entry-2025-07-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

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

Linus Torvalds committed 1 year ago

Commit 78bb43e2 parents a0482e3 5173ac213 files · +665 −565Browse files

Showing the changes to include/uapi/linux (1 of 13 files). Show all

Unified · Split

include/uapi/linux/prctl.h+6−1
@@ -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 59256#define PR_SET_SYSCALL_USER_DISPATCH 59
257# define PR_SYS_DISPATCH_OFF 0257# define PR_SYS_DISPATCH_OFF 0
258# define PR_SYS_DISPATCH_ON 1258/* 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 0265# define SYSCALL_DISPATCH_FILTER_ALLOW 0
261# define SYSCALL_DISPATCH_FILTER_BLOCK 1266# define SYSCALL_DISPATCH_FILTER_BLOCK 1