]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
binfmt_elf: elf_bss no longer used by load_elf_binary()
authorKees Cook <keescook@chromium.org>
Fri, 29 Sep 2023 03:24:30 +0000 (20:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:11 +0000 (14:12 +0200)
commitfe7eb1f32a85a7ccb085604c1d1d211764fa0641
treeda20c7920fabc98954185ce2243b38694320ec0f
parentc6df4c71ae1c770ed836c42b03649ef0f2b1af97
binfmt_elf: elf_bss no longer used by load_elf_binary()

[ Upstream commit 8ed2ef21ff564cf4a25c098ace510ee6513c9836 ]

With the BSS handled generically via the new filesz/memsz mismatch
handling logic in elf_load(), elf_bss no longer needs to be tracked.
Drop the variable.

Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-mm@kvack.org
Suggested-by: Eric Biederman <ebiederm@xmission.com>
Tested-by: Pedro Falcato <pedro.falcato@gmail.com>
Signed-off-by: Sebastian Ott <sebott@redhat.com>
Link: https://lore.kernel.org/r/20230929032435.2391507-2-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Stable-dep-of: 11854fe263eb ("binfmt_elf: Move brk for static PIE even if ASLR disabled")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/binfmt_elf.c