From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EAF04C3DA7F for ; Mon, 5 Aug 2024 19:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QMcB7PhofnR3QJhm5j9PvLH/K7OQu77lKAt5++u+MFU=; b=kYks3hj+B3wlCGVCMZwaKYCODI MWbgPhZ+lCirfw1gC926KVbnbv8Li6Qr8g7pdyzMKP6yK3iDf6vSMFYpvjfXKhsoxm0SXEyvDbK8K ixEai+E/Wc8BKQcpavpvbWdyGlgvkKXCa2jf/QL6WtOiERilocyLQK23WVYslRdM37OgifFRUwBPp BAim4O4t6b2uLwkKTiG61WZES71tzbrrwdYHYPhs8+Yt2VcKqq638nM7FqlgaklLDmb2yxFWDnij1 O+8uKpr/V2tM4+FDedIhg/7ewGBgyubnAQbuI9HpzYJToiPxmNkLHuY5XHpazK3W5Ff98IOHdAMFo Pxk13/ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sb3mu-0000000H5yX-1jHw; Mon, 05 Aug 2024 19:54:36 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sb3mM-0000000H5p3-3zNP for linux-arm-kernel@lists.infradead.org; Mon, 05 Aug 2024 19:54:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722887641; h=from:from:reply-to: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=QMcB7PhofnR3QJhm5j9PvLH/K7OQu77lKAt5++u+MFU=; b=d3soiTJyg+M7NQzvnPWri21udRL9RLWVOpzABG0oYWCN2MEZ12iKfN2za76y2yEgDjUmHr W7lHiNy9sOTzPHnKohb/mRZ+TVhIO7c6eKu/SMoJvfqpuW0obrWueZoQQYE9nYD5XPiURT QGwM0gKn1IRAB5PddpfyDjohvf1udaQ= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-519-JDnuY8mBNhiOQheAGsfQPA-1; Mon, 05 Aug 2024 15:53:57 -0400 X-MC-Unique: JDnuY8mBNhiOQheAGsfQPA-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EA6701956080; Mon, 5 Aug 2024 19:53:53 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.25]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1C8CA1955D42; Mon, 5 Aug 2024 19:53:51 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 475Jrm4I3885874 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 5 Aug 2024 21:53:48 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 475JrjfI3885871; Mon, 5 Aug 2024 21:53:45 +0200 Date: Mon, 5 Aug 2024 21:53:44 +0200 From: Jakub Jelinek To: Arnd Bergmann Cc: Rudi Heitbaum , Arnd Bergmann , Catalin Marinas , Will Deacon , Huacai Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andreas Schwab , Florian Weimer , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-api@vger.kernel.org, WANG Xuerui , Masami Hiramatsu , linux-kernel@vger.kernel.org, loongarch@lists.linux.dev Subject: Re: [PATCH] syscalls: fix syscall macros for newfstat/newfstatat Message-ID: References: <20240801123305.2392874-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_125403_068822_3213E2C6 X-CRM114-Status: GOOD ( 15.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jakub Jelinek Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Aug 03, 2024 at 10:12:47AM +0200, Arnd Bergmann wrote: > > Probably it would be useful to check > > echo '#include ' | gcc -E -dD -xc - | grep '#define __NR_' | sort > > for all arches between 6.10 and the latest git, diff them and resolve any > > unintended differences. > > Right, I should have done that before the original series really: > I spent a lot of time validating the kernel's internal changes for > consistency (which found a dozen bugs that were unrelated to my > series) but missed the unintended changes to the external header > contents. > > I'll do that now and send another fixup. I've done 6.10 to 6.11-rc2 comparison just for the Fedora arches (x86_64, aarch64, ppc64le, s390x, i686). Full details in https://bugzilla.redhat.com/show_bug.cgi?id=2301919#c8 On i686, ppc64le and s390x there are no changes. On x86_64 #define __NR_uretprobe 335 has been added, perhaps that is intentional, haven't checked. On aarch64 when going just after __NR_ defined macros and their values, I see: #define __NR_nfsservctl 42 #define __NR_fstat 80 #define __NR_arch_specific_syscall 244 #define __NR_syscalls 463 removal and #define __NR_newfstat 80 and addition and then #define __NR3264_fcntl 25 #define __NR3264_statfs 43 #define __NR3264_fstatfs 44 #define __NR3264_truncate 45 #define __NR3264_ftruncate 46 #define __NR3264_lseek 62 #define __NR3264_sendfile 71 #define __NR3264_fstatat 79 #define __NR3264_fstat 80 #define __NR3264_mmap 222 #define __NR3264_fadvise64 223 macros are removed as well (let's hope it is an implementation detail and nothing uses those macros, but some search would be helpful). Jakub