summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_bmap.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2017-09-17 21:06:39 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-20 06:19:59 (GMT)
commit81e27c94f9ab86c04ba4ca5f1d2bcf9e61f7b5af (patch)
tree5137f6b8868433e6ba0007f2e3af783286bcd053 /fs/xfs/libxfs/xfs_bmap.c
parent01bc132048cf9505ed49152cc82e583b18c5538d (diff)
downloadlinux-81e27c94f9ab86c04ba4ca5f1d2bcf9e61f7b5af.tar.xz
xfs: fix quotacheck dquot id overflow infinite loop
commit cfaf2d034360166e569a4929dd83ae9698bed856 upstream. If a dquot has an id of U32_MAX, the next lookup index increment overflows the uint32_t back to 0. This starts the lookup sequence over from the beginning, repeats indefinitely and results in a livelock. Update xfs_qm_dquot_walk() to explicitly check for the lookup overflow and exit the loop. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.c')
0 files changed, 0 insertions, 0 deletions