]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix uninitialized field in rw io_kiocb
authorJoseph Ravichandran <jravi@mit.edu>
Thu, 28 Apr 2022 16:57:52 +0000 (12:57 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Apr 2022 19:13:43 +0000 (13:13 -0600)
commit2b6c2faf7555b9023065e123dbdd5f5d462dd8b1
tree384c67a0f48f2375ffe916c9c2278dbd44b98ede
parente1d7bd90cc98b06d96791ebc788a09a3647e05cd
io_uring: fix uninitialized field in rw io_kiocb

io_rw_init_file does not initialize kiocb->private, so when iocb_bio_iopoll
reads kiocb->private it can contain uninitialized data.

Fixes: bdfaab30ba9a ("block: switch polling to be bio based")
Signed-off-by: Joseph Ravichandran <jravi@mit.edu>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c