]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix accessing the root pointer in tree mod log functions
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Sat, 13 Apr 2013 13:19:54 +0000 (13:19 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:47 +0000 (15:54 -0400)
commitb8b76c1dc42fa0d65b24a185d1ec519214d861d4
treeda71470b17140319065525250062db98f0bf5e15
parent5b86da30ad07ccb56961dca69d10ee3c8cf04dd1
Btrfs: fix accessing the root pointer in tree mod log functions

The tree mod log functions were accessing root->node->... directly, without
use of btrfs_root_node() or explicit rcu locking. This could lead to an
extent buffer reference being leaked and another reference being freed too
early when preemtion was enabled.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.c