]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Ensure we revalidate attributes before using execute_ok()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 29 Dec 2015 00:30:05 +0000 (19:30 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 29 Dec 2015 00:37:05 +0000 (19:37 -0500)
commitb86a93909489e2edd3976bd2c6564881e98f3fa1
tree7a8e69867e323744d7431d50d73e479615f93595
parent01c41d08cfdaf81509f2dc57b539411d1132c6c2
NFS: Ensure we revalidate attributes before using execute_ok()

Donald Buczek reports that NFS clients can also report incorrect
results for access() due to lack of revalidation of attributes
before calling execute_ok().
Looking closely, it seems chdir() is afflicted with the same problem.

Fix is to ensure we call nfs_revalidate_inode_rcu() or
nfs_revalidate_inode() as appropriate before deciding to trust
execute_ok().

Reported-by: Donald Buczek <buczek@molgen.mpg.de>
Link: http://lkml.kernel.org/r/1451331530-3748-1-git-send-email-buczek@molgen.mpg.de
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/dir.c