From patchwork Thu Jan 3 00:49:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 154685 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp127449ljp; Wed, 2 Jan 2019 16:49:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN5WhjLL02T6SwkXk4lewfW3K2Hg48kkd6iCxOY9hY4xPQfsUyhwqPiqN6dYhaI116u+eVH9 X-Received: by 2002:a63:3d1:: with SMTP id 200mr43729015pgd.68.1546476580214; Wed, 02 Jan 2019 16:49:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546476580; cv=none; d=google.com; s=arc-20160816; b=lVLRCXXcuX+E8ro6VEZ7I+8h0WapcyJnJ/tlpXmuXkvi8awKA1lYLBOzjHcuvASt49 XM5b/qo2YXdXcF3TcZCnx5OCWVeXzgK3bhZ9HGcn2Wd/VEpNMRjpEnDQB1+0mPNxiod1 Zcu8xAs563WeZZtB7DVIgXT+ym+nAcSC9O/O+cOovoLFdKAGTj7eC2huO0li4dxkdB41 vF6EoGfh5bOi37VSYFrqP+8L9DNvqe38PePZZa1f+VJsh0r/P4tgV9JDCL7dZoj+/BoO 13gu7xfjWkiwkUTqfyr2jd5V7yMTfssctcmg2Cn35qvhLeSKI1R7f09tolM5ACMT64DT 8hRQ== 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=3IzUsHtorXdNzzBfqlr3gxkzaNCa4/7c5I3SnNG2LQg=; b=U96o0UYBbbva6iVDeiDPU8UxViEiQW2W2+w1n3TFAuVZsQQ7+h4EHjhK/kgZeWm1ZB baM1zUY4RbLD3K7tRkpSqySME/F+28XBQH5f1iw22jumpRO0d2pY6JakzqRatxjP0jvz JpMQnvUL3v3F0Dr6G9HiR46gWrEypNdRGzu3Vm1dz2qK3m5iDL53ijysciJcKk/tf9J8 dcVZQ8CRLzVOWF2FveZVRXea3bITKPSPqB6uIdQqsW3ryxUK3efiEmvKPUU4FxUgfMVS A63hu/EfW3JphDgAaCaCP2tO6ZBUTA01HwqPpzfTnPcaLHDS1OU8jVqC54gng7Ot5QLe ZNyA== 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 f12si30416238pgd.68.2019.01.02.16.49.39; Wed, 02 Jan 2019 16:49:40 -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 S1730252AbfACAtj (ORCPT + 31 others); Wed, 2 Jan 2019 19:49:39 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39820 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfACAtg (ORCPT ); Wed, 2 Jan 2019 19:49:36 -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 1943515BF; Wed, 2 Jan 2019 16:49:36 -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 3A2D43F5AF; Wed, 2 Jan 2019 16:49:35 -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, mark.rutland@arm.com, linux-kernel@vger.kernel.org, ykaukab@suse.de, julien.thierry@arm.com, mlangsdo@redhat.com, steven.price@arm.com, Jeremy Linton Subject: [PATCH v2 4/7] arm64: add sysfs vulnerability show for spectre v1 Date: Wed, 2 Jan 2019 18:49:18 -0600 Message-Id: <20190103004921.1928921-5-jeremy.linton@arm.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190103004921.1928921-1-jeremy.linton@arm.com> References: <20190103004921.1928921-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 diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 09ac548c9d44..2352955b1259 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -742,3 +742,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