Re: [PATCH] cgroups: fix lockdep subclasses overflow

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

 



Li Zefan wrote:
> I enabled all cgroup subsystems when compiling kernel, and then:
>  # mount -t cgroup -o net_cls xxx /mnt
>  # mkdir /mnt/0
> 
> This showed up immediately:
>  BUG: MAX_LOCKDEP_SUBCLASSES too low!
>  turning off the locking correctness validator.
> 
> It's caused by the cgroup hierarchy lock:
> 	for (i = 0; i < CGROUP_SUBSYS_COUNT; i++) {
> 		struct cgroup_subsys *ss = subsys[i];
> 		if (ss->root == root)
> 			mutex_lock_nested(&ss->hierarchy_mutex, i);
> 	}
> 
> Now we have 9 cgroup subsystems, and the above 'i' for net_cls is 9, but

sorry, a typo here: the above 'i' for net_cls is 8.

> MAX_LOCKDEP_SUBCLASSES is 8.
> 
> This patch uses different lockdep keys for different subsystems.
> 
> Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx>
> ---
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.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