]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:27:44 +0000 (23:27 -0400)
commit9fdf247f222d0c0387f67bca2d4cb6781eea5b07
tree2e5088a00a16b2ef1c2cb164d520303287e35fa0
parent137f548e10a7cdf0f2c241a8d782c0f9bedb3131
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>
(cherry picked from commit 75d6ad382bb91f363452119d34238e156589ca2d)
fs/btrfs/disk-io.c