Re: [PATCH 1/5] seccomp: don't use semaphore and wait_queue together

From: Kees Cook
Date: Thu Oct 20 2022 - 01:10:53 EST


On October 19, 2022 6:10:44 PM PDT, Andrei Vagin <avagin@xxxxxxxxx> wrote:
>Here is no reason to use two different primitives that do similar things.
>
>Signed-off-by: Andrei Vagin <avagin@xxxxxxxxx>
>---
> kernel/seccomp.c | 41 ++++++++++++++++++++++++++++++++++++-----
> 1 file changed, 36 insertions(+), 5 deletions(-)

The commit log does not justify adding 29 lines to "do similar things". :) Can you describe the rationale and benefits here a bit more? I assume this to use the the future new wake_up helper?


--
Kees Cook