diff options
| author | 2020-09-02 17:59:39 +0800 | |
|---|---|---|
| committer | 2020-09-02 09:11:59 -0600 | |
| commit | 95d1c8e5f801e959a89181a2548a3efa60a1a6ce (patch) | |
| tree | 9bd1f1f50996bbb5518c58605a473150f41eda2c /drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com | |
| parent | io_uring: fix removing the wrong file in __io_sqe_files_update() (diff) | |
| download | linux-dev-95d1c8e5f801e959a89181a2548a3efa60a1a6ce.tar.xz linux-dev-95d1c8e5f801e959a89181a2548a3efa60a1a6ce.zip | |
io_uring: set table->files[i] to NULL when io_sqe_file_register failed
While io_sqe_file_register() failed in __io_sqe_files_update(),
table->files[i] still point to the original file which may freed
soon, and that will trigger use-after-free problems.
Cc: stable@vger.kernel.org
Fixes: f3bd9dae3708 ("io_uring: fix memleak in __io_sqe_files_update()")
Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
