Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1333050rwb; Wed, 26 Jul 2023 10:50:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlGyMn7c3C1Udlj5jyxF1KBzZhBlBqeJsvAfC+ChHOgNcEf8+Z4Pht5n0SFlqDfIKtJsvnLL X-Received: by 2002:a17:902:e549:b0:1ae:8892:7d27 with SMTP id n9-20020a170902e54900b001ae88927d27mr3291889plf.42.1690393821845; Wed, 26 Jul 2023 10:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690393821; cv=none; d=google.com; s=arc-20160816; b=kr77xdOvVp5YtEnFuXKddNRcVzWQEAqdgmxWKq93fEW25lQ0PhcgZpfL4f+Q1F90MY 0ayjz7FB5n63TR3bMd77gUP+1wi2H8kDwuwUJxPQxEWYaolPHoznqVJze4+BWUG7ROVJ 8FEry7+rD+Usj0hNxyjGnSyPiqVPn6mNtW6pDuR5r7VSSO0qbf2/HtXiCBijrB7efhYe mmTCtsgwr2wi11GM8lZH3EQUsxQV4hs5Ru/imPSJkFyceoXxpwDn5exQJLrMnoGTUEQ7 h5Jd9yUnI57b7NuiEPLu899Wg4i88Pu2oTY4ehu9bfpY5WVM7cIYWmg9FG3TlJtmqUEC RxyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=pffJfAxWXhzPqO9RJUcLmLEFkSH/WJE9VpjUyBhgoSs=; fh=xw1UktOdsPF2zKqlcOyZMDdYzg0g/sR04UFOgTsZL6c=; b=bcsOFjahyNCRVfKfPM8NySbUGoIkB4M4GXP0eSSY/ilLVF36x0Jwa1fjUVNP8rZ0u7 QaMWdCnpfIiPAsOYtJOHNbHXZsGmEUXSpzLmvHIbp7GJ9tu5hGimcgsXGvwv3X+RUbbf +F+yk7Efj/Dh6t41WHPXKgqoGGa6tXsPRpGhO1HOzLwSz5a81GXGncRVfC/LSJ5DJLxD PmcoKiK2ut0OYzmWa3wzDox9/W3TA2Q7y2T2nRVvScmUAW74l5s0V3nD3p35NOvBe80Y SpMIjl+Y7WBvL7SYrm1Yh6J/w1lLquu2IpGEGhKJ+qTlY4O8T13fRWFhS+KwfyAnklOL v1hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=SALvpCzK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=iGLHxr76; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170903124900b001b231cb6f22si14536900plh.111.2023.07.26.10.50.09; Wed, 26 Jul 2023 10:50:21 -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=@arndb.de header.s=fm2 header.b=SALvpCzK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=iGLHxr76; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbjGZRD1 (ORCPT + 99 others); Wed, 26 Jul 2023 13:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjGZRDY (ORCPT ); Wed, 26 Jul 2023 13:03:24 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B8810EC for ; Wed, 26 Jul 2023 10:03:18 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id EC3DA5C019E; Wed, 26 Jul 2023 13:03:17 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 26 Jul 2023 13:03:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1690390997; x=1690477397; bh=pffJfAxWXhzPqO9RJUcLmLEFkSH/WJE9Vpj UyBhgoSs=; b=SALvpCzKcgZXLm3OywUOCz20SERT2uXtdYzioLk0cGE2gO6ePRe kuub08yT/wrbxvx9FglxWwvGMeZflBvA+2MCI+4MAP1yISd26rk6WLfHGh2VI6lp CW1VR4AjflWfr7AI2D8OCYaC460eIRKyo1FOJZdXjOHJQowFFFXdeYtFr3kjPKOq wTTgkObJksTY/wsKjQMZ/FGhv4StS9lFFgcAzVbaUfVn856ZToQfRVYvDhD5Rwyk C4OtkL6xJqkYJ+o9breA99zo5PpdmOot+VCw436ThBHqr7BxDtSafvxqr+Z/vDwv P9hOYbmGJwJqwYRd9fpJGP8JnPn4VSPqBaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1690390997; x=1690477397; bh=pffJfAxWXhzPqO9RJUcLmLEFkSH/WJE9Vpj UyBhgoSs=; b=iGLHxr763+TKShDHHm4Ozn8CKZdGBAcaDh5SIgmPFyGP7d0RL7y j54sttEtCBmcDbBmFUs1GXqiW+EqKj2ovXnHwIZxzpNRqRYK741a0TJ2B4yNRTbX 26dtYvth8M71aqkvq4egnr1AfCMTOnq75pHfuXHERHL8yOpLlKPBHnETAafhJHxK z/1IOv45crukvGosp7VIu/VbmH25acnLCcOZP2LkcpIyo1hwIGAMzWTN1D6gbtpY RS8NVhV4OHY4S7mmofuJmXSBK5R2HLLbvlhbPNdOWNQdKeIewuBY1yBMo6UsVjWO Cx+AXruefBOs1+hlO/0iaVnw3LDv9P9ENJQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedriedvgddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 410B6B6008D; Wed, 26 Jul 2023 13:03:17 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b Mime-Version: 1.0 Message-Id: <034f0b5e-3c61-4392-8360-ebd57749d53e@app.fastmail.com> In-Reply-To: References: <20230726143348.724611-1-arnd@kernel.org> Date: Wed, 26 Jul 2023 19:02:55 +0200 From: "Arnd Bergmann" To: "Nick Desaulniers" , "Arnd Bergmann" Cc: "Paul E. McKenney" , "Andrew Morton" , "Kees Cook" , "Peter Zijlstra" , "Sami Tolvanen" , "Alexey Dobriyan" , "Masahiro Yamada" , "Josh Poimboeuf" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] init: keep boot_command_line after init Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR,URIBL_BLOCKED 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 Wed, Jul 26, 2023, at 18:25, Nick Desaulniers wrote: > On Wed, Jul 26, 2023 at 7:33=E2=80=AFAM Arnd Bergmann wrote: >> >> From: Arnd Bergmann >> >> The boot command line is not available after the init section gets di= scarded, >> so adding a permanent reference to it causes a link time warning: >> >> WARNING: modpost: vmlinux: section mismatch in reference: cmdline_loa= d_proc_show+0x2 (section: .text) -> boot_command_line (section: .init.da= ta) > > cmdline_load_proc_show is probably inlined, but should it also be > marked __init? It's lone call site seems to be __init AFAICT. > No, that's not what it does: cmdline_load_proc_show() is called when someone reads /proc/cmdline_load from userspace. It's only the function that creates this procfs file that is __init, but the call happens later. Arnd