Re: [PATCH] x86/elf: Correct comment for STACK_RND_MASK()
From: Kees Cook
Date: Wed Jul 22 2026 - 23:45:49 EST
On Wed, 22 Jul 2026 19:44:43 +0100, Lorenzo Stoakes (ARM) wrote:
> Commit 913bd9060195 ("[PATCH] x86_64: Increase the variability of the
> process stack on 64bit architectures"), merged in 2006, increased stack
> randomisation from 8 MiB to an ostensible 1 GiB for 64-bit systems.
>
> However the commit actually introduced a mask of 0x3fffff * 4 KiB pages
> which provides 16 GiB of randomisation, not 1 GiB.
>
> [...]
Applied to for-next/execve, thanks!
[1/1] x86/elf: Correct comment for STACK_RND_MASK()
https://git.kernel.org/kees/c/ab11176bd3a7
Take care,
--
Kees Cook