]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix fdinfo sqe offsets calculation
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 11 Oct 2022 00:59:57 +0000 (01:59 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Oct 2022 22:30:56 +0000 (16:30 -0600)
commitc70088f9398bb27237aa6ee13911d1835117e2d3
treec3a95eb972c21540746920ab5263a92057c81525
parentebcf71e73e70b20589d0e1f176de9560b448bc64
io_uring: fix fdinfo sqe offsets calculation

Only with the big sqe feature they take 128 bytes per entry, but we
unconditionally advance by 128B. Fix it by using sq_shift.

Fixes: b884ebd39507c ("io_uring/fdinfo: fix sqe dumping for IORING_SETUP_SQE128")
Reported-and-tested-by: syzbot+e5198737e8a2d23d958c@syzkaller.appspotmail.com
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8b41287cb75d5efb8fcb5cccde845ddbbadd8372.1665449983.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/fdinfo.c