Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2449678yba; Mon, 15 Apr 2019 11:53:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSCFaOx2ZozKveHoNh3ZnYwQ2zarbYBf9noxBrCJYSgyRHrls5QcUkrDisvPUiGa90aBsv X-Received: by 2002:aa7:8615:: with SMTP id p21mr77804443pfn.98.1555354404265; Mon, 15 Apr 2019 11:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555354404; cv=none; d=google.com; s=arc-20160816; b=pKFD+fdzG9oVQRC1UwIjqyjQGS8PFR0tgCiWDAQBXrGeVRmhIUiAkqaABCXeW11iQ0 efdgTuUNczrSHcsiA8CJEo6hV6ihfZsNoL2u4ngN5hqf+keJXBec7SfxJECN8XRz50ve ikeLTU6XTdKn7Ho0NJNi/GDKlKkM3K9VRq2O1HoIJcXEvvaEvnEZVt+T1iNygS8FtZcj nJMk/v0XDK5Bpm13zBHp26ZZYy+VU8Sv91wJf6L35MuTRNs72Z98YAwj/IW9yA2GOhZ0 XtreCYYkkPPOf8swLXfzlu+3AZw0IHCDuIyfwCZio4gfLbfj1/GQcsiHjEv5Ukjrjf6C 1yyQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DAeMVrL4MNeFZgzbSZw8qKfO5CKO5xe4YwUyFsnbAzE=; b=IBYaDd50FEHaIFkIpNJp1NM1qcL7k0xecmqVgEWy0tSqRYrwADKx5e4Lnvdpyg6VZO cP1hMpj+MrGV5SjpEWeuxS7+N4GER/j9rrFumaqjGCayKANu9TNGzUrNMQDgnl55Z7dY nhpAnLUc49g9owAepokOTrca25PvhBGcbvez1QaXHdlzm3F/kdC3527iaAOLxBecHv+V QclW8WxWvLhWcVT1xpBDj7m5Vm9G51JZXLiEx9CB8Y91G/makozYB3EgsiFuaeHxvIuS IOeg0720Ielo4HXY5UEmrpI2bY+N3ScZGohO2yMfzeLThgRqS0GQKTJUJ+xkRhqA6a+s HLsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cWJSLYdd; 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 d39si22769421pla.304.2019.04.15.11.53.08; Mon, 15 Apr 2019 11:53:24 -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; dkim=pass header.i=@kernel.org header.s=default header.b=cWJSLYdd; 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 S1728353AbfDOSpX (ORCPT + 99 others); Mon, 15 Apr 2019 14:45:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:47668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728335AbfDOSpS (ORCPT ); Mon, 15 Apr 2019 14:45:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3E343218EA; Mon, 15 Apr 2019 18:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555353917; bh=KR6aSEvNHR8dpkikGZPwihP6nIvxV3cnex0/K0fOEkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cWJSLYddR9mq03cFrvFl95ceegjxOuLsxHrgPrjEThEH3Y75xfktUxEa2HE3Y6LOU iDk9DsqpfJOLG/rh0PGq5vKVDrzgtAtasa8rJsJY4ryGW9tfZzlOG+3DYIdBYmgDVu xMyYAyG8zP0TUNp0qEwmNJg+d9EpPeY7l8oV6Ei8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michal Suchanek , Michael Ellerman , Sasha Levin Subject: [PATCH 4.9 18/76] powerpc/64s: Enhance the information in cpu_show_spectre_v1() Date: Mon, 15 Apr 2019 20:43:42 +0200 Message-Id: <20190415183712.389439208@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183707.712011689@linuxfoundation.org> References: <20190415183707.712011689@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit a377514519b9a20fa1ea9adddbb4129573129cef upstream. We now have barrier_nospec as mitigation so print it in cpu_show_spectre_v1() when enabled. Signed-off-by: Michal Suchanek Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/security.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/security.c b/arch/powerpc/kernel/security.c index d0e974da4918..f189f946d935 100644 --- a/arch/powerpc/kernel/security.c +++ b/arch/powerpc/kernel/security.c @@ -121,6 +121,9 @@ ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, c if (!security_ftr_enabled(SEC_FTR_BNDS_CHK_SPEC_BAR)) return sprintf(buf, "Not affected\n"); + if (barrier_nospec_enabled) + return sprintf(buf, "Mitigation: __user pointer sanitization\n"); + return sprintf(buf, "Vulnerable\n"); } -- 2.19.1