Revision 1357272fc7deeebb7b3c5d1a071562edc273cdaf authored by Ilya Dryomov on 02 October 2013, 17:41:01 UTC, committed by Josef Bacik on 04 October 2013, 20:02:14 UTC
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>
1 parent 964fb15
History
File Mode Size
Makefile -rw-r--r-- 180 bytes
lzo1x_compress.c -rw-r--r-- 6.1 KB
lzo1x_decompress_safe.c -rw-r--r-- 4.6 KB
lzodefs.h -rw-r--r-- 1.5 KB

back to top