Re: [PATCH] riscv: reject invalid syscalls below -1

From: Paul Walmsley
Date: Sat Dec 28 2019 - 01:03:12 EST


On Wed, 18 Dec 2019, David Abdurachmanov wrote:

> Running "stress-ng --enosys 4 -t 20 -v" showed a large number of kernel oops
> with "Unable to handle kernel paging request at virtual address" message. This
> happens when enosys stressor starts testing random non-valid syscalls.
>
> I forgot to redirect any syscall below -1 to sys_ni_syscall.
>
> With the patch kernel oops messages are gone while running stress-ng enosys
> stressor.
>
> Signed-off-by: David Abdurachmanov <david.abdurachmanov@xxxxxxxxxx>
> Fixes: 5340627e3fe0 ("riscv: add support for SECCOMP and SECCOMP_FILTER")

>From the thread, I couldn't tell whether you were happy with this patch as
it stands or not; the thread seems to have petered out. So this one has
been queued for v5.5-rc; let me know if you didn't intend for that to
happen.


- Paul