Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp558913rdg; Tue, 10 Oct 2023 20:42:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfxTu+xM+J/uWdcrzLRPJmtm6CzTy1LQLeCjYWa6Kx37H7SHNlXyJiXiPJC6AcpnUc9hC5 X-Received: by 2002:a05:6871:410d:b0:1e9:94c1:917a with SMTP id la13-20020a056871410d00b001e994c1917amr348325oab.54.1696995736038; Tue, 10 Oct 2023 20:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696995736; cv=none; d=google.com; s=arc-20160816; b=PvMjn/jlzB531tTHFn6rvcHPtFDDNu0yRtdLpDZRoOj83rMShFWpidUHu05kPEdtjr 7RuIRrcaUhEGY2ywlQjxNVnU6c2bXQT3+rwRZfXbka8QdaK2h/11cylJ1txr31HJJMcm D/DQeA7QXx0AySiACOLbdZaNjlHcmOj7sIwj+qGIwtGVRPV8p9R7tuFpcbqG+Get17E1 IaEY4F6Avd3LZ1ruZA64zr82PxqFKJkiXuDjgpzbwbolHN8giT5GNB2VhroE6Poek2l9 oOk5cLsrFcp93BbfY9PM/mmW5tLtcGxh3yukWk2buGIfG5OFytiHSigA3d97kyp7KkGn uOUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date; bh=bLyQO33tDw0iksj7Gaz/Kn20E/yoVolkW/flR1G7DUs=; fh=IaHIGecTgtBZWzHFdribiMaBLwiIQP47sp/WWUYgmOw=; b=RrB73wP/yk0NP0dByx9PiqEwob3bFU6AEgMP/S6+3oMuTc5v7SggyzQ2XPXefHNhTj 7H5gBYVWNUXvYlAIyopucAa/BBykZ+/jSYOn12j686ckz1KCARSIy0jVwq1mo241xPNU rsj3G4ePQWCQ38MVpPlH4/N47gvBFqdECWTDrkBAMRnOEJ7DMviYmhDo6+Ixx7AudZP4 B7SgW/0v9oZVaiwaGKxq7bUl1A6KRJ+I0Ms5CijIJWpluqrMsoNc+TdmHda5mH9aDXqz zj2SIHdI3IqZ/MMP5UAJF38cc4XdmtE6ACC/JUNCDj60SVQRaNCGvLKqbjg0+Fv9prnh LKUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y22-20020a056a00191600b00690c0051dcdsi1975394pfi.143.2023.10.10.20.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 20:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2CEC281F3303; Tue, 10 Oct 2023 20:42:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229495AbjJKDmI (ORCPT + 99 others); Tue, 10 Oct 2023 23:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjJKDmH (ORCPT ); Tue, 10 Oct 2023 23:42:07 -0400 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C0AD92 for ; Tue, 10 Oct 2023 20:42:06 -0700 (PDT) Received: from [2601:18c:9101:a8b6:6e0b:84ff:fee2:98bb] (helo=imladris.surriel.com) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qqQ6f-0006gO-0x; Tue, 10 Oct 2023 23:41:57 -0400 Date: Tue, 10 Oct 2023 23:41:53 -0400 From: Rik van Riel To: Alejandro Colomar Cc: linux-man@vger.kernel.org, LKML , kernel-team@meta.com, Eric Biederman Subject: [PATCH] execve.2: execve also returns E2BIG if a string is too long Message-ID: <20231010234153.021826b1@imladris.surriel.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: riel@surriel.com X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 10 Oct 2023 20:42:13 -0700 (PDT) X-Spam-Level: ** Document that if a command line or environment string is too long (> MAX_ARG_STRLEN), execve will also return E2BIG. Signed-off-by: Rik van Riel --- man2/execve.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/execve.2 b/man2/execve.2 index 0d9582492ad1..c1a359d01872 100644 --- a/man2/execve.2 +++ b/man2/execve.2 @@ -449,7 +449,7 @@ The total number of bytes in the environment .RI ( envp ) and argument list .RI ( argv ) -is too large. +is too large, or an argument or environment string is too long. .TP .B EACCES Search permission is denied on a component of the path prefix of -- 2.41.0