]> Git Repo - linux.git/commitdiff
uprobe: Wire up uretprobe system call
authorJiri Olsa <[email protected]>
Tue, 11 Jun 2024 23:44:27 +0000 (08:44 +0900)
committerMasami Hiramatsu (Google) <[email protected]>
Tue, 11 Jun 2024 23:44:27 +0000 (08:44 +0900)
Wiring up uretprobe system call, which comes in following changes.
We need to do the wiring before, because the uretprobe implementation
needs the syscall number.

Note at the moment uretprobe syscall is supported only for native
64-bit process.

Link: https://lore.kernel.org/all/[email protected]/
Reviewed-by: Oleg Nesterov <[email protected]>
Reviewed-by: Masami Hiramatsu (Google) <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
arch/x86/entry/syscalls/syscall_64.tbl
include/linux/syscalls.h
include/uapi/asm-generic/unistd.h
kernel/sys_ni.c

index a396f6e6ab5bf97df25666a1048d0f285b8d465e..6452c2ec469aa9cb009d1bf2cdcaf8c8ab6e0982 100644 (file)
 460    common  lsm_set_self_attr       sys_lsm_set_self_attr
 461    common  lsm_list_modules        sys_lsm_list_modules
 462    common  mseal                   sys_mseal
+463    64      uretprobe               sys_uretprobe
 
 #
 # Due to a historical design error, certain syscalls are numbered differently
index 9104952d323d1db6c9e65ed9fbb932db008cf697..494f5e0f61f73564ec35edeb22466bf41ae0dfd5 100644 (file)
@@ -973,6 +973,8 @@ asmlinkage long sys_lsm_list_modules(u64 *ids, u32 *size, u32 flags);
 /* x86 */
 asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int on);
 
+asmlinkage long sys_uretprobe(void);
+
 /* pciconfig: alpha, arm, arm64, ia64, sparc */
 asmlinkage long sys_pciconfig_read(unsigned long bus, unsigned long dfn,
                                unsigned long off, unsigned long len,
index d983c48a3b6af1753108a43ad95eb839e95e5e6b..2378f88d5ad492025364012b072010a3a69db1ca 100644 (file)
@@ -845,8 +845,11 @@ __SYSCALL(__NR_lsm_list_modules, sys_lsm_list_modules)
 #define __NR_mseal 462
 __SYSCALL(__NR_mseal, sys_mseal)
 
+#define __NR_uretprobe 463
+__SYSCALL(__NR_uretprobe, sys_uretprobe)
+
 #undef __NR_syscalls
-#define __NR_syscalls 463
+#define __NR_syscalls 464
 
 /*
  * 32 bit systems traditionally used different
index d7eee421d4bc3383b281f8fd510c021de329b13a..5ce9fa0dc1951d75e10d811ee86ceda106e6b5b9 100644 (file)
@@ -392,3 +392,5 @@ COND_SYSCALL(setuid16);
 
 /* restartable sequence */
 COND_SYSCALL(rseq);
+
+COND_SYSCALL(uretprobe);
This page took 0.066861 seconds and 4 git commands to generate.