Re: [PATCH] exec: move warning of null argv to be next to the relevant code
From: Kees Cook
Date: Sat Nov 02 2024 - 16:05:44 EST
On Sat, 02 Nov 2024 14:01:22 +0200, nir@xxxxxxxxxxxx wrote:
> Problem: The warning is currently printed where it is detected that the
> arg count is zero but the action is only taken place later in the flow
> even though the warning is written as if the action is taken place in
> the time of print
>
> This could be problematic since there could be a failure between the
> print and the code that takes action which would deem this warning
> misleading
>
> [...]
Applied to for-next/execve, thanks!
[1/1] exec: move warning of null argv to be next to the relevant code
https://git.kernel.org/kees/c/cc0be150ca0e
Take care,
--
Kees Cook