Home
last modified time | relevance | path

Searched refs:si_code (Results 1 – 25 of 85) sorted by relevance

1234

/linux/tools/testing/selftests/powerpc/mm/
H A Dsegv_errors.c23 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/arch/alpha/math-emu/
H A Dmath.c107 long si_code; in alpha_fp_emul() local
311 si_code = 0; in alpha_fp_emul()
313 if (_fex & IEEE_TRAP_ENABLE_DNO) si_code = FPE_FLTUND; in alpha_fp_emul()
314 if (_fex & IEEE_TRAP_ENABLE_INE) si_code = FPE_FLTRES; in alpha_fp_emul()
315 if (_fex & IEEE_TRAP_ENABLE_UNF) si_code = FPE_FLTUND; in alpha_fp_emul()
316 if (_fex & IEEE_TRAP_ENABLE_OVF) si_code = FPE_FLTOVF; in alpha_fp_emul()
317 if (_fex & IEEE_TRAP_ENABLE_DZE) si_code = FPE_FLTDIV; in alpha_fp_emul()
318 if (_fex & IEEE_TRAP_ENABLE_INV) si_code = FPE_FLTINV; in alpha_fp_emul()
321 return si_code; in alpha_fp_emul()
340 unsigned long insn, opcode, rc, si_code = 0; in alpha_fp_emul_imprecise() local
[all …]
/linux/arch/loongarch/mm/
H A Dfault.c115 unsigned long write, unsigned long address, int si_code) in do_sigbus() argument
133 unsigned long write, unsigned long address, int si_code) in do_sigsegv() argument
167 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_sigsegv()
178 int si_code = SEGV_MAPERR; in __do_page_fault() local
201 do_sigsegv(regs, write, address, si_code); in __do_page_fault()
210 do_sigsegv(regs, write, address, si_code); in __do_page_fault()
231 do_sigsegv(regs, write, address, si_code); in __do_page_fault()
239 si_code = SEGV_ACCERR; in __do_page_fault()
285 do_sigsegv(regs, write, address, si_code); in __do_page_fault()
288 do_sigbus(regs, write, address, si_code); in __do_page_fault()
/linux/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c110 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/arch/hexagon/mm/
H A Dvm_fault.c42 int si_code = SEGV_MAPERR; in do_page_fault() local
66 si_code = SEGV_ACCERR; in do_page_fault()
123 si_code = BUS_ADRERR; in do_page_fault()
128 si_code = SEGV_ACCERR; in do_page_fault()
130 force_sig_fault(si_signo, si_code, (void __user *)address); in do_page_fault()
138 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_page_fault()
/linux/tools/testing/selftests/syscall_user_dispatch/
H A Dsud_test.c148 int si_code; variable
153 si_code = info->si_code; in handle_sigsys()
185 si_code = 0; in TEST()
224 ASSERT_EQ(SYS_USER_DISPATCH, si_code) { in TEST()
241 si_code = 0; in TEST_SIGNAL()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c84 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/kernel/
H A Dsignal.c583 if (unlikely((first->flags & SIGQUEUE_PREALLOC) && (info->si_code == SI_TIMER))) in collect_signal()
596 info->si_code = SI_USER; in collect_signal()
684 if ((q->info.si_code > SI_USER) && in dequeue_synchronous_signal()
741 if (likely(!(q->flags & SIGQUEUE_PREALLOC) || q->info.si_code != SI_TIMER)) in sigqueue_free_ignored()
1082 override_rlimit = (is_si_special(info) || info->si_code >= 0); in __send_signal_locked()
1095 q->info.si_code = SI_USER; in __send_signal_locked()
1108 q->info.si_code = SI_KERNEL; in __send_signal_locked()
1117 sig >= SIGRTMIN && info->si_code != SI_USER) { in __send_signal_locked()
1161 switch (siginfo_layout(info->si_signo, info->si_code)) { in has_si_pid_and_uid()
1207 force = (info->si_code == SI_KERNEL); in send_signal_locked()
[all …]
/linux/arch/m68k/mm/
H A Dfault.c26 int signo, si_code; in send_fault_sig() local
30 si_code = current->thread.code; in send_fault_sig()
32 pr_debug("send_fault_sig: %p,%d,%d\n", addr, signo, si_code); in send_fault_sig()
35 force_sig_fault(signo, si_code, addr); in send_fault_sig()
/linux/arch/arc/mm/
H A Dfault.c78 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/arch/parisc/mm/
H A Dfault.c367 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/arch/alpha/kernel/
H A Dtraps.c181 long si_code = FPE_FLTINV; in do_entArith() local
188 si_code = alpha_fp_emul(regs->pc - 4); in do_entArith()
190 si_code = alpha_fp_emul_imprecise(regs, write_mask); in do_entArith()
191 if (si_code == 0) in do_entArith()
196 send_sig_fault_trapno(SIGFPE, si_code, (void __user *) regs->pc, 0, current); in do_entArith()
669 int si_code; in do_entUnaUser() local
897 si_code = SEGV_ACCERR; in do_entUnaUser()
902 si_code = SEGV_ACCERR; in do_entUnaUser()
904 si_code = SEGV_MAPERR; in do_entUnaUser()
907 send_sig_fault(SIGSEGV, si_code, va, current); in do_entUnaUser()
/linux/arch/arm/kernel/
H A Dswp_emulate.c99 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/arch/sh/mm/
H A Dfault.c28 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/arch/openrisc/mm/
H A Dfault.c52 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/tools/testing/selftests/arm64/mte/
H A Dmte_common_util.c34 ksft_print_msg("INFO: SIGSEGV signal at pc=%lx, fault addr=%lx, si_code=%lx\n", in mte_default_handler()
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()
67 ksft_print_msg("INFO: SIGBUS signal at pc=%llx, fault addr=%lx, si_code=%x\n", in mte_default_handler()
68 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler()
/linux/arch/arm64/include/asm/
H A Dsignal.h11 unsigned long si_code) in arch_untagged_si_addr() argument
18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
/linux/arch/loongarch/kernel/
H A Dtraps.c456 int si_code = FPE_FLTUNK; in force_fcsr_sig() local
459 si_code = FPE_FLTINV; in force_fcsr_sig()
461 si_code = FPE_FLTDIV; in force_fcsr_sig()
463 si_code = FPE_FLTOVF; in force_fcsr_sig()
465 si_code = FPE_FLTUND; in force_fcsr_sig()
467 si_code = FPE_FLTRES; in force_fcsr_sig()
469 force_sig_fault(SIGFPE, si_code, fault_addr); in force_fcsr_sig()
474 int si_code; in process_fpemu_return() local
491 si_code = SEGV_ACCERR; in process_fpemu_return()
493 si_code = SEGV_MAPERR; in process_fpemu_return()
[all …]
/linux/arch/sparc/mm/
H A Dfault_64.c199 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/arch/mips/mm/
H A Dfault.c46 int si_code; in __do_page_fault() local
67 si_code = SEGV_MAPERR; in __do_page_fault()
110 si_code = SEGV_ACCERR; in __do_page_fault()
216 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in __do_page_fault()
/linux/arch/um/kernel/
H A Dtrap.c204 int si_code; in segv() local
237 &si_code); in segv()
267 force_sig_fault(SIGSEGV, si_code, (void __user *) address); in segv()
292 code = si->si_code; in relay_signal()
/linux/arch/alpha/mm/
H A Dfault.c91 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()
/linux/arch/arc/kernel/
H A Dtraps.c40 int signo, int si_code, void __user *addr) in unhandled_exception() argument
47 force_sig_fault(signo, si_code, addr); in unhandled_exception()
/linux/arch/mips/kernel/
H A Dtraps.c775 int si_code = FPE_FLTUNK; in force_fcr31_sig() local
778 si_code = FPE_FLTINV; in force_fcr31_sig()
780 si_code = FPE_FLTDIV; in force_fcr31_sig()
782 si_code = FPE_FLTOVF; in force_fcr31_sig()
784 si_code = FPE_FLTUND; in force_fcr31_sig()
786 si_code = FPE_FLTRES; in force_fcr31_sig()
788 force_sig_fault_to_task(SIGFPE, si_code, fault_addr, tsk); in force_fcr31_sig()
793 int si_code; in process_fpemu_return() local
810 si_code = SEGV_ACCERR; in process_fpemu_return()
812 si_code = SEGV_MAPERR; in process_fpemu_return()
[all …]
/linux/arch/parisc/kernel/
H A Dtraps.c481 int si_code; in handle_interruption() local
571 si_code = ILL_ILLOPC; in handle_interruption()
582 si_code = ILL_PRVOPC; in handle_interruption()
605 si_code = ILL_PRVREG; in handle_interruption()
607 force_sig_fault(SIGILL, si_code, in handle_interruption()

1234