Re: [PATCH] riscv/mm: Prevent kernel module access user-space memory without uaccess routines
From: Christoph Hellwig
Date: Mon Nov 30 2020 - 03:31:12 EST
> + if (!user_mode(regs) && addr < TASK_SIZE && unlikely(!(regs->status & SR_SUM)))
Please avoid the overly long line.