lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 19 Dec 2012 19:01:30 -0800
From:	Michel Lespinasse <>
To:	Simon Jeons <>
Cc:	Andrew Morton <>,,
	Rik van Riel <>,
	Hugh Dickins <>,
Subject: Re: [PATCH] mm: protect against concurrent vma expansion

Hi Simon,

On Wed, Dec 19, 2012 at 5:56 PM, Simon Jeons <> wrote:
> One question.
> I found that mainly callsite of expand_stack() is #PF, but it holds
> mmap_sem each time before call expand_stack(), how can hold a *shared*
> mmap_sem happen?

the #PF handler calls down_read(&mm->mmap_sem) before calling expand_stack.

I think I'm just confusing you with my terminology; shared lock ==
read lock == several readers might hold it at once (I'd say they share

Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists