The patch titled __generic_block_fiemap(): fix for files bigger than 4GB has been added to the -mm tree. Its filename is __generic_block_fiemap-fix-for-files-bigger-than-4gb.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: __generic_block_fiemap(): fix for files bigger than 4GB From: Mike Hommey <mh@xxxxxxxxxxxx> Because of an integer overflow on start_blk, various kind of wrong results would be returned by the generic_block_fiemap() handler, such as no extents when there is a 4GB+ hole at the beginning of the file, or wrong fe_logical when an extent starts after the first 4GB. Signed-off-by: Mike Hommey <mh@xxxxxxxxxxxx> Cc: Alexander Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Steven Whitehouse <swhiteho@xxxxxxxxxx> Cc: Theodore Ts'o <tytso@xxxxxxx> Cc: Eric Sandeen <sandeen@xxxxxxx> Cc: Josef Bacik <jbacik@xxxxxxxxxx> Cc: Mark Fasheh <mfasheh@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/ioctl.c~__generic_block_fiemap-fix-for-files-bigger-than-4gb fs/ioctl.c --- a/fs/ioctl.c~__generic_block_fiemap-fix-for-files-bigger-than-4gb +++ a/fs/ioctl.c @@ -254,7 +254,7 @@ int __generic_block_fiemap(struct inode u64 len, get_block_t *get_block) { struct buffer_head tmp; - unsigned int start_blk; + unsigned long long start_blk; long long length = 0, map_len = 0; u64 logical = 0, phys = 0, size = 0; u32 flags = FIEMAP_EXTENT_MERGED; _ Patches currently in -mm which might be from mh@xxxxxxxxxxxx are __generic_block_fiemap-fix-for-files-bigger-than-4gb.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html