mbox series

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

Message ID 20230802071754.14876-1-akihiko.odaki@daynix.com
Headers show
Series linux-user: brk/mmap fixes | expand

Message

Akihiko Odaki Aug. 2, 2023, 7:17 a.m. UTC
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(-)