Commit ba5ef6d
io_uring: fortify tctx/io_wq cleanup
We don't want anyone poking into tctx->io_wq awhile it's being destroyed
by io_wq_put_and_exit(), and even though it shouldn't even happen, if
buggy would be preferable to get a NULL-deref instead of subtle delayed
failure or UAF.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/827b021de17926fd807610b3e53a5a5fa8530856.1621513214.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 7a27472 commit ba5ef6d
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9035 | 9035 | | |
9036 | 9036 | | |
9037 | 9037 | | |
| 9038 | + | |
9038 | 9039 | | |
9039 | 9040 | | |
9040 | 9041 | | |
| 9042 | + | |
9041 | 9043 | | |
9042 | 9044 | | |
9043 | | - | |
9044 | | - | |
9045 | | - | |
9046 | | - | |
| 9045 | + | |
| 9046 | + | |
9047 | 9047 | | |
9048 | 9048 | | |
9049 | 9049 | | |
| |||
0 commit comments