Commit 0f68360
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>1 parent 09a7f21 commit 0f68360
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4713 | 4713 | | |
4714 | 4714 | | |
4715 | 4715 | | |
4716 | | - | |
| 4716 | + | |
4717 | 4717 | | |
4718 | 4718 | | |
4719 | 4719 | | |
4720 | 4720 | | |
4721 | 4721 | | |
4722 | 4722 | | |
4723 | 4723 | | |
4724 | | - | |
| 4724 | + | |
4725 | 4725 | | |
4726 | 4726 | | |
4727 | 4727 | | |
| |||
0 commit comments