[PATCH 2/2] io_uring/fdinfo: don't skip the SQE after a 128-byte one
From: Hang Zhengyang
Date: Sat Dec 05 2026 - 05:49:16 EST
For a 128-byte SQE on an IORING_SETUP_SQE_MIXED ring, the SQ dump in
fdinfo increments both i and sq_head, so it moves on three slots instead
of two. It then skips the next SQE, and the dump goes past the SQ tail.
The i++ was added to stop the dump at the tail, but the sq_head++ that
skipped the second half was kept. Drop it.
Fixes: 101e596e7404 ("io_uring/fdinfo: cap SQ iteration at max SQ entries")
Fixes: b59efde9e6c1 ("io_uring/fdinfo: fix SQE_MIXED SQE displaying")
Cc: stable@xxxxxxxxxxxxxxx # v7.0+
Signed-off-by: Hang Zhengyang <hang.zhengyang1010@xxxxxxxxx>
---
io_uring/fdinfo.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/io_uring/fdinfo.c b/io_uring/fdinfo.c
index 46e64b041360..bd7f80474144 100644
--- a/io_uring/fdinfo.c
+++ b/io_uring/fdinfo.c
@@ -125,7 +125,6 @@ static void __io_uring_show_fdinfo(struct io_ring_ctx *ctx, struct seq_file *m)
sq_idx);
break;
}
- sq_head++;
i++;
sqe128 = true;
}
--
2.53.0