Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp974279img; Thu, 28 Feb 2019 10:50:06 -0800 (PST) X-Google-Smtp-Source: APXvYqw0VLSJBfGm1Apoq0LsMByvXoWO7MkAy/Gl6v1S4zNeZyNwMWZpN0Tc5d+YnTRCC+5ZaxfV X-Received: by 2002:a62:503:: with SMTP id 3mr1049911pff.176.1551379805942; Thu, 28 Feb 2019 10:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551379805; cv=none; d=google.com; s=arc-20160816; b=h320M+g+qLvPLZCdewz5AMcYoESWJfycPrjN0VOZy+M84VHhMk2snqHdpXOgoPOPKv jWfJbsein6b9nWxayxrDbY+2mMhHTkvKKkscyglzPqkDUWSgdO7k2opga7ckdZpc4+AG oh9DgMHGOy15BhPCJGQOWskWkDf+hClZL8H9iM9RsXI8N9XFKRFlkJlrkB1KKhwzGfys Z/wz4TLy0JhCmg7LxzdV/cMDI5wkiFlBnedTat27e2NbMi5eXpcgLPfDWU3e7EJoev/f oH/BejBJJmurjFJ7HnqBOCrpwOUOryyESLV16Xmm/ojirErPh3Bv1eYEvghRo5JNieGM WKAg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=U9jzcGrkFR9JA4vdI0WUCDVa/tUDktn+UBHymYKD9Zo=; b=K+y+qkVPaIgFjOXrsTlAyba/SvlxTrIeGrt5r/bDLrU1MwfUhvsbVLv8VCg6Yjr7T1 ZghpkPQ8cBc//W+m3x1OkLqxx4hh/DYC2P66Y/xbU/maG1nRhX/ETFYkjfExJLNYiNBT 4i2rAs2omYBIEvOjEsuo/jR/fmBldcSFLztzCvkizjMnVoeJ9i5ezskDxaETqEmJxBfJ QumD4LMwOM5HsMXRayKZg9eYCyNaAuQ9NMRBbR9t3NtzVkWKuZrXgBu7GnufabiX2XJU qEB47AbwW2swyvbW4qX5pS87DCbAnpxvouEGmsKHG7RycUHx83Ix5SBRn9fuqjsvMTWh i2MA== 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 ce8si20319053plb.395.2019.02.28.10.49.50; Thu, 28 Feb 2019 10:50:05 -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 S1733005AbfB1S33 (ORCPT + 99 others); Thu, 28 Feb 2019 13:29:29 -0500 Received: from foss.arm.com ([217.140.101.70]:52768 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727871AbfB1S33 (ORCPT ); Thu, 28 Feb 2019 13:29:29 -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 10E23EBD; Thu, 28 Feb 2019 10:29:29 -0800 (PST) Received: from [10.1.196.93] (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F094E3F5C1; Thu, 28 Feb 2019 10:29:26 -0800 (PST) Subject: Re: [PATCH v5 02/10] arm64: add sysfs vulnerability show for spectre v1 To: jeremy.linton@arm.com, linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will.deacon@arm.com, marc.zyngier@arm.com, dave.martin@arm.com, shankerd@codeaurora.org, julien.thierry@arm.com, mlangsdo@redhat.com, stefan.wahren@i2e.com, andre.przywara@arm.com, linux-kernel@vger.kernel.org, ykaukab@suse.de References: <20190227010544.597579-1-jeremy.linton@arm.com> <20190227010544.597579-3-jeremy.linton@arm.com> From: Suzuki K Poulose Message-ID: <2df6424a-cffc-95b8-1052-4a1acaeb4068@arm.com> Date: Thu, 28 Feb 2019 18:29:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190227010544.597579-3-jeremy.linton@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/02/2019 01:05, Jeremy Linton wrote: > From: Mian Yousaf Kaukab > > spectre v1, has been mitigated, and the mitigation is > always active. > > Signed-off-by: Mian Yousaf Kaukab > Signed-off-by: Jeremy Linton > --- > arch/arm64/kernel/cpu_errata.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c > index d2b2c69d31bb..ad58958becb6 100644 > --- a/arch/arm64/kernel/cpu_errata.c > +++ b/arch/arm64/kernel/cpu_errata.c > @@ -755,3 +755,9 @@ const struct arm64_cpu_capabilities arm64_errata[] = { > { > } > }; > + > +ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, > + char *buf) > +{ > + return sprintf(buf, "Mitigation: __user pointer sanitization\n"); > +} > minor nit: This could possibly have been in the cpufeature.c, where we keep the spectre_v2 routine. Either way, Acked-by: Suzuki K Poulose