diff options
author | Darrick J. Wong | 2018-03-23 18:06:56 +0100 |
---|---|---|
committer | Darrick J. Wong | 2018-03-24 02:05:08 +0100 |
commit | 5927268f5a04c3b25683e52a0017aa5a9e8eee70 (patch) | |
tree | fb59f975e5b95f2b540d4f99de531c4c0a2832e5 /fs/xfs/xfs_icreate_item.h | |
parent | xfs: don't accept inode buffers with suspicious unlinked chains (diff) | |
download | kernel-qcow2-linux-5927268f5a04c3b25683e52a0017aa5a9e8eee70.tar.gz kernel-qcow2-linux-5927268f5a04c3b25683e52a0017aa5a9e8eee70.tar.xz kernel-qcow2-linux-5927268f5a04c3b25683e52a0017aa5a9e8eee70.zip |
xfs: flag inode corruption if parent ptr doesn't get us a real inode
If a directory's parent inode pointer doesn't point to an inode, the
directory should be flagged as corrupt. Enable IGET_UNTRUSTED here so
that _iget will return -EINVAL if the inobt does not confirm that the
inode is present and allocated and we can flag the directory corruption.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_icreate_item.h')
0 files changed, 0 insertions, 0 deletions