Tuomas Tynkkynen b178968f55 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:40:49 +00:00
..
2017-02-22 16:41:27 -08:00
2017-01-12 04:01:17 -05:00
2016-08-03 11:12:12 -04:00
2017-07-11 06:08:58 -04:00
2017-07-11 06:08:58 -04:00
2016-05-09 11:41:16 -04:00
2017-07-11 06:08:58 -04:00
2016-08-03 11:12:12 -04:00
2015-11-13 20:34:33 -05:00