mremap fails with EFAULT if address range overlaps with stack guard
Hi,
there is a bug report concerning arm32 in linux-user on x86_64 hosts: https://gitlab.com/qemu-project/qemu/-/issues/1729
The issue has quite a history and causes especially problems with alpine linux, as musl relies on the correct behaviour of mremap(). The problem occurs depending on the used memory area and leads to timeouts in many build/testing pipelines.
There was a patch proposed https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/ but never implemented and finally abandoned. Are there arguments against the proposed patch?