summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorGovindarajulu Varadarajan <govind.varadar@gmail.com>2026-01-30 10:14:12 -0700
committerJens Axboe <axboe@kernel.dk>2026-01-31 06:36:11 -0700
commitda7e4b75e50c087d2031a92f6646eb90f7045a67 (patch)
tree800cad41cefe6c0661b7318b2a33a0e6b5fe8304 /include/linux/i2c/git@git.tavy.me:linux.git
parentda562d92e6755c00cd67845a8dbfb908dac51a9c (diff)
ublk: Validate SQE128 flag before accessing the cmd
ublk_ctrl_cmd_dump() accesses (header *)sqe->cmd before IO_URING_F_SQE128 flag check. This could cause out of boundary memory access. Move the SQE128 flag check earlier in ublk_ctrl_uring_cmd() to return -EINVAL immediately if the flag is not set. Fixes: 71f28f3136af ("ublk_drv: add io_uring based userspace block driver") Signed-off-by: Govindarajulu Varadarajan <govind.varadar@gmail.com> Reviewed-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions