]> 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)
commit49b32ddc6cb2071c82ebaee1a88de03382a96dbf
treef455b8000f9f4ee17948ac8ab67185a5842f87a9
parent08b75b1cd9c0e5fb033c2bacf6752c111d499d8d
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: 3419807290cc ("io_uring: call statx directly")
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c