From patchwork Wed Jun 1 17:13:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Catalin Marinas X-Patchwork-Id: 12867089 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 5CEDBC433EF for ; Wed, 1 Jun 2022 17:14:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ZZVK6V1CwdJNcuZ9wwVsyUYiwabIfDkiRVaUS2EmLno=; b=1zxmyubFl8Ng2u Qrq8EiaVUBDC8zaijbne09YbuN59FyCvfpl6LlMPwHVn2fRZmUCR3vMC9542iJ/3vDjTrpP3nsgF4 91q4kVk3iV7TCc26OJQcESdBuaV76H6clLlfVpnyEv/8b9DhHjNsVggTUS5kgCP35G0gxKyrd8Jjc xM+bolGM2LC9AoJfGbJGEwno+VqIkKFbviJuBZxHSSgAd+UzPbtMKpWJXVLCt1i+HxrdANTKuchPj bL0zevfeaCeEKRcr6ttGUbSqniOVj0ntdq60Oo9J+Wd/uSs28tPytcrDP7neuM7UlGwtNdzmTV7cX cvOf0vZOTrxPRuHYa6cA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwRum-00HFn1-Ud; Wed, 01 Jun 2022 17:13:49 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwRuj-00HFmB-DD for linux-arm-kernel@lists.infradead.org; Wed, 01 Jun 2022 17:13:46 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1080BB81AF5; Wed, 1 Jun 2022 17:13:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 882EFC385A5; Wed, 1 Jun 2022 17:13:41 +0000 (UTC) From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org Cc: Will Deacon , kernel test robot , Mark Brown Subject: [PATCH] arm64: Remove the __user annotation for the restore_za_context() argument Date: Wed, 1 Jun 2022 18:13:38 +0100 Message-Id: <20220601171338.2143625-1-catalin.marinas@arm.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_101345_621139_B3C1CF2A X-CRM114-Status: GOOD ( 12.93 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The struct user_ctx *user pointer passed to restore_za_context() is not a user point but a structure containing several __user pointers. Remove the __user annotation. Signed-off-by: Catalin Marinas Fixes: 39782210eb7e ("arm64/sme: Implement ZA signal handling") Reported-by: kernel test robot Cc: Mark Brown Reviewed-by: Mark Brown --- arch/arm64/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 0616ea3f1b93a99264d84f3d002ae117f6526b62 prerequisite-patch-id: a6fae0ce60ab032bd12f684b7c9dc885a5044e5d diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 18bf590dc1c7..03810a759f91 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -385,7 +385,7 @@ static int preserve_za_context(struct za_context __user *ctx) return err ? -EFAULT : 0; } -static int restore_za_context(struct user_ctxs __user *user) +static int restore_za_context(struct user_ctxs *user) { int err; unsigned int vq;