Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3515047imu; Mon, 7 Jan 2019 04:56:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN7/eRZmeEhLJw7wjWWhWOLDeK1wc+lrepdWEKlNHdygF9xekHQ1t4IXSFl/coSh6HoqYeF6 X-Received: by 2002:a17:902:e290:: with SMTP id cf16mr62500077plb.81.1546865776193; Mon, 07 Jan 2019 04:56:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546865776; cv=none; d=google.com; s=arc-20160816; b=iZpYyKLKhYXCltjXYVfQ4noN1TdV2iPbubAOJqKYQlamsZgyLWbGaLg8fxNazmZv4w li2d9cTaaEPm8XDy5ZHa+ESuV4/RMrY9PmIngs4pND1w1TjIlNMgB+wyEgvkQmOY06WY 36aLr/6SIxnVWPX94200l/GJxnyIdHLHbbvJ/rjEDviJ6WG6+muw5uskxPAbiOrZ51Dy CTGtwaQb5efYsqccLSGQcGmLnN8F5dqSHOUKLvifszXkkdM7vTwNwyVT1YXIU5b2vink 2FnPbdSAVAaMbYB7N8/LnI7qzEO0DHejpmCe2PVbhPYGYW5xN3OwFemlx9XKXn/L8VBi ygmw== 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=OYWwyp3OqM/8v6TIq6vqqnl3lPnnYvsJlFGyo8eaGKI=; b=lEtqbApDY+4TDlDZ4pLAcCYe2rSDBQXX+lmmC6owpM7Frf0jcMCjY0H0vilPUHhmy4 V8eNQk4AOPaFEolyQY1u81AbC79FLivZxCQGgbcnFcV2mQPKoKf+1qFBb/W/S/I5XY/D 65kIqgh2KEk0FAc3N/tRpQcQ3dk+dq7S91UPhlszVkqGYf80/tcR7scVp+YGY3ZllXkr 7TIS8fcinCZQvkiBuwJJALk+b9yjSVp2mXZYBehFHaWtX6rbrFPBoil5+SeuRw7KLi/0 OaQTvdWTIulVDQ41JgyTQBk9to/P3DOmA1P1SHq98dlzMHtF5B3TdAQJ4z0uHF8h1aoR Jk/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j0UPkT1D; 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 p12si1778634plk.77.2019.01.07.04.56.01; Mon, 07 Jan 2019 04:56:16 -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; dkim=pass header.i=@kernel.org header.s=default header.b=j0UPkT1D; 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 S1727878AbfAGMxg (ORCPT + 99 others); Mon, 7 Jan 2019 07:53:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:42818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbfAGMxf (ORCPT ); Mon, 7 Jan 2019 07:53:35 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 B55FB20651; Mon, 7 Jan 2019 12:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546865615; bh=rj1yTAsWEwFHCf0bEqXlYqEbpvWrVlm22kQrzepPKTM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j0UPkT1DZ1zpxEuaHoTkFBToVHDODAsadokCdk0MSdOvxKwYC6DOCq9mLcPhdiiyd LRG/ALIr9JhX1iQp9UyiRuq+b2WSV112F6IZTYEWdp8wQjX1QT6s8Z6BQNwxkm9JWs uB1/JLcEg5Lr6hPQzk4KjUHg5K8Ix5QJi4kFI1Yo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Diana Craciun , Michael Ellerman Subject: [PATCH 4.19 064/170] powerpc/fsl: Fix spectre_v2 mitigations reporting Date: Mon, 7 Jan 2019 13:31:31 +0100 Message-Id: <20190107104500.587001267@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107104452.953560660@linuxfoundation.org> References: <20190107104452.953560660@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Diana Craciun commit 7d8bad99ba5a22892f0cad6881289fdc3875a930 upstream. Currently for CONFIG_PPC_FSL_BOOK3E the spectre_v2 file is incorrect: $ cat /sys/devices/system/cpu/vulnerabilities/spectre_v2 "Mitigation: Software count cache flush" Which is wrong. Fix it to report vulnerable for now. Fixes: ee13cb249fab ("powerpc/64s: Add support for software count cache flush") Cc: stable@vger.kernel.org # v4.19+ Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/kernel/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/kernel/security.c +++ b/arch/powerpc/kernel/security.c @@ -22,7 +22,7 @@ enum count_cache_flush_type { COUNT_CACHE_FLUSH_SW = 0x2, COUNT_CACHE_FLUSH_HW = 0x4, }; -static enum count_cache_flush_type count_cache_flush_type; +static enum count_cache_flush_type count_cache_flush_type = COUNT_CACHE_FLUSH_NONE; bool barrier_nospec_enabled; static bool no_nospec;