Commit de75a3d
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>1 parent ee53fb2 commit de75a3d
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7910 | 7910 | | |
7911 | 7911 | | |
7912 | 7912 | | |
| 7913 | + | |
| 7914 | + | |
7913 | 7915 | | |
7914 | | - | |
| 7916 | + | |
7915 | 7917 | | |
7916 | | - | |
7917 | | - | |
7918 | | - | |
7919 | | - | |
7920 | 7918 | | |
7921 | 7919 | | |
7922 | | - | |
7923 | | - | |
7924 | | - | |
7925 | | - | |
7926 | | - | |
| 7920 | + | |
| 7921 | + | |
| 7922 | + | |
7927 | 7923 | | |
7928 | | - | |
7929 | 7924 | | |
7930 | 7925 | | |
7931 | 7926 | | |
| |||
0 commit comments