[PATCH] riscv/mm: Prevent kernel module access user-space memory without uaccess routines
Christoph Hellwig
hch at infradead.org
Mon Nov 30 03:30:15 EST 2020
> + if (!user_mode(regs) && addr < TASK_SIZE && unlikely(!(regs->status & SR_SUM)))
Please avoid the overly long line.
More information about the linux-riscv
mailing list