Re: [PATCH] seccomp: Add SECCOMP_CLONE_FILTER operation

From
Al Viro <viro@zeniv.linux.org.uk>
Date
2025-09-04 14:54:26
Also in
bpf, linux-kselftest, lkml
Reply to
Tom Hromatka, 2025-09-04
On Thu, Sep 04, 2025 at 08:26:30AM -0600, Tom Hromatka wrote:
This snippet addresses the double irq issue.  I also added a
check to make sure that task != current.  (A user shouldn't
do that but who knows what they'll actually do.)

        if (task == current) {
                put_task_struct(task);
                return -EINVAL;
        }

        spin_lock_irq(&current->sighand->siglock);
        spin_lock(&task->sighand->siglock);
What do you expect to happen if two tasks do that to each other
at the same time?  Or, for that matter, if task has been spawned
by current with CLONE_VM | CLONE_SIGHAND?
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