From: Matthew House <mattlloydhouse@gmail.com>
To: Rik van Riel <riel@surriel.com>
Cc: Alejandro Colomar <alx@kernel.org>,
linux-man@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
kernel-team@meta.com, Eric Biederman <ebiederm@xmission.com>
Subject: Re: [PATCH] execve.2: execve also returns E2BIG if a string is too long
Date: Wed, 11 Oct 2023 09:52:22 -0400 [thread overview]
Message-ID: <20231011135230.750728-1-mattlloydhouse@gmail.com> (raw)
In-Reply-To: <20231010234153.021826b1@imladris.surriel.com>
On Tue, Oct 10, 2023 at 11:51 PM Rik van Riel <riel@surriel.com> wrote:
> 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>
It might be worth mentioning that strlen(pathname) must also be strictly
less than MAX_ARG_STRLEN, it being subject to the same restrictions as
each of the argv/envp strings.
Thank you,
Matthew House
prev parent reply other threads:[~2023-10-11 13:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-11 3:41 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231011135230.750728-1-mattlloydhouse@gmail.com \
--to=mattlloydhouse@gmail.com \
--cc=alx@kernel.org \
--cc=ebiederm@xmission.com \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-man@vger.kernel.org \
--cc=riel@surriel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®