]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- revert broken hunk in vserver patch
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 25 Apr 2014 18:47:04 +0000 (20:47 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 25 Apr 2014 18:47:04 +0000 (20:47 +0200)
After the following change that went into 3.13.9 and 3.14+, vserver
enabled kernels couldn't boot anymore, hanging at the first interaction
with udev in initrd. Reverting the change to follow_dotdot() in
fs/namei.c makes the kernel boot again without problems.

 From b37199e626b31e1175fb06764c5d1d687723aac2 Mon Sep 17 00:00:00 2001
 From: Al Viro <viro@zeniv.linux.org.uk>
 Date: Thu, 20 Mar 2014 15:18:22 -0400
 Subject: rcuwalk: recheck mount_lock after mountpoint crossing attempts

kernel-vserver-fixes.patch

index b46a5614512d0d5e0ea1bafe7071f439edbecf85..61a0931f24da6ca7ae5367ddc4a52515d18f1eeb 100644 (file)
@@ -9,3 +9,15 @@
        if (pid->hide_pid < hide_pid_min)
                return true;
        if (in_group_p(pid->pid_gid))
+--- linux-3.13.10/fs/namei.c   2014-04-17 01:12:32.000000000 +0000
++++ linux-3.13.10-vs2.3.6.11/fs/namei.c        2014-04-17 01:17:10.000000000 +0000
+@@ -1238,8 +1335,7 @@ static void follow_dotdot(struct nameida
+               if (nd->path.dentry == nd->root.dentry &&
+                   nd->path.mnt == nd->root.mnt) {
+-                      /* for sane '/' avoid follow_mount() */
+-                      return;
++                      break;
+               }
+               if (nd->path.dentry != nd->path.mnt->mnt_root) {
+                       /* rare case of legitimate dget_parent()... */
This page took 0.064479 seconds and 4 git commands to generate.