Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5296556yba; Wed, 10 Apr 2019 16:15:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyP7PEkbPYCNb6JwGj6sB7WTqTExsnFguafidO50cgcyCHLIwWA6fNXbZsfw715P9XPXYoc X-Received: by 2002:a63:e556:: with SMTP id z22mr42552365pgj.290.1554938115512; Wed, 10 Apr 2019 16:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554938115; cv=none; d=google.com; s=arc-20160816; b=la6aqcws6bWuXFJv031KNMpKHeXUR1Q64gUFOAW5edkzuRN4SGJWOZYZ4JWIvH1uDt u4gvpQfJVSdpDp1tmBUZZleSVQXM+w5NzTUjKkijCkg8Pgashw2UFakYR1PE8qJvmUjI dIfbCtAp77dEeNfaH/z7qrEJwkFd+pfVYZ/2NZD9gvzIE8Z0KBN8zvozanr87wC3G/9f rMutKCNIfTIZfKoq71FN+vSItB8OSNhWPD+LS/qQwuD19Y4Expx8sS3V8rTYVAVGIPnJ mvQF5mzGX8kBcWISpOjIdd8qJUGotVodvtja960njy1lntPFfwozFTcnUeZ7Z99CrYap rrMA== 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=icZMQR98thfR3iCLpBwjnjTX/PUYNalFPwZ9x92ZF5Q=; b=DbBII6lAKbPtUYEXg5/KlaxEKiI4UeZwxKuSh3WiEQm0dEZH3NGX9Cah2FbwunX7ZU rI8NxFzljiUhUjsSpQbo2/wveMI24uPsHMaYp5onmjU6NZFCGzrHGh1D3KPtamdbqrjj kfgQ6MWCHnEfDq95W6xWjwUV/SU0HADvH0LURpBigzxk8UUssXtUwNwWZqrQeBeDL8fT Iyn1a4A2HfiCMKy68t7N1t5sQf3F9Ub3YiaibsgGpsz8zndLukP3jBlvWASn2dVwOgG2 giwYFNoOgYXyk4iznfJdty/9SeZ15NKmiwkuCNIhwgTauKh+hYjPMlw41iXI+rVMAJWA 6fNA== 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 s14si17630815pgs.343.2019.04.10.16.14.59; Wed, 10 Apr 2019 16:15:15 -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 S1727030AbfDJXNj (ORCPT + 99 others); Wed, 10 Apr 2019 19:13:39 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:32994 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726774AbfDJXM4 (ORCPT ); Wed, 10 Apr 2019 19:12:56 -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 86BA815AD; Wed, 10 Apr 2019 16:12:55 -0700 (PDT) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.29.246]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CAA853F557; Wed, 10 Apr 2019 16:12:54 -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@i2se.com, Andre.Przywara@arm.com, linux-kernel@vger.kernel.org, Mian Yousaf Kaukab , Jeremy Linton , Andre Przywara Subject: [v7 02/10] arm64: add sysfs vulnerability show for spectre v1 Date: Wed, 10 Apr 2019 18:12:29 -0500 Message-Id: <20190410231237.52506-3-jeremy.linton@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190410231237.52506-1-jeremy.linton@arm.com> References: <20190410231237.52506-1-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Catalin Marinas Tested-by: Stefan Wahren Acked-by: Suzuki K Poulose --- 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..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"); +} -- 2.20.1