ext4: fix data offset overflow in ext4_xattr_fiemap() on 32-bit archs
authorJan Kara <jack@suse.cz>
Fri, 31 May 2013 23:38:56 +0000 (19:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2013 01:14:41 +0000 (18:14 -0700)
commitd19c4370e3e590ed083c77238866719025476108
treea52ec4b1657692e1d340dc9a910b86a9a4346701
parent7bcb3df9ab6ae35c239bb6fc051dd478ed47991e
ext4: fix data offset overflow in ext4_xattr_fiemap() on 32-bit archs

commit a60697f411eb365fb09e639e6f183fe33d1eb796 upstream.

On 32-bit architectures with 32-bit sector_t computation of data offset
in ext4_xattr_fiemap() can overflow resulting in reporting bogus data
location. Fix the problem by typing block number to proper type before
shifting.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c