Re: [PATCH 0/1] *** Fix kill(-1,s) returning 0 on 0 kills ***
From: Kees Cook
Date: Tue Nov 22 2022 - 12:15:50 EST
On Tue, Nov 22, 2022 at 05:12:40PM +0100, Petr Skocik wrote:
> Hi. I've never sent a kernel patch before but this one seemed trivial,
> so I thought I'd give it a shot.
>
> My issue: kill(-1,s) on Linux doesn't return -ESCHR when it has nothing
> to kill.
It looks like LTP already tests for this, and gets -ESRCH?
https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/containers/pidns/pidns10.c
Does it still pass with your change?
--
Kees Cook