Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12603480rwb; Sat, 26 Nov 2022 11:50:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf65CVUAPasjkGTxxugx/zBYkIf6flhk5ZTmF2KA7BiygNdenCzVocIZLAXJGgyuZEnWdMLw X-Received: by 2002:a05:6a00:4205:b0:56b:a7cd:f47a with SMTP id cd5-20020a056a00420500b0056ba7cdf47amr45440076pfb.22.1669492225105; Sat, 26 Nov 2022 11:50:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669492225; cv=none; d=google.com; s=arc-20160816; b=QmO6iQ6ChlMH1dotSSeTdybBHTtKNwAXuXFrEpUwfthUEiVKgcBIWiD0PyNlEGb90Z 5M0XJQFvbHbFYwGBirhvGW6mQwqBhMpOdcC711WBBA/ak4eROD2GH5AUVVSN+2+tUdu2 M9BSPFmOr2Bs5PMhz4I+wf1LG9zsH7iNFAmXZiJTzMEjV3pZQVBlOIrsIIZ+KEi25dLS EKITS5TZog63r4SioI9fk5fFLUu40VwEH+Dpgxc6wrPG8IGXiN6wz5cYoqQ5mNA2MNju LwoZW7uVZWQAsWcvwL8D6dmFf3+PB6PHJEvhNV28GnCwRFAjAz9lnW8ar2/ZGmuY4i1l 2vmw== 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=FJ0PgabAcIBPEPhGQvdTOm7RiPcQZw1npLz0I2ZIrIs=; b=otO0D5XdpNw3hhULYsnoraiW2KiPObUYTRqP/CJGd1FZomSZkxvQBQtda2J+BNwzKN UnnRUpwLc7Y3mvqeEKWO3zNnDUXu0/JBaaKLgp/+sr3BUJB8PMzDWP9quzTnbSm5Endl P0yzoKqWmxnAHQr7wUVkofKWem6K5uxR4IVHffXt2vVciTh6Sgfug7JVhamTf1/niXmp jdi91MydSEACf7xn5UyaeILrZFKzmW/t/S3dVZgmSZGi3cBaD1FWY/NxBNqsXX6hM8tw +23kfl1jrN4qQLhPAliNNu5vT4aUFsMYELeHKneP0amS9o4x1rvDxwSIklWwW3VVaNWz nSKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fV2YLPdQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iz13-20020a170902ef8d00b0018929930a0bsi7112475plb.414.2022.11.26.11.50.14; Sat, 26 Nov 2022 11:50:25 -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=@kernel.org header.s=k20201202 header.b=fV2YLPdQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbiKZTZI (ORCPT + 85 others); Sat, 26 Nov 2022 14:25:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiKZTZH (ORCPT ); Sat, 26 Nov 2022 14:25:07 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EBD214030 for ; Sat, 26 Nov 2022 11:25:06 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CE76560B40 for ; Sat, 26 Nov 2022 19:25:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C97E2C433C1; Sat, 26 Nov 2022 19:25:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669490705; bh=RWZn7M9dfjDS3n5ZFrwvBBoWwy9tta0co/UuIk20qiY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fV2YLPdQMYdcgvl9cGHyjYtNoZZWxQHE7N8I8/2TPMYZzx6CieO+kqhkK2gy2s7ZK BWmEtoybvYoSxg0qiJmuSeqT6sB0A2gNXq/kZ175Sl7C6RiNieFEhQ0BBub3yVfbK0 JehQu2kglKSCpxCjvMtVj+i5zNl/3EwlVcZwfkMcHoH+tVKsQJAG89r5T2jagKVsxK W52V+qcvq19LvCC6bdlkDhMsPZd1nu4+cN6JGqxdW6ZclVAYzr2wxIPsQ2S0njD6Wx lhe/nHlqN3j5uS8pONvoJ+ijECLZeJc6i6j/gLo3HW/Tetqrrzt9DWpHd+DAobD4KQ l9ARkR3tskPLA== Date: Sat, 26 Nov 2022 19:25:01 +0000 From: Conor Dooley To: Andrea Righi Cc: Paul Walmsley , Palmer Dabbelt , Emil Renner Berthing , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: increase boot command line size to 1K Message-ID: References: <20221125133713.314796-1-andrea.righi@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Sat, Nov 26, 2022 at 08:18:43PM +0100, Andrea Righi wrote: > On Sat, Nov 26, 2022 at 06:46:05PM +0000, Conor Dooley wrote: > > Hey Andrea, > > > > On Fri, Nov 25, 2022 at 02:37:13PM +0100, Andrea Righi wrote: > > > Kernel parameters string is limited to 512 characters on riscv (using > > > the default from include/uapi/asm-generic/setup.h). > > > > > > In some testing environments (e.g., qemu with long kernel parameters > > > string) we may exceed this limit, triggering errors like the following: > > > > > > [ 3.331893] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 > > > [ 3.332625] CPU: 2 PID: 1 Comm: sh Not tainted 6.1.0-rc6-kc #1 > > > [ 3.333233] Hardware name: riscv-virtio,qemu (DT) > > > [ 3.333550] Call Trace: > > > [ 3.333736] [] dump_backtrace+0x1c/0x24 > > > [ 3.334053] [] show_stack+0x2c/0x38 > > > [ 3.334260] [] dump_stack_lvl+0x5a/0x7c > > > [ 3.334483] [] dump_stack+0x14/0x1c > > > [ 3.334687] [] panic+0x116/0x2d0 > > > [ 3.334878] [] do_exit+0x80a/0x810 > > > [ 3.335079] [] do_group_exit+0x24/0x70 > > > [ 3.335287] [] __wake_up_parent+0x0/0x20 > > > [ 3.335502] [] ret_from_syscall+0x0/0x2 > > > [ 3.335857] SMP: stopping secondary CPUs > > > [ 3.337561] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 ]--- > > > > > > It seems reasonable enough to increase the default command line size to > > > 1024, like arm, to prevent issues like the one reported above. > > > > error: arch/riscv/include/uapi/asm/setup.h: missing "WITH Linux-syscall-note" for SPDX-License-Identifier > > > > Unfortunately this does not build :/ > > > > Thanks, > > Conor. > > Oh I see, because it's uapi it needs "WITH Linux-syscall-note", > wondering why I can't reproduce this failure... tuxmake --wrapper ccache --target-arch riscv --directory . \ --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 \ --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake \ -o $tmpdir --toolchain llvm -z none -k rv32_defconfig (copy paste from a script) That's what caught it initially & I think should be reproduce able. My own standard build script also runs all of the HDRINST stuff if they've changed since the last time a given toolchain was used so it reproduces locally for me too. > Anyway, as pointed out by Alexandre, there was already a previous > discussion about this topic: > https://lore.kernel.org/lkml/CACT4Y+YYAfTafFk7DE0B=qQFgkPXS7492AhBdY_CP1WdB8CGfA@mail.gmail.com/T/ > > Hopefully this change will be addressed there (and the patch land in > -next at least), otherwise I'll post a v2. Yup, I noticed that thread - in fact I was going to link it yesterday before I saw Alex already had ;) Thanks, Conor.