Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp218711rdh; Thu, 23 Nov 2023 01:53:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/3pj1OUcXVpFnjtiONQOQkLg7GH0eKnPalQsa5jGBbpUetdhA1QbaAS43L+0tbUz5KeE3 X-Received: by 2002:a05:6a20:244a:b0:18a:fa92:7929 with SMTP id t10-20020a056a20244a00b0018afa927929mr5386116pzc.22.1700733229619; Thu, 23 Nov 2023 01:53:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700733229; cv=none; d=google.com; s=arc-20160816; b=vmp9XP4dfFpeWfIuk6eFzwebtR86amclFWJ+2CPmDuLzPS3zGMxU/rTdu6ppOCvlxT tNesw4d+xauRVKEO95sPXtwLaT4RjWcjV3pAfaHPUwvCKwOeiYJWe6irWtxa3OBTD1xG 1hUv27t54BuMX43wuRVPpazV+FOemfBLGlkfVctNg9BsmdukxPay+EWGKHIGpjz9vGN6 TOjWD9Qkj0AVHJrv01kZoNpuehlIsMjsjdHRFNI1qn3YHT/qj71kbsfHmu6p7NcuC+7e 49Zm7oFppaLfa4Nk5H8LA4uEzwcpWo5f/VsHPd+4TIOC2/Po7+SSZ4mTucUkZMRBavf3 4y6g== 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=JEeBXgGm3ZwYihMXlMzQvKqTYu7/4kjUaEXoYDjYocY=; fh=M7OYFwY5rd5xrcajzEpXoqPvjZMmkL1XFuzThSq5wiQ=; b=CZ4xh6vFZPQxfIDOiPtb86OnihjMwPeCj/GXkQbSmXGqgF+EfaVqL56qPJDdGiOmRN UhyK35fyHf7jgFjjDw7Z/uP+upuveq6xN4JEv5Qwg/U5+P+hsVWNU5nDx/E7RHAq+lh2 7MtT1e2edwAh6HIXQAVwH6BNkrBw3VF9lhDg8YFJpe3Rn/fhWqJ4Bwre/IRrrUyYxcv4 Lp26xav4Uji2AdbppCcFW5dZmZ1Wifrv6V4bjzeeQhVErrH1Tt3zURNn5VLRJ7DiI9yT E+aRRqFCCIQZ+bJ6FkN/QpqZWWJwaDB4DD++ptHBFArzdljqxMhBYhSstshCN3pzSBJo 5EZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@malat-biz.20230601.gappssmtp.com header.s=20230601 header.b=mHm6VElU; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e25-20020aa79819000000b006c320a95e8esi873821pfl.404.2023.11.23.01.53.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:53:49 -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=@malat-biz.20230601.gappssmtp.com header.s=20230601 header.b=mHm6VElU; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0B4308065039; Thu, 23 Nov 2023 01:51: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 S232589AbjKWJvW (ORCPT + 99 others); Thu, 23 Nov 2023 04:51:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbjKWJvV (ORCPT ); Thu, 23 Nov 2023 04:51:21 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 635B3D41 for ; Thu, 23 Nov 2023 01:51:26 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5488bf9e193so881323a12.2 for ; Thu, 23 Nov 2023 01:51:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=malat-biz.20230601.gappssmtp.com; s=20230601; t=1700733085; x=1701337885; 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=JEeBXgGm3ZwYihMXlMzQvKqTYu7/4kjUaEXoYDjYocY=; b=mHm6VElUPbNjFE5TXHUemSA99eSLlnQs3ZKEeHn1s73VRS9Z2JPiDxlJQXrPyrJjIe 1gmlmDpy/d+oiI/HTJ+MeJ8X5YHDNur101ZYO97Q3IIJpFGotIBQ89VyeqrR0WbA1Cgr SQix2BSBANvloxR5KJ09+DEmiXyEuIJeSXHZ1/ceMiSnjm35BVzmk+9TJ4iVQcBGlk0Z HEi0BoJyaLyGPc4LhAYdiz5GFlK/wYf28y1f00AvLIkbkPNtp3CoPIaOB4pEFo3Zup3L G4M4ritRQPSNRanp4RlTG1IQFIHR9E35zT01Wy7fByw0IUU31irZN4W7vwNWj180xEJI cnCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700733085; x=1701337885; 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=JEeBXgGm3ZwYihMXlMzQvKqTYu7/4kjUaEXoYDjYocY=; b=wG9SJvUh7q1fzcrJKh/VpjWZVQbzIFxHk6DcddXOD7yFD/h3X4s+qiAshU2D8PcJaY vSwEZT8xyjKCFQOoxfLqCUg6DjwqVAuElTmwr+GW77SnwvJDXCmOfxrE7TaWwpy0SYE7 ZyHWFTpadCCQ8CldLQirz0l3H4WVwtBClFtcLrB3G9A1eqF32CeG0hV7HVyqC0GV+TZ6 vF8Ls+7TKWl9Eao0e9K78UH4wtkSkCmob6uzI6BCMLVIo6toSln0vGevFanE1HnBlGad tUC6CPqXetf/bioAUyn/DJMNriidZJNsdsBbSnEyKF4UWlgSUj5Rd6t77FWO2rqsx14p +UtA== X-Gm-Message-State: AOJu0YzoN4QauZBgWEDyfg6plw2LEkpI+hwDCq10vh8QF2F/1xzVZQNl W9Ixg3ntCpgjo3mCOmXc+zdxY0N75HjfeOLZ1IvesA== X-Received: by 2002:a17:907:a1a5:b0:9d3:f436:6809 with SMTP id om37-20020a170907a1a500b009d3f4366809mr3188174ejc.39.1700733084655; Thu, 23 Nov 2023 01:51:24 -0800 (PST) Received: from ntb.petris.klfree.czf ([193.86.118.65]) by smtp.gmail.com with ESMTPSA id k12-20020a1709065fcc00b009b95787eb6dsm559112ejv.48.2023.11.23.01.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:51:24 -0800 (PST) Date: Thu, 23 Nov 2023 10:50:49 +0100 From: Petr Malat To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, mhiramat@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> <4a67b4bb-d211-4726-8f43-d3f159127dd9@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4a67b4bb-d211-4726-8f43-d3f159127dd9@infradead.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]); Thu, 23 Nov 2023 01:51:45 -0800 (PST) Hi! On Wed, Nov 22, 2023 at 02:47:30PM -0800, Randy Dunlap wrote: > > +Early options may be specified only in the embedded bootconfig, because > > +they are processed before the initrd. > > + > > I'm confused by which options are early options. Are they specified or > described somewhere? > How does a user know which options are "early" options? This is not user friendly at all, I was thinking about emitting a warning when early option is being configured from initrd, but that would require one iteration over .init.setup section for every option present in initrd just to show the warning. Better idea would be to write a script, which extracts this info from vmlinux.o and adds it to bootconfig userspace utility. Of course this makes the utility tied to particular kernel version and configuration combination, but for distributions it's reasonably safe with no overhead during boot. > > + size_t embeded_size; > > + int ret, pos; > > It hurts my eyes to see "embeded" here. Thanks, I will fix it in the next version. Petr