diff options
| author | Stefan Bühler <[email protected]> | 2019-05-11 17:08:01 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-05-13 15:15:42 +0000 |
| commit | e2033e33cb3821c26d4f9e70677910827d3b7885 (patch) | |
| tree | 9a4c0da34b35916590b1104581ccd89339ea6d94 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |
| parent | Merge tag 'iommu-updates-v5.2' of ssh://gitolite.kernel.org/pub/scm/linux/ker... (diff) | |
| download | kernel-e2033e33cb3821c26d4f9e70677910827d3b7885.tar.gz kernel-e2033e33cb3821c26d4f9e70677910827d3b7885.zip | |
io_uring: fix race condition reading SQE data
When punting to workers the SQE gets copied after the initial try.
There is a race condition between reading SQE data for the initial try
and copying it for punting it to the workers.
For example io_rw_done calls kiocb->ki_complete even if it was prepared
for IORING_OP_FSYNC (and would be NULL).
The easiest solution for now is to alway prepare again in the worker.
req->file is safe to prepare though as long as it is checked before use.
Signed-off-by: Stefan Bühler <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions
