]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: Fix corrupted user_data
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 25 Oct 2019 09:31:29 +0000 (12:31 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Oct 2019 15:01:58 +0000 (09:01 -0600)
commit5adb75bfcdf3d55f144e498e32cfa9743ad2198f
treede890f651c619be7d4144035f22fa8928b3df80c
parent810a1182386cf079ca4551c35731f981eca42141
io_uring: Fix corrupted user_data

There is a bug, where failed linked requests are returned not with
specified @user_data, but with garbage from a kernel stack.

The reason is that io_fail_links() uses req->user_data, which is
uninitialised when called from io_queue_sqe() on fail path.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c