[PATCH 0/2] Adjust brk randomness

From: Kees Cook
Date: Sat Feb 17 2024 - 01:26:08 EST


Hi,

It was recently pointed out[1] that x86_64 brk entropy was not great,
and that on all architectures the brk can (when the random offset is 0)
be immediately adjacent to .bss, leaving no gap that could stop linear
overflows from the .bss. Address both issues.

-Kees

Link: https://lore.kernel.org/linux-hardening/CA+2EKTVLvc8hDZc+2Yhwmus=dzOUG5E4gV7ayCbu0MPJTZzWkw@xxxxxxxxxxxxxx [1]

Kees Cook (2):
x86: Increase brk randomness entropy on x86_64
binfmt_elf: Leave a gap between .bss and brk

arch/x86/kernel/process.c | 5 ++++-
fs/binfmt_elf.c | 3 +++
2 files changed, 7 insertions(+), 1 deletion(-)

--
2.34.1