]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: ensure open/openat2 name is cleaned on cancelation
authorJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 20:55:54 +0000 (14:55 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 13:41:46 +0000 (07:41 -0600)
commitc6475a279beebe869691ab44d32ee4c57fdec3fa
treef455b8000f9f4ee17948ac8ab67185a5842f87a9
parentfc55faab44d34181a8c924e580f5634e6b725705
io_uring: ensure open/openat2 name is cleaned on cancelation

If we cancel these requests, we'll leak the memory associated with the
filename. Add them to the table of ops that need cleaning, if
REQ_F_NEED_CLEANUP is set.

Cc: stable@vger.kernel.org
Fixes: 8e7a6d44df5c ("io_uring: call statx directly")
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c