diff options
author | Brian Foster <bfoster@redhat.com> | 2017-09-17 21:06:39 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-20 06:19:59 (GMT) |
commit | 81e27c94f9ab86c04ba4ca5f1d2bcf9e61f7b5af (patch) | |
tree | 5137f6b8868433e6ba0007f2e3af783286bcd053 /fs/tracefs | |
parent | 01bc132048cf9505ed49152cc82e583b18c5538d (diff) | |
download | linux-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/tracefs')
0 files changed, 0 insertions, 0 deletions