Re: [PATCH 5.10.y] io_uring: fix uninitialized field in rw io_kiocb

From: Sasha Levin

Date: Thu Sep 17 2026 - 21:30:36 EST


> + kiocb->private = NULL;

I am dropping this one: the assignment is dead code on 5.10.

The Fixes: target 3e08773c3841 ("block: switch polling to be bio based")
is v5.16, so iocb_bio_iopoll() does not exist on 5.10 and nothing reads
the uninitialized value. __iomap_dio_rw() writes iocb->private
unconditionally before its only -EIOCBQUEUED return, and io_do_iopoll()
skips ->iopoll whenever iopoll_completed is set. The same holds for
5.15, which is also pre-5.16.

--
Thanks,
Sasha