Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3396348rwd; Mon, 22 May 2023 13:07:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4uz8+PR1ejPnfCTrHWpC70ehRwOG/HvBYDXfCnbtMzgC1chzmIbfur6y2k9jr3bTB/bUjs X-Received: by 2002:aa7:88c4:0:b0:64c:c65f:7322 with SMTP id k4-20020aa788c4000000b0064cc65f7322mr14694243pff.30.1684786034976; Mon, 22 May 2023 13:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684786034; cv=none; d=google.com; s=arc-20160816; b=ouvoTTF4QrZfVFizC0C3x8sabvySZw5h0pY12eUBx+SDMRN3jKpfKWKtloAHNXoCQE YUy6rtHIjQ9JgzHxjasWf3aDm+imANwD+tiVdmuv4ngwFO3AXQ6gI7BEveE6sQJkQcNj PlssPGouBz6Y0H+TJ5SPU5qj7OLZtWeAbz3sBLD5pKxMdwGKIaMjZjGmawdglVM79vYK nV6RH6oa5CDR6Jmecgcg6Gu777XGudgsWftg+Xh1pxGemDs8Rvtw6/D0eVpNkx2sdIb1 jNqRSOPDk7H69HcXG/Wclbq6lIZjumLVmQn185PQzNQdkaKHo26lyuxT1gKtGmrvzFrD ipvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=p52m+WWp6aApwkHVTkNg5kh/c1TUE8xWnOr/swu4YQM=; b=csB4SnkyMvtjguYTLL7hoaZjPM0jOCbWwkS71/Vw2rvnG7fb3LqmQ1JCvNrEZVq8wV Pf+TIm6N4l0YkMb584YwLj1LaedleQB92NX7s5pBbM/IU/ZNI74hk1TPF9vQpw36adnh zj+1RgK1gIoXYaebW/hlphQWzAFutlppBU8YG3oCQNm4qDTY5a2x6P4onyT0b5ST1dnR 1QXVGfTq2RtvoNBy1m+nJK8P66xrCLDW8xzZyxH/w3zwbqQamZBp7CKA13q2Y8oezSuu J76WkCsBAYcgd65D4PdAiR40JfI7klgrYndsGsQ8DoNVklUSUBWp6MTU6DwRDjpNdCzq fr9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=lRpK3qNu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020aa796ab000000b00625559a78a2si5273632pfk.107.2023.05.22.13.06.59; Mon, 22 May 2023 13:07:14 -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=@google.com header.s=20221208 header.b=lRpK3qNu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235445AbjEVTwq (ORCPT + 99 others); Mon, 22 May 2023 15:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235438AbjEVTwd (ORCPT ); Mon, 22 May 2023 15:52:33 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B3B49C for ; Mon, 22 May 2023 12:52:25 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-75b0b5c9eb8so78221085a.1 for ; Mon, 22 May 2023 12:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1684785144; x=1687377144; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=p52m+WWp6aApwkHVTkNg5kh/c1TUE8xWnOr/swu4YQM=; b=lRpK3qNuuiQELF1mYf+pdqtoRndN/uBy+fRujNOBmFoKNNZHXdQGn1YvzpvVdJmEsc o3aMGlzGMRo5bQ1kgH0uISw+aX/9dQxYn75ifiSczdRoxgRETgSHrFpUk4Qz4Bw1R2IJ MhyAJcR09p9R18n7Ziq0C2mjuHP7B4FjFS+arj7kNxBLuT0bp/xmQbQiuodgr3hztHl/ 4CPSJAhCovLJTkhnzO8WN/7IrW0xiT3nz9471apMj6tER1aIMTmaI6NmSsejQ1mOhrk3 3MLyEXrK/w5i0DCPURMZjSV0NUoL5yt0rFbJz/MTHoB08PJ8bVAkFVwax4tQar1VwO4p hNrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684785144; x=1687377144; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p52m+WWp6aApwkHVTkNg5kh/c1TUE8xWnOr/swu4YQM=; b=enXpWcJPHMwmIOAy4XRLgFOws5BNu/sT1jf3Z3iyw5A/vmYD3pZ5bvIbTpWbcjkS/7 tTvn0sw0E/rzRG0MN+/jdkcuNFX4qDGIFFPFdC/vPtZJ2muDtj3nfCfncV97ZOtqmRXU H/15pSdqRqZ+D86X7t1HOTHwJhsOKX+JPWdwy8yjQ9KhLwsVIwH+8lsMXMFOnGwLZKES sr+eVvy0+6oG/oUbj+QF7hF+kLRuUUd5RoGq9MpJdBioB/EwF3DQR2nq/jK32Cz1pO5/ DcGvDUL+FSCJ+Ul7N+0dswAyNTLJ76W88lFYUa4L2QYHiNN8BTiWwepYZrpPIwyqd+aF HFsw== X-Gm-Message-State: AC+VfDyZXinhlFYbXEUvI1C/IqYIhai8M2Uo3PaLH/S9QZFuoK6q19sw 6XyauJWG1zfWbfXAV2NVqmPLASyf5dPiLcDG0k5pRw== X-Received: by 2002:a05:6214:f0a:b0:5fd:7701:88c5 with SMTP id gw10-20020a0562140f0a00b005fd770188c5mr23825727qvb.6.1684785144362; Mon, 22 May 2023 12:52:24 -0700 (PDT) MIME-Version: 1.0 References: <17c91d37-7d9c-0df4-2438-2b30ca0b5777@collabora.com> <878rdlk9bi.fsf@rcn-XPS-13-9305.i-did-not-set--mail-host-address--so-tickle-me> <875y8ok9b5.fsf@rcn-XPS-13-9305.i-did-not-set--mail-host-address--so-tickle-me> <87353ok78h.fsf@rcn-XPS-13-9305.i-did-not-set--mail-host-address--so-tickle-me> <2023052247-bobtail-factsheet-d104@gregkh> In-Reply-To: <2023052247-bobtail-factsheet-d104@gregkh> From: Nick Desaulniers Date: Mon, 22 May 2023 12:52:13 -0700 Message-ID: Subject: Re: [PATCH v4] Makefile.compiler: replace cc-ifversion with compiler-specific macros To: Greg KH , Maksim Panchenko , =?UTF-8?Q?Ricardo_Ca=C3=B1uelo?= Cc: Shreeya Patel , Michal Marek , Masahiro Yamada , Linux Kernel Mailing List , clang-built-linux , Bill Wendling , Nathan Chancellor , regressions@lists.linux.dev, "gustavo.padovan@collabora.com" , Guillaume Charles Tucker , denys.f@collabora.com, kernelci@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, May 22, 2023 at 9:52=E2=80=AFAM Greg KH wrote: > > On Mon, May 22, 2023 at 12:09:34PM +0200, Ricardo Ca=C3=B1uelo wrote: > > On vie, may 19 2023 at 08:57:24, Nick Desaulniers wrote: > > > It could be; if the link order was changed, it's possible that this > > > target may be hitting something along the lines of: > > > https://isocpp.org/wiki/faq/ctors#static-init-order i.e. the "static > > > initialization order fiasco" > > > > > > I'm struggling to think of how this appears in C codebases, but I > > > swear years ago I had a discussion with GKH (maybe?) about this. I > > > think I was playing with converting Kbuild to use Ninja rather than > > > Make; the resulting kernel image wouldn't boot because I had modified > > > the order the object files were linked in. If you were to randomly > > > shuffle the object files in the kernel, I recall some hazard that may > > > prevent boot. > > > > I thought that was specifically a C++ problem? But then again, the > > kernel docs explicitly say that the ordering of obj-y goals in kbuild i= s > > significant in some instances [1]: > > Yes, it matters, you can not change it. If you do, systems will break. > It is the only way we have of properly ordering our init calls within > the same "level". Ah, right it was the initcall ordering. Thanks for the reminder. (There's a joke in there similar to the use of regexes to solve a problem resulting in two new problems; initcalls have levels for ordering, but we still have (unexpressed) dependencies between calls of the same level; brittle!). +Maksim, since that might be relevant info for the BOLT+Kernel work. Ricardo, https://elinux.org/images/e/e8/2020_ELCE_initcalls_myjosserand.pdf mentions that there's a kernel command line param `initcall_debug`. Perhaps that can be used to see if 5750121ae7382ebac8d47ce6d68012d6cd1d7926 somehow changed initcall ordering, resulting in a config that cannot boot? --=20 Thanks, ~Nick Desaulniers