summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-11-10 14:30:41 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-24 10:37:46 +0100
commit094c6467fe05e0de618c5a7fcff4d3ee20aeaef8 (patch)
tree57f71b965f1a565a5ece654d2a23ee4d08d86e17 /include/net/aligned_data.h
parentef15bc6a00b35c9efd87bcba326063dbedc2fd7d (diff)
io_uring/rw: ensure allocated iovec gets cleared for early failure
commit d3c9c213c0b86ac5dd8fe2c53c24db20f1f510bc 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: 9ac273ae3dc2 ("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>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions