]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit75d6ad382bb91f363452119d34238e156589ca2d
treeaf278af23547c0d042af1da1fad1dd88292fdfc1
parent9cc97d646216b6f2473fa4ab9f103514b86c6814
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