diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-08-10 10:04:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-08-10 10:04:47 -0700 |
commit | a3ca013d8824e9bcf9cd62111058e882be9b334c (patch) | |
tree | e7b065ea8c58917caddc6ccf2ba70af25c02da4d /fs | |
parent | f7644cbfcdf03528f0f450f3940c4985b2291f49 (diff) | |
parent | aa65fa35ba6b589a12a6025739c2d935dd743b5a (diff) | |
download | op-kernel-dev-a3ca013d8824e9bcf9cd62111058e882be9b334c.zip op-kernel-dev-a3ca013d8824e9bcf9cd62111058e882be9b334c.tar.gz |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull RCU pathwalk fix from Al Viro:
"Another racy use of nd->path.dentry in RCU mode"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
may_follow_link() should use nd->inode
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -879,7 +879,7 @@ static inline int may_follow_link(struct nameidata *nd) return 0; /* Allowed if parent directory not sticky and world-writable. */ - parent = nd->path.dentry->d_inode; + parent = nd->inode; if ((parent->i_mode & (S_ISVTX|S_IWOTH)) != (S_ISVTX|S_IWOTH)) return 0; |