Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2161914ioo; Mon, 23 May 2022 11:33:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0jmSSGdmSQ0kMmOlV5XS1ULplfwxWdDOyOCDqViCUxj9aBOx1JZNQaAjBOixqK6zyDNod X-Received: by 2002:a63:ec17:0:b0:3fa:74c5:32ef with SMTP id j23-20020a63ec17000000b003fa74c532efmr3459701pgh.505.1653330811203; Mon, 23 May 2022 11:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653330811; cv=none; d=google.com; s=arc-20160816; b=mVeK/VJuAGxGIw7pQ6/me1UeRxsERQsga/KNpRV8xkZahdOWFIaI1Rfd6oA3EwetuJ YoME2p9OlZ/ITJLJ/jlRtHMNEirWu9+EAuqmgSnnBZYaqYrtJa3V2ay+NV/H+v+tkn5E K///Km7oQdnoOEB6Ty9CTS9U8Y1fck0LcCSFkRXH8XyRecyU/lcspttVH3S5GjXwzC0Z gpAg5+1cp63jWb91PsQL5bOhpJdo5Q4d2ZjG/irD1v0E2XLMbUwDaKBSMDmYzKlZCjUY GcPuaOueXFbCEZ3e+nwjKZXHcDob+YdD8hUTyNWwq1ZDXPyvBBnZiLDXmaonCf/cG2P6 xRcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KN3w6vI/FH6UxTbO4/2NhdCW+qSxNLlKbLW0eNsv+mY=; b=JdbpwDBEDagf6j+WRNE5U8GJTDaPTPnSNn8leiVwcMHkt+CwnyeR8nmMIn0hojFrD6 33aMqp1H30ABGf4XQ+hp/v0f9ONUUd1OkGBeOgtQHk5deDjH5oe0HxiMEikov1+LEAj4 OyxR8CIvJmKc0MBrkG/a6g/x+1WeefEcNg3L/2aFX7jXOA7iUE5sZ3Ed/bYEdZ7fWxR5 7gzZf+/yD50Dea5HYuuESaOl0TenyOyId9X02QffNlGAqwnW2PDK8HM6jQE0aX6iQC9h w9wcprAbSTpcJ54c5ubVdm7Z0TjzxtbwVfcujiGCfgoRT1Ndr2GYbjfaAwPLZZ7I31Gy o7OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L5RnQaCZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l16-20020a056a0016d000b005104fe7eeefsi15748599pfc.108.2022.05.23.11.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:33:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L5RnQaCZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2B96CC1ECD; Mon, 23 May 2022 11:31:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240151AbiEWRLo (ORCPT + 99 others); Mon, 23 May 2022 13:11:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239647AbiEWRKT (ORCPT ); Mon, 23 May 2022 13:10:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 350C26CA8A; Mon, 23 May 2022 10:09:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 824D4B811F6; Mon, 23 May 2022 17:09:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3A3EC385A9; Mon, 23 May 2022 17:09:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653325779; bh=UodYB9RZCKj8YDl/NrPyDzZlEGObUwSATbKP+WigtdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L5RnQaCZNQ2gvFAj4+rLrej47IetSO/y65mwOMhuN4dPnGIQi+cEQ1kpn+Zlsl9al n0GI+8rAjnty0JCdbDJSWTPacFHScP1hVSqryOhS1aTxjW4XBfQ2rrNdOaY+phRiGn N5FcCXF8Jw+huJM+Z0B9o/oq1L3X7ZoriHLrPvvI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ard Biesheuvel , "Russell King (Oracle)" , Sasha Levin Subject: [PATCH 4.14 20/33] ARM: 9196/1: spectre-bhb: enable for Cortex-A15 Date: Mon, 23 May 2022 19:05:09 +0200 Message-Id: <20220523165751.433712311@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165746.957506211@linuxfoundation.org> References: <20220523165746.957506211@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ard Biesheuvel [ Upstream commit 0dc14aa94ccd8ba35eb17a0f9b123d1566efd39e ] The Spectre-BHB mitigations were inadvertently left disabled for Cortex-A15, due to the fact that cpu_v7_bugs_init() is not called in that case. So fix that. Fixes: b9baf5c8c5c3 ("ARM: Spectre-BHB workaround") Signed-off-by: Ard Biesheuvel Signed-off-by: Russell King (Oracle) Signed-off-by: Sasha Levin --- arch/arm/mm/proc-v7-bugs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mm/proc-v7-bugs.c b/arch/arm/mm/proc-v7-bugs.c index 1b6e770bc1cd..8b78694d56b8 100644 --- a/arch/arm/mm/proc-v7-bugs.c +++ b/arch/arm/mm/proc-v7-bugs.c @@ -297,6 +297,7 @@ void cpu_v7_ca15_ibe(void) { if (check_spectre_auxcr(this_cpu_ptr(&spectre_warned), BIT(0))) cpu_v7_spectre_v2_init(); + cpu_v7_spectre_bhb_init(); } void cpu_v7_bugs_init(void) -- 2.35.1