Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: invoke oom-killer from page fault

As explained in commit 1c0fe6e3bd, we want to call the architecture independent
oom killer when getting an unexplained OOM from handle_mm_fault, rather than
simply killing current.

Cc: linux-parisc@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

authored by

Nick Piggin and committed by
Kyle McMartin
53e30d02 550f0d92

+3 -4
+3 -4
arch/parisc/mm/fault.c
··· 264 264 265 265 out_of_memory: 266 266 up_read(&mm->mmap_sem); 267 - printk(KERN_CRIT "VM: killing process %s\n", current->comm); 268 - if (user_mode(regs)) 269 - do_group_exit(SIGKILL); 270 - goto no_context; 267 + if (!user_mode(regs)) 268 + goto no_context; 269 + pagefault_out_of_memory(); 271 270 }