diff options
author | Jan Kara <jack@suse.cz> | 2013-05-31 19:37:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-20 17:16:08 -0700 |
commit | 60e415266ce30fe446796e9718a10ee3b881086d (patch) | |
tree | e2696ed099d5346b201d3bd0e882dfff671c171a /fs/Kconfig.binfmt | |
parent | df8b4d47fceb1f64ddea20c233e7bb987cbbce19 (diff) |
ext4: fix overflows in SEEK_HOLE, SEEK_DATA implementations
commit e7293fd146846e2a44d29e0477e0860c60fb856b upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/Kconfig.binfmt')
0 files changed, 0 insertions, 0 deletions