Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3688464lfo; Mon, 23 May 2022 11:29:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwwp2ReuFHZv3TRgq/auWmkZPfKSTuydoD2o8LhODzgPJ+fKUFheOUWGajEDpXgWAOzLoj X-Received: by 2002:a17:90b:4d8b:b0:1dc:aebe:4c8b with SMTP id oj11-20020a17090b4d8b00b001dcaebe4c8bmr300535pjb.145.1653330583366; Mon, 23 May 2022 11:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653330583; cv=none; d=google.com; s=arc-20160816; b=G5t1asOfXoFgeMg/iYTmOpqxPYp8j50p2v29gVehA5ZCEDyZdtYUbrAYmyoWoLYWfa HKXJ5MeNRhPh8oOplWX+yM/ZghEoCipNrIsbeX3Ye6IjEebrMfpGy0iWpKaBwwn83blF hi6wgwmcqvbqJ6JyQbAZGAeHK+QPetEmF9O3UIXspcsvROEV0ROjbHBljVJ3i9ySYLrD YczUrRhfLyhYTkRqd04oESRbqD/Kw+JkG3vJaqO+nvb7G55Izg/rdI/nJswPJl9rYAHz j2wnWVJKNtOZVEwIDzan+SEzEM5QetuUviSbtI9USZizDca8eGCPSbclJDYOYE0b9xRY dm4Q== 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=fBOhII57COGQ0HTsLFsjx766NebzDwVksSSIbn0/IqI=; b=xH3VBUJ2I/Pn5STYnA0bv/yRkuKtm5n02iNYTA9vWjGrAfcE0cF/PD7xfEB6V3OUHM 4/2GcUkB0iR3JzudO+gZKB6Qc2G13e2JfAiAb8Ji/p8fpuS5z9QVo/hWrFa42W9sP1EF ANqJbUidMqBo44M6358JiR/1AlL9Mf37cHKeArrv9YJLbcILJO7+NEllqhVPs38O5SAz aTJHhhKkYsDnYe+FojazcJ1UF2pv+5UNVJIWS4P5t5KRIDCPNVg3uLloODAL35sxo2kq 6wbuKFHwIUojqwopxhPerphOVm988D3ajtfk0CjcDgEirdlDD14fZCAK/BHfU2s9KDxP /h5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lzl9OH3d; 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 i62-20020a636d41000000b003c604c0e2fesi11382569pgc.359.2022.05.23.11.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:29:43 -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=Lzl9OH3d; 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 F2EB01356AD; Mon, 23 May 2022 11:29:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240063AbiEWRP6 (ORCPT + 99 others); Mon, 23 May 2022 13:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240362AbiEWRMA (ORCPT ); Mon, 23 May 2022 13:12:00 -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 4E37E544FF; Mon, 23 May 2022 10:11:32 -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 6CDE2B81204; Mon, 23 May 2022 17:10:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEA5FC34115; Mon, 23 May 2022 17:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653325851; bh=3JB9XIL37OhorsMUQmzWIBBwBG8Ddrx5tXX9TSd4194=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lzl9OH3dXOWTcnU5jkjoDFlNt2ACq/8/58LHqZ48xf1lzBiigfoZs9XmLGhngEbOo nHOkSFAK4DW8oqT3E/gkymyAU9wnE6JCpcDkrInUk807MDL2b7/LCNIVq7GISbh0/z KAIC9zJmprp6RBp8yeHlM2SDM2IGQFaf9BLiXl6o= 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.19 30/44] ARM: 9196/1: spectre-bhb: enable for Cortex-A15 Date: Mon, 23 May 2022 19:05:14 +0200 Message-Id: <20220523165758.659307891@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165752.797318097@linuxfoundation.org> References: <20220523165752.797318097@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 8394307272d6..0381e1495486 100644 --- a/arch/arm/mm/proc-v7-bugs.c +++ b/arch/arm/mm/proc-v7-bugs.c @@ -302,6 +302,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