Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5978696imm; Mon, 27 Aug 2018 07:39:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZLY97GcnZ5SxMItyuf0kZlPSZmXNv/NUXPrRWrZ9aZKh4WCi3cQmoGNnWZXE4iTZPCiYAL X-Received: by 2002:a63:4f14:: with SMTP id d20-v6mr12508642pgb.121.1535380771978; Mon, 27 Aug 2018 07:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535380771; cv=none; d=google.com; s=arc-20160816; b=YoB/6EetHOSL+41D8QlTiaaCfqfW8H1wh4zYzYVI7sIMrlJ8okC8SCWxmDuAXOdNgd L2pp6eAXPcIEgy1ehfeKlo4j9ArPVxj3QrlYth0lKSiCSqPZPQjxhR+hgszRTiW9zmah 4wWNkeS8Glahelc4PywSQqodkemP8TxKRBQ4qmlY9SWOw+VFCvZ3Ylrb7I7rUrs3xY8V VFqlaeAsAWSj9uf0gUWPRulm/RfsRPDSpuEcEiVlP9YQ7q5dEh9miH4D31jwc6qpOg6m add7f6zLpuZ7E9bOABoOLGHYUQqp75qRAtGaF2aeHU5co4TWDHiNIj8mLPq7JP5fv5cq 5TQw== 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:arc-authentication-results; bh=2CzMgD82OrRG6H3c11NGEKALR6FCPhEjyV6BTxTVjVA=; b=m7f28A5itOHOe1NV6jyRzxA8PqKBlMaqlnIBj9jNW3j2Yh7j3mGO2Ck6mPvnz03wcn DNBLgHMGM87ILsAx7H4cz/lu0taP0XaUNNyQwG1eajJi6dHZzugZJXPW4smyAkGvr5hQ U652s4LrHk2WoOrzSht5IIVXLq4cP1dgUcnDXiwY8XZAUIgQdgzvetSIKglLPqYAywpy ySRMcvH5Vbwp+BGwRHBKpfuTK6ZBHOxyZnsoCSV97jS7n2tUzNl0o4go/VvaluM6NB2D /Y8k6Uv0ihOxGOf4NiRBKwzYGms0kMFtjjLJFC5DUSqT5lpIS1W4Boa6pfasr3I1xqj+ wihA== 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 c1-v6si15916605pfe.29.2018.08.27.07.38.53; Mon, 27 Aug 2018 07:39:31 -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 S1727729AbeH0SU6 (ORCPT + 99 others); Mon, 27 Aug 2018 14:20:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:50028 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727113AbeH0SUf (ORCPT ); Mon, 27 Aug 2018 14:20:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 87A30AFE8; Mon, 27 Aug 2018 14:33:41 +0000 (UTC) From: Mian Yousaf Kaukab To: will.deacon@arm.com, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robert.richter@cavium.com, cwu@amperecomputing.com, Mian Yousaf Kaukab Subject: [PATCH RESEND 3/6] arm64: add sysfs vulnerability show for spectre v1 Date: Mon, 27 Aug 2018 16:33:07 +0200 Message-Id: <20180827143310.641-4-ykaukab@suse.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180827143310.641-1-ykaukab@suse.de> References: <20180827143310.641-1-ykaukab@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hard-coded since patches are merged and there are no configuration options. Signed-off-by: Mian Yousaf Kaukab --- 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 996edb4e18ad..92616431ae4e 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -706,4 +706,10 @@ ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, return sprintf(buf, "Vulnerable\n"); } +ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, + char *buf) +{ + return sprintf(buf, "Mitigation: __user pointer sanitization\n"); +} + #endif -- 2.11.0