From: sashiko-bot@kernel.org
To: "André Almeida" <andrealmeid@igalia.com>
Cc: "Christian Borntraeger" <borntraeger@linux.ibm.com>,
linux-s390@vger.kernel.org,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Heiko Carstens" <hca@linux.ibm.com>
Subject: Re: [PATCH v7 04/13] arm: Use the common syscall table
Date: Fri, 18 Sep 2026 00:01:18 +0000 [thread overview]
Message-ID: <20260918000119.0D7701F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260917-tonyk-syscall_table-v7-4-f4cd8f8e3265@igalia.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] arm: OABI ABI breakage for epoll_pwait2 due to missing local syscall.tbl entry
--
commit 538cbce7faef9329b4e409f09b73e772fc2b26c9
Author: André Almeida <andrealmeid@igalia.com>
arm: Use the common syscall table
Remove some of the duplicated code by using the common syscall number
table.
> diff --git a/arch/arm/tools/syscall.tbl b/arch/arm/tools/syscall.tbl
> index 55717ed32c27e..bccded328911a 100644
> --- a/arch/arm/tools/syscall.tbl
> +++ b/arch/arm/tools/syscall.tbl
> @@ -438,52 +438,3 @@
> 421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
> 422 common futex_time64 sys_futex
> 423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
[ ... ]
> -440 common process_madvise sys_process_madvise
> -441 common epoll_pwait2 sys_epoll_pwait2
> -442 common mount_setattr sys_mount_setattr
[Severity: High]
Does removing this local entry for epoll_pwait2 break OABI binaries?
By removing this entry, the build falls back to the common table definition
in scripts/syscall_common.tbl, which defines a compat handler:
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
OABI prefers the compat entry point when available, as mapped in
arch/arm/kernel/entry-common.S:
#undef __SYSCALL_WITH_COMPAT
#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
This causes OABI to attempt to link compat_sys_epoll_pwait2 instead of the
native sys_epoll_pwait2 handler.
Because ARM32 lacks CONFIG_COMPAT, the weak stub in kernel/sys_ni.c resolves
the missing syscall to sys_ni_syscall:
COND_SYSCALL_COMPAT(epoll_pwait2);
Could this mask the build error while causing the syscall to silently fail at
runtime with -ENOSYS for any unprivileged OABI process calling epoll_pwait2?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260917-tonyk-syscall_table-v7-0-f4cd8f8e3265@igalia.com?part=4
next prev parent reply other threads:[~2026-09-18 0:01 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 23:46 [PATCH v7 00/13] syscalls: Add a shared table for all archs André Almeida
2026-09-17 23:46 ` [PATCH v7 01/13] syscalls: Make --abis parsing more robust André Almeida
2026-09-17 23:52 ` sashiko-bot
2026-09-17 23:46 ` [PATCH v7 02/13] syscalls: Create unified partial table for all archs André Almeida
2026-09-17 23:57 ` sashiko-bot
2026-09-17 23:46 ` [PATCH v7 03/13] scripts/syscall.tbl: Use the common table André Almeida
2026-09-18 0:02 ` sashiko-bot
2026-09-18 6:34 ` Arnd Bergmann
2026-09-18 19:58 ` André Almeida
2026-09-17 23:46 ` [PATCH v7 04/13] arm: Use the common syscall table André Almeida
2026-09-18 0:01 ` sashiko-bot [this message]
2026-09-18 6:22 ` Arnd Bergmann
2026-09-18 20:10 ` André Almeida
2026-09-17 23:46 ` [PATCH v7 05/13] s390: " André Almeida
2026-09-17 23:56 ` sashiko-bot
2026-09-17 23:46 ` [PATCH v7 06/13] sparc: " André Almeida
2026-09-17 23:53 ` sashiko-bot
2026-09-17 23:46 ` [PATCH v7 07/13] mips: Remove duplicated syscallnr.sh André Almeida
2026-09-17 23:51 ` sashiko-bot
2026-09-17 23:46 ` [PATCH v7 08/13] mips: Get rid of custom mips ABIs for syscall tables André Almeida
2026-09-17 23:54 ` sashiko-bot
2026-09-17 23:46 ` [PATCH v7 09/13] mips: Use the common syscall table André Almeida
2026-09-17 23:55 ` sashiko-bot
2026-09-18 6:56 ` Arnd Bergmann
2026-09-17 23:46 ` [PATCH v7 10/13] syscalls: Add an option for offsetting the common table André Almeida
2026-09-17 23:57 ` sashiko-bot
2026-09-17 23:46 ` [PATCH v7 11/13] alpha: Define entry point for set_mempolicy_home_node syscall André Almeida
2026-09-17 23:59 ` sashiko-bot
2026-09-18 11:36 ` Magnus Lindholm
2026-09-17 23:46 ` [PATCH v7 12/13] alpha: Remove alpha_ prefix from custom syscall entries André Almeida
2026-09-17 23:59 ` sashiko-bot
2026-09-18 10:54 ` Magnus Lindholm
2026-09-18 20:11 ` André Almeida
2026-09-17 23:46 ` [PATCH v7 13/13] alpha: Use the common syscall table André Almeida
2026-09-17 23:59 ` sashiko-bot
2026-09-18 10:57 ` Magnus Lindholm
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=20260918000119.0D7701F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=andrealmeid@igalia.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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