Re: [PATCH v2 liburing 1/4] test/thread-exit: Fix use after free bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux