/arch/s390/kernel/ |
D | traps.c | 45 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_report_trap() argument 48 force_sig_fault(si_signo, si_code, get_trap_ip(regs)); in do_report_trap() 66 static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_trap() argument 71 do_report_trap(regs, si_signo, si_code, str); in do_trap() 130 int si_code = 0; in do_fp_trap() local 135 si_code = FPE_FLTINV; in do_fp_trap() 137 si_code = FPE_FLTDIV; in do_fp_trap() 139 si_code = FPE_FLTOVF; in do_fp_trap() 141 si_code = FPE_FLTUND; in do_fp_trap() 143 si_code = FPE_FLTRES; in do_fp_trap() [all …]
|
/arch/ia64/kernel/ |
D | traps.c | 339 int si_code; in handle_fpu_swa() local 344 si_code = FPE_FLTUNK; /* default code */ in handle_fpu_swa() 346 si_code = FPE_FLTINV; in handle_fpu_swa() 350 si_code = FPE_FLTUND; in handle_fpu_swa() 352 si_code = FPE_FLTDIV; in handle_fpu_swa() 354 force_sig_fault(SIGFPE, si_code, in handle_fpu_swa() 364 int si_code; in handle_fpu_swa() local 366 si_code = FPE_FLTUNK; /* default code */ in handle_fpu_swa() 368 si_code = FPE_FLTOVF; in handle_fpu_swa() 370 si_code = FPE_FLTUND; in handle_fpu_swa() [all …]
|
/arch/alpha/math-emu/ |
D | math.c | 110 long si_code; in alpha_fp_emul() local 314 si_code = 0; in alpha_fp_emul() 316 if (_fex & IEEE_TRAP_ENABLE_DNO) si_code = FPE_FLTUND; in alpha_fp_emul() 317 if (_fex & IEEE_TRAP_ENABLE_INE) si_code = FPE_FLTRES; in alpha_fp_emul() 318 if (_fex & IEEE_TRAP_ENABLE_UNF) si_code = FPE_FLTUND; in alpha_fp_emul() 319 if (_fex & IEEE_TRAP_ENABLE_OVF) si_code = FPE_FLTOVF; in alpha_fp_emul() 320 if (_fex & IEEE_TRAP_ENABLE_DZE) si_code = FPE_FLTDIV; in alpha_fp_emul() 321 if (_fex & IEEE_TRAP_ENABLE_INV) si_code = FPE_FLTINV; in alpha_fp_emul() 324 return si_code; in alpha_fp_emul() 343 unsigned long insn, opcode, rc, si_code = 0; in alpha_fp_emul_imprecise() local [all …]
|
/arch/hexagon/mm/ |
D | vm_fault.c | 41 int si_code = SEGV_MAPERR; in do_page_fault() local 74 si_code = SEGV_ACCERR; in do_page_fault() 131 si_code = BUS_ADRERR; in do_page_fault() 136 si_code = SEGV_ACCERR; in do_page_fault() 138 force_sig_fault(si_signo, si_code, (void __user *)address); in do_page_fault() 145 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_page_fault()
|
/arch/nds32/kernel/ |
D | fpu.c | 207 int si_code = 0, si_signo = SIGFPE; in handle_fpu_exception() local 232 fill_sigfpe_signo(fpcsr, &si_code); in handle_fpu_exception() 236 si_code = ILL_COPROC; in handle_fpu_exception() 239 si_code = BUS_ADRERR; in handle_fpu_exception() 245 force_sig_fault(si_signo, si_code, in handle_fpu_exception()
|
/arch/parisc/mm/ |
D | fault.c | 357 int signo, si_code; in do_page_fault() local 365 si_code = SEGV_MAPERR; in do_page_fault() 372 si_code = SEGV_ACCERR; in do_page_fault() 381 si_code = (code == 18) ? BUS_ADRALN : BUS_ADRERR; in do_page_fault() 387 si_code = (code == 26) ? SEGV_ACCERR : SEGV_MAPERR; in do_page_fault() 413 force_sig_fault(signo, si_code, (void __user *) address); in do_page_fault()
|
/arch/alpha/kernel/ |
D | traps.c | 215 long si_code = FPE_FLTINV; in do_entArith() local 222 si_code = alpha_fp_emul(regs->pc - 4); in do_entArith() 224 si_code = alpha_fp_emul_imprecise(regs, write_mask); in do_entArith() 225 if (si_code == 0) in do_entArith() 230 send_sig_fault(SIGFPE, si_code, (void __user *) regs->pc, 0, current); in do_entArith() 344 long si_code; in do_entIF() local 359 si_code = alpha_fp_emul(regs->pc - 4); in do_entIF() 360 if (si_code == 0) in do_entIF() 362 if (si_code > 0) { in do_entIF() 363 send_sig_fault(SIGFPE, si_code, in do_entIF() [all …]
|
/arch/arc/mm/ |
D | fault.c | 66 int sig, si_code = SEGV_MAPERR; in do_page_fault() local 124 si_code = SEGV_ACCERR; in do_page_fault() 189 si_code = BUS_ADRERR; in do_page_fault() 196 force_sig_fault(sig, si_code, (void __user *)address); in do_page_fault()
|
/arch/csky/mm/ |
D | fault.c | 52 int si_code; in do_page_fault() local 56 si_code = SEGV_MAPERR; in do_page_fault() 134 si_code = SEGV_ACCERR; in do_page_fault() 182 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_page_fault()
|
/arch/m68k/mm/ |
D | fault.c | 24 int signo, si_code; in send_fault_sig() local 28 si_code = current->thread.code; in send_fault_sig() 30 pr_debug("send_fault_sig: %p,%d,%d\n", addr, signo, si_code); in send_fault_sig() 33 force_sig_fault(signo, si_code, addr); in send_fault_sig()
|
/arch/arm/kernel/ |
D | swp_emulate.c | 98 int si_code; in set_segfault() local 102 si_code = SEGV_MAPERR; in set_segfault() 104 si_code = SEGV_ACCERR; in set_segfault() 109 SIGSEGV, si_code, in set_segfault()
|
/arch/openrisc/mm/ |
D | fault.c | 51 int si_code; in do_page_fault() local 96 si_code = SEGV_MAPERR; in do_page_fault() 138 si_code = SEGV_ACCERR; in do_page_fault() 212 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_page_fault()
|
/arch/m68k/kernel/ |
D | traps.c | 1010 int sig, si_code; in trap_c() local 1032 si_code = BUS_ADRALN; in trap_c() 1038 si_code = ILL_ILLOPC; in trap_c() 1042 si_code = ILL_PRVOPC; in trap_c() 1046 si_code = ILL_COPROC; in trap_c() 1063 si_code = ILL_ILLTRP; in trap_c() 1069 si_code = FPE_FLTINV; in trap_c() 1073 si_code = FPE_FLTRES; in trap_c() 1077 si_code = FPE_FLTDIV; in trap_c() 1081 si_code = FPE_FLTUND; in trap_c() [all …]
|
/arch/sh/mm/ |
D | fault.c | 28 force_sig_info_fault(int si_signo, int si_code, unsigned long address) in force_sig_info_fault() argument 30 force_sig_fault(si_signo, si_code, (void __user *)address); in force_sig_info_fault() 230 unsigned long address, int si_code) in __bad_area_nosemaphore() argument 239 force_sig_info_fault(SIGSEGV, si_code, address); in __bad_area_nosemaphore() 256 unsigned long address, int si_code) in __bad_area() argument 266 __bad_area_nosemaphore(regs, error_code, address, si_code); in __bad_area()
|
/arch/alpha/mm/ |
D | fault.c | 90 int si_code = SEGV_MAPERR; in do_page_fault() local 134 si_code = SEGV_ACCERR; in do_page_fault() 230 force_sig_fault(SIGSEGV, si_code, (void __user *) address, 0); in do_page_fault()
|
/arch/nds32/mm/ |
D | fault.c | 76 int si_code; in do_page_fault() local 84 si_code = SEGV_MAPERR; in do_page_fault() 165 si_code = SEGV_ACCERR; in do_page_fault() 274 force_sig_fault(SIGSEGV, si_code, (void __user *)addr); in do_page_fault()
|
/arch/mips/mm/ |
D | fault.c | 45 int si_code; in __do_page_fault() local 66 si_code = SEGV_MAPERR; in __do_page_fault() 115 si_code = SEGV_ACCERR; in __do_page_fault() 226 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in __do_page_fault()
|
/arch/arc/kernel/ |
D | traps.c | 43 int signo, int si_code, void __user *addr) in unhandled_exception() argument 50 force_sig_fault(signo, si_code, addr); in unhandled_exception()
|
/arch/sparc/mm/ |
D | fault_64.c | 193 static void __kprobes do_kernel_fault(struct pt_regs *regs, int si_code, in do_kernel_fault() argument 241 do_fault_siginfo(si_code, SIGSEGV, regs, address, insn, fault_code); in do_kernel_fault() 267 int si_code, fault_code; in do_sparc64_fault() local 277 si_code = SEGV_MAPERR; in do_sparc64_fault() 390 si_code = SEGV_ACCERR; in do_sparc64_fault() 493 do_kernel_fault(regs, si_code, fault_code, insn, address); in do_sparc64_fault()
|
/arch/um/kernel/ |
D | trap.c | 213 int si_code; in segv() local 237 &si_code); in segv() 274 force_sig_fault(SIGSEGV, si_code, (void __user *) address); in segv() 299 code = si->si_code; in relay_signal()
|
/arch/csky/kernel/ |
D | traps.c | 128 info.si_code = TRAP_TRACE; in trap_c() 145 info.si_code = TRAP_BRKPT; in trap_c()
|
/arch/x86/kernel/ |
D | traps.c | 714 int si_code; in do_debug() local 802 si_code = get_si_code(tsk->thread.debugreg6); in do_debug() 804 send_sigtrap(regs, error_code, si_code); in do_debug() 822 int si_code; in math_error() local 849 si_code = fpu__exception_code(fpu, trapnr); in math_error() 851 if (!si_code) in math_error() 854 force_sig_fault(SIGFPE, si_code, in math_error()
|
/arch/arm64/kernel/ |
D | fpsimd.c | 961 unsigned int si_code = FPE_FLTUNK; in do_fpsimd_exc() local 965 si_code = FPE_FLTINV; in do_fpsimd_exc() 967 si_code = FPE_FLTDIV; in do_fpsimd_exc() 969 si_code = FPE_FLTOVF; in do_fpsimd_exc() 971 si_code = FPE_FLTUND; in do_fpsimd_exc() 973 si_code = FPE_FLTRES; in do_fpsimd_exc() 976 send_sig_fault(SIGFPE, si_code, in do_fpsimd_exc()
|
/arch/powerpc/mm/ |
D | fault.c | 83 __bad_area_nosemaphore(struct pt_regs *regs, unsigned long address, int si_code) in __bad_area_nosemaphore() argument 93 _exception(SIGSEGV, regs, si_code, address); in __bad_area_nosemaphore() 103 static int __bad_area(struct pt_regs *regs, unsigned long address, int si_code) in __bad_area() argument 113 return __bad_area_nosemaphore(regs, address, si_code); in __bad_area()
|
/arch/mips/kernel/ |
D | traps.c | 723 int si_code = FPE_FLTUNK; in force_fcr31_sig() local 726 si_code = FPE_FLTINV; in force_fcr31_sig() 728 si_code = FPE_FLTDIV; in force_fcr31_sig() 730 si_code = FPE_FLTOVF; in force_fcr31_sig() 732 si_code = FPE_FLTUND; in force_fcr31_sig() 734 si_code = FPE_FLTRES; in force_fcr31_sig() 736 force_sig_fault_to_task(SIGFPE, si_code, fault_addr, tsk); in force_fcr31_sig() 741 int si_code; in process_fpemu_return() local 760 si_code = SEGV_ACCERR; in process_fpemu_return() 762 si_code = SEGV_MAPERR; in process_fpemu_return() [all …]
|