summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-11-17 12:30:37 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-10 09:29:52 +0100
commit3a381abc5b703c0f10c2792e97ec805674e9197e (patch)
treee42021acba907db899b8432b1ab523465e36c15d /fs
parent2b9b2002e05d1aa7d8c930d09d4342a6abacd2dd (diff)
downloadlinux-stable-3a381abc5b703c0f10c2792e97ec805674e9197e.tar.gz
linux-stable-3a381abc5b703c0f10c2792e97ec805674e9197e.tar.bz2
linux-stable-3a381abc5b703c0f10c2792e97ec805674e9197e.zip
nbd: fix use-after-free of rq/bio in the xmit path
commit 429a787be6793554ee02aacc7e1f11ebcecc4453 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions