linux-stable/arch
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
..
alpha Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
arc Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
arm ARM development updates for 5.15: 2021-09-09 13:25:49 -07:00
arm64 Merge branch 'linus' into smp/urgent 2021-09-11 00:38:47 +02:00
csky Tracing updates for 5.15: 2021-09-05 11:50:41 -07:00
h8300 Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
hexagon Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
ia64 Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
m68k Merge branch 'akpm' (patches from Andrew) 2021-09-03 10:08:28 -07:00
microblaze Microblaze patches for 5.15-rc1 2021-09-08 16:02:13 -07:00
mips signal/mips: Update (_save|_restore)_fp_context to fail with -EFAULT 2021-10-25 15:55:35 -05:00
nds32 exit: Remove calls of do_exit after noreturn versions of die 2021-10-20 13:09:47 -05:00
nios2 Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
openrisc exit: Remove calls of do_exit after noreturn versions of die 2021-10-20 13:09:47 -05:00
parisc parisc: Implement __get/put_kernel_nofault() 2021-09-09 22:53:09 +02:00
powerpc signal/powerpc: On swapcontext failure force SIGSEGV 2021-10-25 15:56:29 -05:00
riscv Updates for the SMP and CPU hotplug: 2021-09-12 12:42:51 -07:00
s390 signal/s390: Use force_sigsegv in default_trap_handler 2021-10-29 14:31:05 -05:00
sh signal/sh: Use force_sig(SIGKILL) instead of do_group_exit(SIGKILL) 2021-10-25 15:56:29 -05:00
sparc signal/sparc32: In setup_rt_frame and setup_fram use force_fatal_sig 2021-10-29 14:31:34 -05:00
um This pull request contains the following changes for UML: 2021-09-09 13:45:26 -07:00
x86 signal/x86: In emulate_vsyscall force a signal instead of calling do_exit 2021-10-29 14:31:34 -05:00
xtensa exit: Remove calls of do_exit after noreturn versions of die 2021-10-20 13:09:47 -05:00
.gitignore
Kconfig Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00