All of lore.kernel.org
 help / color / mirror / Atom feed
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 14/15] arm: Reorganize syscall table and separated the ABIs
Date: Fri, 06 Nov 2026 20:33:45 +0000	[thread overview]
Message-ID: <sashiko-outbox-202227@kernel.org> (raw)
In-Reply-To: <20261105-tonyk-syscall_table-v9-14-8d1275885d9c@igalia.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm: missing oabic entry for sys_syscall() breaks OABI compat
  syscall(2)
- [Low] arm: Makefile overwrites gen-y with := and drops calls-oabi.S
  generation
--

commit f142c55483ada4ca8dfa9f75478b67abaeef8965
Author: André Almeida <andrealmeid@igalia.com>

arm: Reorganize syscall table and separated the ABIs

This commit separates the EABI, OABI, and OABI compat (oabic) ABIs in
arch/arm/tools/syscall.tbl, drops the compat column entries, and generates
calls-oabic.S for sys_oabi_call_table.

> diff --git a/arch/arm/tools/Makefile b/arch/arm/tools/Makefile
> index 28b6da8ac5f64..cde235b382bdc 100644
> --- a/arch/arm/tools/Makefile
> +++ b/arch/arm/tools/Makefile
> @@ -14,6 +14,7 @@ systbl := $(srctree)/scripts/syscalltbl.sh
>  syscall := $(src)/syscall.tbl
>  
>  gen-y := $(gen)/calls-oabi.S
> +gen-y := $(gen)/calls-oabic.S
>  gen-y += $(gen)/calls-eabi.S
>  kapi-hdrs-y := $(kapi)/unistd-nr.h
>  kapi-hdrs-y += $(kapi)/mach-types.h

[Severity: Low]
Should this assignment use += instead of := when adding calls-oabic.S to
gen-y?

Using := overwrites gen-y and drops $(gen)/calls-oabi.S from the kapi
prerequisites in arch/arm/tools/Makefile. When building with CONFIG_AEABI
disabled, sys_call_table in arch/arm/kernel/entry-common.S still includes
calls-oabi.S:

arch/arm/kernel/entry-common.S:
	syscall_table_start sys_call_table
#ifdef CONFIG_AEABI
#include <calls-eabi.S>
#else
#include <calls-oabi.S>
#endif
	syscall_table_end sys_call_table

which causes the build to fail because arch/arm/include/generated/calls-oabi.S
is no longer generated.

> diff --git a/arch/arm/tools/syscall.tbl b/arch/arm/tools/syscall.tbl
> index 55717ed32c27e..944f11030ab4a 100644
> --- a/arch/arm/tools/syscall.tbl
> +++ b/arch/arm/tools/syscall.tbl

[ ... ]

> @@ -131,7 +141,8 @@
>  114	common	wait4			sys_wait4
>  115	common	swapoff			sys_swapoff
>  116	common	sysinfo			sys_sysinfo
> -117	oabi	ipc			sys_ipc			sys_oabi_ipc
> +117	oabi	ipc			sys_ipc
> +117	oabic	ipc			sys_oabi_ipc

[Severity: High]
Just above syscall 114 in arch/arm/tools/syscall.tbl, syscall 113 is defined
only for oabi:

# syscall to call a syscall!
113	oabi	syscall			sys_syscall

Since sys_oabi_call_table in arch/arm/kernel/entry-common.S (compiled under
CONFIG_OABI_COMPAT) now includes calls-oabic.S instead of calls-oabi.S:

arch/arm/kernel/entry-common.S:
	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

won't omitting an oabic entry for syscall 113 cause scripts/syscalltbl.sh to
emit sys_ni_syscall for slot 113 in calls-oabic.S, breaking indirect syscalls
via syscall(2) for OABI binaries running under CONFIG_OABI_COMPAT?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261105-tonyk-syscall_table-v9-0-8d1275885d9c@igalia.com?part=14

  reply	other threads:[~2026-11-06 20:33 UTC|newest]

Thread overview: 49+ 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-06 20:33   ` sashiko-bot
2026-11-12 14:05   ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 02/15] syscalls: Create unified partial table for all archs André Almeida
2026-11-06 20:33   ` sashiko-bot
2026-11-12 14:05   ` Arnd Bergmann
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-06 20:33   ` sashiko-bot
2026-11-12 14:16   ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 05/15] sparc: " André Almeida
2026-11-06 20:33   ` sashiko-bot
2026-11-12 14:17   ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 06/15] mips: Remove duplicated syscallnr.sh André Almeida
2026-11-06 20:33   ` sashiko-bot
2026-11-12 14:29   ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 07/15] mips: Get rid of custom mips ABIs for syscall tables André Almeida
2026-11-06 20:33   ` sashiko-bot
2026-11-05 20:05 ` [PATCH v9 08/15] mips: Use the common syscall table André Almeida
2026-11-06 20:33   ` sashiko-bot
2026-11-12 14:19   ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 09/15] syscalls: Add an option for offsetting the common table André Almeida
2026-11-06 20:33   ` sashiko-bot
2026-11-12 14:07   ` Arnd Bergmann
2026-11-12 14:37     ` André Almeida
2026-11-12 15:08       ` Arnd Bergmann
2026-11-12 15:10         ` André Almeida
2026-11-12 15:13           ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 10/15] alpha: Define entry point for set_mempolicy_home_node syscall André Almeida
2026-11-06 20:33   ` sashiko-bot
2026-11-11  7:40   ` Magnus Lindholm
2026-11-12 14:15   ` Arnd Bergmann
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-12 15:13     ` André Almeida
2026-11-05 20:05 ` [PATCH v9 12/15] alpha: Use the common syscall table André Almeida
2026-11-06 20:33   ` sashiko-bot
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-12 14:04   ` Arnd Bergmann
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 [this message]
2026-11-12 14:15   ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 15/15] arm: Use common syscall table André Almeida
2026-11-06 20:33   ` sashiko-bot

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-202227@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.