BACKPORT: io_uring: fix race between timeout flush and removal
commit e677edbc upstream. io_flush_timeouts() assumes the timeout isn't in progress of triggering or being removed/canceled, so it unconditionally removes it from the timeout list and attempts to cancel it. Leave it on the list and let the normal timeout cancelation take care of it. Bug: 231494876 Cc: stable@vger.kernel.org # 5.5+ Signed-off-by:Jens Axboe <axboe@kernel.dk> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Lee Jones <lee.jones@linaro.org> Change-Id: Ie7dba41da32732391f8a85526fe20168bd431be8 (cherry picked from commit 4b895c55)
Loading
Please sign in to comment