On Tue, 2012-07-24 at 14:23 +0900, sf...@users.sourceforge.net wrote: > Ben Hutchings: > > > > If there is no lock higher than mmap_sem that might be used in this way, > > > > then there is no problem and there is also no need for using the > > > > workqueue. > > > > > > ?? > > > I may be confused again. > > > Why workqueue is unnecessary? > > > > The work item runs on *some* workqueue. > > ?? > Do you mean aufs_mmap() can call ..._file() directly in such case, even > LSM tries acquiring mmap_sem?
I think it should call security_mmap_file() directly. If some LSM uses the mm context and needs to acquire mmap_sem then it will hang, but this will be an obvious failure and less bad than a quiet failure due to using the mm context of the worker thread. Ben. -- Ben Hutchings If more than one person is responsible for a bug, no one is at fault.
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/