Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7449071imu; Thu, 31 Jan 2019 10:15:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN79H98Ltk6ykdoRVBMVAUOAAHsGE1cF0NBVqJdiWzdpB0lYX3mjkjNzSsRY6sV0299Eu1Ec X-Received: by 2002:a63:e615:: with SMTP id g21mr32914034pgh.290.1548958525099; Thu, 31 Jan 2019 10:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548958525; cv=none; d=google.com; s=arc-20160816; b=0y/ajalRvHYlIIV2OJDR5m2UNriJmbtfvpmUJTTjEwfoD878VTkObFJ4d0b22Q0lgE AZ1f9revvT4lKRlJcxSaMPbLHgBcxI3YrcN94bBZtM3LaxqOhpiOY7pmsxwRvHwfAlVd /J8AqUM4JxSnJcS43TfBJBSEaVdFOdwfMnYp+q9M3XhkBshBJuhdclN059/IXh8eX+Ul TFheIQMq2h+mbo6AWhia2DhSxcFPXw1hbfLivkrVAfjp7DulWHKLDaPnQ9RTOSXKnw92 GsxgUWdB1Cuc2fcw3JLhgsbXSv1J57uPrBib6BnOVwaJEkAk1UH4xI+UYlPyT84dlble oM7Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=5zzNGxsnqvXMJWkpuft4BMLvrkp3GXmtJvspDfYeXlU=; b=GnzK7q0sXarqV0xc93+iO2BuEINprCj+mcI6mwr1b1A9YQmCYLNi+GsXDwEu0ZprXp r7cbt4Ds8YkuJgRCt1LxGc7yKrUtKorI0vX9WhFHKV6RCFSsSkKVUqI5H/WTbZRBIUyQ WdwSrvGewha429g2VuS55gRb0W3b7OOid8lW67nSScwu7iCAUmQwJLMqujlbe1qTZteF z75DDSlJKxR7nzi2ZpgfUhbnTcAC682xSOyhdfcefGL+7XuJ7+CWNNq39jgvM5MrMibJ YPrw+hJQ70p2QT4LKOpjPt+Ij5/wF1lKK51KHqv6NwM26rB12vzoplxO88V0Gyi8PiK9 sDJA== 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 d13si4162193pgh.196.2019.01.31.10.14.40; Thu, 31 Jan 2019 10:15:25 -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 S1726270AbfAaRwY (ORCPT + 99 others); Thu, 31 Jan 2019 12:52:24 -0500 Received: from foss.arm.com ([217.140.101.70]:48720 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbfAaRwX (ORCPT ); Thu, 31 Jan 2019 12:52:23 -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 5A37AA78; Thu, 31 Jan 2019 09:52:23 -0800 (PST) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E834E3F59C; Thu, 31 Jan 2019 09:52:20 -0800 (PST) Date: Thu, 31 Jan 2019 17:52:17 +0000 From: Andre Przywara To: Jeremy Linton Cc: linux-arm-kernel@lists.infradead.org, stefan.wahren@i2se.com, mlangsdo@redhat.com, suzuki.poulose@arm.com, marc.zyngier@arm.com, catalin.marinas@arm.com, julien.thierry@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, steven.price@arm.com, ykaukab@suse.de, dave.martin@arm.com, shankerd@codeaurora.org Subject: Re: [PATCH v4 06/12] arm64: add sysfs vulnerability show for spectre v1 Message-ID: <20190131175217.4ff452d5@donnerap.cambridge.arm.com> In-Reply-To: <20190125180711.1970973-7-jeremy.linton@arm.com> References: <20190125180711.1970973-1-jeremy.linton@arm.com> <20190125180711.1970973-7-jeremy.linton@arm.com> Organization: ARM X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Jan 2019 12:07:05 -0600 Jeremy Linton wrote: Hi, > 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 de09a3537cd4..ef636acf5604 100644 > --- a/arch/arm64/kernel/cpu_errata.c > +++ b/arch/arm64/kernel/cpu_errata.c > @@ -730,3 +730,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) w/s issue. Other than that: Reviewed-by: Andre Przywara Cheers, Andre. > +{ > + return sprintf(buf, "Mitigation: __user pointer sanitization\n"); > +} > + > +#endif