Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp744579imu; Fri, 25 Jan 2019 10:10:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN4vYF/LDf1PRSY7SgMEgcN+hcJI7q4Z3BuqhxhKc2IAj1j7TA+5FyxG9bfPju7o+r9w9Nef X-Received: by 2002:a17:902:622:: with SMTP id 31mr11769596plg.171.1548439822780; Fri, 25 Jan 2019 10:10:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548439822; cv=none; d=google.com; s=arc-20160816; b=qsr11W62VoOomn8Q3smO0Nk4bOZfmLaR4HLo4PuyBYUtTgiTzTZs5VLmRUTo5fQl3H XR/A0lgf4+VktkzyWNVATG0JauXM8V01KH1UZbTvU9fw+joFTbwVxjVefwUVrMQG1MS/ 5kvLHGmvHDqIkcC84qQUIhHpoXnXfuDoXTO6GItd7D6+TqwVi2vGEahlXmKAcVvKmXPj OUoeiokGjetcV0KHOHU58hUB5488brtd+u41wVsv8HaEnbVe+lMj8AQLSSXNWFTYEy/f eK4ytO48FzJPHg82b4T5mixaZ9b1f/yhwlkIaTZUU42RjGu7DqXP5xzsrA0GpUGKdV5X nDaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=nF+GGGJ8GcCBvVvF+LD7PeKGNYChWMtGWk2M2z9K798=; b=Jwp7QSKKGDuWCF4nkGNJrLn2czJMiHr38vdE2CPupxs7okF7qW5669rMF2Z1Zlq0xV 4qmLoQKN98Nb4YVdQ+esyfehdcxM2kFxpDWdbqdhVaBzAzzr/FvZBnkjXb2WwUNbcStj 74pd0j0xniAeoH/ZdUZiEAgVAs/GP2OmwjBqV2lwRFq3/PM4Afq+dYPLs9dvXa5J8kOZ 86+I4wJ0NKQHT8jbS6489Vx/u5lvcw1y6U7sAy63iHE8ZjkIyYTmwS3UDVZ6ZPAh/jG8 ZepkqLZLk3TiIaSKocjbQ3iY5cbZTyiGrs9IP1SAliZtntc4/f3N7zZVaValER1eytUC z6fA== 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 c9si6032707pll.439.2019.01.25.10.10.06; Fri, 25 Jan 2019 10:10:22 -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 S1729486AbfAYSID (ORCPT + 99 others); Fri, 25 Jan 2019 13:08:03 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51826 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729322AbfAYSH2 (ORCPT ); Fri, 25 Jan 2019 13:07:28 -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 E82021650; Fri, 25 Jan 2019 10:07:27 -0800 (PST) Received: from beelzebub.austin.arm.com (beelzebub.austin.arm.com [10.118.12.119]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 446F93F5AF; Fri, 25 Jan 2019 10:07:27 -0800 (PST) From: Jeremy Linton To: linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will.deacon@arm.com, marc.zyngier@arm.com, suzuki.poulose@arm.com, dave.martin@arm.com, shankerd@codeaurora.org, linux-kernel@vger.kernel.org, ykaukab@suse.de, julien.thierry@arm.com, mlangsdo@redhat.com, steven.price@arm.com, stefan.wahren@i2se.com, Jeremy Linton Subject: [PATCH v4 06/12] arm64: add sysfs vulnerability show for spectre v1 Date: Fri, 25 Jan 2019 12:07:05 -0600 Message-Id: <20190125180711.1970973-7-jeremy.linton@arm.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190125180711.1970973-1-jeremy.linton@arm.com> References: <20190125180711.1970973-1-jeremy.linton@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index de09a3537cd4..ef636acf5604 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -730,3 +730,13 @@ const struct arm64_cpu_capabilities arm64_errata[] = { { } }; + +#ifdef CONFIG_GENERIC_CPU_VULNERABILITIES + +ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, + char *buf) +{ + return sprintf(buf, "Mitigation: __user pointer sanitization\n"); +} + +#endif -- 2.17.2