Skip to content

Fixes for unfixed mmap beyond reserved_va

Bingwu Zhang qemu-devel 1 version In review

Get series with b4
b4 am [email protected] change-id 20260227-abyss-mmap-relocation-ccba2ab8902b

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4linux-user: Deal with mmap where start > reserved_valinux-user/mmap.c+6 -31 reply
2/4bsd-user: Deal with mmap where start > reserved_vabsd-user/mmap.c+5 -34 replies
3/4tests/tcg/multiarch/test-mmap: Print more detailstests/tcg/multiarch/test-mmap.c+9 -30 replies
4/4tests/tcg/multiarch/test-mmap: Check mmaps beyond reserved_vatests/tcg/multiarch/test-mmap.c+15 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchWarner LoshHelge Deller
1/4R-b
2/4R-b R-b
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] Fixes for unfixed mmap beyond reserved_va

For reserved_va & ~MAP_FIXED mmap, linux-user and bsd-user translates it into a fixed mmap within [mmap_min_addr, reserved_va]. However, the previous implementation didn't care about where the address hint provided by user is greater than reserved_va and will run into an assertion failure.

This series fixed it for linux-user and bsd-user and added test coverage. For start > reserved_va, skip [start, reserved_va] and just search within [min_addr, reserved_va].

I actually thought that I am adding too many CC's and causing unnecessary noise but b4 is asking me to run auto-to-cc (:

---
Bingwu Zhang (4):
linux-user: Deal with mmap where start > reserved_va
bsd-user: Deal with mmap where start > reserved_va tests/tcg/multiarch/test-mmap: Print more details tests/tcg/multiarch/test-mmap: Check mmaps beyond reserved_va

 bsd-user/mmap.c                 |  8 +++++---
 linux-user/mmap.c               |  9 ++++++---
 tests/tcg/multiarch/test-mmap.c | 27 ++++++++++++++++++++++++---
 3 files changed, 35 insertions(+), 9 deletions(-)

---
base-commit: d8a9d97317d03190b34498741f98f22e2a9afe3e
change-id: 20260227-abyss-mmap-relocation-ccba2ab8902b

Best regards,

Signature · 1 line
Bingwu Zhang <[email protected]>