From patchwork Mon Jun 24 16:37:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 807054 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp1970867wrt; Mon, 24 Jun 2024 09:40:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/MF3zMMXR/bRZaBdskukxR7lZGJNuIzPfbdkiJcselQ2JzIlLnfdXHIlkpAfS/h66KXU8wjcecpYCP5SmZRnS X-Google-Smtp-Source: AGHT+IHGv2/RV+0ZwxRe2PbjMEvcAdw/ukVO3vHmLPbrmmUPTeWbZMnvKUNMcQBqo4sPf9xBHWJw X-Received: by 2002:a05:6214:2ccd:b0:6b2:d87c:c6dd with SMTP id 6a1803df08f44-6b540aaa456mr48632036d6.53.1719247222169; Mon, 24 Jun 2024 09:40:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1719247222; cv=pass; d=google.com; s=arc-20160816; b=gMps11V+bgPlyl3VMc3ond20j8vUyixVZJTO2p49A0knOrTdtRAkRaEpDj8BtGAl8j ymUJonrR2M+kbcUNGSzR/39KNDhgGYpk2ocOS32SpGtPyh4fDrLEuGrWgp2r0o48zPih yi4Qb+kodGKml++IdjCDhR9hzk1JrxWqfPZaaZBVzNYdn4zR/qYtLlluD4yebsR7Bl02 EHrKva5LYlU2YxhiRhL2LXCWp1XT0EAUir9TD1Lz+3ioaV4xzEkid+TVAnxXcNDf+Ify dZOsbZdgrmpYO07CHwTIIRdC7EHM1YZS4SSAib6LOy1Xr7z32+gT8Enku4uW5lUfP5IO naHw== 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=Q5YS1AV4HrgGI3KFWJzY/+p+3pyVKe7oVTiY/hzFEnU=; fh=/Leaim49jCG8ThqCg/tR+89kmuUv50DlIGS8+FtXxW8=; b=kA96whh+wVMHlDDuXuOdFM4Mbo7MO5CHaG93vmNdVZzb5fD9tFGT421LL5SB4ojkze wbVwiypPBxQ7o/ilifXLe5DybG2CMrsjK+j4XdbQ2I72R4HTpLL5Z1PVoXJKEcx9mody XcXSxICFt4b45N0TRNwmhiy6HkWuURrU1xGkHv8MZ45sdyz/aDKM1FXDehFikAs9QEj2 h6l9SLnjIqDoMVsDJU8AD+liN0mMSunBQzRM2npzXashtDC72HuEX5mRSp007RjfSn4Y U5D9qDl3ryt+a+7xjsIibtKOBHG8TWhp5PLTgI5U4VdS2fMg/MBTnCv1/IQ9+/paIggL Lw8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IKA9rFeo; 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 6a1803df08f44-6b51ecf246esi89760036d6.14.2024.06.24.09.40.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 09:40:22 -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=IKA9rFeo; 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 C8A74384AB44 for ; Mon, 24 Jun 2024 16:40:21 +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 [139.178.84.217]) by sourceware.org (Postfix) with ESMTPS id 49A0F3858427 for ; Mon, 24 Jun 2024 16:37:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 49A0F3858427 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 49A0F3858427 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=139.178.84.217 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719247074; cv=none; b=WDTcQED/MPr2NTtwwtH34SH+ZVbh8DW/DD6RJ8rW+SuBAYoQOw84HPu0crEjHVCON52H3zpPVW5dFJIbtyDe3Toyaz/bv78GsO0X7MtniMxTNO8C1fbMqe38rx41D/GFh183FKdr/BUMX3x/luP9LMwRF0k3YF6d4qlBaKW8Zwg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719247074; c=relaxed/simple; bh=uXEcxQ1FBzwRpqEeAQBWAem52gb/DEAY3efxRFChZrY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=P4BkXwnBT143W1BM5EyanxVy5l4fwlNyqrjgoox7joqNHbBPd5mKs6EYzV+0bz/uiPaiz9x+cL63Y0ffAxOo0qRlquRHE/5Or59Egm4KsCxgGhcAxrHKf7NOtJxE8eZTvcF7vnbhnHCh+3RAenJK9DHTKC9QmYOjhPA8rHiw6lQ= 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 DF7AC60DF2; Mon, 24 Jun 2024 16:37:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95776C32786; Mon, 24 Jun 2024 16:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719247072; bh=uXEcxQ1FBzwRpqEeAQBWAem52gb/DEAY3efxRFChZrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IKA9rFeojnOnVeQRY2swQuXdfxFb6A/vAU6OCW+E2IRVfnnxSk2zg1FkmlLzg8TXa PyQJ0kdyvqQSLjFrtIjLVt0Nj0zEQq5oExHbukLIX7ZrVCcTZttZVzIoJ2O8MqYyX2 k2Y0GGI6r89CtrF4hV5ZOTh/HATRebuGBw2pScM1PnHNsJiWglHD8Y1uAz/skNPzTP Dc/t0CtHfJSMdr0UtzyUqYCHvo1UleTmR1UWNGYszEVz9r/w76G92ED0CkmKNeCPgS S0UNZ0G1s8WMo/Snu6rdLlaNPRDcOKaomFXMIgbhlD/hVkX387ybj3RcQ8X/e0qcUb kcoerCtPfPCUw== 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 05/13] parisc: use correct compat recv/recvfrom syscalls Date: Mon, 24 Jun 2024 18:37:03 +0200 Message-Id: <20240624163707.299494-6-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 Johannes missed parisc back when he introduced the compat version of these syscalls, so receiving cmsg messages that require a compat conversion is still broken. Use the correct calls like the other architectures do. Fixes: 1dacc76d0014 ("net/compat/wext: send different messages to compat tasks") Acked-by: Helge Deller Signed-off-by: Arnd Bergmann --- arch/parisc/kernel/syscalls/syscall.tbl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/parisc/kernel/syscalls/syscall.tbl b/arch/parisc/kernel/syscalls/syscall.tbl index b13c21373974..39e67fab7515 100644 --- a/arch/parisc/kernel/syscalls/syscall.tbl +++ b/arch/parisc/kernel/syscalls/syscall.tbl @@ -108,7 +108,7 @@ 95 common fchown sys_fchown 96 common getpriority sys_getpriority 97 common setpriority sys_setpriority -98 common recv sys_recv +98 common recv sys_recv compat_sys_recv 99 common statfs sys_statfs compat_sys_statfs 100 common fstatfs sys_fstatfs compat_sys_fstatfs 101 common stat64 sys_stat64 @@ -135,7 +135,7 @@ 120 common clone sys_clone_wrapper 121 common setdomainname sys_setdomainname 122 common sendfile sys_sendfile compat_sys_sendfile -123 common recvfrom sys_recvfrom +123 common recvfrom sys_recvfrom compat_sys_recvfrom 124 32 adjtimex sys_adjtimex_time32 124 64 adjtimex sys_adjtimex 125 common mprotect sys_mprotect