* [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
@ 2026-05-16 20:53 funsafemath
2026-05-16 21:38 ` Alejandro Colomar
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: funsafemath @ 2026-05-16 20:53 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]
Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH flag, which allows to
use SECCOMP_FILTER_FLAG_TSYNC and SECCOMP_FILTER_FLAG_NEW_LISTENER
flags together by returning ESRCH on synchronization error instead
of the thread ID.
<https://lore.kernel.org/r/20200304180517.23867-1-tycho@tycho.ws>
---
man/man2/seccomp.2 | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/man/man2/seccomp.2 b/man/man2/seccomp.2
index 75c7b2d58..0729a653c 100644
--- a/man/man2/seccomp.2
+++ b/man/man2/seccomp.2
@@ -241,6 +241,21 @@ .SH DESCRIPTION
.B SECCOMP_MODE_STRICT
or if it has attached new seccomp filters to itself,
diverging from the calling thread's filter tree.
+.TP
+.BR SECCOMP_FILTER_FLAG_TSYNC_ESRCH " (since Linux 5.7)"
+.\" commit 51891498f2da78ee64dfad88fa53c9e85fb50abf
+Return
+.B ESRCH
+instead of the thread ID on synchronization failure if
+.B SECCOMP_FILTER_FLAG_TSYNC
+was specified.
+.IP
+If this flag is not set, using
+.B SECCOMP_FILTER_FLAG_NEW_LISTENER
+and
+.B SECCOMP_FILTER_FLAG_TSYNC
+flags together results in
+.BR EINVAL .
.RE
.TP
.BR SECCOMP_GET_ACTION_AVAIL " (since Linux 4.14)"
--
2.52.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
2026-05-16 20:53 [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH funsafemath
@ 2026-05-16 21:38 ` Alejandro Colomar
2026-05-18 14:04 ` Tycho Andersen
2026-05-18 3:13 ` [PATCH v2 0/2] Document seccomp flags funsafemath
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Alejandro Colomar @ 2026-05-16 21:38 UTC (permalink / raw)
To: funsafemath; +Cc: linux-man, Tycho Andersen
[-- Attachment #1: Type: text/plain, Size: 1592 bytes --]
Hi,
On 2026-05-16T21:53:17+0100, funsafemath wrote:
> Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH flag, which allows to
> use SECCOMP_FILTER_FLAG_TSYNC and SECCOMP_FILTER_FLAG_NEW_LISTENER
> flags together by returning ESRCH on synchronization error instead
> of the thread ID.
>
> <https://lore.kernel.org/r/20200304180517.23867-1-tycho@tycho.ws>
> ---
Would you mind signing the patch?
> man/man2/seccomp.2 | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/man/man2/seccomp.2 b/man/man2/seccomp.2
> index 75c7b2d58..0729a653c 100644
> --- a/man/man2/seccomp.2
> +++ b/man/man2/seccomp.2
> @@ -241,6 +241,21 @@ .SH DESCRIPTION
> .B SECCOMP_MODE_STRICT
> or if it has attached new seccomp filters to itself,
> diverging from the calling thread's filter tree.
> +.TP
> +.BR SECCOMP_FILTER_FLAG_TSYNC_ESRCH " (since Linux 5.7)"
> +.\" commit 51891498f2da78ee64dfad88fa53c9e85fb50abf
> +Return
> +.B ESRCH
I expect that in user space, we'll see -1 in the return value, and ESRCH
in errno, right? If so, we should say "Fail with ESRCH ...".
> +instead of the thread ID on synchronization failure if
> +.B SECCOMP_FILTER_FLAG_TSYNC
Spurious double space. s/ / /
Have a lovely day!
Alex
> +was specified.
> +.IP
> +If this flag is not set, using
> +.B SECCOMP_FILTER_FLAG_NEW_LISTENER
> +and
> +.B SECCOMP_FILTER_FLAG_TSYNC
> +flags together results in
> +.BR EINVAL .
> .RE
> .TP
> .BR SECCOMP_GET_ACTION_AVAIL " (since Linux 4.14)"
> --
> 2.52.0
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 0/2] Document seccomp flags
2026-05-16 20:53 [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH funsafemath
2026-05-16 21:38 ` Alejandro Colomar
@ 2026-05-18 3:13 ` funsafemath
2026-05-18 22:15 ` Alejandro Colomar
2026-05-18 3:14 ` [PATCH v2 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH funsafemath
2026-05-18 3:15 ` [PATCH v2 2/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV funsafemath
3 siblings, 1 reply; 8+ messages in thread
From: funsafemath @ 2026-05-18 3:13 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 1952 bytes --]
Hello,
Yes, a libc wrapper would return -1, I've changed the wording and applied other suggestions.
funsafemath (2):
man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
man/man2/seccomp.2 | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
Range-diff against v1:
1: c3c3b728b ! 1: fec59f483 man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
@@ Commit message
<https://lore.kernel.org/r/20200304180517.23867-1-tycho@tycho.ws>
+ Signed-off-by: funsafemath <funsafemath@proton.me>
+
## man/man2/seccomp.2 ##
@@ man/man2/seccomp.2: .SH DESCRIPTION
.B SECCOMP_MODE_STRICT
@@ man/man2/seccomp.2: .SH DESCRIPTION
+.TP
+.BR SECCOMP_FILTER_FLAG_TSYNC_ESRCH " (since Linux 5.7)"
+.\" commit 51891498f2da78ee64dfad88fa53c9e85fb50abf
-+Return
++Fail with
+.B ESRCH
-+instead of the thread ID on synchronization failure if
-+.B SECCOMP_FILTER_FLAG_TSYNC
++instead of returning the thread ID on synchronization failure if
++.B SECCOMP_FILTER_FLAG_TSYNC
+was specified.
+.IP
+If this flag is not set, using
2: 423b0141b ! 2: 8ead033b8 man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
@@ Commit message
Relevant kernel documentation: <Documentation/userspace-api/seccomp_filter.rst>
+ Signed-off-by: funsafemath <funsafemath@proton.me>
+
## man/man2/seccomp.2 ##
@@ man/man2/seccomp.2: .SH DESCRIPTION
.B SECCOMP_FILTER_FLAG_TSYNC
@@ man/man2/seccomp.2: .SH DESCRIPTION
+.\" commit c2aa2dfef243efe213a480a1ee8566507a5152f4
+Ignore non-fatal signals until the supervisor sends a response.
+.IP
++The
+.B SECCOMP_FILTER_FLAG_NEW_LISTENER
+flag must be set.
.RE
--
2.52.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
2026-05-16 20:53 [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH funsafemath
2026-05-16 21:38 ` Alejandro Colomar
2026-05-18 3:13 ` [PATCH v2 0/2] Document seccomp flags funsafemath
@ 2026-05-18 3:14 ` funsafemath
2026-05-18 3:15 ` [PATCH v2 2/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV funsafemath
3 siblings, 0 replies; 8+ messages in thread
From: funsafemath @ 2026-05-18 3:14 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 1230 bytes --]
Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH flag, which allows to
use SECCOMP_FILTER_FLAG_TSYNC and SECCOMP_FILTER_FLAG_NEW_LISTENER
flags together by returning ESRCH on synchronization error instead
of the thread ID.
<https://lore.kernel.org/r/20200304180517.23867-1-tycho@tycho.ws>
Signed-off-by: funsafemath <funsafemath@proton.me>
---
man/man2/seccomp.2 | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/man/man2/seccomp.2 b/man/man2/seccomp.2
index 75c7b2d58..a2776aab7 100644
--- a/man/man2/seccomp.2
+++ b/man/man2/seccomp.2
@@ -241,6 +241,21 @@ .SH DESCRIPTION
.B SECCOMP_MODE_STRICT
or if it has attached new seccomp filters to itself,
diverging from the calling thread's filter tree.
+.TP
+.BR SECCOMP_FILTER_FLAG_TSYNC_ESRCH " (since Linux 5.7)"
+.\" commit 51891498f2da78ee64dfad88fa53c9e85fb50abf
+Fail with
+.B ESRCH
+instead of returning the thread ID on synchronization failure if
+.B SECCOMP_FILTER_FLAG_TSYNC
+was specified.
+.IP
+If this flag is not set, using
+.B SECCOMP_FILTER_FLAG_NEW_LISTENER
+and
+.B SECCOMP_FILTER_FLAG_TSYNC
+flags together results in
+.BR EINVAL .
.RE
.TP
.BR SECCOMP_GET_ACTION_AVAIL " (since Linux 4.14)"
--
2.52.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2 2/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
2026-05-16 20:53 [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH funsafemath
` (2 preceding siblings ...)
2026-05-18 3:14 ` [PATCH v2 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH funsafemath
@ 2026-05-18 3:15 ` funsafemath
3 siblings, 0 replies; 8+ messages in thread
From: funsafemath @ 2026-05-18 3:15 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 955 bytes --]
Document the SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV flag,
which makes the process ignore non-fatal signals until the supervisor sends a response
Relevant kernel documentation: <Documentation/userspace-api/seccomp_filter.rst>
Signed-off-by: funsafemath <funsafemath@proton.me>
---
man/man2/seccomp.2 | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/man/man2/seccomp.2 b/man/man2/seccomp.2
index a2776aab7..d01a9eeaa 100644
--- a/man/man2/seccomp.2
+++ b/man/man2/seccomp.2
@@ -256,6 +256,14 @@ .SH DESCRIPTION
.B SECCOMP_FILTER_FLAG_TSYNC
flags together results in
.BR EINVAL .
+.TP
+.BR SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV " (since Linux 5.19)"
+.\" commit c2aa2dfef243efe213a480a1ee8566507a5152f4
+Ignore non-fatal signals until the supervisor sends a response.
+.IP
+The
+.B SECCOMP_FILTER_FLAG_NEW_LISTENER
+flag must be set.
.RE
.TP
.BR SECCOMP_GET_ACTION_AVAIL " (since Linux 4.14)"
--
2.52.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
2026-05-16 21:38 ` Alejandro Colomar
@ 2026-05-18 14:04 ` Tycho Andersen
2026-05-18 22:26 ` Alejandro Colomar
0 siblings, 1 reply; 8+ messages in thread
From: Tycho Andersen @ 2026-05-18 14:04 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: funsafemath, linux-man, Tycho Andersen
On Sat, May 16, 2026 at 11:38:48PM +0200, Alejandro Colomar wrote:
> Hi,
>
> On 2026-05-16T21:53:17+0100, funsafemath wrote:
> > Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH flag, which allows to
> > use SECCOMP_FILTER_FLAG_TSYNC and SECCOMP_FILTER_FLAG_NEW_LISTENER
> > flags together by returning ESRCH on synchronization error instead
> > of the thread ID.
> >
> > <https://lore.kernel.org/r/20200304180517.23867-1-tycho@tycho.ws>
> > ---
>
> Would you mind signing the patch?
>
> > man/man2/seccomp.2 | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/man/man2/seccomp.2 b/man/man2/seccomp.2
> > index 75c7b2d58..0729a653c 100644
> > --- a/man/man2/seccomp.2
> > +++ b/man/man2/seccomp.2
> > @@ -241,6 +241,21 @@ .SH DESCRIPTION
> > .B SECCOMP_MODE_STRICT
> > or if it has attached new seccomp filters to itself,
> > diverging from the calling thread's filter tree.
> > +.TP
> > +.BR SECCOMP_FILTER_FLAG_TSYNC_ESRCH " (since Linux 5.7)"
> > +.\" commit 51891498f2da78ee64dfad88fa53c9e85fb50abf
> > +Return
> > +.B ESRCH
>
> I expect that in user space, we'll see -1 in the return value, and ESRCH
> in errno, right? If so, we should say "Fail with ESRCH ...".
Yes, exactly. Probably worth changing the wording in the commit
message as well.
Tycho
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/2] Document seccomp flags
2026-05-18 3:13 ` [PATCH v2 0/2] Document seccomp flags funsafemath
@ 2026-05-18 22:15 ` Alejandro Colomar
0 siblings, 0 replies; 8+ messages in thread
From: Alejandro Colomar @ 2026-05-18 22:15 UTC (permalink / raw)
To: funsafemath; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 2242 bytes --]
Hi,
On 2026-05-18T04:13:08+0100, funsafemath wrote:
> Hello,
>
> Yes, a libc wrapper would return -1, I've changed the wording and applied other suggestions.
>
> funsafemath (2):
> man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
> man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
Thanks! I've applied both patches.
Have a lovely night!
Alex
>
> man/man2/seccomp.2 | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> Range-diff against v1:
> 1: c3c3b728b ! 1: fec59f483 man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
> @@ Commit message
>
> <https://lore.kernel.org/r/20200304180517.23867-1-tycho@tycho.ws>
>
> + Signed-off-by: funsafemath <funsafemath@proton.me>
> +
> ## man/man2/seccomp.2 ##
> @@ man/man2/seccomp.2: .SH DESCRIPTION
> .B SECCOMP_MODE_STRICT
> @@ man/man2/seccomp.2: .SH DESCRIPTION
> +.TP
> +.BR SECCOMP_FILTER_FLAG_TSYNC_ESRCH " (since Linux 5.7)"
> +.\" commit 51891498f2da78ee64dfad88fa53c9e85fb50abf
> -+Return
> ++Fail with
> +.B ESRCH
> -+instead of the thread ID on synchronization failure if
> -+.B SECCOMP_FILTER_FLAG_TSYNC
> ++instead of returning the thread ID on synchronization failure if
> ++.B SECCOMP_FILTER_FLAG_TSYNC
> +was specified.
> +.IP
> +If this flag is not set, using
> 2: 423b0141b ! 2: 8ead033b8 man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
> @@ Commit message
>
> Relevant kernel documentation: <Documentation/userspace-api/seccomp_filter.rst>
>
> + Signed-off-by: funsafemath <funsafemath@proton.me>
> +
> ## man/man2/seccomp.2 ##
> @@ man/man2/seccomp.2: .SH DESCRIPTION
> .B SECCOMP_FILTER_FLAG_TSYNC
> @@ man/man2/seccomp.2: .SH DESCRIPTION
> +.\" commit c2aa2dfef243efe213a480a1ee8566507a5152f4
> +Ignore non-fatal signals until the supervisor sends a response.
> +.IP
> ++The
> +.B SECCOMP_FILTER_FLAG_NEW_LISTENER
> +flag must be set.
> .RE
> --
> 2.52.0
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH
2026-05-18 14:04 ` Tycho Andersen
@ 2026-05-18 22:26 ` Alejandro Colomar
0 siblings, 0 replies; 8+ messages in thread
From: Alejandro Colomar @ 2026-05-18 22:26 UTC (permalink / raw)
To: Tycho Andersen; +Cc: funsafemath, linux-man, Tycho Andersen
[-- Attachment #1: Type: text/plain, Size: 1608 bytes --]
Hi Tycho,
On 2026-05-18T08:04:40-0600, Tycho Andersen wrote:
> On Sat, May 16, 2026 at 11:38:48PM +0200, Alejandro Colomar wrote:
> > Hi,
> >
> > On 2026-05-16T21:53:17+0100, funsafemath wrote:
> > > Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH flag, which allows to
> > > use SECCOMP_FILTER_FLAG_TSYNC and SECCOMP_FILTER_FLAG_NEW_LISTENER
> > > flags together by returning ESRCH on synchronization error instead
> > > of the thread ID.
> > >
> > > <https://lore.kernel.org/r/20200304180517.23867-1-tycho@tycho.ws>
> > > ---
> >
> > Would you mind signing the patch?
> >
> > > man/man2/seccomp.2 | 15 +++++++++++++++
> > > 1 file changed, 15 insertions(+)
> > >
> > > diff --git a/man/man2/seccomp.2 b/man/man2/seccomp.2
> > > index 75c7b2d58..0729a653c 100644
> > > --- a/man/man2/seccomp.2
> > > +++ b/man/man2/seccomp.2
> > > @@ -241,6 +241,21 @@ .SH DESCRIPTION
> > > .B SECCOMP_MODE_STRICT
> > > or if it has attached new seccomp filters to itself,
> > > diverging from the calling thread's filter tree.
> > > +.TP
> > > +.BR SECCOMP_FILTER_FLAG_TSYNC_ESRCH " (since Linux 5.7)"
> > > +.\" commit 51891498f2da78ee64dfad88fa53c9e85fb50abf
> > > +Return
> > > +.B ESRCH
> >
> > I expect that in user space, we'll see -1 in the return value, and ESRCH
> > in errno, right? If so, we should say "Fail with ESRCH ...".
>
> Yes, exactly. Probably worth changing the wording in the commit
> message as well.
Thanks! I've amended the commit message while applying v2.
Have a lovely night!
Alex
>
> Tycho
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-05-18 22:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-16 20:53 [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH funsafemath
2026-05-16 21:38 ` Alejandro Colomar
2026-05-18 14:04 ` Tycho Andersen
2026-05-18 22:26 ` Alejandro Colomar
2026-05-18 3:13 ` [PATCH v2 0/2] Document seccomp flags funsafemath
2026-05-18 22:15 ` Alejandro Colomar
2026-05-18 3:14 ` [PATCH v2 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH funsafemath
2026-05-18 3:15 ` [PATCH v2 2/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV funsafemath
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox