Skip to content

Adjust brk randomness

Kees Cook linux-fsdevel linux-hardening linux-mm lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2x86: Increase brk randomness entropy on x86_64arch/x86/kernel/process.c+4 -11 reply
2/2binfmt_elf: Leave a gap between .bss and brkfs/binfmt_elf.c+3 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJiri Kosina
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Adjust brk randomness

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

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(-)
Signature · 1 line
2.34.1