Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7451367imu; Thu, 31 Jan 2019 10:17:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN66GuUNwhlRG62rgpfwFiAT+AfN0GUTJlsHRnktRuN0s65ko5oaeq3KEBvm0m8MR7XH1jCO X-Received: by 2002:a62:9657:: with SMTP id c84mr36700719pfe.77.1548958653202; Thu, 31 Jan 2019 10:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548958653; cv=none; d=google.com; s=arc-20160816; b=QgCx+JyN6mCVDBsbDWzpt9Y8ccktAHVZfpN9fAL+QYI+i1CWYA6FaLXPQtlKAg50HX IRSbfkYyN/6Ib3Ou4oQkkK3uimO4uoYImYB3XE/lwYwhbW8ynAbYpbZcSk08nYNOAXYu 0ay+DmmXsTbOUBVz2B/h5sgVYZVQAEUmcc8IYgOhMs6BIAG5Xx4KXRb1PXRokFC+axS/ Tk8NfSspJZ+z8ypOCUb33lB3oRjRv35eONHuXg5NhnWFTLE6U8sj3Hsmt17msojsRFGr sJJOpU23tDOKJiB1NhFS+RZgHUB5VnrqrzGlXE2pHIvNyIESXeYhOI2LNSPjjg/w2bbM EsaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=V0czfVxm/W0Dz4nwCuH8beIoShNkt8F8SwQLCTOEjOk=; b=Besy9A5HH512QGEnYKSG2MITutUAwagUCmqX+xgkscJdMkNuWIBd8wqgCpf7gioKI+ KI7Qfkbo+4ur/tzob+IFthjZwkAE74WyQEvS4Jgg+qgk/4n2BMvc2X2zVEZ42GcKxHjy QkFQw1UnvmKU+vxcD0A7VMpRu3avHZdqLHHoBx+8j/g/4q3SS3PRwBX9NdI5pkOiUrRA CU/IaR6S3PEzqPOOo1LZ2vSd2scaswH7Rc+vAaNWv4hWbec/3pZIhyDOzmNLMMdlZmUX mua8u1RSBTE3RqSnqzHYi/GrFnKy4uFeY+RWnGD0Q4heEY+Z/JUGdJwxxR5a8vd078I9 S66Q== 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 e2si4829478pgj.316.2019.01.31.10.17.17; Thu, 31 Jan 2019 10:17:33 -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 S1727270AbfAaRyn (ORCPT + 99 others); Thu, 31 Jan 2019 12:54:43 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48818 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbfAaRym (ORCPT ); Thu, 31 Jan 2019 12:54:42 -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 E59DFEBD; Thu, 31 Jan 2019 09:54:41 -0800 (PST) Received: from donnerap.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 806C13F59C; Thu, 31 Jan 2019 09:54:39 -0800 (PST) Date: Thu, 31 Jan 2019 17:54:36 +0000 From: Andre Przywara To: Jeremy Linton Cc: linux-arm-kernel@lists.infradead.org, stefan.wahren@i2se.com, mlangsdo@redhat.com, suzuki.poulose@arm.com, marc.zyngier@arm.com, catalin.marinas@arm.com, julien.thierry@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, steven.price@arm.com, ykaukab@suse.de, dave.martin@arm.com, shankerd@codeaurora.org Subject: Re: [PATCH v4 08/12] arm64: Advertise mitigation of Spectre-v2, or lack thereof Message-ID: <20190131175436.1c24f7b8@donnerap.cambridge.arm.com> In-Reply-To: <20190125180711.1970973-9-jeremy.linton@arm.com> References: <20190125180711.1970973-1-jeremy.linton@arm.com> <20190125180711.1970973-9-jeremy.linton@arm.com> Organization: ARM X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Jan 2019 12:07:07 -0600 Jeremy Linton wrote: > From: Marc Zyngier > > We currently have a list of CPUs affected by Spectre-v2, for which > we check that the firmware implements ARCH_WORKAROUND_1. It turns > out that not all firmwares do implement the required mitigation, > and that we fail to let the user know about it. > > Instead, let's slightly revamp our checks, and rely on a whitelist > of cores that are known to be non-vulnerable, and let the user know > the status of the mitigation in the kernel log. Yeah, this looks better, I was scratching my head about that blacklist already. > Signed-off-by: Marc Zyngier > [This makes more sense in front of the sysfs patch] > [Pick pieces of that patch into this and move it earlier] > Signed-off-by: Jeremy Linton Reviewed-by: Andre Przywara > --- arch/arm64/kernel/cpu_errata.c | 104 +++++++++++++++++---------------- > 1 file changed, 54 insertions(+), 50 deletions(-) > ....