# Re: \[PATCH\] seccomp: Add SECCOMP\_CLONE\_FILTER operation

- From: Alexei Starovoitov \<hidden\>
- Date: 2025-09-03 20:45:31 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2025/09/3199733
- Thread: https://ratatoskr.run/linux-doc/2025/09/3199727/t.md

```text
On Wed, Sep 3, 2025 at 1:38 PM Tom Hromatka [ref] wrote:
>
> +
> +       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.
```
