]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: ensure ->list is initialized for poll commands
authorJens Axboe <axboe@kernel.dk>
Thu, 25 Jul 2019 16:20:18 +0000 (10:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Jul 2019 16:20:18 +0000 (10:20 -0600)
commita74a21b7c75b6fe2e1a705e4a47fb1289a59cbe0
treebad2dab2f508c0e23acfff04cad9389a9209a21e
parente2a2239470c6e0cce2b7e4de3dd538da9efd39e0
io_uring: ensure ->list is initialized for poll commands

Daniel reports that when testing an http server that uses io_uring
to poll for incoming connections, sometimes it hard crashes. This is
due to an uninitialized list member for the io_uring request. Normally
this doesn't trigger and none of the test cases caught it.

Reported-by: Daniel Kozak <kozzi11@gmail.com>
Tested-by: Daniel Kozak <kozzi11@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c