Skip to content

move mmap_area and PIE binaries away from the stack

[email protected] kernel-hardening lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6binfmt_elf: document load_bias a little bitfs/binfmt_elf.c+8 -21 reply
2/6x86/elf: move 32 bit ELF_ET_DYN_BASE to 256MBarch/x86/include/asm/elf.h+12 -113 replies
3/6x86/mmap: properly account for stack randomization in mmap_basearch/x86/mm/mmap.c+6 -12 replies
4/6arm64/mmap: properly account for stack randomization in mmap_basearch/arm64/mm/mmap.c+6 -10 replies
5/6arm64: move COMPAT_ELF_ET_DYN_BASE lower in the address spacearch/arm64/include/asm/elf.h+1 -10 replies
6/6powerpc,mmap: properly account for stack randomization in mmap_basearch/powerpc/mm/mmap.c+19 -90 replies

Reviews trailers per patch

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

PatchKees Cook
1/6A-b
2/6
3/6
4/6
5/6
6/6

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/6] move mmap_area and PIE binaries away from the stack

There are a few bugs causing the kernel to sometimes map PIE binaries and the mmap_area where the stack is supposed to go.

This series fixes them for x86, ARM64, and PPC.
S390 seems to be ok.

If people are fine with this approach, I can work my way through other architectures, too.