[RFC PATCH v5 22/25] arch: Wire up rootns() system call

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sun Nov 22 00:11:00 UTC 2026


Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arch: syscall tables wire rootns() to non-existent
  sys_sys_rootns symbol
- [High] arch: syscall tables wire userns_set_idmap() to
  sys_sys_userns_set_idmap
--

commit a98066c1928facdce930fb742694c04361f3d11f
Author: Jarkko Sakkinen <jarkko at kernel.org>

arch: Wire up rootns() system call

This commit wires up the rootns() system call across the architecture
system call tables and asm-generic unistd.h.

> diff --git a/arch/alpha/kernel/syscalls/syscall.tbl b/arch/alpha/kernel/syscalls/syscall.tbl
> index 9384d59a44dcd..2087b83d6d2ce 100644
> --- a/arch/alpha/kernel/syscalls/syscall.tbl
> +++ b/arch/alpha/kernel/syscalls/syscall.tbl
> @@ -513,3 +513,4 @@
>  581	common	rseq_slice_yield		sys_rseq_slice_yield
>  582	common	fchroot				sys_fchroot
>  583	common	userns_set_idmap		sys_sys_userns_set_idmap

[Severity: High]
Should the userns_set_idmap entry added by commit "arch: Wire up
userns_set_idmap() system call" in this series use sys_userns_set_idmap
instead of sys_sys_userns_set_idmap here and in the other 16 syscall
tables?

kernel/user_namespace.c defines the entry point with
SYSCALL_DEFINE4(userns_set_idmap, ...), so the doubled sys_ prefix causes
syscall table compilation or linking to fail with an undeclared or
undefined sys_sys_userns_set_idmap symbol.

> +584	common	rootns				sys_sys_rootns

[Severity: High]
Should the rootns entry use sys_rootns instead of sys_sys_rootns here and
in all 16 other syscall.tbl files modified by this patch?

kernel/rootns.c defines the entry point via SYSCALL_DEFINE1(rootns, ...)
and include/uapi/asm-generic/unistd.h maps __NR_rootns to sys_rootns, so
the doubled sys_ prefix causes the build or vmlinux link to fail across
all architectures using syscall.tbl files.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261121000844.1863324-1-jarkko@kernel.org?part=22



More information about the Linux-security-module-archive mailing list