From patchwork Mon Jun 24 16:37:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 807053 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp1970461wrt; Mon, 24 Jun 2024 09:39:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2hI7wfhD53HM5zW84GWtHYJOrPmECvkHldxbRL3dT0IZExdQePXOsf8qYekz6EdPf7cBcFR5Vk74RM8eLgh9v X-Google-Smtp-Source: AGHT+IFIFvoaVCJlvUopDynPZ9XwCATNPKdTFHoYZA7fgRI1euMLXimkhQIQVWtTpgrZ63GOhgpn X-Received: by 2002:a05:622a:130f:b0:441:1452:131f with SMTP id d75a77b69052e-444d649c4e0mr66412281cf.16.1719247167489; Mon, 24 Jun 2024 09:39:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1719247167; cv=pass; d=google.com; s=arc-20160816; b=sH2y86WqPmbadzrmZgDiJgMcNXzz4ADaJyk1fjE06fB0yTDuEcMaIugVNSxeS+Trry 6ABabdhdG4NLs8E9h+Nmwp23BD+UHSh9IjbA0DGPskRWSZMqx5l4kZ5vl5fHLtLO0hcw NCsXbC7HM1ADh0LqMMaMZzfajRaNbyLQe3IX0oDJ3TaeudDWk8i+ziaXBP37uIfpZck8 kUjqEpq0E9ZpmKj0w2zPoO3huZ6JVPqcnK/TjR4PqeddNsnx6aXtsKuK1wD/8qBykKNX wIhfHPlSVG7si1//JIqLdfUN3yYwjmLYPQQE0uv/c/TrmXOdJzCy4XBAwGakl67PwjEf C9Bw== 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=/Leaim49jCG8ThqCg/tR+89kmuUv50DlIGS8+FtXxW8=; b=EsaIj8C+8nVCKeKQVwvjuVKAILKrZ6KtumEYoVaFPcKe/KvVelmRMegVRdPPX/1/0J M31n8PMHoZU0Lj/moVzpVV1ttzdF4nqFDBXtKJUmy/OUiHFvIajsO8HMNRIsxRZKr1PU GQ2P8q0wqyBuOeF1QuZZoEtgRg2/9gs23NIMx5AdNoD2zlhQsDN0tKIARyOGGFeSRsqw sy8QhPX1S7/+PlLQWB7C/VDN8seKbvPLfk1UUWxxSzKRFL46fdtj8Q1g9nVc+UY0sUCY Dhl0Be32VyKut+e5/l8Z97WIeH9Zo+OP0C2bhpDEM6qLtHyq+MOaRXW2YEDsxhPUmqrG eqsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uwn+jGCU; 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 d75a77b69052e-444c2b70f58si82610271cf.206.2024.06.24.09.39.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 09:39:27 -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=uwn+jGCU; 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 23076384AB56 for ; Mon, 24 Jun 2024 16:39:27 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by sourceware.org (Postfix) with ESMTPS id 5A50F384AB52 for ; Mon, 24 Jun 2024 16:37:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5A50F384AB52 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 5A50F384AB52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=145.40.73.55 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719247064; cv=none; b=mAlfbbQKiyUlpPEqW4RGYgjG87Qzba4tC9WeRN+oxe8DIO/NdBb+oqnBGJVkJ1oH6m6+vKMrd/8aOKRsW6/sPRrF8Hd/Qkz1ivPh+AjG9CYSfjKGvmb1+N+OD1BeVTQedz6Xk5H1ZmMFr4fzTqiryID5oGvwU2B3DWauPDT1GxM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719247064; c=relaxed/simple; bh=cJPHgO7rC0lwgzSVqzH0rTJpOL4kkIXZCXlrSaP+FJc=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=gg8GQTtVL/KO71F5XbUxe1V0wnMP5I/hewzf/G0y1/KIV4Lav9JXEsmuNN237dbQE5rMlQEVgKBiwdw1Hu5RTtUe+J8qKdU900HNNtlO+VgJ8an1ahrdTs37nlM6uC01q6Fu/JCInX4/vWbOYBC4MflSuQj3LxwqEULFUQsIXAc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 6499DCE1347; Mon, 24 Jun 2024 16:37:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E363C32782; Mon, 24 Jun 2024 16:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719247059; bh=cJPHgO7rC0lwgzSVqzH0rTJpOL4kkIXZCXlrSaP+FJc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uwn+jGCUC3yfeHdr61T+R7qdpp7FtgKCRvyBo2uwU9O8wKwov+G6fl9loxbYrfqug 0T6Js/X7H2q61DSlRIPr4w8OB38apm8CWjNpUWrRx79AQZShrNcEk27UBDHfmgWYb3 pRabFRMmRSwHdCpeJRda6lIYrtM6QwCtmL8VC1jUjN9o258tf3w+MQor+GkMrwKMPk 0O4uDPBeD8fo+0Dpfp87EEcbPVcLEkZLC9SRvqxt56F6WMn6+CkvBUe0dvtpcngVG3 AUsNbT19IslMHtlvnF4KXjzBPZgqO8HsGtTrZVqZbf2zNhu14tg3iGC1E8WDctygF+ xg8gIbf+mqW9A== 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 Subject: [PATCH v2 03/13] sparc: fix old compat_sys_select() Date: Mon, 24 Jun 2024 18:37:01 +0200 Message-Id: <20240624163707.299494-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240624163707.299494-1-arnd@kernel.org> References: <20240624163707.299494-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.4 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 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