public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] execve.2: execve also returns E2BIG if a string is too long
@ 2023-10-11  3:41 Rik van Riel
  2023-10-11 10:41 ` Alejandro Colomar
  2023-10-11 13:52 ` Matthew House
  0 siblings, 2 replies; 10+ messages in thread
From: Rik van Riel @ 2023-10-11  3:41 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man, LKML, kernel-team, Eric Biederman

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 <riel@surriel.com>
---
 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



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-10-11 15:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11  3:41 [PATCH] execve.2: execve also returns E2BIG if a string is too long Rik van Riel
2023-10-11 10:41 ` Alejandro Colomar
2023-10-11 13:21   ` Rik van Riel
2023-10-11 13:44     ` Matthew House
2023-10-11 14:44       ` Alejandro Colomar
2023-10-11 14:47       ` Alejandro Colomar
2023-10-11 15:11         ` Matthew House
2023-10-11 15:50           ` Alejandro Colomar
2023-10-11 14:42     ` Alejandro Colomar
2023-10-11 13:52 ` Matthew House

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox