Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5114480rwb; Sat, 10 Dec 2022 23:41:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4EOJ8kokenZHIfiv1G6ztQ5dlsp2l7SLFpMw86FMkGEVEgRZaLdGP3LLCwZWkK60SI1Xne X-Received: by 2002:a17:907:8d1a:b0:7ae:8a4b:337 with SMTP id tc26-20020a1709078d1a00b007ae8a4b0337mr11526347ejc.10.1670744512368; Sat, 10 Dec 2022 23:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670744512; cv=none; d=google.com; s=arc-20160816; b=y4ALN4D0yOFZ6uOvrRZpv0Oqba/T7xk9wFhDk5TbQJ/IySYf0XaoLoIF8QNrGcBrCg qtsMKKZPEJZ8GaWcQs0/zhhbF3Qh0YCWiyAa71f33g4q4wjnFxo21y36oZT0+c9N/aEq vp2N4YFkUu4A5sLibX45vCTTUheEALOo7DEF6IkYKe7z7FJUjf+DqJEySAND2jEqhyj1 dRuu3OmmXjzX4lSrUxon6WZSJNo4yUldQSKy9Yi2Uychiu+0FteYmH7FBv5OklnCzNLT 6qvQmW5mBiGkH5OnSRpatrLkMxjlMmrcORCuD2UDQzGbnOfRzxOLCT1+Ok7vHEeb6nAO vzXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:content-transfer-encoding:mime-version :message-id:date:subject:dkim-signature; bh=I1zT46a2qB5mE3jfFp3rNkiM+NV72r9+YjUvfROrgcA=; b=TpC0h24DxXNtRYBjuJsm2TL3WSuSDrIlV7AEnqTd+zy8STIPCrX5rQi2HH32ZtyOLQ wCXL1yfJpHpWraPXJvvGaVZzO1OpZfvkmXwBrSmp0vb6bNuQ4tc97CE0TQLtopbna94z OWNsJS9PPSkbGzbocpYSFRYGSU5LqopBxNAn1cEngm6cArbAZURp34vhKOh+rSnob75j nS58ONMy6EIWWQpicGo6HwomuI4NjTNJnRA+HYY6rrdpTe4r/PNhyeWEdgdX71jxRTPM z84nC30wXL87ODPXOWV9G2EDPqjrF4/2vCXob3Og9qFsTx7CCrCD0jT+ZkR4PWRD806i O4hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=KdaQHc3p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne9-20020a1709077b8900b007c0c1cd86cfsi4321699ejc.36.2022.12.10.23.41.34; Sat, 10 Dec 2022 23:41:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=KdaQHc3p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230048AbiLKGRc (ORCPT + 75 others); Sun, 11 Dec 2022 01:17:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbiLKGRb (ORCPT ); Sun, 11 Dec 2022 01:17:31 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1186412D33 for ; Sat, 10 Dec 2022 22:17:30 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id c13so6471939pfp.5 for ; Sat, 10 Dec 2022 22:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=I1zT46a2qB5mE3jfFp3rNkiM+NV72r9+YjUvfROrgcA=; b=KdaQHc3p4dFuOytgBX9ynpsKvo2jXJFk32WM58zoDXit3AA+mT/KNXeX8o1b1ZBoiE iRmx9Q2tw5wxZ533ODjKUFMefRPQ86bGvynNOMz1BgFZI2ho5tIAO83TPssrW4/Bi7x0 PIireN3Hx1RpmPupDbybiqPrP/S9J6UZfVTmhElUcsxVTEyaMx/FDQj37c+M3LhNkmW/ n94gtuFa13EIVSsREy0p9g0Q0g0mSodQ75KnHzVm6iqRiOpPrgCAHDQR7b0BQtG4i4SB Q5Tav9SRJimhoOogJgECX8ozocXgZdxhIQM6p0i+6rtJPMjIqMZdSSagbi2ngfsw2ijg 5sIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I1zT46a2qB5mE3jfFp3rNkiM+NV72r9+YjUvfROrgcA=; b=J+hCc1rhC5s2HtMs70shaMI/er4PXc5x0hzDEfLaUerPYS4s8vLmmfy3ST+iqVE3qJ 9/tGBhxxgLRKszCrNX8C3A87r20wVR1pBbMpXjewFzLp1z7xFT+1VJOlJPnwxpHldmq8 LvwXAsTink2n+KGHq2gvn9/XknxBKHRlABER2Yh7ZCR6r6eBdtEO1C0OC1HLvPool8/Q 2n3O1I+3+ieN6Z/H850AOkFWR5OB81v7OFgs/ZqbXZL0YD9mXqSnMx10GknMQP9Q6jg1 DuhVGYGRBNl2wP/vk7/+XY81vljrSpVcaKco4v7IEA0LPCzyqrGb77SDHmO9lkYIXSDQ 3ycg== X-Gm-Message-State: ANoB5pkgSRi/WlJ7HQbpJHuQVHIeuLdaih0zpO0krT5FCjSjzU274q3f 6lRR1qJDoRtSRyHEoVH+xqm0Mg== X-Received: by 2002:a05:6a00:1912:b0:56b:ca7a:2de2 with SMTP id y18-20020a056a00191200b0056bca7a2de2mr14109964pfi.14.1670739449466; Sat, 10 Dec 2022 22:17:29 -0800 (PST) Received: from localhost ([135.180.226.51]) by smtp.gmail.com with ESMTPSA id b3-20020aa79503000000b00576f9773c80sm3510917pfp.206.2022.12.10.22.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Dec 2022 22:17:28 -0800 (PST) Subject: [PATCH v2 00/24] Remove COMMAND_LINE_SIZE from uapi Date: Sat, 10 Dec 2022 22:13:34 -0800 Message-Id: <20221211061358.28035-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Palmer Dabbelt To: Arnd Bergmann , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 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, but PowerPC increased it with a5980d064fe2 ("powerpc: Bump COMMAND_LINE_SIZE to 2048"). There are also a handful of examples of COMMAND_LINE_SIZE increasing, but they're from before the UAPI split so I'm not quite sure what that means: e5a6a1c90948 ("powerpc: derive COMMAND_LINE_SIZE from asm-generic"), 684d2fd48e71 ("[S390] kernel: Append scpdata to kernel 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 been part of the uapi to begin with, and userspace should be able to handle /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 Google search, but that's not really enough to consider it unused on my end. The feedback on the v1 seemed to indicate that COMMAND_LINE_SIZE really shouldn't be part of uapi, so this now touches all the ports. I've tried to split this all out and leave it bisectable, but I haven't tested it all that aggressively. Changes since v1 : * Touches every arch.