Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp11968pxb; Wed, 30 Mar 2022 21:22:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy80p1jRXF1n5xAD3got0EAINfZrXDm1NdHHQcWsgHRDIFegohzMRnISuBIqR0Aw+XBZ3a X-Received: by 2002:a17:902:e20a:b0:154:bfb8:7141 with SMTP id u10-20020a170902e20a00b00154bfb87141mr3426681plb.164.1648700570948; Wed, 30 Mar 2022 21:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648700570; cv=none; d=google.com; s=arc-20160816; b=ABXB291XBFrfv0cJNvx67iJjJjUHbgxc1fW/WmeqPzV5+WQ4HQTstOFUYbc3mTsU1q rBj7t+rTQSb7dS5HABHezX8uLeOmaOL0EARLdkIKUYoMuK0KBmF9pOfzjM7ZoL5J5lMD FwPKHd603HSPZaQbh0UkOseCbjLIZI2QIeGqxexN9ss8jCRy8tvaEslOU1caoM5g9td0 R7Fn0lVsW6lJfPyO6TQXFtH6KgJg4sCizlm0pZQu3QZ5B2c5QNDIZnbFSp0EriA7DCVR YdE6L1BzjbgP2+vYFlQ5SRNoFZ0bCBp6NGiMCwPbBK/xmet1nMnaHl5sZrV8QE1dH1L3 anYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=F0CwFYHI3vMkW01SIaDmHFfF4Ra12QvIsg9Hg9Ejd4E=; b=he3lhSMrAYR5sxEZnKLdu6Al9myHqkHQyngaavRwrrcX72Bx/AxF8Xxdb4rdsKhz7g huFt+2O8LB3FVidYBsmWwpkg84o3qEWB159YDrYk+b48wwQ6XXps4ATJ/ugeG10yi2Io 7yZCWs229yr3Av4VX+K9+STHqJKH2sRlaYWdXrYJvIxGszfDudopB/B/PMFsS+NQQFqM rHxfDL/eBa2jVTjELmpSnqS4at8EE9LCz2RjCT/Hlb3gyaTJ5jIFUaBnInOqRtunrgUa Enh/+vypG3pNLISuC6scbNIMxKh2syLWeRQIGalph0oxgvGyotJpDW5TxMPYgWDwkETj ZFuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fu+2gLX2; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i187-20020a62c1c4000000b004fa86593770si26917724pfg.145.2022.03.30.21.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:22:50 -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=@kernel.org header.s=k20201202 header.b=fu+2gLX2; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F30F61A7723; Wed, 30 Mar 2022 20:18:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348857AbiC3Qgg (ORCPT + 99 others); Wed, 30 Mar 2022 12:36:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348865AbiC3Qg3 (ORCPT ); Wed, 30 Mar 2022 12:36:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BA8D193162 for ; Wed, 30 Mar 2022 09:34:40 -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 E60DEB81D7D for ; Wed, 30 Mar 2022 16:34:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ECFFC3410F for ; Wed, 30 Mar 2022 16:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648658077; bh=XxksR6VYfpVoCvd6RFZQQ4LAgDvEsQYSq1TNcOzLoUs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fu+2gLX21a8OwVa/+N7C35Y49yttDoosDiB88ncyF2EJRJq1Y1Lm1QmWZYUjYPDWB LI4c3qy/o8BDQwI3IMF0/BgekvEW6O+eYkafiwwEwNZGYFVZBiuPTILQfhbXRDS4ZX 5bmSFzBTHiBsFIQmMsqNijGUYmQx12q0ACpwfkKpK7l1tgtZrxPfTCrnxg023PGp23 BV1vVlOtAX/+ZXz7Xo7iJqqUkB55ywTr1Fw6gTFtSaQ76Uu5Se9yVcLTVl9+AaV8tU xuWb3/vi/i8li2xwKeGaIs7LcvMj3y579WIIl0FuBH6UmnJ82b9TeJQa1rgj8C0oVu 4q5yvWdb1fsIQ== Received: by mail-oi1-f173.google.com with SMTP id r8so22591668oib.5 for ; Wed, 30 Mar 2022 09:34:37 -0700 (PDT) X-Gm-Message-State: AOAM532r8S5jdRptm38EHfnViLoyRaYpBTwxq1Dv2ZOux3Dm+jFDvTMG 2epZ7D6YXXBvED2Y6Ix3x1aG+BpglKkEu32i+ng= X-Received: by 2002:aca:674c:0:b0:2d9:c460:707c with SMTP id b12-20020aca674c000000b002d9c460707cmr291303oiy.126.1648658076649; Wed, 30 Mar 2022 09:34:36 -0700 (PDT) MIME-Version: 1.0 References: <2109354.irdbgypaU6@localhost.localdomain> In-Reply-To: From: Ard Biesheuvel Date: Wed, 30 Mar 2022 18:34:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: CONFIG_THUMB2_KERNEL=y boot failure after Spectre BHB fixes To: "Russell King (Oracle)" Cc: Christian Eggers , Linux ARM , Catalin Marinas , Linux Kernel Mailing List , llvm@lists.linux.dev, Nathan Chancellor Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Wed, 30 Mar 2022 at 18:12, Russell King (Oracle) wrote: > > On Tue, Mar 22, 2022 at 06:49:17PM +0100, Christian Eggers wrote: > > Hi Nathan, hi Russel, > > > > I stumbled today over the same problem (no output on serial console > > with v5.15.28-rt36). During `git bisect`, I had also some commits > > where a few lines of output were visible. > > > > At commit 8d9d651ff227 ("ARM: use LOADADDR() to get load address of > > sections"), the system boots up to here: > > > > start_kernel() > > +--setup_arch() > > +--paging_init() > > +--devicemaps_init() > > +--eary_trap_init(vectors_base = 0xC7FFE000) > > +--copy_from_lma(vectors_base = 0xC7FFE000, __vectors_start=0x0, __vectors_end=0x20) > > +--__memcpy() > > > > copy_template.S:113 > > ldr8w r1, r3, r4, r5, r6, r7, r8, ip, lr, abort=20f > > r1 = 0 > > > > > > With the final v5.15.28-rt36 I found out that the system boots fine > > after disabling CONFIG_HARDEN_BRANCH_HISTORY. > > > > Is there anything else I could analyze? My SoC system is a NXP i.MX6LL > > with a ARMv7 core. I have access to a JTAG debugger. > > I think this is already fixed in mainline. Commit: > > 6c7cb60bff7a ("ARM: fix Thumb2 regression") > It's still broken - I sent a couple of patches on Monday, among which one to fix the boot issue with loop8 on Thumb2. The problem is 'b . + 4', which produces a narrow encoding, and so it skips the subsequent subs instruction and loops forever.