| From | Greg Kroah-Hartman <> | Subject | [ 062/100] vfs: dont BUG_ON() if following a /proc fd pseudo-symlink results in a symlink | Date | Tue, 12 Mar 2013 15:31:47 -0700 |
| |
3.8-stable review patch. If anyone has any objections, please let me know.
------------------
From: Linus Torvalds <torvalds@linux-foundation.org>
commit 7b54c165a0c012edbaeaa73c5c87cb73721eb580 upstream.
It's "normal" - it can happen if the file descriptor you followed was opened with O_NOFOLLOW.
Reported-by: Dave Jones <davej@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--- fs/namei.c | 2 -- 1 file changed, 2 deletions(-)
--- a/fs/namei.c +++ b/fs/namei.c @@ -693,8 +693,6 @@ void nd_jump_link(struct nameidata *nd, nd->path = *path; nd->inode = nd->path.dentry->d_inode; nd->flags |= LOOKUP_JUMPED; - - BUG_ON(nd->inode->i_op->follow_link); } static inline void put_link(struct nameidata *nd, struct path *link, void *cookie)
|