/linux-6.6.21/arch/s390/kernel/ |
D | traps.c | 51 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_report_trap() argument 54 force_sig_fault(si_signo, si_code, get_trap_ip(regs)); in do_report_trap() 62 static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_trap() argument 67 do_report_trap(regs, si_signo, si_code, str); in do_trap() 126 int si_code = 0; in do_fp_trap() local 131 si_code = FPE_FLTINV; in do_fp_trap() 133 si_code = FPE_FLTDIV; in do_fp_trap() 135 si_code = FPE_FLTOVF; in do_fp_trap() 137 si_code = FPE_FLTUND; in do_fp_trap() 139 si_code = FPE_FLTRES; in do_fp_trap() [all …]
|
/linux-6.6.21/tools/testing/selftests/powerpc/mm/ |
D | segv_errors.c | 23 static int si_code; variable 31 si_code = info->si_code; in segv_handler() 49 si_code = 0; in test_segv_errors() 60 FAIL_IF(si_code != SEGV_ACCERR); in test_segv_errors() 63 si_code = 0; in test_segv_errors() 70 FAIL_IF(si_code != SEGV_ACCERR); in test_segv_errors()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/arch/loongarch/mm/ |
D | fault.c | 74 unsigned long write, unsigned long address, int si_code) in do_sigbus() argument 92 unsigned long write, unsigned long address, int si_code) in do_sigsegv() argument 126 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_sigsegv() 137 int si_code = SEGV_MAPERR; in __do_page_fault() local 160 do_sigsegv(regs, write, address, si_code); in __do_page_fault() 169 do_sigsegv(regs, write, address, si_code); in __do_page_fault() 190 do_sigsegv(regs, write, address, si_code); in __do_page_fault() 198 si_code = SEGV_ACCERR; in __do_page_fault() 244 do_sigsegv(regs, write, address, si_code); in __do_page_fault() 247 do_sigbus(regs, write, address, si_code); in __do_page_fault()
|
/linux-6.6.21/arch/alpha/math-emu/ |
D | math.c | 112 long si_code; in alpha_fp_emul() local 316 si_code = 0; in alpha_fp_emul() 318 if (_fex & IEEE_TRAP_ENABLE_DNO) si_code = FPE_FLTUND; in alpha_fp_emul() 319 if (_fex & IEEE_TRAP_ENABLE_INE) si_code = FPE_FLTRES; in alpha_fp_emul() 320 if (_fex & IEEE_TRAP_ENABLE_UNF) si_code = FPE_FLTUND; in alpha_fp_emul() 321 if (_fex & IEEE_TRAP_ENABLE_OVF) si_code = FPE_FLTOVF; in alpha_fp_emul() 322 if (_fex & IEEE_TRAP_ENABLE_DZE) si_code = FPE_FLTDIV; in alpha_fp_emul() 323 if (_fex & IEEE_TRAP_ENABLE_INV) si_code = FPE_FLTINV; in alpha_fp_emul() 326 return si_code; in alpha_fp_emul() 345 unsigned long insn, opcode, rc, si_code = 0; in alpha_fp_emul_imprecise() local [all …]
|
/linux-6.6.21/tools/testing/selftests/ptrace/ |
D | peeksiginfo.c | 110 int si_code; in check_direct_path() local 114 si_code = TEST_SICODE_SHARE; in check_direct_path() 117 si_code = TEST_SICODE_PRIV; in check_direct_path() 132 if (siginfo[j].si_code == si_code && in check_direct_path() 137 shared, i, siginfo[j].si_code, siginfo[j].si_int); in check_direct_path() 179 siginfo.si_code = TEST_SICODE_SHARE; in main() 183 siginfo.si_code = TEST_SICODE_PRIV; in main()
|
/linux-6.6.21/arch/hexagon/mm/ |
D | vm_fault.c | 41 int si_code = SEGV_MAPERR; in do_page_fault() local 65 si_code = SEGV_ACCERR; in do_page_fault() 122 si_code = BUS_ADRERR; in do_page_fault() 127 si_code = SEGV_ACCERR; in do_page_fault() 129 force_sig_fault(si_signo, si_code, (void __user *)address); in do_page_fault() 137 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_page_fault()
|
/linux-6.6.21/arch/alpha/kernel/ |
D | traps.c | 213 long si_code = FPE_FLTINV; in do_entArith() local 220 si_code = alpha_fp_emul(regs->pc - 4); in do_entArith() 222 si_code = alpha_fp_emul_imprecise(regs, write_mask); in do_entArith() 223 if (si_code == 0) in do_entArith() 228 send_sig_fault_trapno(SIGFPE, si_code, (void __user *) regs->pc, 0, current); in do_entArith() 356 long si_code; in do_entIF() local 371 si_code = alpha_fp_emul(regs->pc - 4); in do_entIF() 372 if (si_code == 0) in do_entIF() 374 if (si_code > 0) { in do_entIF() 375 send_sig_fault_trapno(SIGFPE, si_code, in do_entIF() [all …]
|
/linux-6.6.21/kernel/ |
D | signal.c | 502 if (likely(q->info.si_code != SI_TIMER)) { in __flush_itimer_signals() 600 (info->si_code == SI_TIMER) && in collect_signal() 613 info->si_code = SI_USER; in collect_signal() 733 if ((q->info.si_code > SI_USER) && in dequeue_synchronous_signal() 1125 override_rlimit = (is_si_special(info) || info->si_code >= 0); in __send_signal_locked() 1138 q->info.si_code = SI_USER; in __send_signal_locked() 1151 q->info.si_code = SI_KERNEL; in __send_signal_locked() 1160 sig >= SIGRTMIN && info->si_code != SI_USER) { in __send_signal_locked() 1204 switch (siginfo_layout(info->si_signo, info->si_code)) { in has_si_pid_and_uid() 1250 force = (info->si_code == SI_KERNEL); in send_signal_locked() [all …]
|
/linux-6.6.21/tools/testing/selftests/syscall_user_dispatch/ |
D | sud_test.c | 148 int si_code; variable 153 si_code = info->si_code; in handle_sigsys() 171 si_code = 0; in TEST() 210 ASSERT_EQ(SYS_USER_DISPATCH, si_code) { in TEST() 227 si_code = 0; in TEST_SIGNAL()
|
/linux-6.6.21/tools/testing/selftests/pidfd/ |
D | pidfd_wait.c | 84 ASSERT_EQ(info.si_code, CLD_EXITED); in TEST() 122 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST() 131 ASSERT_EQ(info.si_code, CLD_CONTINUED); in TEST() 136 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST() 143 ASSERT_EQ(info.si_code, CLD_KILLED); in TEST() 220 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST() 227 ASSERT_EQ(info.si_code, CLD_EXITED); in TEST()
|
/linux-6.6.21/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()
|
/linux-6.6.21/arch/arc/mm/ |
D | fault.c | 78 int sig, si_code = SEGV_MAPERR; in do_page_fault() local 131 si_code = SEGV_ACCERR; in do_page_fault() 178 si_code = BUS_ADRERR; in do_page_fault() 185 force_sig_fault(sig, si_code, (void __user *)address); in do_page_fault()
|
/linux-6.6.21/arch/m68k/kernel/ |
D | traps.c | 1005 int sig, si_code; in trap_c() local 1027 si_code = BUS_ADRALN; in trap_c() 1033 si_code = ILL_ILLOPC; in trap_c() 1037 si_code = ILL_PRVOPC; in trap_c() 1041 si_code = ILL_COPROC; in trap_c() 1058 si_code = ILL_ILLTRP; in trap_c() 1064 si_code = FPE_FLTINV; in trap_c() 1068 si_code = FPE_FLTRES; in trap_c() 1072 si_code = FPE_FLTDIV; in trap_c() 1076 si_code = FPE_FLTUND; in trap_c() [all …]
|
/linux-6.6.21/arch/parisc/mm/ |
D | fault.c | 367 int signo, si_code; in do_page_fault() local 375 si_code = SEGV_MAPERR; in do_page_fault() 382 si_code = SEGV_ACCERR; in do_page_fault() 391 si_code = (code == 18) ? BUS_ADRALN : BUS_ADRERR; in do_page_fault() 397 si_code = (code == 26) ? SEGV_ACCERR : SEGV_MAPERR; in do_page_fault() 423 force_sig_fault(signo, si_code, (void __user *) address); in do_page_fault()
|
/linux-6.6.21/arch/arm/kernel/ |
D | swp_emulate.c | 99 int si_code; in set_segfault() local 103 si_code = SEGV_MAPERR; in set_segfault() 105 si_code = SEGV_ACCERR; in set_segfault() 110 SIGSEGV, si_code, in set_segfault()
|
/linux-6.6.21/arch/arm64/include/asm/ |
D | signal.h | 11 unsigned long si_code) in arch_untagged_si_addr() argument 18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
|
/linux-6.6.21/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() 245 unsigned long address, int si_code) in __bad_area_nosemaphore() argument 254 force_sig_info_fault(SIGSEGV, si_code, address); in __bad_area_nosemaphore() 271 unsigned long address, int si_code) in __bad_area() argument 281 __bad_area_nosemaphore(regs, error_code, address, si_code); in __bad_area()
|
/linux-6.6.21/arch/openrisc/mm/ |
D | fault.c | 52 int si_code; in do_page_fault() local 97 si_code = SEGV_MAPERR; in do_page_fault() 142 si_code = SEGV_ACCERR; in do_page_fault() 216 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_page_fault()
|
/linux-6.6.21/tools/testing/selftests/arm64/mte/ |
D | mte_common_util.c | 35 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler() 37 if (si->si_code == SEGV_MTEAERR) { in mte_default_handler() 38 if (cur_mte_cxt.trig_si_code == si->si_code) in mte_default_handler() 47 else if (si->si_code == SEGV_MTESERR) { in mte_default_handler() 48 if (cur_mte_cxt.trig_si_code == si->si_code && in mte_default_handler() 68 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler()
|
/linux-6.6.21/include/uapi/asm-generic/ |
D | siginfo.h | 126 int si_code; \ 133 int si_code; \ 190 #define SI_FROMUSER(siptr) ((siptr)->si_code <= 0) 191 #define SI_FROMKERNEL(siptr) ((siptr)->si_code > 0)
|
/linux-6.6.21/arch/sparc/mm/ |
D | fault_64.c | 199 static void __kprobes do_kernel_fault(struct pt_regs *regs, int si_code, in do_kernel_fault() argument 247 do_fault_siginfo(si_code, SIGSEGV, regs, address, insn, fault_code); in do_kernel_fault() 273 int si_code, fault_code; in do_sparc64_fault() local 283 si_code = SEGV_MAPERR; in do_sparc64_fault() 397 si_code = SEGV_ACCERR; in do_sparc64_fault() 499 do_kernel_fault(regs, si_code, fault_code, insn, address); in do_sparc64_fault()
|
/linux-6.6.21/arch/mips/mm/ |
D | fault.c | 45 int si_code; in __do_page_fault() local 66 si_code = SEGV_MAPERR; in __do_page_fault() 109 si_code = SEGV_ACCERR; in __do_page_fault() 215 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in __do_page_fault()
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | traps.c | 430 int si_code = FPE_FLTUNK; in force_fcsr_sig() local 433 si_code = FPE_FLTINV; in force_fcsr_sig() 435 si_code = FPE_FLTDIV; in force_fcsr_sig() 437 si_code = FPE_FLTOVF; in force_fcsr_sig() 439 si_code = FPE_FLTUND; in force_fcsr_sig() 441 si_code = FPE_FLTRES; in force_fcsr_sig() 443 force_sig_fault(SIGFPE, si_code, fault_addr); in force_fcsr_sig() 448 int si_code; in process_fpemu_return() local 465 si_code = SEGV_ACCERR; in process_fpemu_return() 467 si_code = SEGV_MAPERR; in process_fpemu_return() [all …]
|
/linux-6.6.21/arch/alpha/mm/ |
D | fault.c | 91 int si_code = SEGV_MAPERR; in do_page_fault() local 128 si_code = SEGV_ACCERR; in do_page_fault() 226 force_sig_fault(SIGSEGV, si_code, (void __user *) address); in do_page_fault()
|