diff options
| author | Darrick J. Wong <[email protected]> | 2016-12-05 01:38:38 +0000 |
|---|---|---|
| committer | Dave Chinner <[email protected]> | 2016-12-05 01:38:38 +0000 |
| commit | ef388e2054feedaeb05399ed654bdb06f385d294 (patch) | |
| tree | 50b1ba9f23aa82d4d8299fb35b1d4b72df316c7e /fs/xfs/libxfs/xfs_ialloc_btree.c | |
| parent | xfs: error out if trying to add attrs and anextents > 0 (diff) | |
| download | kernel-ef388e2054feedaeb05399ed654bdb06f385d294.tar.gz kernel-ef388e2054feedaeb05399ed654bdb06f385d294.zip | |
xfs: don't allow di_size with high bit set
The on-disk field di_size is used to set i_size, which is a signed
integer of loff_t. If the high bit of di_size is set, we'll end up with
a negative i_size, which will cause all sorts of problems. Since the
VFS won't let us create a file with such length, we should catch them
here in the verifier too.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc_btree.c')
0 files changed, 0 insertions, 0 deletions
