]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: more superblock checks, lower bounds on devices and sectorsize/nodesize
authorDavid Sterba <dsterba@suse.cz>
Fri, 31 Oct 2014 16:18:08 +0000 (17:18 +0100)
committerChris Mason <clm@fb.com>
Tue, 3 Feb 2015 03:20:39 +0000 (19:20 -0800)
commitd03f5f351ac891752864a6529f1572eca14c23a1
treeaf278af23547c0d042af1da1fad1dd88292fdfc1
parent0db53b14941cd1a5878295ffb6bb181af6dcf3b7
btrfs: more superblock checks, lower bounds on devices and sectorsize/nodesize

I received a few crafted images from Jiri, all got through the recently
added superblock checks. The lower bounds checks for num_devices and
sector/node -sizes were missing and caused a crash during mount.

Tools for symbolic code execution were used to prepare the images
contents.

Reported-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/disk-io.c