Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C8AEC7EE39 for ; Thu, 2 Mar 2023 07:57:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbjCBH5Y (ORCPT ); Thu, 2 Mar 2023 02:57:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjCBH5W (ORCPT ); Thu, 2 Mar 2023 02:57:22 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13AC236082 for ; Wed, 1 Mar 2023 23:57:21 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id ay29-20020a05600c1e1d00b003e9f4c2b623so1051779wmb.3 for ; Wed, 01 Mar 2023 23:57:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1677743839; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3gGlmdrxpk12L0HtiU5R9bJeUayhxQ74GXgfAq6meuw=; b=pn+DJn+k9uImMGeBMXuwnMQE1biMNzy71Plo8H7DOI3fKK/ceps9rgGUxc/bmw8s6L 4TQMSud9TXFc8/r2OEOEiAKv5SApxcJ1Yd/LQHA0imhiw3qi8hrsJYLIdS7LaNAmBH1O AbgLlGVWFn2hf8BkmR90At5+g3zqQ61Ankq9cGuBB9WgQfAsyn4JZulcRbW71gf7ZeYz oRP4F6/LxUTL9nxCbjnWUdwQSV0fTcnbx/sIcDMk8fB8xQ9dJ6UAQMnDD3HBbCn+Qr4a fIykdIwuX5WmEnYpwkBvfu6oXc7MDCcdwlfNYOa5JGNIdVdo8Hubuxh+Kfco99U7Z89i QfaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677743839; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3gGlmdrxpk12L0HtiU5R9bJeUayhxQ74GXgfAq6meuw=; b=64TCkQjQwSv3GrpGqDic6+SNDgSXes9y1tp2BF6Kex+d1Iqhv7lGe15SGipMh6khZ8 qHYxQ9CeBlcqiqY1aLEeLzrccNs3l5UVx2wlqTpgTtKb/ztcxmNs8yPxZe4DBklVWUJI EuOfiiDs6ObEbw+V7u9QihjuaqpqvRpGdP3VE46uuVcMqk9x+ZCgeKMQckb8BkC0dBui N2AIAw+oNUMzkiD4FfO1kfwO6zQB5H7iLK6NiGpKzYYeqKlu0FzocVDoYfx5lM1hRXz2 TqYDNZjKhgYSs8sdQIV9MqixUxDUdnQ47FbT6hdYdsNIgxZri0Ks68U8VrVTN7NIpHiO wMBg== X-Gm-Message-State: AO0yUKW9AOARy5qXy69naW5GKcI3VzwlVHCIIMN6UCg2V6kLxrAUV4i8 nxAwwE5eEZBUtjKmU7uhVu9BouayMtkk4EHXvKGNZw== X-Google-Smtp-Source: AK7set8WtHYe+gEo1Fgs1pSlJqsnM2tCvgsXzdB6/J3n+P8FnRw3jetc5Yrjj9TAlqQSjPmyeFZCYlu44lotg0az/Sk= X-Received: by 2002:a05:600c:4591:b0:3ea:8ed9:8e4b with SMTP id r17-20020a05600c459100b003ea8ed98e4bmr2655128wmo.6.1677743839531; Wed, 01 Mar 2023 23:57:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alexandre Ghiti Date: Thu, 2 Mar 2023 08:57:08 +0100 Message-ID: Subject: Re: [PATCH v3 00/24] Remove COMMAND_LINE_SIZE from uapi To: Palmer Dabbelt Cc: hca@linux.ibm.com, geert@linux-m68k.org, corbet@lwn.net, Richard Henderson , ink@jurassic.park.msu.ru, mattst88@gmail.com, vgupta@kernel.org, linux@armlinux.org.uk, Catalin Marinas , Will Deacon , chenhuacai@kernel.org, kernel@xen0n.name, monstr@monstr.eu, tsbogend@alpha.franken.de, James.Bottomley@hansenpartnership.com, deller@gmx.de, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, Paul Walmsley , aou@eecs.berkeley.edu, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, ysato@users.sourceforge.jp, dalias@libc.org, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, chris@zankel.net, jcmvbkbc@gmail.com, Arnd Bergmann , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arch@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 2, 2023 at 4:17=E2=80=AFAM Palmer Dabbelt = wrote: > > On Tue, 14 Feb 2023 01:19:02 PST (-0800), hca@linux.ibm.com wrote: > > On Tue, Feb 14, 2023 at 09:58:17AM +0100, Geert Uytterhoeven wrote: > >> Hi Heiko, > >> > >> On Tue, Feb 14, 2023 at 9:39 AM Heiko Carstens wro= te: > >> > On Tue, Feb 14, 2023 at 08:49:01AM +0100, Alexandre Ghiti wrote: > >> > > This all came up in the context of increasing COMMAND_LINE_SIZE in= the > >> > > RISC-V port. In theory that's a UABI break, as COMMAND_LINE_SIZE = is the > >> > > maximum length of /proc/cmdline and userspace could staticly rely = on > >> > > that to be correct. > >> > > > >> > > Usually I wouldn't mess around with changing this sort of thing, b= ut > >> > > PowerPC increased it with a5980d064fe2 ("powerpc: Bump COMMAND_LIN= E_SIZE > >> > > to 2048"). There are also a handful of examples of COMMAND_LINE_S= IZE > >> > > increasing, but they're from before the UAPI split so I'm not quit= e sure > >> > > what that means: e5a6a1c90948 ("powerpc: derive COMMAND_LINE_SIZE = from > >> > > asm-generic"), 684d2fd48e71 ("[S390] kernel: Append scpdata to ker= nel > >> > > boot command line"), 22242681cff5 ("MIPS: Extend COMMAND_LINE_SIZE= "), > >> > > and 2b74b85693c7 ("sh: Derive COMMAND_LINE_SIZE from > >> > > asm-generic/setup.h."). > >> > > > >> > > It seems to me like COMMAND_LINE_SIZE really just shouldn't have b= een > >> > > part of the uapi to begin with, and userspace should be able to ha= ndle > >> > > /proc/cmdline of whatever length it turns out to be. I don't see = any > >> > > references to COMMAND_LINE_SIZE anywhere but Linux via a quick Goo= gle > >> > > search, but that's not really enough to consider it unused on my e= nd. > >> > > > >> > > The feedback on the v1 seemed to indicate that COMMAND_LINE_SIZE r= eally > >> > > shouldn't be part of uapi, so this now touches all the ports. I'v= e > >> > > tried to split this all out and leave it bisectable, but I haven't > >> > > tested it all that aggressively. > >> > > >> > Just to confirm this assumption a bit more: that's actually the same > >> > conclusion that we ended up with when commit 3da0243f906a ("s390: ma= ke > >> > command line configurable") went upstream. > > Thanks, I guess I'd missed that one. At some point I think there was > some discussion of making this a Kconfig for everyone, which seems > reasonable to me -- our use case for this being extended is syzkaller, > but we're sort of just picking a value that's big enough for now and > running with it. > > Probably best to get it out of uapi first, though, as that way at least > it's clear that it's not uABI. > > >> Commit 622021cd6c560ce7 ("s390: make command line configurable"), > >> I assume? > > > > Yes, sorry for that. I got distracted while writing and used the wrong > > branch to look this up. > > Alex: Probably worth adding that to the list in the cover letter as it > looks like you were planning on a v4 anyway (which I guess you now have > to do, given that I just added the issue to RISC-V). Yep, I will :) Thanks, Alex