diff options
author | Liu Bo <[email protected]> | 2017-04-10 12:36:26 -0700 |
---|---|---|
committer | David Sterba <[email protected]> | 2017-04-11 18:49:56 +0200 |
commit | a967efb30b3afa3d858edd6a17f544f9e9e46eea (patch) | |
tree | 86b2f9e56b32934fc56b46148feb8509cf72c81b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 97bf5a5589aa3a59c60aa775fc12ec0483fc5002 (diff) |
Btrfs: fix potential use-after-free for cloned bio
KASAN reports that there is a use-after-free case of bio in btrfs_map_bio.
If we need to submit IOs to several disks at a time, the original bio
would get cloned and mapped to the destination disk, but we really should
use the original bio instead of a cloned bio to do the sanity check
because cloned bios are likely to be freed by its endio.
Reported-by: Diego <[email protected]>
Signed-off-by: Liu Bo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions