commit | e7293fd146846e2a44d29e0477e0860c60fb856b | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Fri May 31 19:37:56 2013 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri May 31 19:37:56 2013 -0400 |
tree | 7216115993c95f6648bd58fdbae91527ffedbb18 | |
parent | eaf3793728d07d995f1e74250b2d0005f7ae98b5 [diff] |
ext4: fix overflows in SEEK_HOLE, SEEK_DATA implementations ext4_lblk_t is just u32 so multiplying it by blocksize can easily overflow for files larger than 4 GB. Fix that by properly typing the block offsets before shifting. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>