mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
binfmt_elf: Calculate total_size earlier
[ Upstream commit2d4cf7b190] In preparation to support PT_LOAD with large p_align values on non-PT_INTERP ET_DYN executables (i.e. "static pie"), we'll need to use the total_size details earlier. Move this separately now to make the next patch more readable. As total_size and load_bias are currently calculated separately, this has no behavioral impact. Link: https://lore.kernel.org/r/20240508173149.677910-2-keescook@chromium.org Signed-off-by: Kees Cook <kees@kernel.org> Stable-dep-of:11854fe263("binfmt_elf: Move brk for static PIE even if ASLR disabled") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
add3a49ae9
commit
2fb38e1a01
1 changed files with 27 additions and 25 deletions
Loading…
Add table
Add a link
Reference in a new issue