Don't Call get_pid_ns() before we locate/alloc the ns.
Signed-off-by: Li Zefan l...@cn.fujitsu.com
---
cgroup.c |8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
--- a/kernel/cgroup.c.orig 2010-01-26 14:24:29.0 +0800
+++ a/kernel/cgroup.c 2010-01-26
Quoting Li Zefan (l...@cn.fujitsu.com):
In cgroup_create(), if alloc_css_id() returns failure, the errno
is not propagated to userspace, so mkdir will fail silently.
To trigger this bug, we mount blkio (or memory subsystem), and
create more then 65534 cgroups. (The number of cgroups is
Applied, thanks.
se...@us.ibm.com wrote:
The first patch is a resend from friday, and should be applied to
v19. The second patch I think should be applied to v19 as well,
as it will prevent accidental attempts to restart a 64-bit image
with a 32-bit restart, and vice versa.
The third
On Tue, Jan 26, 2010 at 12:17 AM, Li Zefan l...@cn.fujitsu.com wrote:
Don't Call get_pid_ns() before we locate/alloc the ns.
Signed-off-by: Li Zefan l...@cn.fujitsu.com
Acked-by: Paul Menage men...@google.com
---
cgroup.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
On Tue, 26 Jan 2010 15:01:26 -0800
Paul Menage men...@google.com wrote:
On Tue, Jan 26, 2010 at 12:16 AM, Li Zefan l...@cn.fujitsu.com wrote:
Signed-off-by: Li Zefan l...@cn.fujitsu.com
Acked-by: Paul Menage men...@google.com
Thank you.
Acked-by: KAMEZAWA Hiroyuki