Messages in this thread | | | From | Eric Lin <> | Subject | [PATCH v2 0/2] Let illegal access to user-space memory die | Date | Thu, 3 Dec 2020 14:48:24 +0800 |
| |
Accesses to user-space memory without calling uaccess routine leads to hanging in page fault handler. Like arm64, we let it die earlier in page fault handler.
Changes in v2: -Add a die_kernel_fault() helper -Split one long line code into two
Eric Lin (2): riscv/mm: Introduce a die_kernel_fault() helper function riscv/mm: Prevent kernel module to access user memory without uaccess routines
arch/riscv/mm/fault.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
-- 2.17.0
| |