Skip to content
Snippets Groups Projects
Commit ae7dca05 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Cheng Jian
Browse files

io_uring: remove index from sqe_submit

mainline inclusion
from mainline-5.5-rc1
commit fa456228
category: feature
bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=27


CVE: NA
---------------------------

submit->index is used only for inbound check in submission path (i.e.
head < ctx->sq_entries). However, it always will be true, as
1. it's already validated by io_get_sqring()
2. ctx->sq_entries can't be changedd in between, because of held
ctx->uring_lock and ctx->refs.

Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 03ef8916
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment