From patchwork Fri Jan 25 18:07:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 156630 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp653016jaa; Fri, 25 Jan 2019 10:08:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ARFzBvFpj1qYB5tgp2Xeyd98OndE9t/fs8/WEPvgrygd31IsafVqobaSkro7KGpoytueI X-Received: by 2002:a17:902:45:: with SMTP id 63mr11569087pla.272.1548439686010; Fri, 25 Jan 2019 10:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548439686; cv=none; d=google.com; s=arc-20160816; b=AqasAFu6Fgvw6SpZcq+ZH0JtpeXilA/fgDu/wt+xio/VF/3xSNh7e8V/wUsRgp8Jrr X/dYzt3Ui5tUmLuFElpgzATeBQ9ptrGjag5YuFO9Wiv36USE1hIm9S+bDG9yQMUVlf68 pfFXBVvDasTgIvjAuLv1Tz6pGRQtsjJi8StTkHbHwhFiyKwGOTd4McLKYHA0wnMXYZzz 8Pt33G2qmoemwbQTT+CMt6Yv2xCjENo7mvlxU7406zLJdyvTHVZzNrWDkkO0AcKTktT9 Roy/xGZd8TBG3zuQHpY8FN5YfxYr5XRrWsgCOaWFcrqOX72cLjF7OO8uSyw42Yudh0Nw 6mqA== 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 18si22239520pgo.331.2019.01.25.10.08.05; Fri, 25 Jan 2019 10:08: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 S1729491AbfAYSID (ORCPT + 31 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(+) -- 2.17.2 Reviewed-by: Andre Przywara 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