diff options
| author | Jens Axboe <[email protected]> | 2019-04-22 10:23:23 -0600 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-04-22 10:37:07 -0600 |
| commit | 35fa71a030caa50458a043560d4814ea9bcd639f (patch) | |
| tree | f40aab4ff93b1443117ce1ed87a63c6ebd0dda2b /lib/jedec_ddr_data.c | |
| parent | 085b7755808aa11f78ab9377257e1dad2e6fa4bb (diff) | |
io_uring: fail io_uring_register(2) on a dying io_uring instance
If we have multiple threads doing io_uring_register(2) on an io_uring
fd, then we can potentially try and kill the percpu reference while
someone else has already killed it.
Prevent this race by failing io_uring_register(2) if the ref is marked
dying. This is safe since we're inside the io_uring mutex.
Fixes: b19062a56726 ("io_uring: fix possible deadlock between io_uring_{enter,register}")
Reported-by: syzbot <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/jedec_ddr_data.c')
0 files changed, 0 insertions, 0 deletions