diff options
| author | Pavel Begunkov <[email protected]> | 2024-12-28 17:44:52 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-12-28 20:13:22 +0000 |
| commit | 38fc96a58ce40257aec79b32e9b310c86907c63c (patch) | |
| tree | c7208b2aa74c109479f353f2dfbad47968493dc0 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | |
| parent | io_uring/sqpoll: fix sqpoll error handling races (diff) | |
| download | kernel-38fc96a58ce40257aec79b32e9b310c86907c63c.tar.gz kernel-38fc96a58ce40257aec79b32e9b310c86907c63c.zip | |
io_uring/rw: fix downgraded mshot read
The io-wq path can downgrade a multishot request to oneshot mode,
however io_read_mshot() doesn't handle that and would still post
multiple CQEs. That's not allowed, because io_req_post_cqe() requires
stricter context requirements.
The described can only happen with pollable files that don't support
FMODE_NOWAIT, which is an odd combination, so if even allowed it should
be fairly rare.
Cc: [email protected]
Reported-by: chase xd <[email protected]>
Fixes: bee1d5becdf5b ("io_uring: disable io-wq execution of multishot NOWAIT requests")
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/c5c8c4a50a882fd581257b81bf52eee260ac29fd.1735407848.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions
