Re: [PATCH cgroup/for-3.11 2/3] cgroup: fix RCU accesses around task->cgroups

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

 



On 2013/6/22 6:52, Tejun Heo wrote:
> There are several places in kernel/cgroup.c where task->cgroups is
> accessed and modified without going through proper RCU accessors.
> None is broken as they're all lock protected accesses; however, this
> still triggers sparse RCU address space warnings.
> 
> * Consistently use task_css_set() for task->cgroups dereferencing.
> 
> * Use RCU_INIT_POINTER() to clear task->cgroups to &init_css_set on
>   exit.
> 
> * Remove unnecessary rcu_dereference_raw() from cset->subsys[]
>   dereference in cgroup_exit().
> 
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> Reported-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>

Acked-by: Li Zefan <lizefan@xxxxxxxxxx>

_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/containers




[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux