diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2020-06-27 14:04:56 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2020-06-28 08:10:17 -0600 |
| commit | 1bcb8c5d65a845e0ecb9e82237c399b29b8d15ea (patch) | |
| tree | f93bb3194f36557ae83383405e0b9556d69200aa /tools/perf/scripts/python | |
| parent | io_uring: fix punting req w/o grabbed env (diff) | |
| download | linux-1bcb8c5d65a845e0ecb9e82237c399b29b8d15ea.tar.gz linux-1bcb8c5d65a845e0ecb9e82237c399b29b8d15ea.zip | |
io_uring: fix feeding io-wq with uninit reqs
io_steal_work() can't be sure that @nxt has req->work properly set, so we
can't pass it to io-wq as is.
A dirty quick fix -- drag it through io_req_task_queue(), and always
return NULL from io_steal_work().
e.g.
[ 50.770161] BUG: kernel NULL pointer dereference, address: 00000000
[ 50.770164] #PF: supervisor write access in kernel mode
[ 50.770164] #PF: error_code(0x0002) - not-present page
[ 50.770168] CPU: 1 PID: 1448 Comm: io_wqe_worker-0 Tainted: G
I 5.8.0-rc2-00035-g2237d76530eb-dirty #494
[ 50.770172] RIP: 0010:override_creds+0x19/0x30
...
[ 50.770183] io_worker_handle_work+0x25c/0x430
[ 50.770185] io_wqe_worker+0x2a0/0x350
[ 50.770190] kthread+0x136/0x180
[ 50.770194] ret_from_fork+0x22/0x30
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
