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>
-
mentioned in commit be56ff5d
-
mentioned in commit 14f61184
-
mentioned in commit e8877280
-
mentioned in commit 430d142a
-
mentioned in commit d77a0d05
-
mentioned in commit 39dfd90b
-
mentioned in commit f26d9ba4
-
mentioned in commit d460ea01
-
mentioned in commit 933f364f
-
mentioned in commit be0de0fe
-
mentioned in commit e304d9ff
-
mentioned in commit 169ef28c
-
mentioned in commit 4511dc25
-
mentioned in commit acef470b
-
mentioned in commit 32460d03
-
mentioned in commit 7de9743b
-
mentioned in commit 5210719c
-
mentioned in commit 3a6f125d
-
mentioned in commit 539bde6f
-
mentioned in commit e80b42ac
-
mentioned in commit d415c6e5
-
mentioned in commit d415c6e5
-
mentioned in commit c2e3f757
-
mentioned in commit 851de32d
-
mentioned in commit 851de32d
-
mentioned in commit 4ae45c75
-
mentioned in commit cb94f24f
-
mentioned in commit 223326aa
-
mentioned in commit f11784e8
-
mentioned in commit 53fd6bc9
-
mentioned in commit cc5374a4
-
mentioned in commit 89fd3d85
-
mentioned in commit 667878d5
-
mentioned in commit 0ce07671
-
mentioned in commit 3c12341e