diff options
author | Samuel Holland <[email protected]> | 2024-08-14 17:57:03 -0700 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-08-31 17:43:38 -0700 |
commit | b686ecdeacf6658e1348c1a32a08e2e72f7c0f00 (patch) | |
tree | b2c17c1d91bd7c7485b5d784032031c2d597d2fb /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 84cfab9a1805f8e300e945f26e3fdff6d125bc20 (diff) |
riscv: misaligned: Restrict user access to kernel memory
raw_copy_{to,from}_user() do not call access_ok(), so this code allowed
userspace to access any virtual memory address.
Cc: [email protected]
Fixes: 7c83232161f6 ("riscv: add support for misaligned trap handling in S-mode")
Fixes: 441381506ba7 ("riscv: misaligned: remove CONFIG_RISCV_M_MODE specific code")
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Alexandre Ghiti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions