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

From: Eric Lin
Date: Tue Dec 01 2020 - 00:21:53 EST


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.