Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4759316rwo; Tue, 25 Jul 2023 10:27:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlE5OIvuWm1Pne9NL1qmzr7xC/OhvPC45TRxL2J/8Xs754POU8a6gOjVXAVrekEg9IPYZdFd X-Received: by 2002:a2e:3309:0:b0:2b6:cdfb:d06a with SMTP id d9-20020a2e3309000000b002b6cdfbd06amr9782747ljc.22.1690306075731; Tue, 25 Jul 2023 10:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690306075; cv=none; d=google.com; s=arc-20160816; b=Ep6tt9fwGYKEh0/CewcCrrNa1HFgHYhbHvneWS64+iy2yJu1AeTJdFlGa0VsSWkoMT zoJjLzKpz6ON/DxuDVgkYKMYKJeYJ9W00QKcF2W5aR85rn/EukSdVxPdRCXDzp4+DBBh 0jqyKw7fPr5ZGmBbiMIx70033Uv0PwNkIq4E+ylYf5mjFWQPA9yikfg9z9KjwKsAJOS0 MPrJCG1j5ZCXC7W4X8fKd83C0QEnbLR8wWKBZv6WcPFJCxNp8fpdMmFBF6nbbeNJDyQ5 hnrlD+NTM0u+3zePe1F8NODW3HsLhEjDrvSS+A+8YWFj49akKF3GWM4ajVLmzB8DpCW/ h24Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NhMQtHSaX0D9/heUhyPM8vbexj0LLJL/SLwgv/4J66M=; fh=LxGZ12sfle+eLSy2Wl8cmH4cfyOlr0ahEAjB52EPH5U=; b=Z8N48P1FhLI4150lxKYT6cu4Anxe2X4CyXahei42kse5aES+r63DPFI2KYAd/ui4eq Ns5A0HTT/LfsN/aI5DtAM1KuJt8c6VjqVQo9gRzgqdu9UQGCcEAjtwxJ4GsDD+d3P0re 5LSA7oUeSm02WAHp/tUk0zZkl8hxSjG2D47oxFpQCL1RulF7ub3h9MksWrdBovkVMp6p uif/+TTMPoeJHrXTRIxSg58Ci/wLvc74zJzBCFJPfskm89Ti8n7fDikDI19sL+Y/doJB MZK0P40m2n2HRh3TZaTdsjk5WYb/Wx76ypxzipVo3jocIlQCCDsdTGc6OHfvFnLhO+MW ed8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cyphar.com header.s=MBO0001 header.b=xs+z7HJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cyphar.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi1-20020a170906a24100b009828298ddd5si8342287ejb.259.2023.07.25.10.27.30; Tue, 25 Jul 2023 10:27:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cyphar.com header.s=MBO0001 header.b=xs+z7HJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cyphar.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbjGYQqJ (ORCPT + 99 others); Tue, 25 Jul 2023 12:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231493AbjGYQqC (ORCPT ); Tue, 25 Jul 2023 12:46:02 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96D402688; Tue, 25 Jul 2023 09:45:28 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4R9NCZ2DrNz9sdJ; Tue, 25 Jul 2023 18:44:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cyphar.com; s=MBO0001; t=1690303450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NhMQtHSaX0D9/heUhyPM8vbexj0LLJL/SLwgv/4J66M=; b=xs+z7HJkLxY38isY2NFAC6u5APDrMMm97JEO8nyvz4mCpIgRQYyuv3PYZeoEifbt3+ONjr 9GhBI3WxM0TFj0CA4W4RfGe3Qz1P3M+Sp+D1wzV+FJlolrUrXAJdOsJIyG8sFkusm+vrp6 Kqlv9PZ2tzdohFmynbZWAQls0rI8gBfbT+K+8wTG1WxW27l7nNYloGwPzvry4ZoJKkwxjf aPuK59hQ3lk/7zxP0rpXOpbpkiT2xbPT/0xeN6NqXrXuKMB3elBc+TWbaB8o2xN49aFxLD FZ1nLID/B0fYusdvulw84QUUptxLxPc+CEyUpbPoCmdIzg/BzMRNR1pMRHiAhw== Date: Wed, 26 Jul 2023 02:43:41 +1000 From: Aleksa Sarai To: Alexey Gladkov Cc: LKML , Arnd Bergmann , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, Palmer Dabbelt , James.Bottomley@hansenpartnership.com, acme@kernel.org, alexander.shishkin@linux.intel.com, axboe@kernel.dk, benh@kernel.crashing.org, borntraeger@de.ibm.com, bp@alien8.de, catalin.marinas@arm.com, christian@brauner.io, dalias@libc.org, davem@davemloft.net, deepa.kernel@gmail.com, deller@gmx.de, dhowells@redhat.com, fenghua.yu@intel.com, fweimer@redhat.com, geert@linux-m68k.org, glebfm@altlinux.org, gor@linux.ibm.com, hare@suse.com, hpa@zytor.com, ink@jurassic.park.msu.ru, jhogan@kernel.org, kim.phillips@arm.com, ldv@altlinux.org, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux@armlinux.org.uk, linuxppc-dev@lists.ozlabs.org, luto@kernel.org, mattst88@gmail.com, mingo@redhat.com, monstr@monstr.eu, mpe@ellerman.id.au, namhyung@kernel.org, paulus@samba.org, peterz@infradead.org, ralf@linux-mips.org, sparclinux@vger.kernel.org, stefan@agner.ch, tglx@linutronix.de, tony.luck@intel.com, tycho@tycho.ws, will@kernel.org, x86@kernel.org, ysato@users.sourceforge.jp Subject: Re: [PATCH v4 3/5] arch: Register fchmodat2, usually as syscall 452 Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yzaj6wzgrp7s4fka" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yzaj6wzgrp7s4fka Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-07-11, Alexey Gladkov wrote: > From: Palmer Dabbelt >=20 > This registers the new fchmodat2 syscall in most places as nuber 452, > with alpha being the exception where it's 562. I found all these sites > by grepping for fspick, which I assume has found me everything. Shouldn't this patch be squashed with the patch that adds the syscall? At least, that's how I've usually seen it done... > Signed-off-by: Palmer Dabbelt > Signed-off-by: Alexey Gladkov > --- > arch/alpha/kernel/syscalls/syscall.tbl | 1 + > arch/arm/tools/syscall.tbl | 1 + > arch/arm64/include/asm/unistd.h | 2 +- > arch/arm64/include/asm/unistd32.h | 2 ++ > arch/ia64/kernel/syscalls/syscall.tbl | 1 + > arch/m68k/kernel/syscalls/syscall.tbl | 1 + > arch/microblaze/kernel/syscalls/syscall.tbl | 1 + > arch/mips/kernel/syscalls/syscall_n32.tbl | 1 + > arch/mips/kernel/syscalls/syscall_n64.tbl | 1 + > arch/mips/kernel/syscalls/syscall_o32.tbl | 1 + > arch/parisc/kernel/syscalls/syscall.tbl | 1 + > arch/powerpc/kernel/syscalls/syscall.tbl | 1 + > arch/s390/kernel/syscalls/syscall.tbl | 1 + > arch/sh/kernel/syscalls/syscall.tbl | 1 + > arch/sparc/kernel/syscalls/syscall.tbl | 1 + > arch/x86/entry/syscalls/syscall_32.tbl | 1 + > arch/x86/entry/syscalls/syscall_64.tbl | 1 + > arch/xtensa/kernel/syscalls/syscall.tbl | 1 + > include/uapi/asm-generic/unistd.h | 5 ++++- > 19 files changed, 23 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/alpha/kernel/syscalls/syscall.tbl b/arch/alpha/kernel/s= yscalls/syscall.tbl > index 1f13995d00d7..ad37569d0507 100644 > --- a/arch/alpha/kernel/syscalls/syscall.tbl > +++ b/arch/alpha/kernel/syscalls/syscall.tbl > @@ -491,3 +491,4 @@ > 559 common futex_waitv sys_futex_waitv > 560 common set_mempolicy_home_node sys_ni_syscall > 561 common cachestat sys_cachestat > +562 common fchmodat2 sys_fchmodat2 > diff --git a/arch/arm/tools/syscall.tbl b/arch/arm/tools/syscall.tbl > index 8ebed8a13874..c572d6c3dee0 100644 > --- a/arch/arm/tools/syscall.tbl > +++ b/arch/arm/tools/syscall.tbl > @@ -465,3 +465,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/uni= std.h > index 64a514f90131..bd77253b62e0 100644 > --- a/arch/arm64/include/asm/unistd.h > +++ b/arch/arm64/include/asm/unistd.h > @@ -39,7 +39,7 @@ > #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5) > #define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800) > =20 > -#define __NR_compat_syscalls 452 > +#define __NR_compat_syscalls 453 > #endif > =20 > #define __ARCH_WANT_SYS_CLONE > diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/u= nistd32.h > index d952a28463e0..78b68311ec81 100644 > --- a/arch/arm64/include/asm/unistd32.h > +++ b/arch/arm64/include/asm/unistd32.h > @@ -909,6 +909,8 @@ __SYSCALL(__NR_futex_waitv, sys_futex_waitv) > __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node) > #define __NR_cachestat 451 > __SYSCALL(__NR_cachestat, sys_cachestat) > +#define __NR_fchmodat2 452 > +__SYSCALL(__NR_fchmodat2, sys_fchmodat2) > =20 > /* > * Please add new compat syscalls above this comment and update > diff --git a/arch/ia64/kernel/syscalls/syscall.tbl b/arch/ia64/kernel/sys= calls/syscall.tbl > index f8c74ffeeefb..83d8609aec03 100644 > --- a/arch/ia64/kernel/syscalls/syscall.tbl > +++ b/arch/ia64/kernel/syscalls/syscall.tbl > @@ -372,3 +372,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/arch/m68k/kernel/syscalls/syscall.tbl b/arch/m68k/kernel/sys= calls/syscall.tbl > index 4f504783371f..259ceb125367 100644 > --- a/arch/m68k/kernel/syscalls/syscall.tbl > +++ b/arch/m68k/kernel/syscalls/syscall.tbl > @@ -451,3 +451,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/arch/microblaze/kernel/syscalls/syscall.tbl b/arch/microblaz= e/kernel/syscalls/syscall.tbl > index 858d22bf275c..a3798c2637fd 100644 > --- a/arch/microblaze/kernel/syscalls/syscall.tbl > +++ b/arch/microblaze/kernel/syscalls/syscall.tbl > @@ -457,3 +457,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/arch/mips/kernel/syscalls/syscall_n32.tbl b/arch/mips/kernel= /syscalls/syscall_n32.tbl > index 1976317d4e8b..152034b8e0a0 100644 > --- a/arch/mips/kernel/syscalls/syscall_n32.tbl > +++ b/arch/mips/kernel/syscalls/syscall_n32.tbl > @@ -390,3 +390,4 @@ > 449 n32 futex_waitv sys_futex_waitv > 450 n32 set_mempolicy_home_node sys_set_mempolicy_home_node > 451 n32 cachestat sys_cachestat > +452 n32 fchmodat2 sys_fchmodat2 > diff --git a/arch/mips/kernel/syscalls/syscall_n64.tbl b/arch/mips/kernel= /syscalls/syscall_n64.tbl > index cfda2511badf..cb5e757f6621 100644 > --- a/arch/mips/kernel/syscalls/syscall_n64.tbl > +++ b/arch/mips/kernel/syscalls/syscall_n64.tbl > @@ -366,3 +366,4 @@ > 449 n64 futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 n64 cachestat sys_cachestat > +452 n64 fchmodat2 sys_fchmodat2 > diff --git a/arch/mips/kernel/syscalls/syscall_o32.tbl b/arch/mips/kernel= /syscalls/syscall_o32.tbl > index 7692234c3768..1a646813afdc 100644 > --- a/arch/mips/kernel/syscalls/syscall_o32.tbl > +++ b/arch/mips/kernel/syscalls/syscall_o32.tbl > @@ -439,3 +439,4 @@ > 449 o32 futex_waitv sys_futex_waitv > 450 o32 set_mempolicy_home_node sys_set_mempolicy_home_node > 451 o32 cachestat sys_cachestat > +452 o32 fchmodat2 sys_fchmodat2 > diff --git a/arch/parisc/kernel/syscalls/syscall.tbl b/arch/parisc/kernel= /syscalls/syscall.tbl > index a0a9145b6dd4..e97c175b56f9 100644 > --- a/arch/parisc/kernel/syscalls/syscall.tbl > +++ b/arch/parisc/kernel/syscalls/syscall.tbl > @@ -450,3 +450,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl b/arch/powerpc/kern= el/syscalls/syscall.tbl > index 8c0b08b7a80e..20e50586e8a2 100644 > --- a/arch/powerpc/kernel/syscalls/syscall.tbl > +++ b/arch/powerpc/kernel/syscalls/syscall.tbl > @@ -538,3 +538,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 nospu set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/arch/s390/kernel/syscalls/syscall.tbl b/arch/s390/kernel/sys= calls/syscall.tbl > index a6935af2235c..0122cc156952 100644 > --- a/arch/s390/kernel/syscalls/syscall.tbl > +++ b/arch/s390/kernel/syscalls/syscall.tbl > @@ -454,3 +454,4 @@ > 449 common futex_waitv sys_futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node sys_set_= mempolicy_home_node > 451 common cachestat sys_cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 sys_fchmodat2 > diff --git a/arch/sh/kernel/syscalls/syscall.tbl b/arch/sh/kernel/syscall= s/syscall.tbl > index 97377e8c5025..e90d585c4d3e 100644 > --- a/arch/sh/kernel/syscalls/syscall.tbl > +++ b/arch/sh/kernel/syscalls/syscall.tbl > @@ -454,3 +454,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/arch/sparc/kernel/syscalls/syscall.tbl b/arch/sparc/kernel/s= yscalls/syscall.tbl > index faa835f3c54a..4ed06c71c43f 100644 > --- a/arch/sparc/kernel/syscalls/syscall.tbl > +++ b/arch/sparc/kernel/syscalls/syscall.tbl > @@ -497,3 +497,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/sysc= alls/syscall_32.tbl > index bc0a3c941b35..2d0b1bd866ea 100644 > --- a/arch/x86/entry/syscalls/syscall_32.tbl > +++ b/arch/x86/entry/syscalls/syscall_32.tbl > @@ -456,3 +456,4 @@ > 449 i386 futex_waitv sys_futex_waitv > 450 i386 set_mempolicy_home_node sys_set_mempolicy_home_node > 451 i386 cachestat sys_cachestat > +452 i386 fchmodat2 sys_fchmodat2 > diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/sysc= alls/syscall_64.tbl > index 227538b0ce80..814768249eae 100644 > --- a/arch/x86/entry/syscalls/syscall_64.tbl > +++ b/arch/x86/entry/syscalls/syscall_64.tbl > @@ -373,6 +373,7 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > =20 > # > # Due to a historical design error, certain syscalls are numbered differ= ently > diff --git a/arch/xtensa/kernel/syscalls/syscall.tbl b/arch/xtensa/kernel= /syscalls/syscall.tbl > index 2b69c3c035b6..fc1a4f3c81d9 100644 > --- a/arch/xtensa/kernel/syscalls/syscall.tbl > +++ b/arch/xtensa/kernel/syscalls/syscall.tbl > @@ -422,3 +422,4 @@ > 449 common futex_waitv sys_futex_waitv > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > 451 common cachestat sys_cachestat > +452 common fchmodat2 sys_fchmodat2 > diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic= /unistd.h > index fd6c1cb585db..abe087c53b4b 100644 > --- a/include/uapi/asm-generic/unistd.h > +++ b/include/uapi/asm-generic/unistd.h > @@ -820,8 +820,11 @@ __SYSCALL(__NR_set_mempolicy_home_node, sys_set_memp= olicy_home_node) > #define __NR_cachestat 451 > __SYSCALL(__NR_cachestat, sys_cachestat) > =20 > +#define __NR_fchmodat2 452 > +__SYSCALL(__NR_fchmodat2, sys_fchmodat2) > + > #undef __NR_syscalls > -#define __NR_syscalls 452 > +#define __NR_syscalls 453 > =20 > /* > * 32 bit systems traditionally used different > --=20 > 2.33.8 >=20 --=20 Aleksa Sarai Senior Software Engineer (Containers) SUSE Linux GmbH --yzaj6wzgrp7s4fka Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQS2TklVsp+j1GPyqQYol/rSt+lEbwUCZL/7vQAKCRAol/rSt+lE b88sAQD4KXrIzAlVFucJ7DKTnpNnoeGTRV9abqha7vz3S15u1AEAyRWUlgztrrwo TzhSTW+dH8OU6zKYNYc5IkSReIHxSQ8= =DIhi -----END PGP SIGNATURE----- --yzaj6wzgrp7s4fka--