Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp304111imu; Wed, 2 Jan 2019 20:36:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN5mhn5UHRgUR0fUOGTd1TQoL1XU5f06+xEdo0WVYbFyCTcWzLzpgtkV3/GHDvXdn1BSHdt0 X-Received: by 2002:a63:3d49:: with SMTP id k70mr15837348pga.191.1546490167294; Wed, 02 Jan 2019 20:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546490167; cv=none; d=google.com; s=arc-20160816; b=pR/31GOnYn618zeKITwqNsptjjKfHecqt9deDxpxN4/AaCBJ4zxDj54c8j9bkwQn/D mQ9V+pRuJTGMUNKz/euDO2T0W8MafktMALxwjpq7gO/0RbEtMUacshjsctv3zX7jWFKi 5tM9G+da7NAyC3RLHtet1n/SrWTlYFXd44VB1827Fkll8PRnt43nDgL+DuWurntjJDGQ YZC+F4T6JyVtYQr59c/OIHWkO85bY3HCtpAKm78WODZABintbSPIn1TlGlkIYczXKzuM BSBHq+W65tt5sFHPoidXhtzmTN/Fq2KQ2ujKR7kuDJQMz84cmUQ5VZYeISWJgQED9ZEt r4EA== 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 x5si52396804pgq.535.2019.01.02.20.35.50; Wed, 02 Jan 2019 20:36:07 -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 S1729053AbfACAti (ORCPT + 99 others); Wed, 2 Jan 2019 19:49:38 -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(+) 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 -- 2.17.2