From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F124C433F5 for ; Tue, 22 Mar 2022 18:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZWuLRqZrwb8pZcma4PucuQNDrn1oT+evSlSf8rvVHsU=; b=CVYgPI8ILPLXwG NdDWly/EItH5UkwTZoTy5ELBGu+1VpivpErPsHFJvAe7cwhVMvqHUuZgKSD3pNxG5tewqwo0T8I0V KfGl1w1AWzQSzxHjB9WSHIHI/6pD3f4nCSu7bnC8MiknKg1JBUcy1ByztOF1xhK7GxVPR6ELr6y/W scmoK5eB4nTu1hXFp0gAJJZw92JgDW8eoY9GLr1g3hWeVBAWlY6KSEapahcf/5bYWuNlaa1xGESVY F6koLhSpEaMagyZA1oG258kp9A6M2p/3xplR2rq6RLEvSWyU0r+gzQZDAGWmHfa9IpLsYwf73uevI cXtDXUKLmXAAthGg1bgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWirR-00BocS-Vi; Tue, 22 Mar 2022 18:04:02 +0000 Received: from mail-db3eur04on0728.outbound.protection.outlook.com ([2a01:111:f400:fe0c::728] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWirN-00Boc6-Ln for linux-arm-kernel@lists.infradead.org; Tue, 22 Mar 2022 18:03:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H01Dai/375MeHwz1GcuH757FNMsYXiAbMf5PXmE5Az4joWtQ8ZeeZucjacl/CsAHUCyt/dUyX5lBKITFUZMF1V9HwNS9w/irdLSELV1GPQYqMOGhY4ZKp0L/roMQBZMmZXwxoPd/mCLTbrPDvMNOcBhsHJsBc/y2lZbBbfwoX9tYN3+/lJF6G79QNrwcecmj8SjcjJjVzXnMSjQ1hhLKmiS0Cu/c8rSkcRbi8paARpUEN/7K6dO+CaKCE6LMOEujnGzadzjLwb1kHpFHHEPsnLILo/MpZ5BIEM7sZ46C/sXaBy6WQlMjrLyPU7OrpjzGoW2vEaoq49TYv5yyVDh+6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lz1WgASHEPA0X44O4lXZ8izyH3gOZX9SdR+3QGWNn/g=; b=ePsqtPEj0jV4K9PlHHZBnU5vtk3dJFXzbt3MEnV+U4KvYufOapAduNquMYDLgieP0T+2UIPwt5eXYtTkXrEaO9b8rDaX3hNjJgyXhfMhVklsB3/gZ57bB0fHAdmXd6y/We3dwRW5gF1JPF/79TaMSH3sxpcRmYwlts9ngCAn8R3d+ilrvjtoDBYruNqDJMC12JcePTzt4nRvOk49ovLmgwFTPM9kuqk80nM0iQz7wncF/9DofohYKTsS+azwsFsXy9xUyseFW2NYYatX9JkTlkF66TwS2k2oSuEBsGc0fMAKqREJwnN4qCuD4srs9q5CRmkBV7i7acfGhXahp8Ww+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 217.111.95.7) smtp.rcpttodomain=armlinux.org.uk smtp.mailfrom=arri.de; dmarc=none action=none header.from=arri.de; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arrigroup.onmicrosoft.com; s=selector1-arrigroup-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lz1WgASHEPA0X44O4lXZ8izyH3gOZX9SdR+3QGWNn/g=; b=aQqgkh1rtfRqNsKWPJRkGoyerFcRZhvDZD7H1eZWX15HkCM7r101bbUzinaIM100D7amQ/0UAjW2sAFWggCSSGPOnc1RYNiny6kGdj+jS88OBKbbe6HvjRPXgYFfovw9zO7CPW8v1DEqWtkOV6I3cb+pCFP0bq6WrlXztvnOGyw= Received: from SV0P279CA0031.NORP279.PROD.OUTLOOK.COM (2603:10a6:f10:12::18) by VI1PR0702MB3582.eurprd07.prod.outlook.com (2603:10a6:803:4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.7; Tue, 22 Mar 2022 17:49:19 +0000 Received: from HE1EUR02FT060.eop-EUR02.prod.protection.outlook.com (2603:10a6:f10:12:cafe::44) by SV0P279CA0031.outlook.office365.com (2603:10a6:f10:12::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.16 via Frontend Transport; Tue, 22 Mar 2022 17:49:19 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 217.111.95.7) smtp.mailfrom=arri.de; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arri.de; Received-SPF: Fail (protection.outlook.com: domain of arri.de does not designate 217.111.95.7 as permitted sender) receiver=protection.outlook.com; client-ip=217.111.95.7; helo=mta.arri.de; Received: from mta.arri.de (217.111.95.7) by HE1EUR02FT060.mail.protection.outlook.com (10.152.11.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5081.14 via Frontend Transport; Tue, 22 Mar 2022 17:49:18 +0000 Received: from localhost.localdomain (192.168.54.188) by mta.arri.de (10.10.18.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 22 Mar 2022 18:49:18 +0100 From: Christian Eggers To: Russell King , CC: Catalin Marinas , , , , Nathan Chancellor Subject: Re: CONFIG_THUMB2_KERNEL=y boot failure after Spectre BHB fixes Date: Tue, 22 Mar 2022 18:49:17 +0100 Message-ID: <2109354.irdbgypaU6@localhost.localdomain> Organization: Arnold & Richter Cine Technik GmbH & Co. Betriebs KG In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [192.168.54.188] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: daec52f3-af3a-47b1-b7a5-08da0c2c4a2b X-MS-TrafficTypeDiagnostic: VI1PR0702MB3582:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: djoN/lAQ7IKvvVQZzrv7VMurB7NwZ5W/O3XfHylI5QYc4goxoyryrVC9HiszNn8BbHl9NP+pjaL1B8WCPUXvzXgG9P/z+uX5xJAoOTcrg/x+WHsIkOpzt91lfcOKzn0/eXf1yJl43MNN9yJCG2o+F/XNhoXwLDwnRpD87fZqjVKsGZzCCPK6PAF4u6dtBFtLsoWUWdykYfa2W8tA6oBGSVdROaiVWkx5ZZ0SxdyxfKjd9JoZGTLBGSFs+Yjtb/Q4o4Ylvip3gN4Cj0hT2IUaPyz0+z2yB5WNFNhYJqblwDI5V7UbWLR4yAIgYtFqMa5FEOaBl1MxIDfPmhVNtCGvGBzWAfNpA8HsrE41BGKB71DlXNX/Xhw/xHiz+mTqtaafcJ/n23cPZyyF4wuvs30JzjT1vGo6Y2/fYnIbIOetDUw2dnd7V7KMBNljPL5fpiG625jPROAdEJASxwdyWkDXXPhn3YOTJsMZN4EQnRqUAOnY9MPBv4R/KybUGW6AcRHJJNzFiaoUesKZ6TPoXz7RjQDXjziGf23QJPEZankWF7zOTKF/+dhDTMaDF96LOgjA8B5GpNHn0g0wujQKBtZN3V4ACCaEeU6UnnPel3MONyvU8F6D/Kvc37BUHLnbsDG27qs9Lfgw5f5nC70Xxw6a11guAy1hNC8W9Y0DYlGGswuwMXe+DeQ15HMfN1NAMOZd2jaGYmJaOzEhfXUuNkl2qRjMh2Tbkx0qtRGHyAFDfo5ByU0eq8UFyu4M8MxYv81aIA3lzubiRwiMWjbgy5wFCsgnPTnzB9vmxC14W8yIqXFojpBdnigtltxuG9fBZgtSLDhvauH23m27DEAwR/hUCJ1j6ihe5180CH+BCLnHY28BWuaVwCFsE4x7DHwcABXg X-Forefront-Antispam-Report: CIP:217.111.95.7; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mta.arri.de; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(110136005)(54906003)(8676002)(4326008)(508600001)(70206006)(70586007)(316002)(81166007)(2906002)(356005)(186003)(82310400004)(9686003)(16526019)(966005)(26005)(83380400001)(47076005)(40460700003)(5660300002)(8936002)(86362001)(36860700001)(7696005)(36916002)(426003)(336012)(55016003)(39026012)(36900700001)(2101003); DIR:OUT; SFP:1102; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2022 17:49:18.8096 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: daec52f3-af3a-47b1-b7a5-08da0c2c4a2b X-MS-Exchange-CrossTenant-Id: e6a73a5a-614d-4c51-b3e3-53b660a9433a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e6a73a5a-614d-4c51-b3e3-53b660a9433a; Ip=[217.111.95.7]; Helo=[mta.arri.de] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR02FT060.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0702MB3582 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220322_110357_730949_1F38A1D8 X-CRM114-Status: GOOD ( 20.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. regards Christian On Thursday, 10 March 2022, 20:16:48 CET, Nathan Chancellor wrote: > Hi Russell, > > Apologies if this has already been reported, I did not see anything when > sifting through lore.kernel.org and I can still reproduce this with > current mainline (1db333d9a51f). > > I noticed a QEMU boot failure with multi_v7_defconfig with > CONFIG_THUMB2_KERNEL=y in our continuous integration [1]. It does not > appear to be compiler specific, as it reproduces with a bunch of > different clang versions and GCC 11.2.0 (I didn't try other GCC > versions). > > At commit 04e91b732476 ("ARM: early traps initialisation"), everything > boots fine. > > At commit 8d9d651ff227 ("ARM: use LOADADDR() to get load address of > sections"), there is no output from QEMU at all. > > At commit b9baf5c8c5c3 ("ARM: Spectre-BHB workaround"), there is some > output but the boot still hangs before init. I have included a log of > the output of QEMU at this revision along with the command line I am > using, which comes from [2]. If I disable CONFIG_HARDEN_BRANCH_HISTORY, > the kernel boots. > > If there is any further information I can provide or patches I can try, > I am happy to do so. > > [1]: https://github.com/ClangBuiltLinux/continuous-integration2/runs/5496036256?check_suite_focus=true > [2]: https://github.com/ClangBuiltLinux/boot-utils > > Cheers, > Nathan > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel