diff options
| author | Jens Axboe <[email protected]> | 2016-11-17 12:30:37 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2016-11-17 12:30:37 -0700 |
| commit | 429a787be6793554ee02aacc7e1f11ebcecc4453 (patch) | |
| tree | b7a533b7db0cc2752f49e99fed7d6f4d2af45065 /tools/perf/scripts/python/bin | |
| parent | 4121d385f1457d9beb2067d4b5b4659ef3e6c316 (diff) | |
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions