Files
linux-apfs/fs/btrfs
Ilya Dryomov 1357272fc7 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>
2013-10-04 16:02:14 -04:00
..
2013-06-29 12:57:00 +04:00
2013-05-06 15:54:34 -04:00
2012-10-09 09:14:45 -04:00
2013-09-01 08:16:32 -04:00
2013-03-14 14:57:10 -04:00
2013-02-01 14:24:23 -05:00
2013-09-21 11:05:26 -04:00
2013-09-01 08:16:36 -04:00
2012-10-09 09:19:57 -04:00