aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2017-03-29 09:33:22 +0800
committerDavid Sterba <[email protected]>2017-04-18 14:07:26 +0200
commite501bfe323356ea3f7ef79d4b0d95389b70a7193 (patch)
tree870724f193b99f9388dce8e7cbdfcb96b3cfeed5 /tools/perf/scripts/python/export-to-postgresql.py
parentae6529c35bcc1c65c12131cef2aea63d8e2ea950 (diff)
btrfs: Prevent scrub recheck from racing with dev replace
scrub_setup_recheck_block() calls btrfs_map_sblock() and then accesses bbio without protection of bio_counter. This can lead to use-after-free if racing with dev replace cancel. Fix it by increasing bio_counter before calling btrfs_map_sblock() and decreasing the bio_counter when corresponding recover is finished. Cc: Liu Bo <[email protected]> Reported-by: Liu Bo <[email protected]> Signed-off-by: Qu Wenruo <[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