From: "Arnd Bergmann" <arnd@arndb.de>
To: "André Almeida" <andrealmeid@igalia.com>,
"Thomas Gleixner" <tglx@kernel.org>,
"Ingo Molnar" <mingo@redhat.com>,
"Borislav Petkov" <bp@alien8.de>,
"Dave Hansen" <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>,
"Nathan Chancellor" <nathan@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
kernel-dev@igalia.com
Subject: Re: [PATCH RFC 1/4] syscalls: Create unified partial table for all archs
Date: Fri, 24 Jul 2026 22:09:14 +0200 [thread overview]
Message-ID: <3a481359-72d0-4c58-8a63-b6d941a22482@app.fastmail.com> (raw)
In-Reply-To: <20260724-tonyk-syscall_table-v1-1-9c53188423da@igalia.com>
On Fri, Jul 24, 2026, at 22:00, André Almeida wrote:
> To take advantage of the subset of syscall numbers that are guaranteed to
> be shared, create a new table and adapt generation scripts to use it. In
> that way, every new syscall can be added to a single file.
>
> Signed-off-by: André Almeida <andrealmeid@igalia.com>
Thanks a lot for working on this, I had planned to do this myself
for a while but had never quite gotten around to finish it.
> +#
> +# syscall numbers shared by architectures
> +
> +442 common mount_setattr sys_mount_setattr
> +443 common quotactl_fd sys_quotactl_fd
> +444 common landlock_create_ruleset sys_landlock_create_ruleset
> +445 common landlock_add_rule sys_landlock_add_rule
It should really be anything starting at 403, not just 442 and higher.
There are some trivial differences that have crept in over time,
but we should be able to work around those.
> index 22e34cd46b9b..77934a2d0f51 100755
> --- a/scripts/syscallhdr.sh
> +++ b/scripts/syscallhdr.sh
> @@ -26,6 +26,7 @@ usage() {
> echo >&2 " --emit-nr Emit the macro of the number of
> syscalls (__NR_syscalls)"
> echo >&2 " --offset OFFSET The offset of syscall numbers"
> echo >&2 " --prefix PREFIX The prefix to the macro like
> __NR_<PREFIX><NAME>"
> + echo >&2 " --common-tbl Use the common number table"
> exit 1
Ideally we shouldn't even need this bit either, though it may
help for the transition phase.
Arnd
next prev parent reply other threads:[~2026-07-24 20:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 20:00 [PATCH RFC 0/4] syscalls: Add a shared " André Almeida
2026-07-24 20:00 ` [PATCH RFC 1/4] syscalls: Create unified partial " André Almeida
2026-07-24 20:09 ` Arnd Bergmann [this message]
2026-07-24 20:18 ` André Almeida
2026-07-24 20:25 ` Arnd Bergmann
2026-07-24 21:22 ` H. Peter Anvin
2026-07-25 8:25 ` Arnd Bergmann
2026-07-24 20:00 ` [PATCH RFC 2/4] syscalls: Add support for x86_x32 for the common syscall table André Almeida
2026-07-24 20:16 ` Arnd Bergmann
2026-07-24 20:00 ` [PATCH RFC 3/4] x86: Use " André Almeida
2026-07-24 20:00 ` [PATCH RFC 4/4] scripts/syscall.tbl: Use the common table André Almeida
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=3a481359-72d0-4c58-8a63-b6d941a22482@app.fastmail.com \
--to=arnd@arndb.de \
--cc=andrealmeid@igalia.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kernel-dev@igalia.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=nathan@kernel.org \
--cc=tglx@kernel.org \
/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
all inboxes | Powered by JetHome®