Re: [PATCH] fs/exec.c: simplify initial stack size expansion

From: Kees Cook
Date: Tue Oct 25 2022 - 18:26:07 EST


On Wed, 19 Oct 2022 09:32:35 +0200, Rolf Eike Beer wrote:
> I had a hard time trying to understand completely why it is using vm_end in
> one side of the expression and vm_start in the other one, and using
> something in the "if" clause that is not an exact copy of what is used
> below. The whole point is that the stack_size variable that was used in the
> "if" clause is the difference between vm_start and vm_end, which is not far
> away but makes this thing harder to read than it must be.
>
> [...]

Applied to for-next/execve, thanks!

[1/1] fs/exec.c: simplify initial stack size expansion
https://git.kernel.org/kees/c/bfb4a2b95875

--
Kees Cook