Re: [PATCH] Cgroup:Fix race between fork and update cpuset mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 04, 2016 at 07:23:03PM +0800, chaixianping@xxxxxxxxxx wrote:
> From: chaixianping <chaixianping@xxxxxxxxxx>
> 
> 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 <chaixianping@xxxxxxxxxx>

This name doesn't match your From: line :(

> Signed-off-by: Zhenghua Jia <jiazhenghua@xxxxxxxxxx>
> Signed-off-by: Leeyou <leeyou.li@xxxxxxxxxx>
> Signed-off-by: Lei Liu <liulei@xxxxxxxxxx>
> ---
>  kernel/cpuset.c | 29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)

<formletter>

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.

</formletter>
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]