[PATCH] riscv/mm: Prevent kernel module access user-space memory without uaccess routines

Eric Lin tesheng at andestech.com
Tue Dec 1 00:20:49 EST 2020


On Mon, Nov 30, 2020 at 04:30:15PM +0800, Christoph Hellwig wrote:
Hi Christoph,
> > +	if (!user_mode(regs) && addr < TASK_SIZE && unlikely(!(regs->status & SR_SUM)))
> 
> Please avoid the overly long line.
OK, I'll modify it in v2. Thanks for your review.



More information about the linux-riscv mailing list