aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorStefan Metzmacher <[email protected]>2021-04-25 01:26:03 +0200
committerJens Axboe <[email protected]>2021-04-25 10:29:03 -0600
commitff244303301f6f2ac90107c61d18826efd0af822 (patch)
tree0c11fe34c2e36512b56c43ba13170856ffc56485 /include/linux/overflow.h
parent2b4ae19c6d4842dc24d9e0cbec5c98d2766643d5 (diff)
kernel: always initialize task->pf_io_worker to NULL
Otherwise io_wq_worker_{running,sleeping}() may dereference an invalid pointer (in future). Currently all users of create_io_thread() are fine and get task->pf_io_worker = NULL implicitly from the wq_manager, which got it either from the userspace thread of the sq_thread, which explicitly reset it to NULL. I think it's safer to always reset it in order to avoid future problems. Fixes: 3bfe6106693b ("io-wq: fork worker threads from original task") cc: Jens Axboe <[email protected]> Signed-off-by: Stefan Metzmacher <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions