Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2060780iof; Tue, 7 Jun 2022 18:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKT4NM/KqIt+m1mcqX3tkvfkvEF2h7vezcueLS9zeOZ6eAPZhzVXyCc+n89kOl49exgMDq X-Received: by 2002:a65:6e8b:0:b0:3ab:a3fb:e95a with SMTP id bm11-20020a656e8b000000b003aba3fbe95amr27618584pgb.433.1654651594074; Tue, 07 Jun 2022 18:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654651594; cv=none; d=google.com; s=arc-20160816; b=XbsC6BUVYjY6SovcMtTDDphH2NaldIM07i+qJzyLqooMlao8wx1lKcJsDXf+qwpr4Y h1fvUPxVyfXBZoGHD+D/xgOzOxyLEl3tm8k2y0w11IswzXnOJzz69Uter+3ab06n33BA AOr7kLco0Q/Hw8yZeI0q0oNbRbL1ytu+cpct95gRXIRdQVbRoJo5yprPBpIKtp3FYtfG e8vUsQ13+pugD3mAhJCudMZVqsSDX6Lt772h6ONIMUwsm8CNLnar7heFY4H/BGXr4mon FpNc8bbvovCG45Qs0YictT6n9aV0cOVufGp3jntbi067SaoVYZd1Dd9tuHyrLmQUpdgS mghw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=UzAFOh0dSi5b7YcRWFXZow4QCyM7X3zyC4kDiKLs6oA=; b=imt1KCbEoGZY8VAlsLV2A7vhVigv5n36w6ZlU68s/7DnuTVrA9EX/IHlrHEugaFakJ mDQ8HqGwPkw2PDBi6frcI850u5dO7Kch2sYuLSlsIqCMIaEXHru9z14kRytApywKf6VI S1+LrTcxzvCs6MmyVRY6MP5ZIAmkNTvSXg83Kkf02nAB+13ebvpgqyaGbk/ZjorIDE/C EEBfjDCrA4iRwr+0UfWX3YMNb1qcBBrYaXaJmqz1QnxHI0cRDIEKTHl9ZMRX6NhhZyk1 pYRxgWEHtmebb8qggojHWO3WcDX4Ivm7fsFBDaSGbioBUAeX9DqewHRlxmcAdM7KDoXL F3Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=T5kR40O4; 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=raspberrypi.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k13-20020a63ff0d000000b003c2777712d8si25721970pgi.468.2022.06.07.18.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 18:26:34 -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=@raspberrypi.com header.s=google header.b=T5kR40O4; 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=raspberrypi.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D73D926CE43; Tue, 7 Jun 2022 18:16:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245342AbiFGPfj (ORCPT + 99 others); Tue, 7 Jun 2022 11:35:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236428AbiFGPfi (ORCPT ); Tue, 7 Jun 2022 11:35:38 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 423A3F68B0 for ; Tue, 7 Jun 2022 08:35:37 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id q15so6393205wmj.2 for ; Tue, 07 Jun 2022 08:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=message-id:date:mime-version:user-agent:subject:to:cc:references :from:in-reply-to:content-transfer-encoding; bh=UzAFOh0dSi5b7YcRWFXZow4QCyM7X3zyC4kDiKLs6oA=; b=T5kR40O4jIf93Fzt2vVjHZsWJdRsDbXUsWf+mvn1wIXbxiVgaP5IefQAlFt7hUxPLw rUHJnaENpHIaQQ5LD5GYbGFLr/ivNwinMXUz3J/LMQc0uSeEv5klV5kQgxojKKCrqT6K z8O5hGcPPFVeRibn0sn6StjcyJugXjVuKtNDos/NoE4mFB64LDwtgd4zef/99rLnWwm4 vQIC98SKhKJePLMpRBVse3kuDKRKqQvLkTE3ABXMs6kjiVEwmUQzkVohuwLxerT1z9sa 0mFV7MhEypGwD8gH/3TNX6QqtchzS5h+UoteVBwLpPaJlUYlXl00HMEKhepD5Y/Nbv7U 0HvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :to:cc:references:from:in-reply-to:content-transfer-encoding; bh=UzAFOh0dSi5b7YcRWFXZow4QCyM7X3zyC4kDiKLs6oA=; b=KoOPofzppR8d9uNdWmKWPECihdYxS5wHZlzE+xqMsNXzg9bT8+AmKNKtZQQKEzTu7D 4rLmPlDpoUY7UsM7ackeMG6efIv6Sqq/+1LuICPi4eBstr3Ux/0c0Xgj4ET50PuhzFjQ e4Es5XY39ui9/31DEkDo6kpzdUXmnKwSLxVtzq+Pf99z4n0J4p+ltrCg1RWBnjxo+75X hjv9iHk4d5P3BQatMVp3/kIIjWvtcEBUpKHSKOUtDPbKMay0FwXjeSqeTLQL2ZPb8fxi yyomucloD62uOzdtkw0kpx1sB3AykZA0ZSaTUlrSJbAkcOHRBWAYu+/PqDe0XHBiOJ57 EfdA== X-Gm-Message-State: AOAM531Mq4gYJYfEoV0OT6r/GMswypySUnLvckKBf7DMWkeqzRbHHjO3 rDgafE6ao+jz5ySPT1ZcpItR/Q== X-Received: by 2002:a05:600c:2054:b0:39c:3f73:3552 with SMTP id p20-20020a05600c205400b0039c3f733552mr23997611wmg.15.1654616135853; Tue, 07 Jun 2022 08:35:35 -0700 (PDT) Received: from [192.168.187.211] ([86.12.200.143]) by smtp.gmail.com with ESMTPSA id s13-20020a5d6a8d000000b0020c5253d8f7sm18217141wru.67.2022.06.07.08.35.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jun 2022 08:35:35 -0700 (PDT) Message-ID: <25c1a57e-af67-ebc8-ab13-6532bf6e6e75@raspberrypi.com> Date: Tue, 7 Jun 2022 16:35:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2] ARM: initialize jump labels before setup_machine_fdt() To: "Jason A. Donenfeld" Cc: Russell King - ARM Linux , Russell King , linux-arm-kernel , LKML , Catalin Marinas , Stephen Boyd , Ard Biesheuvel , stable References: <8cc7ebe4-442b-a24b-9bb0-fce6e0425ee6@raspberrypi.com> <8c3fe744-0181-043a-3af9-dd00165a6356@raspberrypi.com> From: Phil Elwell In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 Jason, On 07/06/2022 16:14, Jason A. Donenfeld wrote: > Hey again, > > On Tue, Jun 07, 2022 at 10:15:27AM +0100, Phil Elwell wrote: >> On 07/06/2022 09:43, Jason A. Donenfeld wrote: >>> Hi Phil, >>> >>> On Tue, Jun 7, 2022 at 10:29 AM Phil Elwell wrote: >>>> >>>> This patch is fatal for me in the downstream Raspberry Pi kernel - it locks up >>>> on boot even before the earlycon output is available. Hacking jump_label_init to >>>> skip the jump_entry for "crng_is_ready" allows it to boot, but is likely to have >>>> consequences further down the line. >>> >>> Also, reading this a few times, I'm not 100% sure I understand what >>> you did to hack around this and why that works. Think you could paste >>> your hackpatch just out of interest to the discussion (but obviously >>> not to be applied)? >> >> This is the minimal version of my workaround patch that at least allows the >> board to boot. Bear in mind that it was written with no previous knowledge of >> jump labels and was arrived at by iteratively bisecting the list of jump_labels >> until the first dangerous one was found, then later working out that there was >> only one. > > Looks like this patch fails due to CONFIG_STRICT_KERNEL_RWX. > Investigating deeper now, but that for starters seems to be the > differentiating factor between my prior test rig and one that reproduces > the error. I assume your raspi also sets CONFIG_STRICT_KERNEL_RWX. Yes, it does, as does multi_v7_defconfig. Phil