Skip to content
Commit 4d671d92 authored by Rich Felker's avatar Rich Felker Committed by Kees Cook
Browse files

seccomp: kill process instead of thread for unknown actions



Asynchronous termination of a thread outside of the userspace thread
library's knowledge is an unsafe operation that leaves the process in
an inconsistent, corrupt, and possibly unrecoverable state. In order
to make new actions that may be added in the future safe on kernels
not aware of them, change the default action from
SECCOMP_RET_KILL_THREAD to SECCOMP_RET_KILL_PROCESS.

Signed-off-by: default avatarRich Felker <dalias@libc.org>
Link: https://lore.kernel.org/r/20200829015609.GA32566@brightrain.aerifal.cx


[kees: Fixed up coredump selection logic to match]
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent e8393179
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment