diff options
| author | Hui Peng <benquike@gmail.com> | 2026-09-19 20:35:17 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-09-21 10:51:33 -0600 |
| commit | 4f3c7512553344c8bc35f9e4f4d307c28ab82645 (patch) | |
| tree | 269dbf27c9a33a212cb3bca802cb4a7d5bae4e51 /rust/kernel/alloc/kvec/errors.rs | |
| parent | f26f49600c9ae7b4b2a30958c3f7f08d350dc3db (diff) | |
io_uring: check for room before posting the dummy skip CQE
Posting the dummy skip CQE at the end of a CQE_MIXED ring needs 3 free
slots, one for the dummy and two for the 32b CQE it makes room for. With
fewer than that, the dummy gets posted and the 32b allocation then fails
right after and goes to overflow, having wasted a slot for nothing.
Check up front that there's room for both.
Fixes: e26dca67fde1 ("io_uring: add support for IORING_SETUP_CQE_MIXED")
Assisted-by: LLM
Signed-off-by: Hui Peng <benquike@gmail.com>
Link: https://patch.msgid.link/20260919203516.2581409-1-benquike@gmail.com
[axboe: split from Hui's original patch, edited commit message]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
