Skip to content

linux-user: brk fixes

Helge Deller qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v6 Latest8 patches 17 repliesIn review

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8linux-user: Unset MAP_FIXED_NOREPLACE for hostlinux-user/mmap.c+2 -01 reply
2/8linux-user: Do not call get_errno() in do_brk()linux-user/syscall.c+3 -30 replies
3/8linux-user: Use MAP_FIXED_NOREPLACE for do_brk()linux-user/syscall.c+3 -140 replies
4/8linux-user: Do nothing if too small brk is specifiedlinux-user/syscall.c+3 -30 replies
5/8linux-user: Do not align brk with host page sizelinux-user/elfload.c linux-user/syscall.c+14 -440 replies
6/8linux-user: Show heap address in /proc/pid/mapsinclude/exec/cpu_ldst.h linux-user/main.c linux-user/qemu.h +1 more+15 -82 replies
7/8linux-user: Optimize memory layout for static and dynamic executableslinux-user/elfload.c linux-user/mmap.c+21 -424 replies
8/8linux-user: Load pie executables at upper memorylinux-user/elfload.c linux-user/loader.h linux-user/mmap.c+34 -198 replies

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by.

PatchHelge Deller
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/8] linux-user: brk fixes

This patch series is a fix-up for some current problems regarding heap memory / brk handling in qemu which happens on some 32-bit platforms, e.g. problems loading static binaries.

This series includes the 5 patches from Akihiko Odaki with some additional fixes and cleanups by me.

Akihiko Odaki (5):
linux-user: Unset MAP_FIXED_NOREPLACE for host
linux-user: Do not call get_errno() in do_brk()
linux-user: Use MAP_FIXED_NOREPLACE for do_brk()
linux-user: Do nothing if too small brk is specified
linux-user: Do not align brk with host page size

Helge Deller (3):
linux-user: Show heap address in /proc/pid/maps
linux-user: Optimize memory layout for static and dynamic executables
linux-user: Load pie executables at upper memory

 include/exec/cpu_ldst.h |  4 +--
 linux-user/elfload.c    | 59 ++++++++++--------------------
 linux-user/loader.h     | 12 +++++++
 linux-user/main.c       |  2 ++
 linux-user/mmap.c       | 35 ++++++++++--------
 linux-user/qemu.h       |  4 +--
 linux-user/syscall.c    | 80 ++++++++++++-----------------------------
 7 files changed, 79 insertions(+), 117 deletions(-)

--
2.41.0