diff options
author | Dave Chinner <dchinner@redhat.com> | 2023-06-05 14:48:15 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2023-06-05 14:48:15 +1000 |
commit | 3148ebf2c0782340946732bfaf3073d23ac833fa (patch) | |
tree | 5ea13b64bc2c428a71729668b7a466bbcfc038dc /fs/binfmt_flat.c | |
parent | xfs: fix agf/agfl verification on v4 filesystems (diff) | |
download | linux-3148ebf2c0782340946732bfaf3073d23ac833fa.tar.gz linux-3148ebf2c0782340946732bfaf3073d23ac833fa.tar.bz2 linux-3148ebf2c0782340946732bfaf3073d23ac833fa.zip |
xfs: validity check agbnos on the AGFL
If the agfl or the indexing in the AGF has been corrupted, getting a
block form the AGFL could return an invalid block number. If this
happens, bad things happen. Check the agbno we pull off the AGFL
and return -EFSCORRUPTED if we find somethign bad.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/binfmt_flat.c')
0 files changed, 0 insertions, 0 deletions