summaryrefslogtreecommitdiff
path: root/btrfs-list.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2010-09-09 14:06:09 +0800
committerChris Mason <chris.mason@oracle.com>2010-09-23 20:26:50 -0400
commitbba632af0eada567fb71f6a41ef9d81a2ab17f63 (patch)
treeb6b89b410641bf8372897117fbbfdbeebbe3dabd /btrfs-list.c
parentb227b4dd7c2365159bc095abde68c71f375691bb (diff)
Fix use after free in close_ctree
After the roots are closed, root is freed. Yet close_ctree continues to use it. It works generally because no new memory is allocated in the interim, but with glibc malloc perturbing enabled, it crashes every time. This is because root->fs_info points to garbage. This patch uses the already-cached fs_info variable for the rest of the accesses and fixes the crash. This issue was reported at: https://bugzilla.novell.com/show_bug.cgi?id=603620 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Diffstat (limited to 'btrfs-list.c')
0 files changed, 0 insertions, 0 deletions