From patchwork Thu Jun 20 16:23:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 805995 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp377928wrt; Thu, 20 Jun 2024 09:25:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHlb/GOh5SPl8NWbuGmzCFgtCNacrg53r+fyl0ZL2zBLZ671kzkcI9bC5wTwMZmk1OGSzc5vjohYG7IbzjJ1Gw X-Google-Smtp-Source: AGHT+IFGMNsIsdnfTkf2EjD4GphAujIrKbEUNHeaqqiRq3orLc03e2bL1nPFZ2BV8p/C/heOM7OI X-Received: by 2002:a05:620a:4153:b0:794:f330:6caa with SMTP id af79cd13be357-79bb3ed2cabmr643579685a.58.1718900707870; Thu, 20 Jun 2024 09:25:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718900707; cv=pass; d=google.com; s=arc-20160816; b=khfUX57M9ZpBNXFMS5zItI9Cm0t51HN5hoRd6H1w76RLemmZE5SB4SckF5/0eDLbbK 1+xDEVoWHpvCsNxT2ZXX2IrclDNcyMp+LZcbsiV9Lb/OAhjOlVSkEefkhf09+LIIcTVr yxBIPgXoUkskQzz0GTw/E6NlIgwprdCzSHP6cvh+q/TGVjy2khCUR9BVqUaxh+HQBZlU AGoYjMphZnt39AeM+oOYIdR53OH/F8SNoS2aHhtf7ekexX7B/wGmXph1xeQVb6LBph8N E8aItUTwkclfhneau2ujjalcOF5eSFo470pcOmMJSU1+QhPobHji+TTN6BHr8FGd2oYX dIHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=YEHbqKIiyC3eLQT9uksWn2Qm7LLoT768KKwHogHDR0A=; fh=xSIq547Z/8+2mwrThk5NmWwnmadq1eVmQ35PeXz4rpA=; b=p+O3vHGjUvRORiVpcghRJwJoavhcP80d9RNDI1oQMZ+l1Wu9dAb3U9UZVmb4rxIMY+ tlU4YSQPeHqsTANkH5p7IZcHnJRmGoj8lxyC0wm6v1PNW/d9kgUwcsQQDlAbMWEb8E4u lHhFBaBK9z3+Hj+5MbtrwPn8zRTjICyBbXQh9qb0V97/A5E6nayK0XV+rZFtSiUcrNhj cxJ6tKI54oBbEa+jTvJhM78DjPMSLIwMygwL7FnKFCY/+vpW2GOt0nk2alb2SsljyUru 0b7fK1rHALZZiRo+1KT3XT6doFZqvhdv405/usxgVMaCsa2/XcgvyG8fv9sSUSiW0cY2 CcZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HkyRLylM; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-798abe57c56si1850865685a.536.2024.06.20.09.25.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 09:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HkyRLylM; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 61CBC3894C27 for ; Thu, 20 Jun 2024 16:25:07 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by sourceware.org (Postfix) with ESMTPS id BFC873894C14 for ; Thu, 20 Jun 2024 16:24:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BFC873894C14 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BFC873894C14 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2604:1380:4641:c500::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718900645; cv=none; b=ZPrwuSNEc/aMveouvizSho3AGk8xhhsyaTHO9Vsu+wx9IdlySePBcWSFx6JrV6rFrflyzH8DxPZO3AMJ7rd3L3Aq9QFF855OmNFY+d31w0l30/XO+1N+PDHNiwvjmc4n3OUBq1yAd9L4D8uyfmBYYdJZSfRmmIPEkJTQ2Kzg7gE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718900645; c=relaxed/simple; bh=cJPHgO7rC0lwgzSVqzH0rTJpOL4kkIXZCXlrSaP+FJc=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=o5affleGjWlNgW07g2xNvP1Xm5kSVE4XkUt2x7gS2yLrv96EZVkmlT36b/kvw2Afus1hYKF8CC+eCghwDwTX5KGhNTb8zblEF3h/pxC3IVfumCEXg4p2XbuNptutsES7tSIz9rhzqPFY4DMy0ciEBIf33WaJ2XVknWzMMgPoOvI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 61FC6621F9; Thu, 20 Jun 2024 16:24:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFFD4C32786; Thu, 20 Jun 2024 16:23:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718900643; bh=cJPHgO7rC0lwgzSVqzH0rTJpOL4kkIXZCXlrSaP+FJc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HkyRLylMnXyv0WsxD8QL8vKVPSKro4BwCxwyewRoTfPdeRVcm1oChn7k8vYspR3wd yQW8rnIE0bv8kkbtAqaKqgPnepA6DcOCp3JMdTlAnT8RlKjsKi5K+r9OqT4HoFonmG f3kHhl3ZWTZMo4GtaggxJcXmFVjVUSUkiC4DBTES3UPVTq0B2sYkBQsRdANXLL6bIL SCHzW2/7J9RmI1gl2ED3xynQG4CCaaemzF9kz+POcz6T4kzugSs3WAtC5cl5ThjNaj oq/eswLVYZeUNXhiqyKfNJrn1nns2jlf4JSkYv7RCQh4XBBytNYAFCKzeahkxjiU8J nnR+Jle+gafYw== From: Arnd Bergmann To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Helge Deller , linux-parisc@vger.kernel.org, "David S. Miller" , Andreas Larsson , sparclinux@vger.kernel.org, Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N . Rao" , linuxppc-dev@lists.ozlabs.org, Brian Cain , linux-hexagon@vger.kernel.org, Guo Ren , linux-csky@vger.kernel.org, Heiko Carstens , linux-s390@vger.kernel.org, Rich Felker , John Paul Adrian Glaubitz , linux-sh@vger.kernel.org, "H. Peter Anvin" , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, libc-alpha@sourceware.org, musl@lists.openwall.com, ltp@lists.linux.it Subject: [PATCH 04/15] sparc: fix old compat_sys_select() Date: Thu, 20 Jun 2024 18:23:05 +0200 Message-Id: <20240620162316.3674955-5-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240620162316.3674955-1-arnd@kernel.org> References: <20240620162316.3674955-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org From: Arnd Bergmann sparc has two identical select syscalls at numbers 93 and 230, respectively. During the conversion to the modern syscall.tbl format, the older one of the two broke in compat mode, and now refers to the native 64-bit syscall. Restore the correct behavior. This has very little effect, as glibc has been using the newer number anyway. Fixes: 6ff645dd683a ("sparc: add system call table generation support") Signed-off-by: Arnd Bergmann --- arch/sparc/kernel/syscalls/syscall.tbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/syscalls/syscall.tbl b/arch/sparc/kernel/syscalls/syscall.tbl index b354139b40be..5e55f73f9880 100644 --- a/arch/sparc/kernel/syscalls/syscall.tbl +++ b/arch/sparc/kernel/syscalls/syscall.tbl @@ -117,7 +117,7 @@ 90 common dup2 sys_dup2 91 32 setfsuid32 sys_setfsuid 92 common fcntl sys_fcntl compat_sys_fcntl -93 common select sys_select +93 common select sys_select compat_sys_select 94 32 setfsgid32 sys_setfsgid 95 common fsync sys_fsync 96 common setpriority sys_setpriority