mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
[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: Akinobu Mita <mita@miraclelinux.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
a77c64c1a6
commit
bac9c66cd2
@ -355,6 +355,7 @@ out_of_memory:
|
|||||||
up_read(&mm->mmap_sem);
|
up_read(&mm->mmap_sem);
|
||||||
if (tsk->pid == 1) {
|
if (tsk->pid == 1) {
|
||||||
yield();
|
yield();
|
||||||
|
down_read(&mm->mmap_sem);
|
||||||
goto survive;
|
goto survive;
|
||||||
}
|
}
|
||||||
printk("VM: killing process %s\n", tsk->comm);
|
printk("VM: killing process %s\n", tsk->comm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user