From: Akira Fujita Date: Wed, 16 Sep 2009 18:28:22 +0000 (-0400) Subject: ext4: Fix wrong comparisons in mext_check_arguments() X-Git-Tag: v2.6.32-rc1~633^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70d5d3dcea47c16058d2b093c29e07fdf61b56ad;p=pandora-kernel.git ext4: Fix wrong comparisons in mext_check_arguments() The mext_check_arguments() function in move_extents.c has wrong comparisons. orig_start which is passed from user-space is block unit, but i_size of inode is byte unit, therefore the checks do not work fine. This mis-check leads to the overflow of 'len' and then hits BUG_ON() in ext4_move_extents(). The patch fixes this issue. Signed-off-by: Akira Fujita Reviewed-by: Greg Freemyer Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed