diff options
author | Jens Axboe <[email protected]> | 2021-03-13 12:29:43 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-03-14 09:56:14 -0600 |
commit | 9e15c3a0ced5a61f320b989072c24983cb1620c1 (patch) | |
tree | 940ba0a8d0f7ea70dcbc5ee89e5f591cace325da /kernel/locking/rtmutex-debug.c | |
parent | 16efa4fce3b7af17bb45d635c3e89992d721e0f3 (diff) |
io_uring: convert io_buffer_idr to XArray
Like we did for the personality idr, convert the IO buffer idr to use
XArray. This avoids a use-after-free on removal of entries, since idr
doesn't like doing so from inside an iterator, and it nicely reduces
the amount of code we need to support this feature.
Fixes: 5a2e745d4d43 ("io_uring: buffer registration infrastructure")
Cc: [email protected]
Cc: Matthew Wilcox <[email protected]>
Cc: yangerkun <[email protected]>
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'kernel/locking/rtmutex-debug.c')
0 files changed, 0 insertions, 0 deletions