On Mon, 2012-07-23 at 12:36 +0900, sf...@users.sourceforge.net wrote: > Ben Hutchings: > > security_mmap_addr() is called with mmap_sem held, but anyway we don't > > need to call it from aufs... > > security_mmap_addr() is called with mmap_sem held?? > Which source file are you reading?
do_mmap_pgoff() /* The caller must hold down_write(¤t->mm->mmap_sem) */ -> get_unmapped_area() -> security_mmap_addr() sys_brk() -> down_write(&mm->mmap_sem); -> do_brk() -> get_unmapped_area() -> security_mmap_addr() __get_user_pages() /* Must be called with mmap_sem held for read or write */ -> find_extend_vma() -> expand_stack() -> expand_downwards() -> security_mmap_addr() Ben. -- Ben Hutchings Who are all these weirdos? - David Bowie, about L-Space IRC channel #afp
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/