From: Mikulas Patocka Date: Thu, 4 Jul 2013 16:42:29 +0000 (+0200) Subject: hpfs: better test for errors X-Git-Tag: v3.2.49~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e74ac4ba96efadd107e415e66936a2df813c6652;p=pandora-kernel.git hpfs: better test for errors commit 3ebacb05044f82c5f0bb456a894eb9dc57d0ed90 upstream. The test if bitmap access is out of bound could errorneously pass if the device size is divisible by 16384 sectors and we are asking for one bitmap after the end. Check for invalid size in the superblock. Invalid size could cause integer overflows in the rest of the code. Signed-off-by: Mikulas Patocka Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed