Lines Matching refs:error_code
95 unsigned long error_code) in is_prefetch() argument
106 if (error_code & PF_INSTR) in is_prefetch()
380 static void show_fault_oops(struct pt_regs *regs, unsigned long error_code, in show_fault_oops() argument
389 if (error_code & PF_INSTR) { in show_fault_oops()
413 unsigned long error_code) in pgtable_bad() argument
425 tsk->thread.error_code = error_code; in pgtable_bad()
426 if (__die("Bad pagetable", regs, error_code)) in pgtable_bad()
432 static int spurious_fault_check(unsigned long error_code, pte_t *pte) in spurious_fault_check() argument
434 if ((error_code & PF_WRITE) && !pte_write(*pte)) in spurious_fault_check()
436 if ((error_code & PF_INSTR) && !pte_exec(*pte)) in spurious_fault_check()
452 unsigned long error_code) in spurious_fault() argument
460 if (error_code & (PF_USER | PF_RSVD)) in spurious_fault()
472 return spurious_fault_check(error_code, (pte_t *) pud); in spurious_fault()
479 return spurious_fault_check(error_code, (pte_t *) pmd); in spurious_fault()
485 return spurious_fault_check(error_code, pte); in spurious_fault()
584 void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code) argument
627 if (!(error_code & (PF_RSVD|PF_USER|PF_PROT)) &&
632 if (spurious_fault(address, error_code))
658 error_code |= PF_USER;
663 if (unlikely(error_code & PF_RSVD))
664 pgtable_bad(address, regs, error_code);
691 if ((error_code & PF_USER) == 0 &&
704 if (error_code & PF_USER) {
723 switch (error_code & (PF_PROT|PF_WRITE)) {
778 if (error_code & PF_USER) {
788 if (is_prefetch(regs, address, error_code))
800 (void *) regs->ip, (void *) regs->sp, error_code);
807 tsk->thread.error_code = error_code | (address >= TASK_SIZE);
830 if (is_prefetch(regs, address, error_code))
846 show_fault_oops(regs, error_code, address);
850 tsk->thread.error_code = error_code;
853 die("Oops", regs, error_code);
858 if (__die("Oops", regs, error_code))
878 if (!(error_code & PF_USER))
882 if (is_prefetch(regs, address, error_code))
886 tsk->thread.error_code = error_code;