WSL2-Linux-Kernel/arch/x86/entry/vsyscall
Eric W. Biederman 695dd0d634 signal/x86: In emulate_vsyscall force a signal instead of calling do_exit
Directly calling do_exit with a signal number has the problem that
all of the side effects of the signal don't happen, such as
killing all of the threads of a process instead of just the
calling thread.

So replace do_exit(SIGSYS) with force_fatal_sig(SIGSYS) which
causes the signal handling to take it's normal path and work
as expected.

Cc: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20211020174406.17889-17-ebiederm@xmission.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
2021-10-29 14:31:34 -05:00
..
Makefile x86/vdso: Switch to generic vDSO implementation 2019-06-22 21:21:10 +02:00
vsyscall_64.c signal/x86: In emulate_vsyscall force a signal instead of calling do_exit 2021-10-29 14:31:34 -05:00
vsyscall_emu_64.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 180 2019-05-30 11:29:20 -07:00
vsyscall_trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00