From patchwork Wed Apr 10 23:12:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 162052 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp6763523jan; Wed, 10 Apr 2019 16:13:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxo88LGSkKkl+ru4ubtM+TYARgGEYab3tw3TmwvuuYnIk8zd72l2Oi8dClLs+zJcpaYfa9E X-Received: by 2002:a63:5b0a:: with SMTP id p10mr44062172pgb.282.1554938020676; Wed, 10 Apr 2019 16:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554938020; cv=none; d=google.com; s=arc-20160816; b=AWhHEAUQhMUz7lMh9KsLDm9somVfXmA2YfI2IBCeTdAvz4xf7UmPviQpMTgxlJY4MD gbrNboJ6Tk7W0GvFG6diF3TgkDK2FisWFBAj9P63cXhkr/KzvWRBKXxST5U70C42E3qG uR9LtVOHPurjqW15iXe/V+iuRD+95BsJlfVkOt9Es825trm0I/qif7KtQQ/zPKB4pdXF mcL3Ezcr+heLlkQNZ6zG/gOQu1H6yorVDQvi3b1yFkoxbA7vvvzXrhzJvYloyWpP/4Sy J0771nN1hujfW6RRdsf1yXsL+a1Yk4WeGC3rH1YDGChpLgkDN2x8s8XmoWZkxNlcYErR JqWQ== 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 w10si30155979plz.37.2019.04.10.16.13.40; Wed, 10 Apr 2019 16:13:40 -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 S1727039AbfDJXNj (ORCPT + 31 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 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(+) -- 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"); +}