Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp257164ima; Fri, 1 Feb 2019 02:53:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IZFWCNeLKWLvEgQHSTtnFLGhhZUeuIrVnGJtIna/lIXzx2u12PLkqvByccm/fDvzo69SOfD X-Received: by 2002:a65:6298:: with SMTP id f24mr1762385pgv.183.1549018434535; Fri, 01 Feb 2019 02:53:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549018434; cv=none; d=google.com; s=arc-20160816; b=wd48Tqh/UzgS6pfUSxg2qk7IHSI0BNKeWE/49PBjANN8+5OUdWcsKdmFrUZgqXwdZ8 Fq81cn1cLwkNx4Llv3jP0qMp8hQaOgsZ3/Vhs5Fo0bYpbzC+t1vf7nOZNiiiC9EwYapb T/oAF9113da8KNL56gadjqI1T6+glAlHmJNd/wrBU1Abzp6HiEvFjCBQ2uS/cuCfS/ne yPhBogh2YR06NTEtUprHcWQE0pKRGcxmcR1fq5QkPwHsYpK5QODquZT0gOifWkUpJpqw kzxaIDNUoE7g02d//S/yNWmRESnjgZZUvoLX3iyt7Z+wYu0LVHvJqZv7NTLia2RS3Nxo V4Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=F0K+jxhiv5WSUotXyBMaM3M5VU+NmUsp22nE6gIs2oE=; b=ZI6jsjr6KzSZWHBZLbT17i5apj8Ysmpql0EmbqKgRnzWBsZ5Jp/oaVpSnx/8EFXY6f RQKBJFV5ifPEA7nLXWsoopkJXZXnSKVwVcIHu3LXiZyp3hhajysitzdipRLYgn3uxvs4 1hivs3XFH6dEAhgCgtUkp8ecAQgG6tOy2iKxKKMhwsRZYDkHxddcd1OdBYpnw/74tLlw pBBRgtXmn9iJ7QLP0MCB5EBdjlFubvFGdih0K4G9UsOUjfbvr9mozs8QJJdQdNpG8R0a OU8Qi66nLsistf75EOxiO0YbrqKxD1kKaTywGtqaEvsGhCY2SW1tVhEgae3CDCTODZgl 5lXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si6996128pga.407.2019.02.01.02.53.38; Fri, 01 Feb 2019 02:53:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729914AbfBAKvz (ORCPT + 99 others); Fri, 1 Feb 2019 05:51:55 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57826 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729451AbfBAKvz (ORCPT ); Fri, 1 Feb 2019 05:51:55 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD6B280D; Fri, 1 Feb 2019 02:51:54 -0800 (PST) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A82B3F71E; Fri, 1 Feb 2019 02:51:53 -0800 (PST) Date: Fri, 1 Feb 2019 10:51:44 +0000 From: Will Deacon To: "Zhang, Lei" Cc: 'James Morse' , 'Mark Rutland' , 'Catalin Marinas' , "'linux-kernel@vger.kernel.org'" , "'linux-arm-kernel@lists.infradead.org'" Subject: Re: [PATCH v3 0/1] arm64: Add workaround for Fujitsu A64FX erratum 010001 Message-ID: <20190201105144.GA27140@fuggles.cambridge.arm.com> References: <8898674D84E3B24BA3A2D289B872026A6A2C04E6@G01JPEXMBKW03> <8898674D84E3B24BA3A2D289B872026A6A3090AC@G01JPEXMBKW03> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8898674D84E3B24BA3A2D289B872026A6A3090AC@G01JPEXMBKW03> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 01, 2019 at 05:53:50AM +0000, Zhang, Lei wrote: > > -----Original Message----- > > From: linux-arm-kernel > > [mailto:linux-arm-kernel-bounces@lists.infradead.org] On Behalf Of > > James Morse > > Sent: Thursday, January 31, 2019 12:00 AM > > To: Zhang, Lei/張 雷 > > Cc: 'Mark Rutland'; 'Catalin Marinas'; 'will.deacon@arm.com'; > > 'linux-kernel@vger.kernel.org'; > > 'linux-arm-kernel@lists.infradead.org' > > Subject: Re: [PATCH v3 0/1] arm64: Add workaround for Fujitsu A64FX > > erratum 010001 > > > > > > e03e61c3173c ("arm64: kaslr: Set TCR_EL1.NFD1 when > > CONFIG_RANDOMIZE_BASE=y") ? > > > > So you'd never see it if you disabled CONFIG_RANDOMIZE_BASE? > For security, it is necessary to set CONFIG_RANDOMIZE_BASE=y. So I guess we should boot with NFD1 clear, and then set it only when we realise we're not on an A64FX? Will