From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161170AbcHEKtN (ORCPT ); Fri, 5 Aug 2016 06:49:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38444 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759479AbcHEKtL (ORCPT ); Fri, 5 Aug 2016 06:49:11 -0400 Date: Fri, 5 Aug 2016 12:49:22 +0200 From: Greg KH To: chaixianping@huawei.com Cc: lizefan@huawei.com, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Zhenghua Jia , Leeyou , Lei Liu Subject: Re: [PATCH] Cgroup:Fix race between fork and update cpuset mask Message-ID: <20160805104922.GA857@kroah.com> References: <1470309783-11328-1-git-send-email-chaixianping@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1470309783-11328-1-git-send-email-chaixianping@huawei.com> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 04, 2016 at 07:23:03PM +0800, chaixianping@huawei.com wrote: > From: chaixianping > > Fix the race between fork and update_cpumask or update_nodemask. > Scenario as follows: > 1)A process fork a child process, the child process have > inherited the parent process cpus_allowed,mems_allowed > Before being added cset->tasks list. > 2)Update_cpumask or update_nodemask change the parent's allowed > to a new value, *but the child still is the old value. > after being added cset->tasks list. > > Signed-off-by: Xianping Chai This name doesn't match your From: line :( > Signed-off-by: Zhenghua Jia > Signed-off-by: Leeyou > Signed-off-by: Lei Liu > --- > kernel/cpuset.c | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.