Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752410AbcAABT0 (ORCPT ); Thu, 31 Dec 2015 20:19:26 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:33151 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752092AbcAABSl (ORCPT ); Thu, 31 Dec 2015 20:18:41 -0500 Date: Fri, 1 Jan 2016 10:17:03 +0900 From: Sergey Senozhatsky To: "Serge E. Hallyn" Cc: Sergey Senozhatsky , Stephen Rothwell , linux-api@vger.kernel.org, containers@lists.linux-foundation.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, ebiederm@xmission.com, lxc-devel@lists.linuxcontainers.org, gregkh@linuxfoundation.org, tj@kernel.org, cgroups@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH 6/8] cgroup: mount cgroupns-root when inside non-init cgroupns Message-ID: <20160101011703.GA532@swordfish> References: <1450844609-9194-1-git-send-email-serge.hallyn@ubuntu.com> <1450844609-9194-7-git-send-email-serge.hallyn@ubuntu.com> <20151231133822.GA463@swordfish> <20160101005843.GA26243@mail.hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160101005843.GA26243@mail.hallyn.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1306 Lines: 44 On (12/31/15 18:58), Serge E. Hallyn wrote: [..] > Thanks! Following trivial patch should fix this: confirmed, thanks! Tested-by: Sergey Senozhatsky -ss > From fc54592077533ff2ff90ed54b72bf03b4378ca9f Mon Sep 17 00:00:00 2001 > From: Serge Hallyn > 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 > Signed-off-by: Serge Hallyn > --- > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/