public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64
@ 2026-04-03 13:08 Oleg Nesterov
  2026-04-03 13:29 ` Oleg Nesterov
  2026-04-03 13:30 ` [PATCH] selftests/seccomp: Add hard-coded __NR_uprobe " Oleg Nesterov
  0 siblings, 2 replies; 4+ messages in thread
From: Oleg Nesterov @ 2026-04-03 13:08 UTC (permalink / raw)
  To: Kees Cook, Andy Lutomirski, Will Drewry; +Cc: linux-kselftest, linux-kernel

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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-04-03 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03 13:08 [PATCH] selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64 Oleg Nesterov
2026-04-03 13:29 ` Oleg Nesterov
2026-04-03 13:30 ` [PATCH] selftests/seccomp: Add hard-coded __NR_uprobe " Oleg Nesterov
2026-04-03 15:42   ` (subset) " Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox