From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D9A3C43387 for ; Mon, 7 Jan 2019 12:34:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0CB8A218A1 for ; Mon, 7 Jan 2019 12:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546864482; bh=WoeDjF30i8H8dWIKYSjRm7Lpn/M8ZprJuEbujfPXPB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=dAb44tnepFm/Gx2VW8vssXbFRc+C/hw1qmm8GsgKYtfGN9Luj1lOwT8TomzvyiB4r Ce4q2ZgY67d2/09WnEiF98fxinKQ1ZNSXLAyLhfQGG01zP6Ot84sCAFeKdE3r9/m+V PV7hRock2eR2Q+HpRRK3dVWnW3Olh0OYAHOhQyKs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727310AbfAGMel (ORCPT ); Mon, 7 Jan 2019 07:34:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:47240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727305AbfAGMej (ORCPT ); Mon, 7 Jan 2019 07:34:39 -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 128AA20859; Mon, 7 Jan 2019 12:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546864478; bh=WoeDjF30i8H8dWIKYSjRm7Lpn/M8ZprJuEbujfPXPB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q1eyTdghoWprk8wpxd8HvsXTj5CAUAiVjVLGc8QipyfswRnjGy81/ljqirsUE50Ev yRhRumNIi5TClz4yZBbDxEOlM9GZXcO0rlmKsbC7Vaw1LjXdvXGAAeeuepDb1oEtKp EgmFfqwiNXknCQTVV8EDN4A/hBbfUGj/HS6roJ0I= 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.20 025/145] powerpc/fsl: Fix spectre_v2 mitigations reporting Date: Mon, 7 Jan 2019 13:31:02 +0100 Message-Id: <20190107104440.610290762@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107104437.308206189@linuxfoundation.org> References: <20190107104437.308206189@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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 4.20-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;