lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 25 Feb 2014 10:06:36 -0500
From:	Tejun Heo <tj@...nel.org>
To:	Li Zefan <lizefan@...wei.com>
Cc:	Fengguang Wu <fengguang.wu@...el.com>, cgroups@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [cgroup/task_lock] INFO: suspicious RCU usage.

Hello, Li.

On Tue, Feb 25, 2014 at 08:01:25PM +0800, Li Zefan wrote:
...
> >> So, this is from removing task_lock from task_css_set_check() and
> >> adding rcu_read_lock() in cpuset_cpus_allowed() should fix it.
> > 
> > Yeah, rcu_read_lock() should be sufficient.
> > 
> >> I'm
> >> not sure how much of task_lock() locking we currently have in cpuset
> >> is actually necessary tho.  Shouldn't we be able to do most with just
> >> callback_mutex, if not cpuset_mutex?  Li, any ideas?
> >>
> > 
> > task_lock() is also used to protect task->mems_allowed. I'll see if we
> > can get rid of most (if not all) task_lock() lockings in cpuset.
> > 
> 
> After a quick lock, I think except the one in cpuset_change_task_nodemask(), all
> other task_lock() lockings can be replace by rcu_readlock().

I committed the original series as-is.  Can you please post follow-up
patches to update cpuset locking?

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ