]> git.baikalelectronics.ru Git - kernel.git/commit
bpfilter: Take advantage of the facilities of struct pid
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 25 Jun 2020 22:23:22 +0000 (17:23 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 7 Jul 2020 16:58:57 +0000 (11:58 -0500)
commita3bb39fe5ae5f1fa6023c111c57da740d70c23da
tree79fa3fd78b5dcdde8b08eb4d7f0d4c7b14a46ad9
parentaed61af2b6face146d0b3284e80141f35af3d9d2
bpfilter: Take advantage of the facilities of struct pid

Instead of relying on the exit_umh cleanup callback use the fact a
struct pid can be tested to see if a process still exists, and that
struct pid has a wait queue that notifies when the process dies.

v1: https://lkml.kernel.org/r/87h7uydlu9.fsf_-_@x220.int.ebiederm.org
v2: https://lkml.kernel.org/r/874kqt4owu.fsf_-_@x220.int.ebiederm.org
Link: https://lkml.kernel.org/r/20200702164140.4468-14-ebiederm@xmission.com
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/bpfilter.h
net/bpfilter/bpfilter_kern.c
net/ipv4/bpfilter/sockopt.c