Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/timeout: check unused sqe fields

Zero check unused SQE fields addr3 and pad2 for timeout and timeout
update requests. They're not needed now, but could be used sometime
in the future.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
484ae637 d9d2455e

+4
+4
io_uring/timeout.c
··· 449 449 450 450 if (unlikely(req->flags & (REQ_F_FIXED_FILE | REQ_F_BUFFER_SELECT))) 451 451 return -EINVAL; 452 + if (sqe->addr3 || sqe->__pad2[0]) 453 + return -EINVAL; 452 454 if (sqe->buf_index || sqe->len || sqe->splice_fd_in) 453 455 return -EINVAL; 454 456 ··· 523 521 unsigned flags; 524 522 u32 off = READ_ONCE(sqe->off); 525 523 524 + if (sqe->addr3 || sqe->__pad2[0]) 525 + return -EINVAL; 526 526 if (sqe->buf_index || sqe->len != 1 || sqe->splice_fd_in) 527 527 return -EINVAL; 528 528 if (off && is_timeout_link)