Skip to content

Commit d16d919

Browse files
xen0ndrakenclimber
authored andcommitted
arch: adapt arch-syscall-validate to Linux 6.11
The aarch64, loongarch64 and riscv64 architectures have their syscall table sources changed to scripts/syscall.tbl, from the original inclusion of asm-generic/unistd.h. Make the script recognize the new format for these architectures. Signed-off-by: WANG Xuerui <[email protected]> Signed-off-by: Paul Moore <[email protected]> (imported from commit 26e2b31) Signed-off-by: Tom Hromatka <[email protected]>
1 parent 2491302 commit d16d919

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/arch-syscall-validate

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,13 @@ function dump_lib_arm() {
286286
# Dump the architecture's syscall table to stdout.
287287
#
288288
function dump_sys_aarch64() {
289+
local syscall_tbl_file="$1/arch/arm64/tools/syscall_64.tbl"
290+
if [[ -e $syscall_tbl_file ]]; then
291+
dump_from_syscall_tbl "$syscall_tbl_file" \
292+
64 renameat rlimit memfd_secret
293+
return
294+
fi
295+
289296
local sed_filter=""
290297

291298
sed_filter+='s/__NR3264_statfs/43/;'
@@ -480,6 +487,12 @@ function dump_lib_ppc64() {
480487
# Dump the architecture's syscall table to stdout.
481488
#
482489
function dump_sys_riscv64() {
490+
if [[ -e $1/arch/riscv/kernel/Makefile.syscalls ]]; then
491+
dump_from_syscall_tbl "$1/scripts/syscall.tbl" \
492+
64 riscv rlimit memfd_secret
493+
return
494+
fi
495+
483496
local sed_filter=""
484497

485498
sed_filter+='s/__NR3264_fadvise64/223/;'

0 commit comments

Comments
 (0)