summaryrefslogtreecommitdiff
path: root/net/sctp/debug.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2018-01-25 11:02:51 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-22 15:45:00 +0100
commit145832a93f28fb80d6cb22b5cd84df5a6e63f47b (patch)
tree6329e148506e3ed91b626dfc1547c9763b7921fc /net/sctp/debug.c
parentefba91a4c3f465e1b7f10b2454d6406eb217a17e (diff)
Btrfs: fix crash due to not cleaning up tree log block's dirty bits
commit 1846430c24d66e85cc58286b3319c82cd54debb2 upstream. 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: <stable@vger.kernel.org> v3.12+ Fixes: 681ae50917df ("Btrfs: cleanup reserved space when freeing tree log on error") Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sctp/debug.c')
0 files changed, 0 insertions, 0 deletions