From patchwork Thu Mar 21 23:05:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 160825 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp139866jan; Thu, 21 Mar 2019 16:06:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC7/g9frA+9coDlewN9vZGkFOW43HiMh4r+MVL/8lK+8bz6PoBtD1irAIiGfvvpUaMvx2u X-Received: by 2002:a62:b618:: with SMTP id j24mr5848019pff.120.1553209572484; Thu, 21 Mar 2019 16:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553209572; cv=none; d=google.com; s=arc-20160816; b=lgFGjGUHgLDleiqFHnh3vLQVN1FAMax1AJiOsEel1wH1FdviJraE5IUtv+/1SRYbEq 1ieM1QcGIOU45J0LyL80AKM+ZRIO5MU4tbPXtBfiEfLEY3tKAc9Wzd5R7qGDApqhTa6u W0np02rzXUx7dO4DgZr+GUEA2p9SnboBL+kdd0k++HjoTxVDlV5JpE2/+j2mtetvXGWA lGnuFe2msyaMdfCgIklWX1oiehPB/I0C5TBcLpjAfRE/Sc8IPuTcjQAT2yWpLhIKOyei zcybDqZEzLHmvwu5NfdUoyYmF0cjcY/nHWNHp9Who2ZuZqDpOjagTkJNOKb6Gexrx+/E bATA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=M1+2PZWP020NLdUI4pdhyEbWgrY/FWYDixe8V5BhP9M=; b=ky5gBFAhNA4fi/QVAUP3dUc/0143zGB5qqGJxqGo/FVM/wBECzLVHO2w+u7nngw1zg i2xDsxxCiAIWsUsr7WTcA14lP318Iah8VEQpLXvrMPeihpjwV+ZBZrbpH2CBaf9G/4jl PKTBgCEnvTzYHuvpOeFlOiI/g1sdigmWZByneYMwFpte9iHsTih5YHMaHMKhiVOv7OuO kgfNMshTwhQozMK8XqxxOVKzNUTEwc3sSxm4ifux3xSbWUPyrbHHe+iyVGQ0a5YPzefO VXq0nYoAiv3zUQQaYW42iAjd53DwF155n+LzaluYTmcnMgHuDYHeFZXGMYxB88m06t2V eW9w== 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 h35si5833716plb.180.2019.03.21.16.06.12; Thu, 21 Mar 2019 16:06:12 -0700 (PDT) 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 S1727404AbfCUXGL (ORCPT + 31 others); Thu, 21 Mar 2019 19:06:11 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35718 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727373AbfCUXGK (ORCPT ); Thu, 21 Mar 2019 19:06:10 -0400 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 0F02315BE; Thu, 21 Mar 2019 16:06:10 -0700 (PDT) Received: from beelzebub.austin.arm.com (mammon-tx2.austin.arm.com [10.118.29.246]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4C7BA3F614; Thu, 21 Mar 2019 16:06:09 -0700 (PDT) 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, julien.thierry@arm.com, mlangsdo@redhat.com, stefan.wahren@i2e.com, Andre.Przywara@arm.com, linux-kernel@vger.kernel.org, Mian Yousaf Kaukab , Jeremy Linton , Andre Przywara , Stefan Wahren Subject: [PATCH v6 02/10] arm64: add sysfs vulnerability show for spectre v1 Date: Thu, 21 Mar 2019 18:05:49 -0500 Message-Id: <20190321230557.45107-3-jeremy.linton@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321230557.45107-1-jeremy.linton@arm.com> References: <20190321230557.45107-1-jeremy.linton@arm.com> MIME-Version: 1.0 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 Reviewed-by: Andre Przywara Tested-by: Stefan Wahren Acked-by: Suzuki K Poulose --- arch/arm64/kernel/cpu_errata.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index d2b2c69d31bb..cf623657cf3c 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"); +}