Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp13200pxb; Wed, 30 Mar 2022 21:26:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSY0l9h4sih817n65POknh8ZPAUUw8FLHXar91uiZ30Hr2cOPC0fk1cuvKSSmtMk6PGEvE X-Received: by 2002:a17:90b:4c84:b0:1c7:7769:3cc7 with SMTP id my4-20020a17090b4c8400b001c777693cc7mr3896681pjb.73.1648700768367; Wed, 30 Mar 2022 21:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648700768; cv=none; d=google.com; s=arc-20160816; b=Vta3WE8vZQgTYvQR2LKj9S1YCN+mAui3Lrj6YY5x+x54OchQ/qejrpG3S59AZtcfHR 7Gm17saS4akESNfcpCyM1NmPEtJXQ8LqlUf/QTUQ3vSB1N+14ltH/+MoDsx1e0GmDPei pvSZaN5XEm35rt4no+0RW7FbV7dJlOy3m1K9hAzZQeGVOqGocGStXn8ZOC+0IlmdcowL 3eLRXI76ZiE4sOpgpzpADCwOtZ0T0prZeE1mSl8JLKvVfwnh2mHqQpoipbwLT7s8YSM+ J0tkZ0n+lkNGOTZjN/AO3JoPyuShjsv0augbIbaCyd8l2XrzLIyNXqrPcOh/BhnzujI0 25Vw== 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=77G0F4b0uwsjloi5vpVbbOR9AbSeZssGZPEW0hy+Xb0=; b=mQbzGJhBk8iWORTcb98JK8oYrfkhWKAqi9iUH4Z1AdI9Y3ZGF9YVnz32gjoTwYqeiC /+f2WZVYHp6IAIj0xLegc4MX0A6saZC0aK/ykRG0KD3cLv9lbBSqAXU6AQrxN73WfYDa FbaNeQTWfGPOmU9lWrvR30TJgalH5hP+Zkz41ziMsUJfcLPZxxgZTX73TMrZHduVp1wX BF4ZjeqxfACNzA7u6MMQemPb+Zh8jsItcwEdlOLM/TEE5jSYbGi4M8lRpZyqSW6hIQVR 5psqIb50KfLY0XLRAtFh5rtHPobxYQEnxHIhskkkNUWR+BeAPP7mcWCwyQBCLtSJVhED zJJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Td1kpocY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id h24-20020a170902ac9800b00153b2d16654si21309417plr.604.2022.03.30.21.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:26:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Td1kpocY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 6E85A1BE12E; Wed, 30 Mar 2022 20:21:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348974AbiC3QrV (ORCPT + 99 others); Wed, 30 Mar 2022 12:47:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348998AbiC3QrS (ORCPT ); Wed, 30 Mar 2022 12:47:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B535125DA82 for ; Wed, 30 Mar 2022 09:45:31 -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 4650D617E4 for ; Wed, 30 Mar 2022 16:45:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA3CFC34110 for ; Wed, 30 Mar 2022 16:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648658730; bh=tehy4fHX+fMMENwFIm23z4gzb7EwaFuXoodcZ5+V27o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Td1kpocYHFTaB9eUIqD3NNf1L3jLMoGgepA24KfMV7j4b8W1lKrQh9bTu8sKWcfRX Uk/Xk4X8KmPdHSE17nexD4LqqoWJSYSda032DDneslxAZTE+MpBdk4O6Q+L8ZFuEkS x+zfq7Ga+lW0iU8BGxAkJT1ygpsYUevmiv4srHHFAhJc+V24AohL9m5UkpmB6i6Asi VcfXYM4QtApqgSi3vfj4Isx7NOWhHt8qmZXO3NSuEh8vp8YqQjc3yVLKT8yRPgIMYz DVxuNFsCUjh5Eaq1WwB484tj5l+XGhk1PKRWa1Z1Hmf2xmbRxx5+65GkfAqgJ8ghTx RuQj9tgYCz8Yw== Received: by mail-oi1-f172.google.com with SMTP id q189so22579663oia.9 for ; Wed, 30 Mar 2022 09:45:30 -0700 (PDT) X-Gm-Message-State: AOAM5319OVfrgrwa3RpVQ/Ft6nabepxTW2pbPF1rvpa5aFzOA3pn3hsq BT6lGpchSdvkRSYQ2FtlPjDhohaW93ssO5Jsmxw= X-Received: by 2002:aca:674c:0:b0:2d9:c460:707c with SMTP id b12-20020aca674c000000b002d9c460707cmr321468oiy.126.1648658729844; Wed, 30 Mar 2022 09:45:29 -0700 (PDT) MIME-Version: 1.0 References: <2109354.irdbgypaU6@localhost.localdomain> In-Reply-To: From: Ard Biesheuvel Date: Wed, 30 Mar 2022 18:45:18 +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:37, Russell King (Oracle) wrote: > > On Wed, Mar 30, 2022 at 06:34:25PM +0200, Ard Biesheuvel wrote: > > 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. > > And what's the current status? Sorry, I've way too much email from the > last 2.5 weeks to find it myself. > https://lore.kernel.org/linux-arm-kernel/20220328134714.205342-1-ardb@kernel.org/ Nobody bothered to respond yet, I can drop the first two in the patch tracker if you like.