linux-user was failing on M2 MacBook Air. Digging into the details, I found several bugs in brk and mmap so here are fixes.
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 linux-user/elfload.c | 4 +-- linux-user/mmap.c | 2 ++ linux-user/syscall.c | 67 +++++++++----------------------------------- 3 files changed, 17 insertions(+), 56 deletions(-) -- 2.41.0