linux-stable/arch/openrisc
Stafford Horne cea9d0015c 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-05-30 09:44:21 +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.9 2024-03-14 15:53:10 -07:00
kernel openrisc: traps: Don't send signals to kernel mode threads 2024-05-30 09:44:21 +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 arch: define CONFIG_PAGE_SIZE_*KB on all architectures 2024-03-06 19:29:09 +01:00
Kconfig.debug
Makefile kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00