===== fs/namespace.c 1.50 vs edited ===== --- 1.50/fs/namespace.c Tue Oct 7 21:52:02 2003 +++ edited/fs/namespace.c Wed Dec 3 18:48:59 2003 @@ -1064,6 +1064,9 @@ detach_mnt(user_nd.mnt, &root_parent); attach_mnt(user_nd.mnt, &old_nd); attach_mnt(new_nd.mnt, &root_parent); + if (new_nd.mnt == new_nd.mnt->mnt_parent->mnt_parent && + new_nd.mnt != new_nd.mnt->mnt_parent) /* initramfs loop */ + new_nd.mnt->mnt_parent->mnt_parent = new_nd.mnt->mnt_parent; spin_unlock(&vfsmount_lock); chroot_fs_refs(&user_nd, &new_nd); security_sb_post_pivotroot(&user_nd, &new_nd);