https://github.com/torvalds/linux
Revision db04dc679bcc780ad6907943afe24a30de974a1b authored by Eric W. Biederman on 09 March 2013, 08:14:45 UTC, committed by Eric W. Biederman on 09 March 2013, 08:14:45 UTC
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.

Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
1 parent 9141770
History
Tip revision: db04dc679bcc780ad6907943afe24a30de974a1b authored by Eric W. Biederman on 09 March 2013, 08:14:45 UTC
proc: Use nd_jump_link in proc_ns_follow_link
Tip revision: db04dc6
File Mode Size
apparmor
integrity
keys
selinux
smack
tomoyo
yama
Kconfig -rw-r--r-- 5.7 KB
Makefile -rw-r--r-- 1.0 KB
capability.c -rw-r--r-- 23.8 KB
commoncap.c -rw-r--r-- 28.1 KB
device_cgroup.c -rw-r--r-- 14.9 KB
inode.c -rw-r--r-- 6.7 KB
lsm_audit.c -rw-r--r-- 9.3 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 35.1 KB

back to top