Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2450292yba; Mon, 15 Apr 2019 11:54:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1WngtufDh2k2JZPjgqnCMgFXfXNyQMEBohUFsRZReFNKK0bHSyNRVKTsBHDtMDsr9zyis X-Received: by 2002:a17:902:8609:: with SMTP id f9mr77552215plo.32.1555354460487; Mon, 15 Apr 2019 11:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555354460; cv=none; d=google.com; s=arc-20160816; b=ripdi2Y83IuB2OKv8dxt+UkauXtq2QvGenxo0ZY9LOl9a4UEEjBfFn+0gDgppGuCVC imxcmPPbjbyRQhErXrKjdOJghUI78JgJWC+g052nnQEXFzIvFuoQwVkwBo//g3a9tVjE J8PCZc1T1VdQYpKZe4sAIPkTd7BDQbbpXOgQPGFlNRZaQPEZOcSds4XHFaOeAPueSHcD dn77Y/f3jqo26NSzY7Xh75MsnFBalMu45z1bwht89kJ+0XjAa/SwkuTYl4os4n5ECMqL /I5NW833jQslj31V/RyVpahc71cNWQTGJfc1zryDhl7y0fsy16NT8Z8Y03roxnWFbYsK qoWQ== 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=2KMif06by+Yrv2+2J+NflH+EqE/53hbI+LYsh7qHeLA=; b=CKHPp9C5caQi9aic+qnLsNV/cXR6nS0YtAR5H9Odp5R62r3TMJ9NIwLl0X7EfOJsEd i1ahZgtXNCoq4uuH5oV6JuQrdT6SrsDff5oz+hrmNZ46n2IkfhjNiU2XB2F7Moa8Pjiu YNs+IVLh3zfrmxbb3aIw08ESLDOxnqMcTbBHCvLBbP/09D32VbTa7oUA0TNDEIjQr70g wxgAitgf+jkScwHBARfNypFjyfltV2E8UqBJ84fYtLVnmAKNSt0Dc/Kk8VgHr5adazS+ Du5EFrD7n4XVJXr42broPqAc05dqsZ+0wFWUIycXnmQvaUAcsRRD2DeKkCA94NjUGH8X cLcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DoUI4Y9B; 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 j7si46226437pfb.75.2019.04.15.11.54.04; Mon, 15 Apr 2019 11:54:20 -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=DoUI4Y9B; 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 S1728377AbfDOSp2 (ORCPT + 99 others); Mon, 15 Apr 2019 14:45:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:47832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbfDOSp0 (ORCPT ); Mon, 15 Apr 2019 14:45:26 -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 278FE2073F; Mon, 15 Apr 2019 18:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555353925; bh=wNvJE6k0AIawkS5DgbDO1EqRHCKq447heZQrFXOAEVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DoUI4Y9ByPU+PGoYX6Iulf908MFvaX/uu2Sz7/OpAPRbLj5oFUSIDQMMcIyaPeQHa k5nWI8kvHmM5Zo9HyeoUXv0xFXMSt5QLsabLm/T+BDVqryo7GmZOIxPEURAD8U9/fc f6lZQWns1JIXlaHc/BNJw6vLltXdJrO/TKE4d13c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Diana Craciun , Michael Ellerman , Sasha Levin Subject: [PATCH 4.9 21/76] powerpc/64: Make stf barrier PPC_BOOK3S_64 specific. Date: Mon, 15 Apr 2019 20:43:45 +0200 Message-Id: <20190415183713.307439867@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 6453b532f2c8856a80381e6b9a1f5ea2f12294df upstream. NXP Book3E platforms are not vulnerable to speculative store bypass, so make the mitigations PPC_BOOK3S_64 specific. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/security.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/security.c b/arch/powerpc/kernel/security.c index 813e38ff81ce..926ed3c38741 100644 --- a/arch/powerpc/kernel/security.c +++ b/arch/powerpc/kernel/security.c @@ -177,6 +177,7 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c return s.len; } +#ifdef CONFIG_PPC_BOOK3S_64 /* * Store-forwarding barrier support. */ @@ -324,3 +325,4 @@ static __init int stf_barrier_debugfs_init(void) } device_initcall(stf_barrier_debugfs_init); #endif /* CONFIG_DEBUG_FS */ +#endif /* CONFIG_PPC_BOOK3S_64 */ -- 2.19.1