From mboxrd@z Thu Jan 1 00:00:00 1970 From: anton.vorontsov@linaro.org (Anton Vorontsov) Date: Sat, 24 Mar 2012 20:43:35 +0400 Subject: [PATCH 07/10] um: Should hold tasklist_lock while traversing processes In-Reply-To: <1332593303.16159.28.camel@twins> References: <20120324102609.GA28356@lizard> <20120324103030.GG29067@lizard> <1332593303.16159.28.camel@twins> Message-ID: <20120324164335.GA4955@lizard> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, Mar 24, 2012 at 01:48:23PM +0100, Peter Zijlstra wrote: > On Sat, 2012-03-24 at 14:30 +0400, Anton Vorontsov wrote: > > Traversing the tasks requires holding tasklist_lock, otherwise it > > is unsafe. > > No it doesn't, it either requires tasklist_lock or rcu_read_lock(). Well, currently the code does neither. :-) -- Anton Vorontsov Email: cbouatmailru at gmail.com