Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7452905ioo; Fri, 3 Jun 2022 06:58:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi0YWHrExX6szabE69yX+YL7R4jTeqZbICbPal0lcdmjq0CAm5YoX2awJf6eQ9LknWTt3V X-Received: by 2002:a05:6402:34c2:b0:42f:79c0:334b with SMTP id w2-20020a05640234c200b0042f79c0334bmr1702052edc.88.1654264691200; Fri, 03 Jun 2022 06:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654264691; cv=none; d=google.com; s=arc-20160816; b=rUQwC/R7AxAWB46KT00923PMfzV7GPVThI0Qb29/NvuTNWDkps2p3T/3jRHBGMptOi lG2Hb4k4JeR3607qdSRj6YOb0WWW6ACidwYyn66/mguVCGIe7Yb/krxtD07BMEMr/Ytl Xrk0RF/4R17nIcrR2sSU4TDM8Hk1GgtotCePDc9OP2wbC5dKnzcx9GprcEoOU/rwKngt BJp4tDdfMHwBkC2UzfWtvYxkZyXnKq3zS1tkr0hCttjTwbnWT9X94RLnkAB/u9IoS99v dXn8StnJ9G2CZSbLHverkVLcIopebMIRSRZSIlyotWS2hyYGn8Qf+XbDcNmmKl1ifUm5 0IGw== 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=2qMPynZBosM10jO+yr/XLmcutWReS833WJBFW+WSiSo=; b=Ba3EzOx/ToSEDNWD/PcqPxB0JR3wlrdbrKivMoV27HizewCcb6weZtcjFoiWhg0kf4 2iemvUOCwv04oWELrt0r7loUO6FotvzOJXLHfnK14/05zcwL8zTbuHkuSEx2VeX4Y2uX x/1OFaqQneVc4xHTOM3dKq/fHq8WNHxiVGvgCZH7Pb562600ZuNVL6Bxr+9jGPI0s4wg UV8RIC1AxDSJrgYG1ZByd7VROu2h6mKSaf4SBGDRPAXDut1EV6YaznNWo530byu5J/Tw wg1iScFw4/dvnFrkKrRSuOo6D0wIZ/92woZW8ie3cX6EpU4DBxrXKbigwcpSnAKimCPh yffg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+8mYsoc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w25-20020a170906185900b006fef872f3c4si1343729eje.182.2022.06.03.06.57.45; Fri, 03 Jun 2022 06:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+8mYsoc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242772AbiFCIRx (ORCPT + 99 others); Fri, 3 Jun 2022 04:17:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235192AbiFCIRv (ORCPT ); Fri, 3 Jun 2022 04:17:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A9A91A3B6; Fri, 3 Jun 2022 01:17:50 -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 EF3C1B82234; Fri, 3 Jun 2022 08:17:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0682C3411D; Fri, 3 Jun 2022 08:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654244267; bh=2qMPynZBosM10jO+yr/XLmcutWReS833WJBFW+WSiSo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=g+8mYsocJRaKLYKShIYNDcySxhDG6hVYEqVhPVReyrqOMPQl5Zc7MuJQeBF7bBQ+x qQHzuKynIu+iHB7bFdSnJw0WlRrceXx1rTLDCFxZjTCRQ1AgTKdMlc242+G+/LIZdk uSciLXRGUj0TMMbzGccj0u6WJwQcKvwd3lyCRvRvsnFaq6L8SM7qObVnzKzZSMF1v5 nJwM4qlFYyBzvwvY9WyS+E4bIfzrhY0PSUYyinMbj6OJAuNEiT4yAipQgDHh0VsKSP 1eOBhefys6sfZo/vwG445Zkd5DKZ5MWrtG+uOu1/hqzeJSqJY5bjh5JaE4RXu1rFYh 67sC8696/AF1w== Received: by mail-oi1-f174.google.com with SMTP id s8so4285398oib.6; Fri, 03 Jun 2022 01:17:47 -0700 (PDT) X-Gm-Message-State: AOAM533nMh5Ma7XO16iO+PdmwGZnOnJgk/1Ku6e1IZK0XpJBSpzVUJ8n DmCaGsIUkU1qgirvt72/Xe/m125huxaMlcCk9ZM= X-Received: by 2002:a05:6808:300e:b0:32c:425e:df34 with SMTP id ay14-20020a056808300e00b0032c425edf34mr4775606oib.126.1654244266813; Fri, 03 Jun 2022 01:17:46 -0700 (PDT) MIME-Version: 1.0 References: <20220602212234.344394-1-Jason@zx2c4.com> In-Reply-To: From: Ard Biesheuvel Date: Fri, 3 Jun 2022 10:17:35 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: initialize jump labels before setup_machine_fdt() To: "Jason A. Donenfeld" Cc: Greg Kroah-Hartman , Russell King , Russell King , Linux ARM , Linux Kernel Mailing List , Catalin Marinas , Stephen Boyd , "# 3.4.x" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, 3 Jun 2022 at 10:12, Jason A. Donenfeld wrote: > > Hi Ard, > > On 6/3/22, Ard Biesheuvel wrote: > > The problem is that your original patch > > You remain extremely unpleasant to communicate with. Noted. > Can we keep > things on topic please? > Sure. Are you saying the original patch is off-topic? Isn't that the patch that caused the regression to begin with? > > As far as I can tell, the early patching code on ARM does not rely on > > the early fixmap code. Did you try just moving jump_label_init() > > earlier in the function? > > > > Also, how did you test this change? > > Just booting a few configs in QEMU. I don't have access to real > hardware right now unfortunately. > > Let me give a try to just moving the jump_label_init() function alone. > That'd certainly make this patch a lot more basic, which would be a > good thing, and might assuage your well justified concerns that too > much boot order churn will break something subtle. I was just afraid > of complicated intermingling with the other stuff after I saw that > arm64 did things in the other order. But maybe that's silly. > > I'll send a v2 if that works, and send an update here if it doesn't. > Thanks for the suggestion. > > Jason