xfs: overflow in xfs_iomap_eof_align_last_fsb
authorPeter Watkins <treestem@gmail.com>
Wed, 3 Dec 2014 22:30:51 +0000 (09:30 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Dec 2014 22:30:51 +0000 (09:30 +1100)
commit76b57302526ae289e8094a51d6a71031ff3d058b
tree2d265a83e3645a8c1fd5d1b41ce42e750b919c88
parente77b8547ca9c4b87932e9da3db906bc016885d8d
xfs: overflow in xfs_iomap_eof_align_last_fsb

If extsize is set and new_last_fsb is larger than 32 bits, the
roundup to extsize will overflow the align variable. Instead,
combine alignments by rounding stripe size up to extsize.

Signed-off-by: Peter Watkins <treestem@gmail.com>
Reviewed-by: Nathaniel W. Turner <nate@houseofnate.net>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iomap.c