Commit 98dfd50
io_uring: fix removing the wrong file in __io_sqe_files_update()
Index here is already the position of the file in fixed_file_table, we
should not use io_file_from_index() again to get it. Otherwise, the
wrong file which still in use may be released unexpectedly.
Cc: stable@vger.kernel.org # v5.6
Fixes: 05f3fb3 ("io_uring: avoid ring quiesce for fixed file set unregister and update")
Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent fdee946 commit 98dfd50
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7324 | 7324 | | |
7325 | 7325 | | |
7326 | 7326 | | |
7327 | | - | |
| 7327 | + | |
7328 | 7328 | | |
7329 | 7329 | | |
7330 | 7330 | | |
| |||
0 commit comments