On 10/10/21 12:39 AM, Ammar Faizi wrote: > When I add support for nolibc x86-64, I find this test failed. > > Long story short, we provide our own `free()` that always unmaps the VM > with `munmap()`. It makes the CQE return -EFAULT because the kernel > reads unmapped user memory from the pending `write()` SQE. > > I believe this test can run properly with libc build because `free()` > from libc doesn't always unmap the memory, instead it uses free list on > the userspace and the freed heap may still be userspace addressable. > > Fix this by deferring the free. Applied, thanks. -- Jens Axboe