diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-03-11 23:29:37 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-12 09:42:53 -0700 |
commit | 26984fbf3ad9d1c1fb56a0c1e0cdf9fa3b806f0c (patch) | |
tree | 2b70bcfbf5b5f9605ff37c55ff938d98a44edc35 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 0df8ea602b3fe80819a34361027ad40485e78909 (diff) |
io_uring: prevent racy sqd->thread checks
SQPOLL thread to which we're trying to attach may be going away, it's
not nice but a more serious problem is if io_sq_offload_create() sees
sqd->thread==NULL, and tries to init it with a new thread. There are
tons of ways it can be exploited or fail.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions