Skip to content
Snippets Groups Projects
Commit b9fe1379 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Yongqiang Liu
Browse files

signal/seccomp: Dump core when there is only one live thread

mainline inclusion
from mainline-v5.15-rc1
commit d21918e5a94a862ccb297b9f2be38574c865fda0
category: bugfix
bugzilla: 187336, https://gitee.com/openeuler/kernel/issues/I5LCBR


CVE: NA

--------------------------------

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

Acked-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/87lf6z6qbd.fsf_-_@disp2133


Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>

Conflicts:
	kernel/seccomp.c

Signed-off-by: default avatarGONG, Ruiqi <gongruiqi1@huawei.com>
Reviewed-by: default avatarWang Weiyang <wangweiyang2@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent f12cb796
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment