Skip to content

Commit 196ef74

Browse files
committed
Merge tag 'io_uring-7.0-20260327' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
Pull io_uring fixes from Jens Axboe: "Just two small fixes, both fixing regressions added in the fdinfo code in 6.19 with the SQE mixed size support" * tag 'io_uring-7.0-20260327' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux: io_uring/fdinfo: fix OOB read in SQE_MIXED wrap check io_uring/fdinfo: fix SQE_MIXED SQE displaying
2 parents 7df48e3 + 5170efd commit 196ef74

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

io_uring/fdinfo.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,14 @@ static void __io_uring_show_fdinfo(struct io_ring_ctx *ctx, struct seq_file *m)
119119
sq_idx);
120120
break;
121121
}
122-
if ((++sq_head & sq_mask) == 0) {
122+
if (sq_idx == sq_mask) {
123123
seq_printf(m,
124124
"%5u: corrupted sqe, wrapping 128B entry\n",
125125
sq_idx);
126126
break;
127127
}
128+
sq_head++;
129+
i++;
128130
sqe128 = true;
129131
}
130132
seq_printf(m, "%5u: opcode:%s, fd:%d, flags:%x, off:%llu, "

0 commit comments

Comments
 (0)