vfs: don't BUG_ON() if following a /proc fd pseudo-symlink results in a symlink
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Mar 2013 17:03:07 +0000 (09:03 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:24 +0000 (11:26 -0700)
commit9e424eb1c5e3650a486f0c9997d12081b999d1b4
tree1c46c17a61bd6d9288e53956d1fb23c4fdd65a03
parent34d8bb52ecd8182b74ed57ac3f17970fb7af024e
vfs: don't BUG_ON() if following a /proc fd pseudo-symlink results in a symlink

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