Re: [PATCH v2 1/1] io_uring: fix ltimeout unprep

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

 



On 10/20/21 15:01, Jens Axboe wrote:
On Wed, 20 Oct 2021 09:53:02 +0100, Pavel Begunkov wrote:
io_unprep_linked_timeout() is broken, first it needs to return back
REQ_F_ARM_LTIMEOUT, so the linked timeout is enqueued and disarmed. But
now we refcounted it, and linked timeouts may get not executed at all,
leaking a request.

Just kill the unprep optimisation.

Jens, if the patches are not too deep, would also be lovely to
add reported-by to this and the other one.


Link: https://github.com/axboe/liburing/issues/460
Reported-by: Beld Zhang <beldzhang@xxxxxxxxx>

--
Pavel Begunkov



[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