]> git.baikalelectronics.ru Git - kernel.git/commit
signal/seccomp: Dump core when there is only one live thread
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 23 Jun 2021 21:51:49 +0000 (16:51 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 26 Aug 2021 23:06:41 +0000 (18:06 -0500)
commit4087eb87d7ca79901db33c917e286593c6a80631
tree19443747e3d286338f0f19bcacff983597c8b727
parent98dcf08a89f0e97ee32047dcc8300045e84974a9
signal/seccomp: Dump core when there is only one live thread

Replace get_nr_threads with atomic_read(&current->signal->live) as
that is a more accurate number that is decremented sooner.

Acked-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/87lf6z6qbd.fsf_-_@disp2133
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/seccomp.c