aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2020-02-18 21:19:09 +0000
committerJens Axboe <[email protected]>2020-02-19 00:12:23 +0000
commit929a3af90f0f4bd7132d83552c1a98c83f60ef7e (patch)
tree0d485e68f97162440e341abbafc3aa268b7fcd0b /net/unix/af_unix.c
parentio_uring: remove unnecessary NULL checks (diff)
downloadkernel-929a3af90f0f4bd7132d83552c1a98c83f60ef7e.tar.gz
kernel-929a3af90f0f4bd7132d83552c1a98c83f60ef7e.zip
io_uring: fix use-after-free by io_cleanup_req()
io_cleanup_req() should be called before req->io is freed, and so shouldn't be after __io_free_req() -> __io_req_aux_free(). Also, it will be ignored for in io_free_req_many(), which use __io_req_aux_free(). Place cleanup_req() into __io_req_aux_free(). Fixes: 99bc4c38537d774 ("io_uring: fix iovec leaks") Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions