]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 31 May 2013 23:38:56 +0000 (19:38 -0400)
commitb68a018a059855fc76ff89925d0dabeff6d973af
tree63984e881d515f73892c6d1d1336ac2fe084bb37
parentf5474bee283d59f3efca630affd9f9ecb45d15a7
ext4: fix data offset overflow in ext4_xattr_fiemap() on 32-bit archs

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>
fs/ext4/extents.c