Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 542ff7b ("block: new direct I/O implementation") Signed-off-by: Christoph Hellwig <[email protected]> Reported-by: Matias Bjørling <[email protected]> Tested-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information