fault.c (0c49cd295d42d0032af11d55e2140dbec11dc8d0) | fault.c (33692f27597fcab536d7cbbcc8f52905133e4aa7) |
---|---|
1/* 2 * Copyright (C) 1995 Linus Torvalds 3 * Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs. 4 * Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar 5 */ 6#include <linux/sched.h> /* test_thread_flag(), ... */ 7#include <linux/kdebug.h> /* oops_begin/end, ... */ 8#include <linux/module.h> /* search_exception_table */ --- 884 unchanged lines hidden (view full) --- 893 * userspace (which will retry the fault, or kill us if we got 894 * oom-killed): 895 */ 896 pagefault_out_of_memory(); 897 } else { 898 if (fault & (VM_FAULT_SIGBUS|VM_FAULT_HWPOISON| 899 VM_FAULT_HWPOISON_LARGE)) 900 do_sigbus(regs, error_code, address, fault); | 1/* 2 * Copyright (C) 1995 Linus Torvalds 3 * Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs. 4 * Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar 5 */ 6#include <linux/sched.h> /* test_thread_flag(), ... */ 7#include <linux/kdebug.h> /* oops_begin/end, ... */ 8#include <linux/module.h> /* search_exception_table */ --- 884 unchanged lines hidden (view full) --- 893 * userspace (which will retry the fault, or kill us if we got 894 * oom-killed): 895 */ 896 pagefault_out_of_memory(); 897 } else { 898 if (fault & (VM_FAULT_SIGBUS|VM_FAULT_HWPOISON| 899 VM_FAULT_HWPOISON_LARGE)) 900 do_sigbus(regs, error_code, address, fault); |
901 else if (fault & VM_FAULT_SIGSEGV) 902 bad_area_nosemaphore(regs, error_code, address); |
|
901 else 902 BUG(); 903 } 904} 905 906static int spurious_fault_check(unsigned long error_code, pte_t *pte) 907{ 908 if ((error_code & PF_WRITE) && !pte_write(*pte)) --- 421 unchanged lines hidden --- | 903 else 904 BUG(); 905 } 906} 907 908static int spurious_fault_check(unsigned long error_code, pte_t *pte) 909{ 910 if ((error_code & PF_WRITE) && !pte_write(*pte)) --- 421 unchanged lines hidden --- |