Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1052788rdb; Mon, 4 Sep 2023 01:05:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtcKgc1I7XjzsaHRpM1YcIK7f5jym3fsH76x4E/n/t7WkADov82OaBRC2kb7J1h9UO+v8C X-Received: by 2002:a17:903:1252:b0:1c1:ecff:a637 with SMTP id u18-20020a170903125200b001c1ecffa637mr12019544plh.15.1693814715783; Mon, 04 Sep 2023 01:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693814715; cv=none; d=google.com; s=arc-20160816; b=joU0ujN5kYsNYgCm5kfmsilKDs66tozpwnn0Qh8QFyhUfsrWh4dThuyDCGPXqJJa0P WNdvKncIsZ9wnFTTV1x78ceouWM9x/rQnoO9TeLIg3HQkFIMa8RstSr6/TIrGjm2A62x JQl5ukLaoI8u/Ed2P+SqjmUbVw+Q76itRFQvWYSirvlQ9c765zI4MbcBEhUxWenncky/ Fj/PUePYotq8jJp8YjebMLhaxAIi0RtnGzsKsjatIkYORtE09JLfja4UM+NN40Kl9Hf9 Q6yRJGf58CljiUjYjCnwq2wT8WvKMPckn6JESy1XoEXGMRHmmMtXkMSfeOIZ6swVPC1r f5sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ALBH2Epq0xZgDqZ87HUJqqvWTYaBkzwZqnodJKBCSA0=; fh=SZhqqQBSnPxiI4WovUiPGqdWVqHL5hnbDKWDWLSnhl0=; b=ywjglT7GnbgIMA2hjGq+24dCNZAdmMN/OgPNZarzL784mJiw3UavVYvMoeem0q5a23 Td/mSMRsbTOSTBYFbiyPv25qYZv6dmb1nzrpN23yBdAjP1gqHQ6eCFcdErj+03Fqo3wx ZzVVcLPpKDB2UmxXCy3i0ou+lGjeYHG3Mv8yc8iQJdf67IasZ6iyilIU1hOot2d9zrfv tLd0JJuUH5YR0IlqNYEPhgR5I3uy7mF0FbrTzN+UJUDEivITrc6b0Kdb4RjjK1Uaaxze 6zZkiMfjhHcLKP5T5pTJKP38v6tjp7DvmLvcw92Oa8whf0cMEixwNeTA3zCtt+fH8eZl gA6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b+OL+bmn; 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 lb16-20020a170902fa5000b001bbcddd6e82si7119960plb.91.2023.09.04.01.05.01; Mon, 04 Sep 2023 01:05:15 -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=b+OL+bmn; 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 S235780AbjICEQa (ORCPT + 99 others); Sun, 3 Sep 2023 00:16:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjICEQ3 (ORCPT ); Sun, 3 Sep 2023 00:16:29 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52144CC5 for ; Sat, 2 Sep 2023 21:16:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 6CCD8CE0016 for ; Sun, 3 Sep 2023 04:16:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C203C433C7; Sun, 3 Sep 2023 04:16:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693714582; bh=aO/IZv/wzze58mz67mh6aQy8ypsLG444r1X5H79j5w8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=b+OL+bmnm53sm0ZLHqPyevHEkEq6acrHWb+gS8wDFxm8y3JWMnKSQ+1XTOGOA9KEx vDq4F7U3gQif76j0bVl/MBe9DuvIzHwr1/sRlEN8aRyOGk8f7s/Xqb89darJGaJIlx VRkTcPB4RGiC3I2da+Dwl+5/ObdYBB4fPyhg/BO3tbWoPzCRZehaBGUPKMHoDbFiXq f2eWKkBMOyJG2ydRs5LWjkPwQ5rGPnN0KXGqTDxhsFTqE1GRqwFIx0kdsITWJ7PNw7 DHeH59Itz6bMWIrBplu+q98fzDmQ8lHlpkHq9sOLNn+XfQp+IfWzwqABdMT1snciv5 s+uwOWP/QuItA== Date: Sun, 3 Sep 2023 13:16:19 +0900 From: Masami Hiramatsu (Google) To: Linus Torvalds Cc: Steven Rostedt , LKML , "Paul E. McKenney" Subject: Re: [GIT PULL] bootconfig: Updates for 6.6 Message-Id: <20230903131619.8b17a76a6f733c1361e102c5@kernel.org> In-Reply-To: References: <20230902101046.bfe957bc51ecd91781200708@kernel.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Hi Linus, Thanks for the comment. Let us reconsider how it should be handled. On Sat, 2 Sep 2023 11:35:00 -0700 Linus Torvalds wrote: > On Fri, 1 Sept 2023 at 18:10, Masami Hiramatsu wrote: > > > > - fs/proc: Add /proc/raw_cmdline for boot loader arguments. > > Honestly, I pulled this, and then I unpulled again. > > This seems such a *silly* thing. It's also actively confusing, since > this "raw" file internally in the kernel is called > "boot_command_line", vs the "saved_command_line" of the regular one, > and we also have 'extra_command_line' and 'static_command_line' etc, > so where does this all end? > > So the name doesn't even make any sense. It's not "raw" in any sense > of the word. It just happens to be the one that came from the boot > side. OK. > > In other words, this smells like a complete hack to me. It makes no > sense, and it should *not* be added to the top-level /proc filesystem > as some kind of fundamental file. Got it. > > And not only is it a special case that isn't worthy of adding to the > top-level /proc directory, it only has _one_ special case user that > could possibly care. Indeed. For the most users, /proc/raw_cmdline will be the same as /proc/cmdline. > > And this is all self-inflicted pain because the bootconfig code > corrupted the original command line, and decided to expose that > corrupted thing in /proc/cmdline. > > So because you made a mess of it originally, you're now making a > *bigger* mess of this all. > > No, thank you. The way to fix a mess is not to make it worse. And this > just makes things worse. OK. > > I suspect the fix should always have been to make the extra stuff be > somehow clear so that you can parse it. Not make another file that has > the exact same contents for most people. > > Maybe a marker of "this is the end of the 'extra command line", the > same way we have that "--" for "this is the end of the stuff the > kernel should parse". Yeah, I thought that, but it seems that any marker may introduce another problem. If the user need to know the bootloader command line string when the bootconfig is enabled, what about adding a special line to the /proc/bootconfig, e.g. bootloader.parameters = "" In this case, it will be only shown when the bootconfig is enabled, and normal /proc/cmdline user does not need to care about that. Of course bootconfig can drop "bootloader" items. Thank you, -- Masami Hiramatsu (Google)