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