diff options
| author | Clément Léger <[email protected]> | 2025-04-22 16:23:09 +0000 |
|---|---|---|
| committer | Alexandre Ghiti <[email protected]> | 2025-05-08 12:00:36 +0000 |
| commit | 453805f0a28fc5091e46145e6560c776f7c7a611 (patch) | |
| tree | 4d7a788d411b15219ee1d1ee09b457ccb773a7c6 /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | riscv: misaligned: factorize trap handling (diff) | |
| download | kernel-453805f0a28fc5091e46145e6560c776f7c7a611.tar.gz kernel-453805f0a28fc5091e46145e6560c776f7c7a611.zip | |
riscv: misaligned: enable IRQs while handling misaligned accesses
We can safely reenable IRQs if coming from userspace. This allows to
access user memory that could potentially trigger a page fault.
Fixes: b686ecdeacf6 ("riscv: misaligned: Restrict user access to kernel memory")
Signed-off-by: Clément Léger <[email protected]>
Reviewed-by: Alexandre Ghiti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Ghiti <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
