]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: reject invalid syscalls below -1
authorDavid Abdurachmanov <david.abdurachmanov@gmail.com>
Wed, 18 Dec 2019 08:47:56 +0000 (10:47 +0200)
committerPaul Walmsley <paul.walmsley@sifive.com>
Sat, 28 Dec 2019 05:50:57 +0000 (21:50 -0800)
commit88cee507a07b51fcb5b594049ebe283fedf8f2a8
tree7d15925f22c0625e9fd3e0c60f74c0e812f519ab
parente1cef34575c8eaf12cf6f53314c64ae97273ad47
riscv: reject invalid syscalls below -1

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@sifive.com>
Fixes: a3cc8555853e ("riscv: add support for SECCOMP and SECCOMP_FILTER")
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/kernel/entry.S