]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: fix integer truncation in xfs_bmap_remap_alloc
authorChristoph Hellwig <hch@lst.de>
Thu, 11 May 2017 19:01:08 +0000 (14:01 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 11 May 2017 19:01:08 +0000 (14:01 -0500)
commit57add91486ebb015177a96fef30f5f3110f210b8
tree984674b6341442f4879429605085f3281baf2740
parent2db39f3d92737847ccdaf9ebd7a030e9426fa8a8
xfs: fix integer truncation in xfs_bmap_remap_alloc

Source kernel commit: 52813fb13ff90bd9c39a93446cbf1103c290b6e9

bno should be a xfs_fsblock_t, which is 64-bit wides instead of a
xfs_aglock_t, which truncates the value to 32 bits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c