diff options
author | Liu Bo <[email protected]> | 2018-01-25 11:02:51 -0700 |
---|---|---|
committer | David Sterba <[email protected]> | 2018-02-02 16:24:24 +0100 |
commit | 1846430c24d66e85cc58286b3319c82cd54debb2 (patch) | |
tree | a6bd680f201d90cc007254cb988093b41b936f8c /scripts/bpf_helpers_doc.py | |
parent | e89166990f11c3f21e1649d760dd35f9e410321c (diff) |
Btrfs: fix crash due to not cleaning up tree log block's dirty bits
In cases that the whole fs flips into readonly status due to failures in
critical sections, then log tree's blocks are still dirty, and this leads
to a crash during umount time, the crash is about use-after-free,
umount
-> close_ctree
-> stop workers
-> iput(btree_inode)
-> iput_final
-> write_inode_now
-> ...
-> queue job on stop'd workers
cc: <[email protected]> v3.12+
Fixes: 681ae50917df ("Btrfs: cleanup reserved space when freeing tree log on error")
Signed-off-by: Liu Bo <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions