]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
seccomp: add riscv_flush_icache to allow list
authorCeleste Liu <CoelacanthusHex@gmail.com>
Sun, 16 Oct 2022 02:47:17 +0000 (10:47 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 16 Oct 2022 10:40:00 +0000 (12:40 +0200)
This system call is harmless because it only enforces ordering between stores
and instruction cache fetch.

fixed #24991
Related: https://github.com/felixonmars/archriscv-packages/issues/1840

Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
src/shared/seccomp-util.c

index 1247da535d050603927519797acec9c054147b92..dfac4da7cc364c057be18c882dc7c9ebaac5198d 100644 (file)
@@ -356,6 +356,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "pause\0"
                 "prlimit64\0"
                 "restart_syscall\0"
+                "riscv_flush_icache\0"
                 "rseq\0"
                 "rt_sigreturn\0"
                 "sched_getaffinity\0"