summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmdebug.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2013-10-02 20:41:01 +0300
committerJosef Bacik <jbacik@fusionio.com>2013-10-04 16:02:14 -0400
commit1357272fc7deeebb7b3c5d1a071562edc273cdaf (patch)
tree37af6be54b03e07b4fb06a2ddc4c5ac739c53032 /fs/ocfs2/dlm/dlmdebug.c
parent964fb15acfcd672ac691f04879b71f07ccc21e0c (diff)
downloadlinux-1357272fc7deeebb7b3c5d1a071562edc273cdaf.tar.bz2
Btrfs: fix a use-after-free bug in btrfs_dev_replace_finishing
free_device rcu callback, scheduled from btrfs_rm_dev_replace_srcdev, can be processed before btrfs_scratch_superblock is called, which would result in a use-after-free on btrfs_device contents. Fix this by zeroing the superblock before the rcu callback is registered. Cc: Stefan Behrens <sbehrens@giantdisaster.de> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmdebug.c')
0 files changed, 0 insertions, 0 deletions