Ben Hutchings:
> do_mmap_pgoff() /* The caller must hold down_write(&current->mm->mmap_sem) =
> */
> -> get_unmapped_area() -> security_mmap_addr()
        :::

Thanks.
And I am sorry. I was confused.
I have to correct the orders of security_mmap_addr() and ..._file() and
mmap_sem, which is
        ..._file() is called BEFORE mmap_sem
        and .._addr() is AFTER.

But the conclusion about the ..._file() call in aufs_mmap() is
unchanged. As long as ..._file() should be called out of mmap_sem,
delegating to kworker is necessary I think.

Do you have any other better approach?
Or do you think it is good to modify mm/*.c?


J. R. Okajima

------------------------------------------------------------------------------
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/

Reply via email to