]> Git Repo - linux.git/commit
fs/binfmt_elf: use PT_LOAD p_align values for static PIE
authorH.J. Lu <[email protected]>
Thu, 20 Jan 2022 02:09:40 +0000 (18:09 -0800)
committerLinus Torvalds <[email protected]>
Thu, 20 Jan 2022 06:52:54 +0000 (08:52 +0200)
commit9630f0d60fec5fbcaa4435a66f75df1dc9704b66
tree3bef10ed9e2db16ae7580d1a643bbfa706ff3875
parentc55cdc5cd6663ff616c94ecf7204e92c7049bb5e
fs/binfmt_elf: use PT_LOAD p_align values for static PIE

Extend commit ce81bb256a22 ("fs/binfmt_elf: use PT_LOAD p_align values
for suitable start address") which fixed PIE binaries built with
-Wl,-z,max-page-size=0x200000, to cover static PIE binaries.  This
fixes:

    https://bugzilla.kernel.org/show_bug.cgi?id=215275

Tested by verifying static PIE binaries with -Wl,-z,max-page-size=0x200000 loading.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: H.J. Lu <[email protected]>
Cc: Chris Kennelly <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Song Liu <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Sandeep Patil <[email protected]>
Cc: Fangrui Song <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/binfmt_elf.c
This page took 0.07005 seconds and 4 git commands to generate.