]> 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)
commitaf7f4e31c328a8716b6d38a6198c746d40b9f9cb
treeaf278af23547c0d042af1da1fad1dd88292fdfc1
parent73911a5e41674242c53a5e21d9c0526bf623a7e9
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