android_kernel_motorola_sm6375/arch/sh
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric W. Biederman 9770f8c29f signal/sh: Use force_sig(SIGKILL) instead of do_group_exit(SIGKILL)
[ Upstream commit ce0ee4e6ac99606f3945f4d47775544edc3f7985 ]

Today the sh code allocates memory the first time a process uses
the fpu.  If that memory allocation fails, kill the affected task
with force_sig(SIGKILL) rather than do_group_exit(SIGKILL).

Calling do_group_exit from an exception handler can potentially lead
to dead locks as do_group_exit is not designed to be called from
interrupt context.  Instead use force_sig(SIGKILL) to kill the
userspace process.  Sending signals in general and force_sig in
particular has been tested from interrupt context so there should be
no problems.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Fixes: 0ea820cf9b ("sh: Move over to dynamically allocated FPU context.")
Link: https://lkml.kernel.org/r/20211020174406.17889-6-ebiederm@xmission.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-17 09:48:46 +01:00
..
boards sh: landisk: Add missing initialization of sh_io_port_base 2020-08-21 13:05:38 +02:00
boot
cchips
configs
drivers sh: dma: fix kconfig dependency for G2_DMA 2021-01-27 11:47:52 +01:00
include sh/tlb: Fix PGTABLE_LEVELS > 2 2020-08-05 09:59:46 +02:00
kernel signal/sh: Use force_sig(SIGKILL) instead of do_group_exit(SIGKILL) 2021-11-17 09:48:46 +01:00
lib
lib64
math-emu
mm
oprofile
tools
Kconfig
Kconfig.cpu
Kconfig.debug
Makefile