[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEWA0a4_-SLpW1Bx0ZS-nqhG5hGn6+_9qG5-jtHk1hrnHZcp7A@mail.gmail.com>
Date: Mon, 24 Jun 2024 17:17:09 -0700
From: Andrei Vagin <avagin@...gle.com>
To: Kees Cook <keescook@...omium.org>, Andy Lutomirski <luto@...capital.net>,
Will Drewry <wad@...omium.org>, Oleg Nesterov <oleg@...hat.com>,
Christian Brauner <brauner@...nel.org>
Cc: linux-kernel@...r.kernel.org, Tycho Andersen <tandersen@...flix.com>,
Jens Axboe <axboe@...nel.dk>
Subject: Re: [PATCH 0/3 v2] seccomp: improve handling of SECCOMP_IOCTL_NOTIF_RECV
Kees,
Are you waiting for anything from me? I think this series is ready to be merged.
Thanks,
Andrei
On Wed, May 22, 2024 at 6:45 PM Andrei Vagin <avagin@...gle.com> wrote:
>
> This patch set addresses two problems with the SECCOMP_IOCTL_NOTIF_RECV
> ioctl:
> * it doesn't return when the seccomp filter becomes unused (all tasks
> have exited).
> * EPOLLHUP is triggered not when a task exits, but rather when its zombie
> is collected.
>
> v2: - Remove unnecessary checks of PF_EXITING.
> - Take siglock with disabling irqs.
> Thanks to Oleg for the review and the help with the first version.
>
> Andrei Vagin (3):
> seccomp: interrupt SECCOMP_IOCTL_NOTIF_RECV when all users have exited
> seccomp: release task filters when the task exits
> selftests/seccomp: add test for NOTIF_RECV and unused filters
>
> kernel/exit.c | 3 +-
> kernel/seccomp.c | 38 ++++++++++---
> tools/testing/selftests/seccomp/seccomp_bpf.c | 54 +++++++++++++++++++
> 3 files changed, 88 insertions(+), 7 deletions(-)
>
> Cc: Kees Cook <keescook@...omium.org>
> Cc: Andy Lutomirski <luto@...capital.net>
> Cc: Will Drewry <wad@...omium.org>
> Cc: Jens Axboe <axboe@...nel.dk>
> Cc: Christian Brauner <brauner@...nel.org>
> Cc: Oleg Nesterov <oleg@...hat.com>
> Cc: Tycho Andersen <tandersen@...flix.com>
>
>
> --
> 2.45.0.rc1.225.g2a3ae87e7f-goog
>
Powered by blists - more mailing lists