Commit d6b013b4 authored by Clément Léger's avatar Clément Léger Committed by Greg Kroah-Hartman
Browse files

riscv: misaligned: enable IRQs while handling misaligned accesses



[ Upstream commit 453805f0 ]

We can safely reenable IRQs if coming from userspace. This allows to
access user memory that could potentially trigger a page fault.

Fixes: b686ecde ("riscv: misaligned: Restrict user access to kernel memory")
Signed-off-by: default avatarClément Léger <cleger@rivosinc.com>
Reviewed-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250422162324.956065-3-cleger@rivosinc.com


Signed-off-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 45a0697c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment