Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3665177lfo; Mon, 23 May 2022 10:45:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRj8gLRgbX0B3aX0snJu6A4PN15AVqgszkfXNAjmTXyRU/KGNDA07lvj0n7cEkzYJM8i2y X-Received: by 2002:a62:15ca:0:b0:518:132c:22a6 with SMTP id 193-20020a6215ca000000b00518132c22a6mr24764276pfv.28.1653327957665; Mon, 23 May 2022 10:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653327957; cv=none; d=google.com; s=arc-20160816; b=svLlkt7Nhwt3JvjNumz+sbfucUlMV65/E8XxG4T5LMRK8QNm6+Wv4HrMrDlODkslIM fA4xPGz4HA6taDrpOnE/8GxjPHXTEbcGd/TUDfWDhGfRa7Gwm13m5dg0pNrVsgpSjClX tKVfBjv3wxg6Q2e2g2I8BaPpoJm1ERYNyXHw8yZVmXXpXrU9fMuOJKLDHW1UR7YrySJp cTL3DVF+4VN4KuKt39QstZbO8ZLL1Z6GFCZAiMBaaVdVUvFZ3CVz15esXQqOuO4LaGCu k8qaHhesFuIX2IIdZipC2+QeCzpwslYYzSyAzA89sFfFV/1/n3mgOWQSOywtV7vm/+mC z0uw== 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=IJT/Qkkay0Ph0degGxDOvVuEc1pUSCVWTIka5zdEInU=; b=xfOXBJJEDI4MpKl2RaJ6XblADlnJsq5Nmyi4udzzGBsXZnCOZ/yKKJ4Oin47EiSRh0 5sBqPUE9FPl5ZZjY5NbZzxW63uvpx4XUjTN25+7KzeFsGSCHmkSF3OdSMdK+4eYpDn5q yFDnttIFFPxQaSX9N3OVQRtV8qfTzpsYb76Iy0mdTU92VoTHlTfbrJns0sAcOdfygvYU yw5lmUubYWar5tx4pJotnvCEbCXwl7fWnq7zTpEiqhZN6noKbcWJSnaoKhJoKT8eWX2R eoY2Zd4mkfwHQ/rOrprCT0v+xx+t/KRPwmoidbmYnCrIpSFLWRafG5DH1PRJC15eLUvb OQkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0e6uF1lt; 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 cj14-20020a056a00298e00b0050e0d9b0e4dsi5595056pfb.166.2022.05.23.10.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 10:45:57 -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=0e6uF1lt; 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 031A4DC821; Mon, 23 May 2022 10:45:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244206AbiEWRn2 (ORCPT + 99 others); Mon, 23 May 2022 13:43:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242642AbiEWR1z (ORCPT ); Mon, 23 May 2022 13:27:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 372E081991; Mon, 23 May 2022 10:23:56 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 748816150D; Mon, 23 May 2022 17:14:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76852C385A9; Mon, 23 May 2022 17:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326040; bh=zwcO8lqTqAcSsX0UaXjLztxupOJ62iPjlXdzDDNc34s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0e6uF1lttUbpwVMpMRWzofsNjXRiOpCoVDcmgNKHqMwLy2nPAK/heeipZm2rJQ+eL Vk8eUcMgS1Rz4WGc7MVjPCQEJFxwGzZaYXF+FhHVH06lIpGDTQ/KnyJQES47NaYflh C0TEIZbG9zR38HVFuoHxQsDzIrQ0iAQgL4rt5Ybs= 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 5.4 46/68] ARM: 9196/1: spectre-bhb: enable for Cortex-A15 Date: Mon, 23 May 2022 19:05:13 +0200 Message-Id: <20220523165810.180099864@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165802.500642349@linuxfoundation.org> References: <20220523165802.500642349@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 097ef85bb7f2..bcb9181601d9 100644 --- a/arch/arm/mm/proc-v7-bugs.c +++ b/arch/arm/mm/proc-v7-bugs.c @@ -301,6 +301,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