* [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
* Re: [PATCH] selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64
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
1 sibling, 0 replies; 4+ messages in thread
From: Oleg Nesterov @ 2026-04-03 13:29 UTC (permalink / raw)
To: Kees Cook, Andy Lutomirski, Will Drewry; +Cc: linux-kselftest, linux-kernel
On 04/03, Oleg Nesterov wrote:
>
> 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.
> 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 [flat|nested] 4+ messages in thread
* [PATCH] selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
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 ` Oleg Nesterov
2026-04-03 15:42 ` (subset) " Kees Cook
1 sibling, 1 reply; 4+ messages in thread
From: Oleg Nesterov @ 2026-04-03 13:30 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
* Re: (subset) [PATCH] selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
2026-04-03 13:30 ` [PATCH] selftests/seccomp: Add hard-coded __NR_uprobe " Oleg Nesterov
@ 2026-04-03 15:42 ` Kees Cook
0 siblings, 0 replies; 4+ messages in thread
From: Kees Cook @ 2026-04-03 15:42 UTC (permalink / raw)
To: Andy Lutomirski, Will Drewry, Oleg Nesterov
Cc: Kees Cook, linux-kselftest, linux-kernel
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
^ permalink raw reply [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