提交 bac9c66c 编写于 作者: A Akinobu Mita 提交者: Martin Schwidefsky

[S390] init task memory faults.

Lock for mmap_sem is missing on page fault retry for init task
when it fails due to out of memory.
Signed-off-by: NAkinobu Mita <mita@miraclelinux.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 a77c64c1
......@@ -355,6 +355,7 @@ do_exception(struct pt_regs *regs, unsigned long error_code, int is_protection)
up_read(&mm->mmap_sem);
if (tsk->pid == 1) {
yield();
down_read(&mm->mmap_sem);
goto survive;
}
printk("VM: killing process %s\n", tsk->comm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册