diff options
author | Josef Bacik <[email protected]> | 2021-03-12 15:25:15 -0500 |
---|---|---|
committer | David Sterba <[email protected]> | 2021-04-19 17:25:20 +0200 |
commit | 39200e59089e260af8edb9feeb69c54ba51699c5 (patch) | |
tree | 909c827d87d3d6ff2f5e7e308be05d76ba5e0650 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 84c50ba5214c2f3c1be4a931d521ec19f55dfdc8 (diff) |
btrfs: validate root::reloc_root after recording root in trans
If we fail to setup a root->reloc_root in a different thread that path
will error out, however it still leaves root->reloc_root NULL but would
still appear set up in the transaction. Subsequent calls to
btrfs_record_root_in_transaction would succeed without attempting to
create the reloc root, as the transid has already been updated.
Handle this case by making sure we have a root->reloc_root set after a
btrfs_record_root_in_transaction call so we don't end up dereferencing a
NULL pointer.
Reported-by: Zygo Blaxell <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions