Skip to content
Commit 08681391 authored by Bing-Jhong Billy Jheng's avatar Bing-Jhong Billy Jheng Committed by Greg Kroah-Hartman
Browse files

io_uring: add missing lock in io_get_file_fixed



io_get_file_fixed will access io_uring's context. Lock it if it is
invoked unlocked (eg via io-wq) to avoid a race condition with fixed
files getting unregistered.

No single upstream patch exists for this issue, it was fixed as part
of the file assignment changes that went into the 5.18 cycle.

Signed-off-by: default avatarJheng, Bing-Jhong Billy <billy@starlabs.sg>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 218925bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment