Skip to contentSkip to conversation

mips: drop mmap_sem in pagefault oom path

PATCH Applied Akinobu Mita 2 participants 2 messages Jul 3, 2009 – Jul 6, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips: drop mmap_sem in pagefault oom path

Fix the pagefault oom path which does not drop mm->mmap_sem. This was introduced by commit c7c1e3846bac1e4b8a8941f6a194812e28b0a519 (This is not compile tested)

---
 arch/mips/mm/fault.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/mips/mm/fault.c +1 -0
index 6751ce9..f956ecb 100644
@@ -171,6 +171,7 @@ out_of_memory:
 	 * We ran out of memory, call the OOM killer, and return the userspace
 	 * (which will retry the fault, or kill us if we got oom-killed).
 	 */
+	up_read(&mm->mmap_sem);
 	pagefault_out_of_memory();
 	return;
 
Signature · 1 line
1.6.0.6
Applied
#1 lore raw

On Sat, Jul 04, 2009 at 01:33:09AM +0900, Akinobu Mita wrote:

Thanks, applied!

Ralf