Re: [PATCH] {linux,bsd}-user: Fail mmap() if size doesn't fit into host's size_t

2024-01-29 Thread Warner Losh
On Thu, Jan 25, 2024 at 1:07 PM Ilya Leoshkevich wrote: > s390x's branch-relative-long test fails with the following error > message on 32-bit hosts: > > qemu-s390x: ../accel/tcg/user-exec.c:493: page_set_flags: Assertion > `last <= GUEST_ADDR_MAX' failed. > > The root cause is that the size

Re: [PATCH] {linux,bsd}-user: Fail mmap() if size doesn't fit into host's size_t

2024-01-26 Thread Richard Henderson
On 1/26/24 06:07, Ilya Leoshkevich wrote: s390x's branch-relative-long test fails with the following error message on 32-bit hosts: qemu-s390x: ../accel/tcg/user-exec.c:493: page_set_flags: Assertion `last <= GUEST_ADDR_MAX' failed. The root cause is that the size passed to mmap() by this

[PATCH] {linux, bsd}-user: Fail mmap() if size doesn't fit into host's size_t

2024-01-25 Thread Ilya Leoshkevich
s390x's branch-relative-long test fails with the following error message on 32-bit hosts: qemu-s390x: ../accel/tcg/user-exec.c:493: page_set_flags: Assertion `last <= GUEST_ADDR_MAX' failed. The root cause is that the size passed to mmap() by this test does not fit into 32 bits and gets trun