This was originally tested on 4.19 kernel with Fedora 29/RISCV. Depends on audit patches (already in linux-next).
The patches are on top of linux-next next-20181206 tag. Validation was done using libseccomp (at 1e64feb5f1a9ea02687228e3073e8b784a04ce46, which is master at this date). See PR: https://github.com/seccomp/libseccomp/pull/134 Test results: # ./regression -T live Regression Test Summary tests run: 8 tests skipped: 0 tests passed: 8 tests failed: 0 tests errored: 0 # ./regression Regression Test Summary tests run: 5129 tests skipped: 104 tests passed: 5129 tests failed: 0 tests errored: 0 David Abdurachmanov (2): riscv: add support for SECCOMP incl. filters riscv: fix syscall_{get,set}_arguments arch/riscv/Kconfig | 14 ++++++++++ arch/riscv/include/asm/syscall.h | 42 +++++++++++++++++++++------- arch/riscv/include/asm/thread_info.h | 5 +++- arch/riscv/kernel/entry.S | 27 ++++++++++++++++-- arch/riscv/kernel/ptrace.c | 8 ++++++ 5 files changed, 83 insertions(+), 13 deletions(-) -- 2.19.2