Skip to contentSkip to conversation

selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64

PATCH In review Oleg Nesterov 2 participants 4 messages Apr 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64

This complements the commit 18f7686a1ce6 ("selftests/seccomp:
Add hard-coded __NR_uretprobe for x86_64").

---
 tools/testing/selftests/seccomp/seccomp_bpf.c | 6 ++++++
 1 file changed, 6 insertions(+)
tools/testing/selftests/seccomp/seccomp_bpf.c +6 -0
index 32e2d4df397b..358b6c65e120 100644
@@ -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
Signature · 1 line
2.52.0
#1 lore raw
Quoted 3 lines · Oleg Nesterov

This complements the commit 18f7686a1ce6 ("selftests/seccomp:
Add hard-coded __NR_uretprobe for x86_64").

Yes, and I forgot to change the subject line ;)

Please ignore, will resend in reply to this email.

Oleg.

Quoted 25 lines
---
 tools/testing/selftests/seccomp/seccomp_bpf.c | 6 ++++++
 1 file changed, 6 insertions(+)
tools/testing/selftests/seccomp/seccomp_bpf.c +6 -0
index 32e2d4df397b..358b6c65e120 100644
@@ -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
Signature · 1 line
2.52.0
#2 lore raw

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

In reply to Oleg Nesterov

This complements the commit 18f7686a1ce6 ("selftests/seccomp:
Add hard-coded __NR_uretprobe for x86_64").

---
 tools/testing/selftests/seccomp/seccomp_bpf.c | 6 ++++++
 1 file changed, 6 insertions(+)
tools/testing/selftests/seccomp/seccomp_bpf.c +6 -0
index 32e2d4df397b..358b6c65e120 100644
@@ -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
Signature · 1 line
2.52.0
maintainer Applied
#3 lore raw

Re: (subset) [PATCH] selftests/seccomp: Add hard-coded __NR_uprobe for x86_64

Quoted 4 lines · Oleg Nesterov

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,

Signature · 1 line
Kees Cook