summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorJens Axboe2016-11-17 20:30:37 +0100
committerJens Axboe2016-11-17 20:30:37 +0100
commit429a787be6793554ee02aacc7e1f11ebcecc4453 (patch)
treeb7a533b7db0cc2752f49e99fed7d6f4d2af45065 /fs/block_dev.c
parentblk-wbt: fix old-style function declaration (diff)
downloadkernel-qcow2-linux-429a787be6793554ee02aacc7e1f11ebcecc4453.tar.gz
kernel-qcow2-linux-429a787be6793554ee02aacc7e1f11ebcecc4453.tar.xz
kernel-qcow2-linux-429a787be6793554ee02aacc7e1f11ebcecc4453.zip
nbd: fix use-after-free of rq/bio in the xmit path
For writes, we can get a completion in while we're still iterating the request and bio chain. If that happens, we're reading freed memory and we can crash. Break out after the last segment and avoid having the iterator read freed memory. Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions