Re: [PATCH] block: fix use after free in __blkdev_direct_IO

2017-01-24 Thread Jens Axboe
On 01/24/2017 06:50 AM, Christoph Hellwig wrote: > 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. Applied. -- Jens Axboe -- To unsubscribe from

[PATCH] block: fix use after free in __blkdev_direct_IO

2017-01-24 Thread Christoph Hellwig
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