commit | de75a3d3f5a14c9ab3c4883de3471d3c92a8ee78 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Mar 18 11:54:35 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Mar 18 09:44:35 2021 -0600 |
tree | 825ae49269672936357ee4e265b31db25d6ecf64 | |
parent | ee53fb2b197b72b126ca0387ae636da75d969428 [diff] |
io_uring: don't leak creds on SQO attach error Attaching to already dead/dying SQPOLL task is disallowed in io_sq_offload_create(), but cleanup is hand coded by calling io_put_sq_data()/etc., that miss to put ctx->sq_creds. Defer everything to error-path io_sq_thread_finish(), adding ctx->sqd_list in the error case as well as finish will handle it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>