login
Header Space

 
 

Re: [RFC][-mm] Memory controller add mm->owner

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <balbir@...>
Cc: <linux-mm@...>, Hugh Dickins <hugh@...>, Sudhir Kumar <skumar@...>, YAMAMOTO Takashi <yamamoto@...>, <lizf@...>, <linux-kernel@...>, <taka@...>, David Rientjes <rientjes@...>, Pavel Emelianov <xemul@...>, Andrew Morton <akpm@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Date: Monday, March 24, 2008 - 12:34 pm

On Mon, Mar 24, 2008 at 9:21 AM, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:

Ah, that's useful to know.


OK, so we don't need to handle this for NPTL apps - but for anything
still using LinuxThreads or manually constructed clone() calls that
use CLONE_VM without CLONE_PID, this could still be an issue. (Also I
guess there's the case of someone holding a reference to the mm via a
/proc file?)


Yes - cgroup_attach() uses synchronize_rcu() before release the cgroup
mutex. So although you can't guarantee that the cgroup set won't
change if you're just using RCU, you can't guarantee that you're
addressing a still-valid non-destroyed (and of course non-freed)
cgroup set.

Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Mon Mar 24, 10:01 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Li Zefan, (Mon Mar 24, 9:26 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Tue Mar 25, 11:48 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Paul Menage, (Mon Mar 24, 11:03 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Mon Mar 24, 12:21 pm)
Re: [RFC][-mm] Memory controller add mm->owner, Paul Menage, (Mon Mar 24, 12:34 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Mon Mar 24, 1:33 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Paul Menage, (Mon Mar 24, 1:46 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Tue Mar 25, 7:41 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Wed Mar 26, 6:29 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Paul Menage, (Wed Mar 26, 7:20 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Wed Mar 26, 7:41 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Paul Menage, (Wed Mar 26, 11:21 am)
speck-geostationary