aboutsummaryrefslogtreecommitdiff
path: root/include/linux/vcodec/kernel
diff options
context:
space:
mode:
authorRobert Doebbelin <robert@quobyte.com>2016-03-07 09:50:56 +0100
committerMoyster <oysterized@gmail.com>2017-06-17 15:50:39 +0200
commit7e2cd0177d4e64717c323fa5df3f9a7d0eb59c68 (patch)
treee5486e1af25be0a33f5febb75a185f4d8510056a /include/linux/vcodec/kernel
parentdb70ea4aa161056ffb367913a6bce3ff03871ff3 (diff)
fuse: do not use iocb after it may have been freed
commit 7cabc61e01a0a8b663bd2b4c982aa53048218734 upstream. There's a race in fuse_direct_IO(), whereby is_sync_kiocb() is called on an iocb that could have been freed if async io has already completed. The fix in this case is simple and obvious: cache the result before starting io. It was discovered by KASan: Kernel: ================================================================== Kernel: BUG: KASan: use after free in fuse_direct_IO+0xb1a/0xcc0 at addr ffff88036c414390 Signed-off-by: Robert Doebbelin <robert@quobyte.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Fixes: bcba24ccdc82 ("fuse: enable asynchronous processing direct IO") Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/vcodec/kernel')
0 files changed, 0 insertions, 0 deletions