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:Jheng, Bing-Jhong Billy <billy@starlabs.sg> Signed-off-by:
Jens Axboe <axboe@kernel.dk> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
-
mentioned in commit 82d4428d
-
mentioned in commit eca2af64
-
mentioned in commit 600717d8
-
mentioned in commit d380417b
-
mentioned in commit 0e78dd90
-
mentioned in commit 0da55112
-
mentioned in commit 7e2d8b9d
-
mentioned in commit c51b6711
-
mentioned in commit e10078ac
-
mentioned in commit 20585f4e
-
mentioned in commit d2e40e4c
-
mentioned in commit 4b270bb9
-
mentioned in commit c658b0ee
-
mentioned in commit 1378a2bc
-
mentioned in commit 9eec95bb
-
mentioned in commit bdf1c2cc
-
mentioned in commit 23818c19
Please sign in to comment