Skip to content

binfmt_elf: Honor PT_LOAD alignment for static PIE

Kees Cook linux-fsdevel linux-hardening linux-kselftest linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests/exec: Build both static and non-static load_address teststools/testing/selftests/exec/Makefile tools/testing/selftests/exec/load_address.c+66 -206 replies
2/3binfmt_elf: Calculate total_size earlierfs/binfmt_elf.c+27 -250 replies
3/3binfmt_elf: Honor PT_LOAD alignment for static PIEfs/binfmt_elf.c tools/testing/selftests/exec/Makefile+38 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] binfmt_elf: Honor PT_LOAD alignment for static PIE

Hi,

This attempts to implement PT_LOAD p_align support for static PIE builds. I intend this to go into -next after the coming merge window so we can maximize bake time. In the past we've had regressions with both the selftests and the ELF loader. Hopefully we can shake everything out over a few months. :)

Thanks!

-Kees

Kees Cook (3):
selftests/exec: Build both static and non-static load_address tests
binfmt_elf: Calculate total_size earlier
binfmt_elf: Honor PT_LOAD alignment for static PIE

 fs/binfmt_elf.c                             | 94 ++++++++++++++-------
 tools/testing/selftests/exec/Makefile       | 19 +++--
 tools/testing/selftests/exec/load_address.c | 67 ++++++++++++---
 3 files changed, 130 insertions(+), 50 deletions(-)
Signature · 1 line
2.34.1