[PATCH] selftests/seccomp: Add hard-coded __NR_uprobe for x86_64

Oleg Nesterov posted 1 patch 2 months, 1 week ago
tools/testing/selftests/seccomp/seccomp_bpf.c | 6 ++++++
1 file changed, 6 insertions(+)
[PATCH] selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
Posted by Oleg Nesterov 2 months, 1 week ago
This complements the commit 18f7686a1ce6 ("selftests/seccomp:
Add hard-coded __NR_uretprobe for x86_64").

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
---
 tools/testing/selftests/seccomp/seccomp_bpf.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c
index 32e2d4df397b..358b6c65e120 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
-- 
2.52.0
Re: (subset) [PATCH] selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
Posted by Kees Cook 2 months, 1 week ago
On Fri, 03 Apr 2026 15:30:40 +0200, Oleg Nesterov wrote:
> This complements the commit 18f7686a1ce6 ("selftests/seccomp:
> Add hard-coded __NR_uretprobe for x86_64").
> 
> 

Applied to for-next/seccomp, thanks!

[1/1] selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
      https://git.kernel.org/kees/c/41fa04327384

Take care,

-- 
Kees Cook