Tuomas Tynkkynen 8709c53861 fs/9p: Compare qid.path in v9fs_test_inode
commit 8ee031631546cf2f7859cc69593bd60bbdd70b46 upstream.

Commit fd2421f54423 ("fs/9p: When doing inode lookup compare qid details
and inode mode bits.") transformed v9fs_qid_iget() to use iget5_locked()
instead of iget_locked(). However, the test() callback is not checking
fid.path at all, which means that a lookup in the inode cache can now
accidentally locate a completely wrong inode from the same inode hash
bucket if the other fields (qid.type and qid.version) match.

Fixes: fd2421f54423 ("fs/9p: When doing inode lookup compare qid details and inode mode bits.")
Reviewed-by: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-30 08:37:22 +00:00
..
2017-05-14 13:32:54 +02:00
2014-10-09 02:39:04 -04:00
2013-02-28 01:18:14 -05:00
2015-11-13 20:34:33 -05:00
2015-08-23 14:21:16 -05:00
2015-04-18 17:45:30 -04:00
2015-04-24 15:45:03 -04:00
2016-08-10 11:49:27 +02:00
2015-11-13 20:34:33 -05:00
2015-11-13 20:34:33 -05:00