diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-04-17 05:14:00 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-17 05:14:00 +0200 |
commit | 323b190ba2debbcc03c01d2edaf1ec6b43e6ae43 (patch) | |
tree | 4ca758039ff1ceda7c9b2aa8285c7e6eb9af6a6e /.gitattributes | |
parent | io_uring: abort file assignment prior to assigning creds (diff) | |
download | linux-323b190ba2debbcc03c01d2edaf1ec6b43e6ae43.tar.xz linux-323b190ba2debbcc03c01d2edaf1ec6b43e6ae43.zip |
io_uring: free iovec if file assignment fails
We just return failure in this case, but we need to release the iovec
first. If we're doing IO with more than FAST_IOV segments, then the
iovec is allocated and must be freed.
Reported-by: syzbot+96b43810dfe9c3bb95ed@syzkaller.appspotmail.com
Fixes: 584b0180f0f4 ("io_uring: move read/write file prep state into actual opcode handler")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions