]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Don't trust the superblock label and simply printk("%s") it
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 5 Nov 2012 13:10:49 +0000 (13:10 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:26 +0000 (17:15 -0500)
commitc2924d3cc4d956fd7df7911938d5f75f0ff90438
treeff6c9ec2d42a9d5e54c640a1ff88f0a8dc4404cf
parente1fd8ad0f2db497850008b49778fce53821c2fc4
Btrfs: Don't trust the superblock label and simply printk("%s") it

Someone who is root or capable(CAP_SYS_ADMIN) could corrupt the
superblock and make Btrfs printk("%s") crash while holding the
uuid_mutex since nobody forces a limit on the string. Since the
uuid_mutex is significant, the system would be unusable
afterwards.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c