Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp754480rdh; Thu, 23 Nov 2023 18:12:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTvkz38zv5L9wJOJVc3jRm8xCRNNlL/eP1IXaNlDDI07uRra8PGYjKNGm7S4TbxLry2mal X-Received: by 2002:a17:90b:388f:b0:285:8d69:be7a with SMTP id mu15-20020a17090b388f00b002858d69be7amr234519pjb.29.1700791959741; Thu, 23 Nov 2023 18:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700791959; cv=none; d=google.com; s=arc-20160816; b=HfAxPUTuVjp50e1EsJUk6KkjIP/LmNyOfRO80EIMDpVhxVFw2fHSgKaGOP+nrK9F+L Gqfy8rm2HqYIa4CN1pNlAt+sp7mUKY+eRu9CLliGyBCLjGM5IFMJs5/SRKaGO/s49eYE abkvHG3L9FmQBI1dvCC1BLZ/NIkC7RcUmfwfUsyyCDl9fmpDT4WkDChFGYzhHpBccTgx 9H/+YjfTdu9+/AxFJGaM2+wA2lwZHYicT4YebZCHFG0diFC5Sd7aHt5mcW7RQQQIkGGj wkMkdXjYnyTs3OCsHlp9/PNAXKIcSpoOSydMKybxarFrIKNhETpyj4UnPcAnkiTJrZm5 GQLA== 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=h17AeJH/vAwlH2GqqKLdK7l5HtwpWvqKNZiJjWltD5g=; fh=w+tUsiAJi8blsrEewepQ4/qd0LPU75kDi7Lx6XscAb4=; b=yMi1NQj24YY+1lutDtCSAdmdBHl0Fnul4hAqUrBACTUN/PrXgcQtmaD5tYQL+/U6s+ hQQVsUKXi3Ttc1dh5n78afAJW8Z9ouIRaaOp+Gv2DtLHcD3qTWuM7My/wVXF37l4B1Mr /WsPtd8heOEudivtfSjV7L0e+jQ7wSi8b8zPGfe9JdS4HRfegAgpNMFLOjQumb3VJcxh S7L3i2ZV6tubhPXjN5uvZRFv6U6Do5b3Sl8ul5xujrpW3Lim2aI74Pp1un0H1G7q+XEg 5q7yJ+ZhB1+1YCPIStIqkFzcm68WWzlma9solXEtaqXlnmfQ3/Zc9Dda1x2uoywvgFXg 863g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@malat-biz.20230601.gappssmtp.com header.s=20230601 header.b=qF+hYw1g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id in4-20020a17090b438400b002639acf55c7si3069851pjb.7.2023.11.23.18.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 18:12:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@malat-biz.20230601.gappssmtp.com header.s=20230601 header.b=qF+hYw1g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 2AF7A82DDAEC; Thu, 23 Nov 2023 18:12:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229722AbjKXCMW (ORCPT + 99 others); Thu, 23 Nov 2023 21:12:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKXCMV (ORCPT ); Thu, 23 Nov 2023 21:12:21 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0129E1A8 for ; Thu, 23 Nov 2023 18:12:27 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c871890c12so18490231fa.2 for ; Thu, 23 Nov 2023 18:12:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=malat-biz.20230601.gappssmtp.com; s=20230601; t=1700791946; x=1701396746; 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=h17AeJH/vAwlH2GqqKLdK7l5HtwpWvqKNZiJjWltD5g=; b=qF+hYw1gyrbLsbWeGiEDCctnoxGtXlfs5NPV5/1GGnTTBvgfzFJOFy+a5p5/kyMJwI TUmgKpVfdaM3NCeVkUXJWqIzmlp5PbE22B1S6cUZgL7eWO8t0eUBZ5vfJhoLENVEcGqt Sw2+ZiO+HK5to6hUYGdM5W0klsixq5sHqSvzo7+ELv8UhXtqN0q0FP+kpb5tzrgvkqbC O28StI8oUf9fR6X/rqHcJgiMVDPdnT6K54HWpAHaIgW90TOrZSU3SNKljsX8F2S9yp7N uxy3I+wPsu9nfnxyfNknDZvM27acwodg68iXeInvFzXOuiRNegyeoVVTDF0eZp69HuFr V55g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700791946; x=1701396746; 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=h17AeJH/vAwlH2GqqKLdK7l5HtwpWvqKNZiJjWltD5g=; b=DXDraZArrjP5tL2ain1zn9wL3eXNhljdAmHWffdOMzjvVqHm6DRvwED2r0vimb4ViW WSyV+Mj53lXfIulzF7iT6jSthXnoeF0uF0a9E/RuA0FOcfhworuQqMuK2va4B2eW4+AY 4QSY9Q0pnBXA3kKutaYO7J0KbEovZJ7Putrw5ddspgcNL86ai7rKWxI2XwJ7Mkhd69lq DBq58ddCw5xQypddAk1DQbIBTP+gHX8uolylIiQPdLlZBX073RqI7NC5vQvZ3dSy3Sae jtTCKmaBsmyfJYanAxDfIjWcxucL7qW9CUFS0hjxYS9vjgCzqpCKkc12Ap3M0PSZWE4j qnMA== X-Gm-Message-State: AOJu0Yx2+UUD1Wj69h/Fnm/B3NfR2rwl4jLA9Kyg4E55e6AojZUOKABN 4dBKQpPzytdbWJIFrZptNQSCh/bwEI26OOiZwhgyVA== X-Received: by 2002:a2e:93cf:0:b0:2c5:6e01:58b8 with SMTP id p15-20020a2e93cf000000b002c56e0158b8mr598992ljh.37.1700791945729; Thu, 23 Nov 2023 18:12:25 -0800 (PST) Received: from ntb.petris.klfree.czf ([193.86.118.65]) by smtp.gmail.com with ESMTPSA id ay14-20020a170906d28e00b009fad1dfe472sm1438586ejb.153.2023.11.23.18.12.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 18:12:25 -0800 (PST) Date: Fri, 24 Nov 2023 03:12:23 +0100 From: Petr Malat To: Masami Hiramatsu 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: 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> <20231123231805.b4cb1b96426c956bd35bf53d@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123231805.b4cb1b96426c956bd35bf53d@kernel.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 18:12:37 -0800 (PST) Hi! On Thu, Nov 23, 2023 at 11:18:05PM +0900, Masami Hiramatsu wrote: > On Thu, 23 Nov 2023 11:04:00 +0100 > > 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. If somebody sets these by hand, he probably knows what is he doing. I remember myself hardcoding initrd size in Linux to workaround broken bootloader. I find it more important to warn the user when he tries to set early options in initrd (assuming my change gets merged), as that's what burned me. Petr