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
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 56 bytes |
Makefile | -rw-r--r-- | 1.3 KB |
devicetable-offsets.c | -rw-r--r-- | 5.2 KB |
empty.c | -rw-r--r-- | 54 bytes |
file2alias.c | -rw-r--r-- | 37.1 KB |
mk_elfconfig.c | -rw-r--r-- | 1.2 KB |
modpost.c | -rw-r--r-- | 55.8 KB |
modpost.h | -rw-r--r-- | 4.7 KB |
sumversion.c | -rw-r--r-- | 11.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...