diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-06-24 03:15:47 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2010-06-24 03:15:47 +0200 |
commit | 1920779e67cbf5ea8afef317777c5bf2b8096188 (patch) | |
tree | f3450e4075162ef5ec360446c301513a5adf316e /fs/xfs/xfs_inode.c | |
parent | xfs: validate untrusted inode numbers during lookup (diff) | |
download | linux-1920779e67cbf5ea8afef317777c5bf2b8096188.tar.xz linux-1920779e67cbf5ea8afef317777c5bf2b8096188.zip |
xfs: rename XFS_IGET_BULKSTAT to XFS_IGET_UNTRUSTED
Inode numbers may come from somewhere external to the filesystem
(e.g. file handles, bulkstat information) and so are inherently
untrusted. Rename the flag we use for these lookups to make it
obvious we are doing a lookup of an untrusted inode number and need
to verify it completely before trying to read it from disk.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index d53c39de7d05..12c277a5e98a 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -177,7 +177,7 @@ xfs_imap_to_bp( if (unlikely(XFS_TEST_ERROR(!di_ok, mp, XFS_ERRTAG_ITOBP_INOTOBP, XFS_RANDOM_ITOBP_INOTOBP))) { - if (iget_flags & XFS_IGET_BULKSTAT) { + if (iget_flags & XFS_IGET_UNTRUSTED) { xfs_trans_brelse(tp, bp); return XFS_ERROR(EINVAL); } |