aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2021-03-05 15:14:08 +0000
committerJens Axboe <[email protected]>2021-03-05 15:44:09 +0000
commit09ca6c40c2024211657fdb2c50522a355610c3b7 (patch)
tree5f7e881811b2efdd4b8ba1240f61caaaea7ee0b1 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentio_uring: clear IOCB_WAITQ for non -EIOCBQUEUED return (diff)
downloadkernel-09ca6c40c2024211657fdb2c50522a355610c3b7.tar.gz
kernel-09ca6c40c2024211657fdb2c50522a355610c3b7.zip
io-wq: kill hashed waitqueue before manager exits
If we race with shutting down the io-wq context and someone queueing a hashed entry, then we can exit the manager with it armed. If it then triggers after the manager has exited, we can have a use-after-free where io_wqe_hash_wake() attempts to wake a now gone manager process. Move the killing of the hashed write queue into the manager itself, so that we know we've killed it before the task exits. Fixes: e941894eae31 ("io-wq: make buffered file write hashed work map per-ctx") Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions