linux/arch/openrisc
Stafford Horne c0ed9a711e openrisc: traps: Don't send signals to kernel mode threads
[ Upstream commit c88cfb5cea ]

OpenRISC exception handling sends signals to user processes on floating
point exceptions and trap instructions (for debugging) among others.
There is a bug where the trap handling logic may send signals to kernel
threads, we should not send these signals to kernel threads, if that
happens we treat it as an error.

This patch adds conditions to die if the kernel receives these
exceptions in kernel mode code.

Fixes: 27267655c5 ("openrisc: Support floating point user api")
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:11:42 +02:00
..
boot kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
configs treewide: drop CONFIG_EMBEDDED 2023-08-21 13:46:25 -07:00
include OpenRISC updates for 6.6 2023-09-05 10:09:31 -07:00
kernel openrisc: traps: Don't send signals to kernel mode threads 2024-06-12 11:11:42 +02:00
lib openrisc/delay: Add include to fix symbol not declared warning 2022-05-23 17:15:49 +09:00
mm OpenRISC updates for 6.6 2023-09-05 10:09:31 -07:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig openrisc: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:34 -07:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00