Skip to contentSkip to conversation

execve.2: Correctly the versions of Linux that don't have ARG_MAX argv/envp size

PATCH In review Palmer Dabbelt 2 participants 2 messages Feb 14, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 execve.2: Correctly the versions of Linux that don't have ARG_MAX argv/envp size

From: Palmer Dabbelt <[email protected]>

I just happened upon this inconsistent text while reading man 2 execve. The code in question landed in 2.6.23 as b6a2fea39318 ("mm: variable length argument support").

---
 man2/execve.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/execve.2 +1 -1
index eb3d37e32..639e3b4b9 100644
@@ -431,7 +431,7 @@ so that, even when
 .BR RLIMIT_STACK
 is set very low,
 applications are guaranteed to have at least as much argument and
-environment space as was provided by Linux 2.6.23 and earlier.
+environment space as was provided by Linux 2.6.22 and earlier.
 (This guarantee was not provided in Linux 2.6.23 and 2.6.24.)
 Additionally, the limit per string is 32 pages (the kernel constant
 .BR MAX_ARG_STRLEN ),
Signature · 1 line
2.20.1
#1 lore raw

Hello Palmer

Quoted 7 lines · Palmer Dabbelt

From: Palmer Dabbelt <[email protected]>

I just happened upon this inconsistent text while reading man 2 execve. The code in question landed in 2.6.23 as b6a2fea39318 ("mm: variable length argument support").

Thanks! Patch applied.

Cheers,

Michael

Quoted 18 lines
---
 man2/execve.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/execve.2 +1 -1
index eb3d37e32..639e3b4b9 100644
@@ -431,7 +431,7 @@ so that, even when
 .BR RLIMIT_STACK
 is set very low,
 applications are guaranteed to have at least as much argument and
-environment space as was provided by Linux 2.6.23 and earlier.
+environment space as was provided by Linux 2.6.22 and earlier.
 (This guarantee was not provided in Linux 2.6.23 and 2.6.24.)
 Additionally, the limit per string is 32 pages (the kernel constant
 .BR MAX_ARG_STRLEN ),
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/