From: sashiko-bot@kernel.org
To: "André Almeida" <andrealmeid@igalia.com>,
"Masami Hiramatsu" <mhiramat@kernel.org>,
"Arnd Bergmanon" <arnd@arndb.de>
Cc: "Christian Brauner" <brauner@kernel.org>,
linux-kbuild@vger.kernel.org, kernel-dev@igalia.com,
"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
linux-s390@vger.kernel.org, sparclinux@vger.kernel.org,
nathan@kernel.org, nsc@kernel.org,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH v9 15/15] arm: Use common syscall table
Date: Fri, 06 Nov 2026 20:33:46 +0000 [thread overview]
Message-ID: <sashiko-outbox-202228@kernel.org> (raw)
In-Reply-To: <20261105-tonyk-syscall_table-v9-15-8d1275885d9c@igalia.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm: syscalls: missing oabic entry for sys_syscall() breaks
OABI syscall(113)
- [Low] arm: syscalls: gen-y overwrite in arch/arm/tools/Makefile breaks
!CONFIG_AEABI
--
commit d6fa13c999788d3882cc5cb046177290257ed17e
Author: André Almeida <andrealmeid@igalia.com>
arm: Use common syscall table
This commit switches arch/arm to use the shared scripts/syscall_common.tbl
for common syscall numbers 403 and above, updating arch/arm/tools/Makefile
and removing the duplicated entries from arch/arm/tools/syscall.tbl.
> diff --git a/arch/arm/tools/Makefile b/arch/arm/tools/Makefile
> index cde235b382bdc..6fed368c3df77 100644
> --- a/arch/arm/tools/Makefile
> +++ b/arch/arm/tools/Makefile
> @@ -12,6 +12,8 @@ syshdr := $(srctree)/scripts/syscallhdr.sh
> sysnr := $(src)/syscallnr.sh
> systbl := $(srctree)/scripts/syscalltbl.sh
> syscall := $(src)/syscall.tbl
> +syscalltbl_common := $(srctree)/scripts/syscall_common.tbl
> +abis := common,clone3,32
>
> gen-y := $(gen)/calls-oabi.S
> gen-y := $(gen)/calls-oabic.S
[Severity: Low]
Does assigning gen-y := $(gen)/calls-oabic.S with := instead of += here in
arch/arm/tools/Makefile break builds when CONFIG_AEABI is disabled?
Because := overwrites gen-y, $(gen)/calls-oabi.S is dropped from both
targets and the kapi prerequisites in arch/arm/tools/Makefile:
gen-y := $(gen)/calls-oabi.S
gen-y := $(gen)/calls-oabic.S
gen-y += $(gen)/calls-eabi.S
...
targets := $(patsubst $(src)/%,%,$(kapi-hdrs-y) $(uapi-hdrs-y) $(gen-y))
PHONY += kapi uapi
kapi: $(kapi-hdrs-y) $(gen-y)
When building a non-AEABI kernel (such as rpc_defconfig or assabet_defconfig),
sys_call_table in arch/arm/kernel/entry-common.S includes <calls-oabi.S>:
#ifdef CONFIG_AEABI
#include <calls-eabi.S>
#else
#include <calls-oabi.S>
#endif
Since arch/arm/include/generated/calls-oabi.S is no longer generated, the
build fails with a missing header error. Should the second assignment use
+= instead?
[ ... ]
> diff --git a/arch/arm/tools/syscall.tbl b/arch/arm/tools/syscall.tbl
> index 944f11030ab4a..36c1e5cc3e022 100644
> --- a/arch/arm/tools/syscall.tbl
> +++ b/arch/arm/tools/syscall.tbl
> @@ -463,72 +463,3 @@
> 400 common migrate_pages sys_migrate_pages
> 401 common kexec_file_load sys_kexec_file_load
> # 402 is unused
[Severity: High]
With the switch to calls-oabic.S for CONFIG_OABI_COMPAT earlier in this
series (commit f142c55483ad), is syscall 113 (sys_syscall) missing an oabic
entry in arch/arm/tools/syscall.tbl?
Currently arch/arm/tools/syscall.tbl only defines syscall 113 for oabi:
# syscall to call a syscall!
113 oabi syscall sys_syscall
In arch/arm/kernel/entry-common.S, sys_oabi_call_table (built under
CONFIG_OABI_COMPAT) now includes <calls-oabic.S>, which is generated with
--abis $(abis),oabic:
syscall_table_start sys_oabi_call_table
#undef __SYSCALL_WITH_COMPAT
#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
#include <calls-oabic.S>
syscall_table_end sys_oabi_call_table
And sys_syscall in arch/arm/kernel/entry-common.S explicitly handles OABI
indirect syscalls by clearing __NR_OABI_SYSCALL_BASE and indexing into tbl:
sys_syscall:
bic scno, r0, #__NR_OABI_SYSCALL_BASE
cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
cmpne scno, #NR_syscalls @ check range
Without a matching oabic entry for syscall 113 in arch/arm/tools/syscall.tbl,
calls-oabic.S emits __SYSCALL(113, sys_ni_syscall), causing indirect
syscall(2) invocations from OABI user-space binaries under CONFIG_OABI_COMPAT
to fail with -ENOSYS.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261105-tonyk-syscall_table-v9-0-8d1275885d9c@igalia.com?part=15
prev parent reply other threads:[~2026-11-06 20:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 20:05 [PATCH v9 00/15] syscalls: Add a shared table for all archs André Almeida
2026-11-05 20:05 ` [PATCH v9 01/15] syscalls: Make --abis parsing more robust André Almeida
2026-11-05 20:05 ` [PATCH v9 02/15] syscalls: Create unified partial table for all archs André Almeida
2026-11-05 20:05 ` [PATCH v9 03/15] scripts/syscall.tbl: Use the common table André Almeida
2026-11-06 20:33 ` sashiko-bot
2026-11-05 20:05 ` [PATCH v9 04/15] s390: Use the common syscall table André Almeida
2026-11-05 20:05 ` [PATCH v9 05/15] sparc: " André Almeida
2026-11-05 20:05 ` [PATCH v9 06/15] mips: Remove duplicated syscallnr.sh André Almeida
2026-11-05 20:05 ` [PATCH v9 07/15] mips: Get rid of custom mips ABIs for syscall tables André Almeida
2026-11-05 20:05 ` [PATCH v9 08/15] mips: Use the common syscall table André Almeida
2026-11-05 20:05 ` [PATCH v9 09/15] syscalls: Add an option for offsetting the common table André Almeida
2026-11-05 20:05 ` [PATCH v9 10/15] alpha: Define entry point for set_mempolicy_home_node syscall André Almeida
2026-11-11 7:40 ` Magnus Lindholm
2026-11-05 20:05 ` [PATCH v9 11/15] alpha: Remove alpha_ prefix from custom syscall entries André Almeida
2026-11-06 20:33 ` sashiko-bot
2026-11-11 7:43 ` Magnus Lindholm
2026-11-05 20:05 ` [PATCH v9 12/15] alpha: Use the common syscall table André Almeida
2026-11-11 7:51 ` Magnus Lindholm
2026-11-05 20:05 ` [PATCH v9 13/15] syscalls: Avoid matching substrings in the ABI parsing André Almeida
2026-11-06 20:33 ` sashiko-bot
2026-11-05 20:05 ` [PATCH v9 14/15] arm: Reorganize syscall table and separated the ABIs André Almeida
2026-11-06 20:33 ` sashiko-bot
2026-11-05 20:05 ` [PATCH v9 15/15] arm: Use common syscall table André Almeida
2026-11-06 20:33 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-202228@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=andrealmeid@igalia.com \
--cc=arnd@arndb.de \
--cc=borntraeger@linux.ibm.com \
--cc=brauner@kernel.org \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=kernel-dev@igalia.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=nathan@kernel.org \
--cc=nsc@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sparclinux@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox