From: Christoph Hellwig Date: Thu, 11 May 2017 19:01:08 +0000 (-0500) Subject: xfs: fix integer truncation in xfs_bmap_remap_alloc X-Git-Tag: v4.12.0-rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57add91486ebb015177a96fef30f5f3110f210b8;p=thirdparty%2Fxfsprogs-dev.git 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 Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c index 482eda7da..4c7557f21 100644 --- a/libxfs/xfs_bmap.c +++ b/libxfs/xfs_bmap.c @@ -3854,7 +3854,7 @@ xfs_bmap_remap_alloc( { struct xfs_trans *tp = ap->tp; struct xfs_mount *mp = tp->t_mountp; - xfs_agblock_t bno; + xfs_fsblock_t bno; struct xfs_alloc_arg args; int error;