From: Oleg Nesterov Date: Fri, 3 Apr 2026 13:30:40 +0000 (+0200) Subject: selftests/seccomp: Add hard-coded __NR_uprobe for x86_64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41fa04327384148b0e2e828c9be9862c5240e9fa;p=thirdparty%2Fkernel%2Flinux.git selftests/seccomp: Add hard-coded __NR_uprobe for x86_64 This complements the commit 18f7686a1ce6 ("selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64"). Signed-off-by: Oleg Nesterov Link: https://patch.msgid.link/ac_BAMSggw-_ABPE@redhat.com Signed-off-by: Kees Cook --- diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 32e2d4df397b0..358b6c65e120e 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -170,6 +170,12 @@ struct seccomp_data { # endif #endif +#ifndef __NR_uprobe +# if defined(__x86_64__) +# define __NR_uprobe 336 +# endif +#endif + #ifndef SECCOMP_SET_MODE_STRICT #define SECCOMP_SET_MODE_STRICT 0 #endif