[Bug 1168526] Re: race condition causing lxc to not detect container init process exit

Serge Hallyn 1168526 at bugs.launchpad.net
Thu Aug 29 20:38:39 UTC 2013


The following kernel patches fixes it for me, will send to lkml:

diff --git a/debian.master/changelog b/debian.master/changelog
index f8f7a35a..081e666 100644
--- a/debian.master/changelog
+++ b/debian.master/changelog
@@ -1,3 +1,9 @@
+linux (3.11.0-4.9debug1) saucy; urgency=low
+
+  * debug 1
+
+ -- Serge Hallyn <serge at tangerine.buildd>  Thu, 29 Aug 2013 13:34:43 +0000
+
 linux (3.11.0-4.9) saucy; urgency=low
 
   [ Tim Gardner ]
diff --git a/debian/rules b/debian/rules
index 2d3358b..f87f26c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,8 @@ DEBIAN=$(shell awk -F= '($$1 == "DEBIAN") { print $$2 }' <debian/debian.env)
 # with the kernel build.
 unexport CFLAGS
 unexport LDFLAGS
+export skipmodules=true
+export skipabi=true
 
 export LC_ALL=C
 export SHELL=/bin/bash -e
diff --git a/debian/scripts/module-check b/debian/scripts/module-check
index c754ea3..280b6e9 100755
--- a/debian/scripts/module-check
+++ b/debian/scripts/module-check
@@ -4,6 +4,7 @@ $flavour = shift;
 $prev_abidir = shift;
 $abidir = shift;
 $skipmodule = shift;
+$skipmodule = 1;
 
 print "II: Checking modules for $flavour...";
 
diff --git a/kernel/pid.c b/kernel/pid.c
index 66505c1..3cccab3 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -275,6 +275,10 @@ void free_pid(struct pid *pid)
 		case 0:
 			schedule_work(&ns->proc_work);
 			break;
+		default:
+			if (ns->child_reaper->flags & PF_EXITING)
+				wake_up_process(ns->child_reaper);
+			break;
 		}
 	}
 	spin_unlock_irqrestore(&pidmap_lock, flags);

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1168526

Title:
  race condition causing lxc to not detect container init process exit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1168526/+subscriptions



More information about the Ubuntu-server-bugs mailing list