[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 1 Jan 2016 10:17:03 +0900
From: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
To: "Serge E. Hallyn" <serge.hallyn@...ntu.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
linux-api@...r.kernel.org, containers@...ts.linux-foundation.org,
hannes@...xchg.org, linux-kernel@...r.kernel.org,
linux-next@...r.kernel.org, ebiederm@...ssion.com,
lxc-devel@...ts.linuxcontainers.org, gregkh@...uxfoundation.org,
tj@...nel.org, cgroups@...r.kernel.org, akpm@...ux-foundation.org
Subject: Re: [PATCH 6/8] cgroup: mount cgroupns-root when inside non-init
cgroupns
On (12/31/15 18:58), Serge E. Hallyn wrote:
[..]
> Thanks! Following trivial patch should fix this:
confirmed, thanks!
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
-ss
> From fc54592077533ff2ff90ed54b72bf03b4378ca9f Mon Sep 17 00:00:00 2001
> From: Serge Hallyn <serge.hallyn@...ntu.com>
> Date: Thu, 31 Dec 2015 16:55:19 -0800
> Subject: [PATCH 1/1] cgroup_release_agent: grab css_set_lock around
> cgroup_path()
>
> Reported-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
> Signed-off-by: Serge Hallyn <serge.hallyn@...ntu.com>
> ---
> kernel/cgroup.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/kernel/cgroup.c b/kernel/cgroup.c
> index 4812f59..d10f127 100644
> --- a/kernel/cgroup.c
> +++ b/kernel/cgroup.c
> @@ -5769,7 +5769,9 @@ static void cgroup_release_agent(struct work_struct *work)
> if (!pathbuf || !agentbuf)
> goto out;
>
> + spin_lock_bh(&css_set_lock);
> path = cgroup_path(cgrp, pathbuf, PATH_MAX);
> + spin_unlock_bh(&css_set_lock);
> if (!path)
> goto out;
>
> --
> 2.5.0
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists