Files
linux/io_uring
Jens Axboe 094c6467fe io_uring/rw: ensure allocated iovec gets cleared for early failure
commit d3c9c213c0 upstream.

A previous commit reused the recyling infrastructure for early cleanup,
but this is not enough for the case where our internal caches have
overflowed. If this happens, then the allocated iovec can get leaked if
the request is also aborted early.

Reinstate the previous forced free of the iovec for that situation.

Cc: stable@vger.kernel.org
Reported-by: syzbot+3c93637d7648c24e1fd0@syzkaller.appspotmail.com
Tested-by: syzbot+3c93637d7648c24e1fd0@syzkaller.appspotmail.com
Fixes: 9ac273ae3d ("io_uring/rw: use io_rw_recycle() from cleanup path")
Link: https://lore.kernel.org/io-uring/69122a59.a70a0220.22f260.00fd.GAE@google.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-11-24 10:37:46 +01:00
..
2025-01-28 15:10:40 -07:00
2025-02-17 16:43:04 -08:00
2025-03-07 13:41:08 -07:00
2025-06-23 09:00:12 -06:00
2025-07-16 16:23:28 -06:00
2024-02-09 09:04:39 -07:00
2025-07-16 16:23:28 -06:00