Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp372830rdh; Thu, 23 Nov 2023 06:18:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvompmv5pjosA+IrcTzb3ILfaZg1F+xg+QekXX5ZxGY1LKyMQk41N4B79d85JFmaoD+TI0 X-Received: by 2002:a17:902:fa48:b0:1cf:5671:e9c6 with SMTP id lb8-20020a170902fa4800b001cf5671e9c6mr5671359plb.65.1700749136758; Thu, 23 Nov 2023 06:18:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700749136; cv=none; d=google.com; s=arc-20160816; b=sBJsJuvCqL3DXkrjuoRTMSxVc2xOo+qDUmpCoIDXMHGQJRRf9iElZjDoc1qDOPxJ3w WBifhD5B99qsB1LZpax9u9893+5+hqURBe/GUiDRLPo0MijVC0s4MHm/Vw7DLkUiNjJp y108t139Q4nxb549OdeA0xjGlnOX9NYHGdWx6XV310hBS/VpPxhXWsndIpPmI8YThzU5 JEU48bBGH+Qk+drdfIt0dlaN9udRXSaHYOs2EtlwDcCglclv6Fvlyz/xpqu/UIbDTYfa Q5unFkteJ8yuqnS5LfkHVuUsXFYfTCijkkORpZ1oiET9VOuPnyCa3Swl4SXrHbuyF0tA 7xuA== 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=dcUtwYnREZ02Jg8XR8lcgTHugKig6p+W65KgpCOLkbE=; fh=W+dR4fDY4YFgoRlf2no/sYmo0R6o0sHE+1WTC0SNns8=; b=SCQKGMNqym9CmNoQxIcpin5k3OIIbGBHslrxeNem/W5oN579oz/d5f3/GC3Zuu3ZPZ ZjmR41kQsjwEKr6octo9OvS8fJy/OcTEffXlZMlEQPyp2Dpcq4U3YqWjvujLUxreEe2p BnxQKP9gtqwBacdVSBT6OvYR0JlUq9LI58IDlEndez3K1M8KQCNngRCwBTgejcX89yvJ SCDhgJr/wjqoW7kp05dOKK6ghAcBZQ37LZ6c/Qr3mNyZ/lAieXzwt1HsAs1dkHu7ZtOK NkTtLX6KoC4tfoPIYBLz/qvTKrl678t6cafs/taUDrqgG4zqmhSsXoolCUnuHrHfIn6N wYJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TfMhNavT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i7-20020a17090332c700b001cf67876ecdsi1276836plr.379.2023.11.23.06.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:18:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TfMhNavT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 39ABE80C0365; Thu, 23 Nov 2023 06:18:21 -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 S1345739AbjKWOSF (ORCPT + 99 others); Thu, 23 Nov 2023 09:18:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345727AbjKWOSC (ORCPT ); Thu, 23 Nov 2023 09:18:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CEC51B3 for ; Thu, 23 Nov 2023 06:18:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8821C433C8; Thu, 23 Nov 2023 14:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700749089; bh=JbjbiZXLJuBZFzaBnOTLB5z9aONmiLxEbV7xY8VRxic=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TfMhNavTWbml41++WkP6J1qn+BmmAT7C/MXCETSIfUhPi9U+Cz3K7VqAwPbGQmVjl T+er3T9uohI1BXCkW6Diu1E4XVshJFJF2WhTjbqsk9yrQRLSWASmNWDNV7cojZWTwu SgpCa1dvj2uyzZr1CKEm3PlRAlpFnBJv1YvyTlD9C0Fzd66j0Igi1aUUOgrZs+PZgT uE1akfScty6czxcbMbNAIeHmcjDQcARuXqL531zMavLJEQ/lNKLxqYkP8KZaOY/XVV 7a6UOb69F89aB4P7xDmZVPglBtbKaQFJPiCgle0HE4DnaLFCcWNDA75QymPSShmfwe /0oDYnsLN6Q7Q== Date: Thu, 23 Nov 2023 23:18:05 +0900 From: Masami Hiramatsu (Google) To: Petr Malat Cc: paulmck@kernel.org, Randy Dunlap , linux-kernel@vger.kernel.org, rostedt@goodmis.org Subject: Re: [PATCH 2/2] bootconfig: Apply early options from embedded config Message-Id: <20231123231805.b4cb1b96426c956bd35bf53d@kernel.org> In-Reply-To: References: <20231121231342.193646-1-oss@malat.biz> <20231121231342.193646-3-oss@malat.biz> <4a67b4bb-d211-4726-8f43-d3f159127dd9@infradead.org> <325042d6-ddd0-4278-a082-9587af77cabe@paulmck-laptop> <20231123112207.417b502144a01fc94ad6f87d@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=-6.1 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,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]); Thu, 23 Nov 2023 06:18:21 -0800 (PST) On Thu, 23 Nov 2023 11:04:00 +0100 Petr Malat wrote: > Hi! > > On Thu, Nov 23, 2023 at 11:22:07AM +0900, Masami Hiramatsu wrote: > > BTW, we also need to make a block-list for some early params. some of those > > MUST be passed from the bootloader. E.g. initrd address and size will be > > passed from the bootloader via commandline. Thus such params in the embedded > > bootconfig should be filtered at the build time. > > It's ok to configure these in the embedded bootconfig - in a case they are > provided by the bootloader, the bootconfig value is overridden, if not, the > value from bootconfig is used, so it works as expected. I meant some params only bootloader knows, like where the initrd is loaded. Anyway, if user sets such value, it will break the kernel boot as expected :P. Thank you, > Petr -- Masami Hiramatsu (Google)