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)
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

Simple merge