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 1A4CCC433F5 for ; Mon, 22 Nov 2021 11:28:16 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Rvk4vsaNdHiLIA38F08DqdVtD8oeWI6MEIkykysUNTU=; b=1F5j8jIL46XWr/ Kc132g0xQEh7HiGaKrzQzrNuaUUK/6k0rcSWMH3h5WU5WFg6Nj5Gv405PgH9lhUHQ89dBJOQY3Wck Xn3ZxPmT51HMlW6GhI4Ap+aGAiBVWv1xoNlMIUgHDSUfl59x/sVzw/b9uw8OVsb0dPig2LUUVLTBT aydHBSj2u9iQxsrWH488A//qRtOn8q3ljftKxMli8n//MqlQsTxU0tI2vi1SGFvtzvy1Yd5oXgXUU D+12ID6nI2dakquUJc7FHTQmQC9k63ASun3G8H26VkBcCYRCoi45moKEqENwxetRrZEQZWzIb9Ap9 5ZTsFxIAr97AfsGsGlMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mp7SZ-00G2jx-Ju; Mon, 22 Nov 2021 11:26:08 +0000 Received: from smtp1.axis.com ([195.60.68.17]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mp6GH-00Fm56-I6 for linux-arm-kernel@lists.infradead.org; Mon, 22 Nov 2021 10:09:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1637575761; x=1669111761; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yJ5js0/XIZRubAMn4hN5cNt6fkJH1M2AaXvq/+uvKlw=; b=KN4Og8bBkI4ghHRcxdzz9FQxe2BSYexjo4OSuwML617Rjry4DzOBOBdz gHjKwrebpNVt2qadj3JFiDg5XIWhuEdGNux0/g2UmYyhrgNT0KHvBrSGO 8A4pgA4gGyV92mI0a0Ow3TffcpJbCKAnc2nJoCIzatbuYd9KQTg2c8Vde cpJa7PhJYn6oYEOV/o/n+7GcEiGHxPAdJTV0RIIRoWTUyHBqawi9gHizT 3FIeedmWVEl4Mc3phvOjIJiMpxyEaMKWhOejfI+DPQ4pfHDwuzcN338NY LMPUsWUj7XJsMtOqqBQyNOx+rLd7aQx+l6pldit4Eb8TGkgg9JsjJo2Ku w==; Date: Mon, 22 Nov 2021 11:09:14 +0100 From: Vincent Whitchurch To: Mark Rutland CC: "catalin.marinas@arm.com" , "will@kernel.org" , kernel , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] arm64: uaccess: fix put_user() with TTBR0 PAN Message-ID: <20211122100914.GA30695@axis.com> References: <20211118163417.21617-1-vincent.whitchurch@axis.com> <20211119130419.GA25912@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211119130419.GA25912@lakrids.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211122_020921_963786_6EFDF79F X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 19, 2021 at 02:04:50PM +0100, Mark Rutland wrote: > I think it would be better to use temporaries in __raw_put_user(), along > with a comment there, so that the requirement is documented and dealt > with in once place. Example diff at the end of this mail; I'm happy for > you to pick that for v2, or I can send it out as a patch if your prefer. Please feel free to send it out as a patch. Thank you. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel