diff options
| author | Helge Deller <deller@gmx.de> | 2023-08-02 16:14:01 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-08-08 13:27:17 -0700 |
| commit | 1f356e8c013f254b6471985bc929c8db1d08c44c (patch) | |
| tree | 8e7242c7963ba432bffb328d91979489290a0b74 /linux-user/qemu.h | |
| parent | 1ea06ded0de5adcd40a0122ea73c9761f488bfba (diff) | |
| download | focaccia-qemu-1f356e8c013f254b6471985bc929c8db1d08c44c.tar.gz focaccia-qemu-1f356e8c013f254b6471985bc929c8db1d08c44c.zip | |
linux-user: Adjust initial brk when interpreter is close to executable
While we attempt to load a ET_DYN executable far away from TASK_UNMAPPED_BASE, we are not completely in control of the address space layout. If the interpreter lands close to the executable, leaving insufficient heap space, move brk. Tested-by: Helge Deller <deller@gmx.de> Signed-off-by: Helge Deller <deller@gmx.de> [rth: Re-order after ELF_ET_DYN_BASE patch so that we do not "temporarily break" tsan, and also to minimize the changes required. Remove image_info.reserve_brk as unused.] Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/qemu.h')
| -rw-r--r-- | linux-user/qemu.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 2046a23037..4f8b55e2fb 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -30,7 +30,6 @@ struct image_info { abi_ulong start_data; abi_ulong end_data; abi_ulong brk; - abi_ulong reserve_brk; abi_ulong start_mmap; abi_ulong start_stack; abi_ulong stack_limit; |