]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: Use nd_jump_link in proc_ns_follow_link
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 9 Mar 2013 08:14:45 +0000 (00:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:25 +0000 (11:26 -0700)
commit6474cd4cf32ac9edf960903db0f7b9955618ae4a
treeb570f43bdbd328c63d97ff9923779b4208090045
parent9e424eb1c5e3650a486f0c9997d12081b999d1b4
proc: Use nd_jump_link in proc_ns_follow_link

commit db04dc679bcc780ad6907943afe24a30de974a1b upstream.

Update proc_ns_follow_link to use nd_jump_link instead of just
manually updating nd.path.dentry.

This fixes the BUG_ON(nd->inode != parent->d_inode) reported by Dave
Jones and reproduced trivially with mkdir /proc/self/ns/uts/a.

Sigh it looks like the VFS change to require use of nd_jump_link
happend while proc_ns_follow_link was baking and since the common case
of proc_ns_follow_link continued to work without problems the need for
making this change was overlooked.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/proc/namespaces.c