Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4662379pxf; Tue, 30 Mar 2021 13:38:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUBwyBP1fOj5RgVmXZGkQx6GKZ7BVk03h4khuLdDwVXysBf4/PfMgydswgZzseo8Kys8qP X-Received: by 2002:a17:906:ecb8:: with SMTP id qh24mr36214207ejb.162.1617136720748; Tue, 30 Mar 2021 13:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617136720; cv=none; d=google.com; s=arc-20160816; b=cL8PKSHxUX+Ce97j4AXd+CZ5qUVKsP6tvkt3LPGU1r+AJEydmASq25BZ1uGTo6BpmU 6DQXLNDR8Lt29a6KMcIYSm7YE3KNPQ71dTPF4m7iu97vJmIryri+i0nO8dlosdV+BgHV 4EZ9/5QSEAdwZx4TYz0gPQZpbYlEFPMxREVKD/cJFZskDhJWzAvEjwbgy2ltLFwQ3f1R O3YOmdZ1YksmrsX4L4SKo01nWLoUFBQaTqec6rAcpz+AOLy+6MPmX6KEjBOgaGgKQEhQ Bn+lu2tP5tJhmc2TC2/mTLbdvCjjtQmHEu5FZRXVg2GN5CPdqncImOECDUXMequtT3Bo jSHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=KXprNGVuevA4v18a2bNI7XHiD4J0F00aC9BiVXSlBxk=; b=XZXcziWc/sLjbXHGapc8tFX3EfXFs7WCjSNK3ZY3v5FIfhAzVVkZnNt7/70k9/Cngg t3Ax0J6qbcyt7deztR7cy3jmIEn9k+x66YwnAyDPJQMgrAbF88SAy1AEHrSY+YYQVjQW 8W4TLFz3gAf4rJyrH+SGkyub9kXFPqenAgZyJJQMurg4uHXNJePRCovvutb5JtzzGbAu EfzJVl3+GcuyPrcEsJQyZnXsK9Rt7hv2WFj8ryi4o59K6SaBcVCh5BNGUHVR4eW+EjpB v6RFbi5OR6IJbUn9NwjqFDe99/djzBA6mLbG4MVdPA1nzAQN3arzAUk3VWlRTdZalmL7 l0PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si2699306ejg.204.2021.03.30.13.38.18; Tue, 30 Mar 2021 13:38:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232560AbhC3UcA (ORCPT + 99 others); Tue, 30 Mar 2021 16:32:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231743AbhC3Ubr (ORCPT ); Tue, 30 Mar 2021 16:31:47 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 15BE0C061574; Tue, 30 Mar 2021 13:31:47 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id A8E7992009C; Tue, 30 Mar 2021 22:31:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id A2CFF92009B; Tue, 30 Mar 2021 22:31:45 +0200 (CEST) Date: Tue, 30 Mar 2021 22:31:45 +0200 (CEST) From: "Maciej W. Rozycki" To: Palmer Dabbelt cc: alex@ghiti.fr, Paul Walmsley , dvyukov@google.com, linux-api@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: Bump COMMAND_LINE_SIZE value to 1024 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 29 Mar 2021, Palmer Dabbelt wrote: > > --- /dev/null > > +++ b/arch/riscv/include/uapi/asm/setup.h > > @@ -0,0 +1,8 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ > > + > > +#ifndef _UAPI_ASM_RISCV_SETUP_H > > +#define _UAPI_ASM_RISCV_SETUP_H > > + > > +#define COMMAND_LINE_SIZE 1024 > > + > > +#endif /* _UAPI_ASM_RISCV_SETUP_H */ > > I put this on fixes, but it seemes like this should really be a Kconfig > enttry. Either way, ours was quite a bit smaller than most architectures and > it's great that syzbot has started to find bugs, so I'd rather get this in > sooner. This macro is exported as a part of the user API so it must not depend on Kconfig. Also changing it (rather than say adding COMMAND_LINE_SIZE_V2 or switching to an entirely new data object that has its dimension set in a different way) requires careful evaluation as external binaries have and will have the value it expands to compiled in, so it's a part of the ABI too. Maciej