|
@@ -2527,7 +2527,7 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
|
|
ret = VM_FAULT_HWPOISON;
|
|
ret = VM_FAULT_HWPOISON;
|
|
} else {
|
|
} else {
|
|
print_bad_pte(vma, address, orig_pte, NULL);
|
|
print_bad_pte(vma, address, orig_pte, NULL);
|
|
- ret = VM_FAULT_OOM;
|
|
|
|
|
|
+ ret = VM_FAULT_SIGBUS;
|
|
}
|
|
}
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
@@ -2923,7 +2923,7 @@ static int do_nonlinear_fault(struct mm_struct *mm, struct vm_area_struct *vma,
|
|
* Page table corrupted: show pte and kill process.
|
|
* Page table corrupted: show pte and kill process.
|
|
*/
|
|
*/
|
|
print_bad_pte(vma, address, orig_pte, NULL);
|
|
print_bad_pte(vma, address, orig_pte, NULL);
|
|
- return VM_FAULT_OOM;
|
|
|
|
|
|
+ return VM_FAULT_SIGBUS;
|
|
}
|
|
}
|
|
|
|
|
|
pgoff = pte_to_pgoff(orig_pte);
|
|
pgoff = pte_to_pgoff(orig_pte);
|