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 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47BA9C43331 for ; Mon, 11 Nov 2019 16:36:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 151E020656 for ; Mon, 11 Nov 2019 16:36:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nejGI9x7"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sirena.org.uk header.i=@sirena.org.uk header.b="uKDt/xQY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 151E020656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pSS1fVt2ocBDI1b16tQfU7th/NvIaFIqP/vPlmdAMvU=; b=nejGI9x7Qsj618fLxHc5YlhTK ZxjoM110U+Y3YOChVV3sA8cNClqBucnrGVuE8UOOOz5kKjHP+8AxNfjQMqP26Pbj4PKCrm1OV8gvm aBW+sREIUsnJqXp2YggEVxzxvcSEIT35pttU8x8GUJ2KTERPa3TiwhJFpHnLVWg6fF0AB50fXoSOU H28XYodlfGYcHVeeSq84sM884JFgVGKeA9KXp6GCPjeSiZL8Pj5sUIcYa794Awx7U1MzeVSbx2AV5 W7A18XurCT2aHpdlCBfAsOQe+HzmhWajqvdfXpBTgJpYceSIBWUa7DEp5qPwgaeKqwJropLPwFV/1 PtqU4g4FQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUCgC-00061H-NU; Mon, 11 Nov 2019 16:36:40 +0000 Received: from heliosphere.sirena.org.uk ([172.104.155.198]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUCgA-0005yQ-Aa for linux-arm-kernel@lists.infradead.org; Mon, 11 Nov 2019 16:36:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ysh8iLASKNMvvIk81nuKjJQ5Ep+vyf8gCTkpYfjCNPo=; b=uKDt/xQYNwu2/K3qErpdOaR95 zsaWOggnMBI9fyTuaevWMHWIGpNx5Gg8dLBRAC59mp5nZrTD83iV47I0qiBqIPrm7UZ/yZM8FDvHs 8IkxIBi+TCga0RYn581U0VY0tZ+/22uZ8OSWZ0vl5fBRY9EGh2/q+adFtUOcK+BhPY15k=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iUCg3-0004zh-9e; Mon, 11 Nov 2019 16:36:31 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 26C3727429EB; Mon, 11 Nov 2019 16:36:30 +0000 (GMT) Date: Mon, 11 Nov 2019 16:36:30 +0000 From: Mark Brown To: Suzuki K Poulose Subject: Re: [PATCH v8 3/4] arm64: Don't use KPTI where we have E0PD Message-ID: <20191111163630.GB4264@sirena.co.uk> References: <20191108170116.32105-1-broonie@kernel.org> <20191108170116.32105-4-broonie@kernel.org> <5d846391-8d16-4b85-a83f-b48e636e2834@arm.com> MIME-Version: 1.0 In-Reply-To: <5d846391-8d16-4b85-a83f-b48e636e2834@arm.com> X-Cookie: A lie in time saves nine. 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-20191111_083638_364567_665605FA X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============4224507007670465398==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4224507007670465398== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="K8nIJk4ghYZn606h" Content-Disposition: inline --K8nIJk4ghYZn606h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 11, 2019 at 02:36:34PM +0000, Suzuki K Poulose wrote: > On 08/11/2019 17:01, Mark Brown wrote: > > + /* > > + * E0PD does a similar job to KPTI so can be used instead > > + * where available. This will only run before the cpufeature > s/This will only run/This will run/ ? Both with and without patch 4 we only check this when cpucaps aren't ready - with just this patch this is done in arm64_kernel_use_ng_mappings() where it has a check for caps being ready prior to checking if KASLR requirs KPTI, or otherwise the checks are from the cpufeature code while it's running. With patch 4 it's only called from the cpufeature code or =66rom the early init check. --K8nIJk4ghYZn606h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl3Jjg0ACgkQJNaLcl1U h9DxsQf+NE/9BgMos2F0h+ZFRdPU8r40/lln4l9Kw4bisxWoDfV80E1cJB2N1qi2 ZDxABYppeY3bxmlcUKmAYOEef1ThVZkOxTbscepk9TyRft3UlGdrsRwbJL+KrwZi hja4Y/URSzmR0recbsyqTY+ZucdLdBsgVcuakm12d5GD1NtMJ2aTcBl/ir31wUhi Sj2KhnGOKdfxh26OWwLPzAyLy4UlpY1IBK5nwVUj7rFmmXhBbQfSffEPjVUQyZEz pC3qUOoXqi+Xe/WyBW7F7Spr5JYFsZmJILxg5VfRxy4nLW88zNlldiL6ESVG4uYT MPHxiljlD0pu30JnaHSb3JdaaUqddg== =SdFx -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h-- --===============4224507007670465398== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============4224507007670465398==--