summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-02-07 22:04:45 +0300
committerJens Axboe <axboe@kernel.dk>2020-02-08 23:06:58 +0300
commit99bc4c38537d774e667d043c520914082da19abf (patch)
tree167b32f1f290b3baaf13ff56f5d547e35141b5c1 /scripts/gdb/linux/utils.py
parente96e977992d0ea40b6e70cb63dede85c9078e744 (diff)
downloadlinux-99bc4c38537d774e667d043c520914082da19abf.tar.xz
io_uring: fix iovec leaks
Allocated iovec is freed only in io_{read,write,send,recv)(), and just leaves it if an error occured. There are plenty of such cases: - cancellation of non-head requests - fail grabbing files in __io_queue_sqe() - set REQ_F_NOWAIT and returning in __io_queue_sqe() Add REQ_F_NEED_CLEANUP, which will force such requests with custom allocated resourses go through cleanup handlers on put. Cc: stable@vger.kernel.org # 5.5 Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions