diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-04-03 19:19:06 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-03 19:35:57 +0200 |
commit | 3537b6a7c65434d0d2cc0c9862e69be11c367fdc (patch) | |
tree | 8f3c4d985747b9c52e4eaef92254958da32b75a8 /fs/io-wq.c | |
parent | io_uring: retry poll if we got woken with non-matching mask (diff) | |
download | linux-3537b6a7c65434d0d2cc0c9862e69be11c367fdc.tar.xz linux-3537b6a7c65434d0d2cc0c9862e69be11c367fdc.zip |
io_uring: grab task reference for poll requests
We can have a task exit if it's not the owner of the ring. Be safe and
grab an actual reference to it, to avoid a potential use-after-free.
Reported-by: Dan Melnic <dmm@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
0 files changed, 0 insertions, 0 deletions