Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp93450rdb; Fri, 5 Jan 2024 04:02:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHK5pVNzfOyEMNBfAWRaWTqYvRqq3x9IGqnJlAtDDM/OKtYyXkntIOpowJRjsnb553STfl X-Received: by 2002:a17:907:b11:b0:a27:361f:f604 with SMTP id h17-20020a1709070b1100b00a27361ff604mr899405ejl.47.1704456154969; Fri, 05 Jan 2024 04:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704456154; cv=none; d=google.com; s=arc-20160816; b=H4PvkTEVSEJeQ5pjwXuKPkLphQfRWj6cfZUtm+mtanAWcr55p1gYbUym2BaLYhdKW/ sI9YbIQz7VZ5mBue5XRpTp/0eyPtNgouadpF+Q9NtcMJNvtksOUp6uk7V/BYhz64asMp T614GY/ZOEaDvk2P9X3T7S1tuX3GA+RBRLekDWIt4260BVi9ido25oAXp3c+rjsd084f G1yO3X+1iQY25uS7E/9EPzA76aPmB2w87DT8D6dlxSLOWqHnpXxMcJUcLAECuTPJ4OmR xuatkgJn4PRlTFAozGhnEW53xq461hjGzDnuAkisoTmiqmmVrU79Q3Mx1pHuQ6X3few4 Uo2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=kMx+OqhePkEdCzSM7gBc5JaRKGBybqUCRaWMImgmzGQ=; fh=7Ki9350fHbnoupCdolF4NOGY0ZJ3klSuZkwafUhOnTQ=; b=CN6sfNbw6wVo6Ag4O8ahqusIjtCT+EPiOc6KvkQMpp87IXt5cSkmyYSBAFLxUaG0q+ TnSBMagTGu7h/amo0H0ZxzH3PphPmpV1fi24FlfdN2j6OaK/bqzwkqZx/uTE+YmBCw5Q f9KqbkXhj1VS/DY4ME77WyW11YbN3hhwFaPYkz+A/7xPTEOCh8UzfLzR0ZRSSe3f7IjV 9SJ9Lzo/4JKQLRElbTUBcpS6bXK25B9a7wrkSHkvd2AcWhvsXhRJGR137eaXf1tvlvgC 7WwGnMn4dA3dqiOR9d/M8wgYwxw3GFqKbQ6TeDz3FyeWokOEyPyEaAola8jwPqo422Pl RxAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id br19-20020a170906d15300b00a26e107b3f0si527280ejb.479.2024.01.05.04.02.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 04:02:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B8D441F2372E for ; Fri, 5 Jan 2024 12:02:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E74022D02A; Fri, 5 Jan 2024 12:02:29 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D17762CCC4 for ; Fri, 5 Jan 2024 12:02:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-164-2jbWMMW-PhWkS7KfcjAoaQ-1; Fri, 05 Jan 2024 12:02:24 +0000 X-MC-Unique: 2jbWMMW-PhWkS7KfcjAoaQ-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 5 Jan 2024 12:02:08 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Fri, 5 Jan 2024 12:02:08 +0000 From: David Laight To: "'alexs@kernel.org'" , Eric Biederman , Kees Cook , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" CC: Alex Shi , "curlinhuang@tencent.com" Subject: RE: [PATCH] execve: argument list space enlargement Thread-Topic: [PATCH] execve: argument list space enlargement Thread-Index: AQHaPkWNtOnoU7TWREOKrIllLweKE7DLHuZw Date: Fri, 5 Jan 2024 12:02:08 +0000 Message-ID: <1834358b1a8642f9b46a209bad035474@AcuMS.aculab.com> References: <20240103130722.1551670-1-alexs@kernel.org> In-Reply-To: <20240103130722.1551670-1-alexs@kernel.org> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: alexs@kernel.org > Sent: 03 January 2024 13:07 >=20 > From: Alex Shi >=20 > Wechat using too long gcc parameters, then get a strace complain: > execve(...) =3D -1 E2BIG (Argument list too long) > Have to increase the parameter space for this, stack has enough > space for this enlargement. They should fix their build so that it doesn't explode. It'll probably speed up the compiles as well since the very long argv[] almost certainly comes from a lot of -I dir options and they slow down the compile. if they are -Dvar[=3Dval] then '-include file' can be used instead. =09David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1= PT, UK Registration No: 1397386 (Wales)