[PATCH v2 0/6] linux-user: brk/mmap fixes

Akihiko Odaki posted 6 patches 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230802071754.14876-1-akihiko.odaki@daynix.com
Maintainers: Laurent Vivier <laurent@vivier.eu>
linux-user/elfload.c |  4 +--
linux-user/mmap.c    | 16 +++++++++--
linux-user/syscall.c | 67 +++++++++-----------------------------------
3 files changed, 29 insertions(+), 58 deletions(-)
[PATCH v2 0/6] linux-user: brk/mmap fixes
Posted by Akihiko Odaki 9 months ago
linux-user was failing on M2 MacBook Air. Digging into the details, I found
several bugs in brk and mmap so here are fixes.

V1 -> V2:
  Added reserved_va check. (Richard Henderson)
  Fixed MAP_FIXED_NOREPLACE on old kernels.

Akihiko Odaki (6):
  linux-user: Unset MAP_FIXED_NOREPLACE for host
  linux-user: Fix MAP_FIXED_NOREPLACE on old kernels
  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

 linux-user/elfload.c |  4 +--
 linux-user/mmap.c    | 16 +++++++++--
 linux-user/syscall.c | 67 +++++++++-----------------------------------
 3 files changed, 29 insertions(+), 58 deletions(-)

-- 
2.41.0