diff options
author | 2017-01-24 14:50:19 +0100 | |
---|---|---|
committer | 2017-01-24 07:55:53 -0700 | |
commit | 690e5325b8c7d5db05fc569c0f7b888bb4248272 (patch) | |
tree | b9c39916a4397b1eb628e07e4fc6aff91219e393 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile (diff) | |
download | wireguard-linux-690e5325b8c7d5db05fc569c0f7b888bb4248272.tar.xz wireguard-linux-690e5325b8c7d5db05fc569c0f7b888bb4248272.zip |
block: fix use after free in __blkdev_direct_IO
We can't dereference the dio structure after submitting the last bio for
this request, as I/O completion might have happened before the code is
run. Introduce a local is_sync variable instead.
Fixes: 542ff7bf ("block: new direct I/O implementation")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Matias Bjørling <m@bjorling.me>
Tested-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions