From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE811379C46 for ; Tue, 18 Aug 2026 23:17:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787095045; cv=none; b=aXQO3pF81rA2dtsI6+L3FADKQOSkEl2YLnY+LVtaiKJhZF/VMZuxRnQfnBPnBnHJrT4Gnbox7VabEibzGc8HIqup8gAixVxgIp+pSWyM7YKnXe/rZGG5k5i/nWHJ6+41y/T9hZ4OJcB8EXihSVU+ZwL/+QbRaNO8Zy1WqgdeMI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787095045; c=relaxed/simple; bh=uO9nDqAz7YG3W4fAtHpBP/Sey5BPPWi/cU3vDu2WIPM=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=UcQyof0i/p034kpYuetJuiQoEPy3v6KXigkv3T7h01zTaCbX97QMHsWJHdJOroaxY71EITBLrf5c4xiq4ZWK9CbCr6GxTqdz7FxGdq/myGfWD/I3ZixDm53LBdiACHuunDWg76sglwBPX/qgotE5SU6ebxBLpUgzVZ4veN0ohKA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--wfelipe.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=HxrNOKy6; arc=none smtp.client-ip=209.85.210.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--wfelipe.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="HxrNOKy6" Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-8485d853b08so656517b3a.1 for ; Tue, 18 Aug 2026 16:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1787095043; x=1787699843; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:mime-version:date:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Us4VG+LG3CItnApG3/Giy5h2nvbYWbtv9395p9c5DHg=; b=HxrNOKy6ntxgjC9mBeV3lApm3UKT8XmAjqs7rCSQYvsRVVII/gpUBOAfUi9F21/5eu 9MfLVDhUSahHhcFqe4QzaG0eYsidAI8nb3e2MK8/aroGZ7hoWw55KZzCV/wRKqtZiMry DLrAyRoTSLsehnX1mBqo/VIQPquY/1IUOc6jlOQZWqjeYzTB96itU4iWJopUUmgT2u4W GxDbuZDh05OrG9AO6L/UwkWC0uBftf2qxTDbj9l0vEG8nkKC2Awn4acR+aWCaIa/kjx8 Qn/oAxn8R7uud+s3EAD0Jg3rpKZaKygajXwdXHkpwzO0sqYYUBnT8kIbZwcR/7sKm/F8 +9Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787095043; x=1787699843; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:mime-version:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=Us4VG+LG3CItnApG3/Giy5h2nvbYWbtv9395p9c5DHg=; b=kEqAJVOC8WttxMRb+9aaQxUuqTAMPCJSBfArWNl0SdFVWS5Jv3TIjPYJLVClRXA/Wh +TDF1LVPttJ0WfdDnOHzxOeqXydbKGryXu1nxkJgmX7drR90Zw41CwYGMDjEoG4fT2M0 ZwdRjyA6QcG2qE5JepTWvIkCJ6+NNmk63Eb8Y3hQkQZYMxVLkGqZeehblb+Sh6QaXk76 D4/MYapk8DHW8gEl8Q35IUALcrPMLnLzNrX/8TKuQxDYo9TfWWDGWj9X8vNLFBESiRLW zQuV3PLE/Sn7bAX/1RlyKNow2XAYzGKuypEDhBJbCsjQm9Rw3xV+Hhuy0b9oyrL/RFi8 FOBQ== X-Forwarded-Encrypted: i=1; AHgh+RrOlN5rvFsnsFAKmV7veZiEyiAF5gYClotbg/ouf24XjNhgDZrRwrJ75wjBeRVZTYVHcdhsjep8PmHemmI=@vger.kernel.org X-Gm-Message-State: AOJu0YyggMehh657PkgMXyjXtcEpFq6IzHQeYXSHoXlNr64sgfxPAIpF vT4gN3aBOkrqozgizN8F2ulcNhQeacQLTSpotcTccldA9nNY21sXbeRYQbCMR1K61R7byw9OeUB /8nXlPsQzMw== X-Received: from pgiz6.prod.google.com ([2002:a63:c046:0:b0:cbe:e4f1:a597]) (user=wfelipe job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:3c8c:b0:84e:2722:5d9e with SMTP id d2e1a72fcca58-851d38399cemr351833b3a.1.1787095042948; Tue, 18 Aug 2026 16:17:22 -0700 (PDT) Date: Tue, 18 Aug 2026 23:16:31 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.55.0.737.g08866a6d13-goog Message-ID: <20260818231646.804507-1-wfelipe@google.com> Subject: [PATCH v2 0/2] init, arch: make command line size and init arg limit configurable From: Wilson Felipe Pereira To: Andrew Morton , Arnd Bergmann Cc: "=?UTF-8?q?Maciej=20=C5=BBenczykowski?=" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Wilson Felipe Pereira Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This patch series promotes COMMAND_LINE_SIZE from arch/s390/Kconfig to init/Kconfig to be generally available to other architectures. In some use cases, such as netboot kernels, rootfs configurations, larger initramfs setups, require larger sizes. While for embedded workloads, it can be reduced to save memory. Since COMMAND_LINE_SIZE can be larger, it also makes sense to allow INIT_ENV_ARG_LIMIT to be configured. v1 -> v2 * Squash the Kconfig promotion and architecture header updates into a single atomic commit. * Replace Originally-by with Signed-off-by for Maciej =C5=BBenczykowski. * Add architectural range constraints for ARM, M68K, NIOS2, PowerPC, SuperH, and Alpha based on hardware, buffer, and stack limits. * Fix Kconfig symbol for PowerPC from POWERPC to PPC. * Split pre-existing init/main.c logic bug fixes into a separate series. v1: https://lore.kernel.org/all/20260806061429.474992-1-wfelipe@google.com/ Wilson Felipe Pereira (2): init, arch: make CONFIG_COMMAND_LINE_SIZE globally configurable init/Kconfig: make config INIT_ENV_ARG_LIMIT user-configurable arch/alpha/include/uapi/asm/setup.h | 4 ++++ arch/arc/include/asm/setup.h | 2 +- arch/arm/include/uapi/asm/setup.h | 6 +++++- arch/arm64/include/uapi/asm/setup.h | 4 ++++ arch/loongarch/include/uapi/asm/setup.h | 4 ++++ arch/m68k/include/uapi/asm/setup.h | 6 +++++- arch/microblaze/include/uapi/asm/setup.h | 4 ++++ arch/mips/include/uapi/asm/setup.h | 4 ++++ arch/parisc/include/uapi/asm/setup.h | 4 ++++ arch/powerpc/include/uapi/asm/setup.h | 4 ++++ arch/riscv/include/uapi/asm/setup.h | 4 ++++ arch/s390/Kconfig | 8 -------- arch/sparc/include/uapi/asm/setup.h | 10 +++++++--- arch/um/include/asm/setup.h | 2 +- arch/x86/include/asm/setup.h | 2 +- arch/xtensa/include/uapi/asm/setup.h | 4 ++++ include/uapi/asm-generic/setup.h | 4 ++++ init/Kconfig | 19 ++++++++++++++++++- 18 files changed, 78 insertions(+), 17 deletions(-) -- 2.55.0.737.g08866a6d13-goog