diff options
author | Christoph Hellwig <hch@infradead.org> | 2009-01-01 14:21:16 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2009-01-09 15:17:17 +1100 |
commit | c9a98553d513dfc82cdce869970d5662c1f22c68 (patch) | |
tree | d68cc98fa807d9f9719cb04307739ab9f9d9b9b5 /security/Kconfig | |
parent | 9e42d0cf5020aaf217433cad1a224745241d212a (diff) |
[XFS] pass XFS_IGET_BULKSTAT to xfs_iget for handle operations
NFS clients or users of the handle ioctls can pass us arbitrary inode
numbers through the exportfs interface. Make sure we use the
XFS_IGET_BULKSTAT so that these don't cause shutdowns due to the corruption
checks. Also translate the EINVAL we get back for invalid inode clusters
into an ESTALE which is more appropinquate, and remove the useless check
for a NULL inode on a successfull xfs_iget return.
I have a testcase to reproduce this using the handle interface which
I will submit to xfsqa.
Reported-by: Mario Becroft <mb@gem.win.co.nz>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'security/Kconfig')
0 files changed, 0 insertions, 0 deletions