Re: [PATCH] seccomp: Add SECCOMP_CLONE_FILTER operation

From
Alexei Starovoitov <hidden>
Date
2025-09-03 20:45:31
Also in
bpf, linux-kselftest, lkml
Reply to
Tom Hromatka, 2025-09-03
On Wed, Sep 3, 2025 at 1:38 PM Tom Hromatka [off-list ref] wrote:
quoted hunk ↗ jump to hunk

+
+       spin_lock_irq(&current->sighand->siglock);
+       spin_lock_irq(&task->sighand->siglock);
+
+       if (atomic_read(&task->seccomp.filter_count) == 0) {
+               spin_unlock_irq(&task->sighand->siglock);
+               spin_unlock_irq(&current->sighand->siglock);
did you copy this pattern from somewhere ?
It's obviously buggy.
Thread (13 messages) 13 messages, 6 authors, last reply 2025-09-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help