Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3124327rdh; Mon, 27 Nov 2023 07:02:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/5xeVrvJsTnnbbQDoQkS547zJIFJVEC6k4xSn6e6w5cN+gm67fTPH+n+ZLpmJkHeGQWcY X-Received: by 2002:a05:6e02:144c:b0:35c:bbb3:60d with SMTP id p12-20020a056e02144c00b0035cbbb3060dmr6733689ilo.12.1701097368338; Mon, 27 Nov 2023 07:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701097368; cv=none; d=google.com; s=arc-20160816; b=jZ1AJAJndOj4B0Pe/f36tTkaFKpg3o9168nU8rayzXIjjHYG3fqZPeY+ifZA7svRl4 B25PXFlR87FtS5C3Zz/kyBy75LJUyk+sFkk89i5JC09tUk25mCq2iKKCJgLOxcQq/byM zWSOk4QLxImGX6zyX32RLTnRYuf2LqxHhCsB21QwH6EYVIG1gI7IEhPWzesRY+kAxBX3 4loy3qvSFF6rxzzgEngysmTLLNrIg79IBa0zuX89RB3wYSO7D1Thp3mBmW+eWff637ij KK2U7xFjwLwVCAMvjuUKSk/Io/g5QdPmtuxaAf54ghZuEq9HKtOMgrmecNuvuthHmGXh j5pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5joBsafDa+/LYb57y4VbtzIveE2Spcp3cT3kdc03ld4=; fh=DxLTV2h9asIF/Hf/ARdQgHYdBWX5SFtI7/CKcu+4Kzg=; b=H1emuNW2qBS6Re6R35+QX9r7u080G2rPvos/XqxY6bGG2r2JTENEPMVk5UUp16iGIc fjcYp20RzWIVyXDAtTsEF8DllmKaYrigB+uWl3hlYqwT9OtkKmGvf9/AZ8+9E5uPfN5T rgT2cdh4u817dv/u8fI+mj+G/qXxJj7fxas+wHFV6CsjA/2yvDZhfEVYw1+7QRuAPEHS syrRJ5eij1XLPq5XlpjTedeq8LcQON/nLK4r+vmyuXXOBLEGYtyp1qcHMVpYOfoH3X04 GawPz51ojfQBQKib/crzM0P6mRkoB2jiE0MZezCZhMU1jYrBZ8c9UWTtXx+D6hrHjT0M 1qfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@malat-biz.20230601.gappssmtp.com header.s=20230601 header.b=f+e+s7O2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j7-20020a056638148700b004668888cce4si4943690jak.28.2023.11.27.07.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@malat-biz.20230601.gappssmtp.com header.s=20230601 header.b=f+e+s7O2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CCDCE809FCB7; Mon, 27 Nov 2023 07:02:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233809AbjK0PCc (ORCPT + 99 others); Mon, 27 Nov 2023 10:02:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233774AbjK0PC1 (ORCPT ); Mon, 27 Nov 2023 10:02:27 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 600D7BB for ; Mon, 27 Nov 2023 07:02:33 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a00d5b0ec44so599562066b.0 for ; Mon, 27 Nov 2023 07:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=malat-biz.20230601.gappssmtp.com; s=20230601; t=1701097352; x=1701702152; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5joBsafDa+/LYb57y4VbtzIveE2Spcp3cT3kdc03ld4=; b=f+e+s7O26LrDfb84VOvmLrVermCXo/oYOHAWiTmm3Cbz/jdwlljU9iCTIeefJTKPtv GH7oQX5JybjRdvH4Hs/lPwaju31Uc2feZJmSkqfrk/znu6U0zAyn4Tf9My+KPN/lzI35 MzhYd6rR8tp7tnXfKQLqxjbcaiwNv12VRCBNeXCleTRGuaTLVbNyG8ZDQaDh1XqeQ8OH HjE+BMz9jKTC9wcO1a+AN8ipQHZCZUs+zEFjjnb9dgTOlPJrhdd55b7cSnrI6/f5aux8 CC6xauwqZPt2X3wYOClXaQRzrKIqnP9XS1vCCI1C6SmRbMsUDY8hYK5PpznqoLcNX2D/ S/YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701097352; x=1701702152; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5joBsafDa+/LYb57y4VbtzIveE2Spcp3cT3kdc03ld4=; b=OZLYfooxLghmORa1SJyK7gH8sNl2sUOulLv1D+RllPrbTczcILAz33aEekn5DG7BVy lmGORKmaguT87yeHRQ/8yfUcoW8/bYGjXVhoOnoCv0SBO9+YsyA2gsCXa1Lblg5tWudx WLJgODXRts/Gc2Afq/Sr9TqY9VR9gpb/I7RmtOJPWHQQxyX0f1E7cqppW3UvD6RBPPih 5SdfCN/mmWQwy+DB2aTkyJbeQ3Ar7oCnaUGEV5UbVZwH9VicEgd9bX5gEqSnTcmc8Ndp MRWKUrGQjbioCkkmExC2KpEW9fL0lt2scQPg3TLN7mk9hqYH3l5l2IGXMwPrk1Dym9uU I2+g== X-Gm-Message-State: AOJu0YxuAX8h1vFC5EIdVX6PlOhv7khp/rH0oiDUgrigA9wJuJub5XRD 7AyZAgAN46uYUJmVZ4nLVMaZxA== X-Received: by 2002:a17:906:fad6:b0:a10:d5ef:ff00 with SMTP id lu22-20020a170906fad600b00a10d5efff00mr1591294ejb.2.1701097351087; Mon, 27 Nov 2023 07:02:31 -0800 (PST) Received: from ntb.petris.klfree.czf ([193.86.118.65]) by smtp.gmail.com with ESMTPSA id bj15-20020a170906b04f00b00a01763d21f7sm5766272ejb.31.2023.11.27.07.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:02:30 -0800 (PST) Date: Mon, 27 Nov 2023 16:02:22 +0100 From: Petr Malat To: Masami Hiramatsu Cc: linux-kernel@vger.kernel.org, paulmck@kernel.org, rostedt@goodmis.org Subject: Re: [PATCH 2/2] bootconfig: Apply early options from embedded config Message-ID: References: <20231121231342.193646-1-oss@malat.biz> <20231121231342.193646-3-oss@malat.biz> <20231123194106.08f5832f558fe806b1fd8098@kernel.org> <20231127074630.993db80be06f03067d8a1aef@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231127074630.993db80be06f03067d8a1aef@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 07:02:44 -0800 (PST) Hi Masami, On Mon, Nov 27, 2023 at 07:46:30AM +0900, Masami Hiramatsu wrote: Shortened the mail as this seems to be the last open point > > > And as I pointed, we can remove CONFIG_BOOT_CONFIG_EMBED_APPEND_INITRD so this case > > > should be removed. > > > > I have added BOOT_CONFIG_EMBED_APPEND_INITRD, because it's not backward > > compatible change and I didn't want to risk breaking current use cases. > > My change tries to get early options working without affecting how > > other options are handled, but I think appending the config is more > > reasonable behavior and if you do not see it as a problem to not be > > backward compatible here, I will delete the "replace" behavior. > > That's a good point. OK if disabling CONFIG_BOOT_CONFIG_EMBED_APPEND_INITRD, > it must skip setting early_params to avoid "hidden setting" from the > embedded bootconfig. That's not a good idea because then disabling BOOT_CONFIG_EMBED_APPEND_INITRD would disable early options handling even if the user doesn't use initrd at all, which we do not want. I suggest logging a KERN_NOTICE message if any early option was applied and at the same time embedded bootconfig was replaced. Petr