summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_file.c
diff options
context:
space:
mode:
authorDarrick J. Wong2016-12-05 02:38:38 +0100
committerDave Chinner2016-12-05 02:38:38 +0100
commitef388e2054feedaeb05399ed654bdb06f385d294 (patch)
tree50b1ba9f23aa82d4d8299fb35b1d4b72df316c7e /fs/xfs/xfs_file.c
parentxfs: error out if trying to add attrs and anextents > 0 (diff)
downloadkernel-qcow2-linux-ef388e2054feedaeb05399ed654bdb06f385d294.tar.gz
kernel-qcow2-linux-ef388e2054feedaeb05399ed654bdb06f385d294.tar.xz
kernel-qcow2-linux-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 <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
0 files changed, 0 insertions, 0 deletions