Re: [PATCH v2] linux-user/mmap: Return EFAULT/EINVAL for invalid addresses

2021-02-16 Thread Laurent Vivier
Le 16/02/2021 à 20:01, Richard Purdie a écrit : > When using qemu-i386 to build qemux86 webkitgtk on musl, it sits in an > infinite loop of mremap calls of ever decreasing/increasing addresses. > > I suspect something in the musl memory allocation code loops > indefinitely if it only sees ENOMEM

[PATCH v2] linux-user/mmap: Return EFAULT/EINVAL for invalid addresses

2021-02-16 Thread Richard Purdie
When using qemu-i386 to build qemux86 webkitgtk on musl, it sits in an infinite loop of mremap calls of ever decreasing/increasing addresses. I suspect something in the musl memory allocation code loops indefinitely if it only sees ENOMEM and only exits when it hits other errors such as EFAULT or