更改为最新内核可解决此问题
发现确切的内核差异: REPRO:linux-image-3.8.0-31-generic 没有REPRO:linux-image-3.8.0-32-generic
我认为这是解决方法:
+++ linux-3.8.0/kernel/pid_namespace.c
@@ -181,6 +181,7 @@
int nr;
int rc;
struct task_struct *task, *me = current;
+ int init_pids = thread_group_leader(me) ? 1 : 2;
/* Don't allow any more processes into the pid namespace */
disable_pid_allocation(pid_ns);
@@ -230,7 +231,7 @@
*/
for (;;) {
set_current_state(TASK_UNINTERRUPTIBLE);
- if (pid_ns->nr_hashed == 1)
+ if (pid_ns->nr_hashed == init_pids)
break;
schedule();
}
@H_419_8@
来自这里:https :@L_301_2@/forum/#!msg/fa.linux.kernel/u4b3n4oYDQ4/GuLrXfDIYggJ
将要升级所有我们的服务器,以重现这一点,看看是否仍然存在。