Commit d9c17587 authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman
Browse files

binfmt_elf: Calculate total_size earlier

[ Upstream commit 2d4cf7b1 ]

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: default avatarKees Cook <kees@kernel.org>
Stable-dep-of: 11854fe2 ("binfmt_elf: Move brk for static PIE even if ASLR disabled")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d3642f29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment