Skip to content
Snippets Groups Projects
Commit 4ac31311 authored by Rich Felker's avatar Rich Felker Committed by Greg Ungerer
Browse files

fs/binfmt_elf_fdpic.c: fix brk area overlap with stack on NOMMU


On NOMMU archs, the FDPIC ELF loader sets up the usable brk range to
overlap with all but the last PAGE_SIZE bytes of the stack. This leads
to catastrophic memory reuse/corruption if brk is used. Fix by setting
the brk area to zero size to disable its use.

Signed-off-by: default avatarRich Felker <dalias@libc.org>
Acked-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
parent 32b88194
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment