linux-hardening.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] binfmt_elf: Honor PT_LOAD alignment for static PIE
@ 2024-05-08 17:31 Kees Cook
  2024-05-08 17:31 ` [PATCH 1/3] selftests/exec: Build both static and non-static load_address tests Kees Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Kees Cook @ 2024-05-08 17:31 UTC (permalink / raw)
  To: H . J . Lu
  Cc: Kees Cook, Chris Kennelly, Eric Biederman, Shuah Khan,
	Muhammad Usama Anjum, John Hubbard, Fangrui Song, Andrew Morton,
	Yang Yingliang, Mike Rapoport, Rui Salvaterra, Victor Stinner,
	Jan Palus, Al Viro, Christian Brauner, Jan Kara, linux-kernel,
	linux-mm, linux-kselftest, linux-fsdevel, linux-hardening

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-08-19 19:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 17:31 [PATCH 0/3] binfmt_elf: Honor PT_LOAD alignment for static PIE Kees Cook
2024-05-08 17:31 ` [PATCH 1/3] selftests/exec: Build both static and non-static load_address tests Kees Cook
2024-05-09  2:54   ` John Hubbard
2024-05-09  6:16     ` Kees Cook
2024-08-07 10:22       ` Muhammad Usama Anjum
2024-08-19  3:55         ` Muhammad Usama Anjum
2024-08-19 19:41           ` John Hubbard
2024-08-19 19:52             ` John Hubbard
2024-05-08 17:31 ` [PATCH 2/3] binfmt_elf: Calculate total_size earlier Kees Cook
2024-05-08 17:31 ` [PATCH 3/3] binfmt_elf: Honor PT_LOAD alignment for static PIE Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).