diff options
author | Fabiano Rosas <farosas@suse.de> | 2025-02-13 11:35:58 -0300 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-02-18 08:29:03 -0800 |
commit | 4b7b20a3b72c5000ea71bef505c16e6e628268b6 (patch) | |
tree | 01134adbde36739121af623db7c79271bf949039 /scripts/qapi/commands.py | |
parent | 1bbcae5adaad2d8f026194002f54913be5ee0933 (diff) | |
download | qemu-4b7b20a3b72c5000ea71bef505c16e6e628268b6.zip qemu-4b7b20a3b72c5000ea71bef505c16e6e628268b6.tar.gz qemu-4b7b20a3b72c5000ea71bef505c16e6e628268b6.tar.bz2 |
elfload: Fix alignment when unmapping excess reservation
When complying with the alignment requested in the ELF and unmapping
the excess reservation, having align_end not aligned to the guest page
causes the unmap to be rejected by the alignment check at
target_munmap and later brk adjustments hit an EEXIST.
Fix by aligning the start of region to be unmapped.
Fixes: c81d1fafa6 ("linux-user: Honor elf alignment when placing images")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1913
Signed-off-by: Fabiano Rosas <farosas@suse.de>
[rth: Align load_end as well.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250213143558.10504-1-farosas@suse.de>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions