aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-03-11 23:29:37 +0000
committerJens Axboe <[email protected]>2021-03-12 09:42:53 -0700
commit26984fbf3ad9d1c1fb56a0c1e0cdf9fa3b806f0c (patch)
tree2b70bcfbf5b5f9605ff37c55ff938d98a44edc35 /scripts
parent0df8ea602b3fe80819a34361027ad40485e78909 (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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions