diff options
author | Timothy E Baldwin | 2020-07-29 00:46:15 +0200 |
---|---|---|
committer | Laurent Vivier | 2020-09-05 22:51:07 +0200 |
commit | 8a0451886824fb266fbdcd1ca01d6acb023e3e09 (patch) | |
tree | 0e81e0ca54c6c11266da2053769a63d0038df83a /linux-user/mmap.c | |
parent | linux-user: Add support for ppoll_time64() and pselect6_time64() (diff) | |
download | qemu-8a0451886824fb266fbdcd1ca01d6acb023e3e09.tar.gz qemu-8a0451886824fb266fbdcd1ca01d6acb023e3e09.tar.xz qemu-8a0451886824fb266fbdcd1ca01d6acb023e3e09.zip |
linux-user: Correctly start brk after executable
info->brk was erroneously set to the end of highest addressed
writable segment which could result it in overlapping the executable.
As per load_elf_binary in fs/binfmt_elf.c in Linux, it should be
set to end of highest addressed segment.
Signed-off-by: Timothy E Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200728224615.326675-1-T.E.Baldwin99@members.leeds.ac.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/mmap.c')
0 files changed, 0 insertions, 0 deletions