From patchwork Thu Dec 6 23:44:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 153078 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp527ljp; Thu, 6 Dec 2018 15:44:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/VorN8PZSyb5TLCawIxUasg8+8KB2l9E5grUNaTHiy94B7pb9M9kZFGCph/ZZx4bBDW2Xaf X-Received: by 2002:a17:902:680f:: with SMTP id h15mr29610849plk.40.1544139887726; Thu, 06 Dec 2018 15:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544139887; cv=none; d=google.com; s=arc-20160816; b=CMRLzcdSmtwWca17Yb1nUhlYdJbFTFU6iR/l/nEsCp7IkBjx/sbCUynB91hcxMKIlR jc1t1DClnjGag42jbznCppvXB9D1ljSla6arNJ6fMRDJq1iTreX0+o7KX4L31brsTFXE 5BfCh0gJ1Ok3fx1pGmU87pt2SredzWqGK8inSvT0oifnIRsVmLepzxoP4XEnN2LiNrF0 0uC88uqV/wOXslFV2676L4IKDH8ECDZRUGv+4FL7cw8xZLiBhWDNsUoKmNbnKmJvNGtM nhr5tRmykEbpMKltKiK+HqXSTU3h2iN76cpB40KdNkbpQlrJtX0fMI76eHNbv0hXwYVD Asrw== 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=jOkFh2hnVm2Oep4QkfIgo3PdScpFFBqFauEaHEmTjaI=; b=Md+2QA8vyzeSxUfQY/llLZzCBI5oghRjLUCrUQ4SLvYu0UKhj+DdA2k623Ob8SJv+A TK9AjiM8agbfJJ0jnm8AUm3ZfO9wBeJJW0DVehmdp7b7c68DorC5SX9aFJzi+5w+6D/o XXMsDyernT5nli6kJYx+tLCaqyuVjfTJrboMEfHrM6ZT+mEGsTkYCvypm3lT9JiKLshj CgBgLEgelQRkoIy0LROeeyfRJB474ctGEqbKnx0XSvsrrLqa+ISUA1Igf49aqXXwMW/I QcQyk1IMGJuihpCndCrG2EGQM0wLrcJ3b1iTXq1JeCHNV5s7n1axTte3uViIuAvJhsEH 9dBQ== 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 p3si1373925plk.424.2018.12.06.15.44.47; Thu, 06 Dec 2018 15:44:47 -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 S1726432AbeLFXog (ORCPT + 31 others); Thu, 6 Dec 2018 18:44:36 -0500 Received: from foss.arm.com ([217.140.101.70]:35918 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbeLFXod (ORCPT ); Thu, 6 Dec 2018 18:44:33 -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 49CD71650; Thu, 6 Dec 2018 15:44:32 -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 B453C3F5AF; Thu, 6 Dec 2018 15:44:31 -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, mark.rutland@arm.com, linux-kernel@vger.kernel.org, ykaukab@suse.de, Jeremy Linton Subject: [PATCH 3/6] arm64: add sysfs vulnerability show for spectre v1 Date: Thu, 6 Dec 2018 17:44:05 -0600 Message-Id: <20181206234408.1287689-4-jeremy.linton@arm.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181206234408.1287689-1-jeremy.linton@arm.com> References: <20181206234408.1287689-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(+) -- 2.17.2 diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 6ad715d67df8..559ecdee6fd2 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -757,3 +757,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