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 6C487C433F5 for ; Wed, 30 Mar 2022 17:49:24 +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=bpSJ7XaVtNNDgycgQSybzaQ22W0K2HAJ8ceBOCPoIsc=; b=smxT6XJ2G8v4l/ yV4VWP7L5yvetSqGWxXnNVNtZUKzhT1u3shOGV3ZEz/19078eW6OwBc3HqkPDEVdiFbevGyHLndhL iKsCphc/fR/6QwMye5mqgX3eixqtrwntaJVQymntZXz4ce36sRECbfs44JvKjXk8MjdavYCG7xL23 3/aFOIOPg+PFmQOdVR/6WwsNSsKvQmu+Le11sv2/pJxdfAlGBKvzRZsgHw22RBdGI2CAA0oHG4XTU ev8ZInv8ira57plqc910MeCB8X9LJxeEPn6p53NZiCdNFxFC+gmt/rkG8WH+nfl9BsPpBl/HBnv/g zoTUdarh9OKAQhLboLrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZcQO-00H2Xj-T9; Wed, 30 Mar 2022 17:48:05 +0000 Received: from mail-am6eur05on20719.outbound.protection.outlook.com ([2a01:111:f400:7e1b::719] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZcQL-00H2Wg-03 for linux-arm-kernel@lists.infradead.org; Wed, 30 Mar 2022 17:48:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G4pOkm6RdqURHOG87FwA1a7KAS8G3L11rd+ozrWehPxVWKvSoxqtSQLKl4DlRWCgd3aDKLZNiyYmRGVT/DN1NvoSkA4MO9kxiJHnhIsmaxsgjE5wqZzh6gpc1Lh5TShdUXuXY16+d8Qvxi3i0KnaJK+++dsqODSGKuDNZvmPS38Fc8Pyeqb4OpUHhqqzens77I3tCC/KlX3YXBKMT0oa7XSl72ucvbxdfc8al+P6CumkeH9+Vd2YiDDNfcEhjzMmEmB07USHGk4//FAvwM7MvFEoTahlRIjsWBy02ie3jG6gNKa/z+46k6fiFTG2EZn8hSLP5BLsab27rMxSEAKAAw== 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=qGHX6vCAwFYQZcpedUMNcNLq8rxXU4d7tMcUTPoTf+I=; b=OAf3BAKKota/UZfK2S1VnymDrOaWJ30h3E3pwrS+sVonq7GdwNHXQlfqynfivQIwhuTfA7dO+mLvSU7zFQ+iuIO+xgXIB30+l3XcPDSKuyM4oqGCMQXAk3ukBtTfgJ32ev9BKphq0lUyV0IE2DyycXL6+BDkPIWHmz38GRVU80OF2+YAGUB8GMLJzkmKbrBvJm/fis1dIlmy+sHoC/pTWrVmgOW0CeYJ3WrefwMUNL3Xmq61dI/sDKiSywb7MSPfw9Qz9IJV9XLkclfsmTagDMuBS9mJNgOlO0VjuK0uW+HBSCp+2AVbIvg1tB5EmxnGdpCscl1IOTCpsEyZqLuYog== 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=qGHX6vCAwFYQZcpedUMNcNLq8rxXU4d7tMcUTPoTf+I=; b=icfbFmrXC02Yw+mPwVIlFn7ocl02xKmVgIGFgYd5zKgnQCpmF5j0Q7WWHTbMu7e8wbkWWFpL7+fegxdVW/XMqBaJeq8y8SIoQo9A//i6gRUD7V+sppWTX3xCNd/uuDe5dz1VtnhmklTMweFBiDR7/qq1VFcRYyCzWlyAyJSRJ5U= Received: from AS9PR06CA0238.eurprd06.prod.outlook.com (2603:10a6:20b:45e::8) by DBBPR07MB7674.eurprd07.prod.outlook.com (2603:10a6:10:1e7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.8; Wed, 30 Mar 2022 17:33:02 +0000 Received: from HE1EUR02FT070.eop-EUR02.prod.protection.outlook.com (2603:10a6:20b:45e:cafe::85) by AS9PR06CA0238.outlook.office365.com (2603:10a6:20b:45e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.13 via Frontend Transport; Wed, 30 Mar 2022 17:33:01 +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 HE1EUR02FT070.mail.protection.outlook.com (10.152.11.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5123.19 via Frontend Transport; Wed, 30 Mar 2022 17:33:00 +0000 Received: from localhost.localdomain (192.168.54.86) 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; Wed, 30 Mar 2022 19:32:59 +0200 From: Christian Eggers To: "Russell King (Oracle)" , Ard Biesheuvel CC: Linux ARM , Catalin Marinas , Linux Kernel Mailing List , , Nathan Chancellor Subject: Re: CONFIG_THUMB2_KERNEL=y boot failure after Spectre BHB fixes Date: Wed, 30 Mar 2022 19:32:59 +0200 Message-ID: <10062923.nUPlyArG6x@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.86] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78b0a886-6fcf-4450-881f-08da127356a5 X-MS-TrafficTypeDiagnostic: DBBPR07MB7674: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: KIKGMjoRLEmM9nTABNE0z1CEPGNyYZp+CoENQijv748xAhPn7flI/cbHPIE7dqm4oRR2emUJyslmBwe7BzBqzJpuS70c3nkMVxc7/+1rcarMac0vRZAEDbZaaniQ9jUNffC5mAdm2Vn3OJ3ecb351DjoWMim98J+jaTDlHsm7gtFJbHevV2SQtVqH9+zQsVUW3upNVTGEjyaYssa71rIF+h52iJwxGTEtvkUquOKNyExtU+S5MzhNtLeLZ4Qo629MZGJlThgv1lHVQ82aGS5uuXFMUkelq8B+YENaeKwLfgpJBwFNbRX0LwoFQANGpMmwfUoV4DiDZuMwjBDv5/Nx37RtNPUhaHZLg5UyRiB02zVhO2R8HNsoWEJ0AiirFMK6gtR52pJl585JJsQUKG90crWlgcREboC7h8d9WbZC8ula6Ry46Yz9uwteOpROpmB092PEbEUgHZx5GTZeGUdSMod33uCfxbtArJfqd3QvMXKZa4h42P0Get7xcgtIRngqAF8uWPNAYcXghF70KRko6FK7+UsJHKUJuY/3Af7EqL9mKjWxvwSv0CJ4dAo5hNjLzzrT5a0S9a4fwV701LBDLmwW/AEHojthn8LK81q8SLT4H6+tZ/OUec+fgLHpmrBIlvmc9DgllBzVDVz5g43oL6aG7zEGXQNYxSLvJaJwcXe1ViGQVanifKMZPTSJFucD3Q25V2OTboSKHXTxvcTufrg6CuRAJEnOEbvjcHR4AhnbW40cw4Dxi9lfQjDyYMH8cs3F7asUCVs/IKhG1naveBNFK+ptY3yZLgFIPV++Wax7teQuWzNQ5mHow2TSPLk 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)(46966006)(36840700001)(40470700004)(36916002)(81166007)(966005)(508600001)(356005)(86362001)(54906003)(110136005)(5660300002)(47076005)(316002)(82310400004)(4326008)(8676002)(186003)(16526019)(83380400001)(7696005)(40460700003)(8936002)(70586007)(36860700001)(70206006)(336012)(55016003)(9686003)(426003)(26005)(2906002)(39026012)(36900700001); DIR:OUT; SFP:1102; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2022 17:33:00.9793 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78b0a886-6fcf-4450-881f-08da127356a5 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: HE1EUR02FT070.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR07MB7674 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220330_104801_053505_0BD74108 X-CRM114-Status: GOOD ( 27.86 ) 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 On Wednesday, 30 March 2022, 18:45:18 CEST, Ard Biesheuvel wrote: > 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. I just switched to v5.15.31-rt38 which already includes 6c7cb60bff7a ("ARM: fix Thumb2 regression") This kernel boots fine now, even with CONFIG_HARDEN_BRANCH_HISTORY=y. After applying the patch series from Ard, the system still boots fine. I haven't any understanding what these patches do. Is there anything I shall test? regards Christian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel