Home
last modified time | relevance | path

Searched refs:fault_code (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/tools/testing/selftests/powerpc/mm/
Dexec_prot.c26 static volatile sig_atomic_t fault_code; variable
33 static bool is_fault_expected(int fault_code) in is_fault_expected() argument
35 if (fault_code == SEGV_ACCERR) in is_fault_expected()
39 if (fault_code == SEGV_PKUERR && pkeys_supported) in is_fault_expected()
56 fault_code = sinfo->si_code; in segv_handler()
72 if (is_fault_expected(fault_code)) { in segv_handler()
93 fault_code = -1; in check_exec_fault()
103 FAIL_IF(!is_fault_expected(fault_code)); in check_exec_fault()
170 fault_code = -1; in test()
175 FAIL_IF(remaining_faults != 0 || !is_fault_expected(fault_code)); in test()
[all …]
Dbad_accesses.c28 static volatile int fault_code; variable
34 fault_code = info->si_code; in segv_handler()
43 fault_code = 0; in bad_access()
59 FAIL_IF(fault_code == SEGV_MAPERR && \ in bad_access()
62 FAIL_IF(fault_code != SEGV_MAPERR && fault_code != SEGV_BNDERR); in bad_access()
Dpkey_exec_prot.c24 static volatile sig_atomic_t fault_pkey, fault_code, fault_type; variable
44 fault_code = sinfo->si_code; in segv_handler()
60 switch (fault_code) { in segv_handler()
200 FAIL_IF(remaining_faults != 0 || fault_code != SEGV_ACCERR); in test()
221 FAIL_IF(remaining_faults != 0 || fault_code != SEGV_PKUERR); in test()
238 FAIL_IF(remaining_faults != 0 || fault_code != SEGV_ACCERR); in test()
276 FAIL_IF(fault_code != SEGV_PKUERR); in test()
/Linux-v6.6/arch/sparc/mm/
Dfault_64.c162 int fault_code) in do_fault_siginfo() argument
166 if (fault_code & FAULT_CODE_ITLB) { in do_fault_siginfo()
200 int fault_code, unsigned int insn, in do_kernel_fault() argument
213 if (!(fault_code & (FAULT_CODE_WRITE|FAULT_CODE_ITLB)) && in do_kernel_fault()
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
278 fault_code = get_thread_fault_code(); in do_sparc64_fault()
286 if ((fault_code & FAULT_CODE_ITLB) && in do_sparc64_fault()
287 (fault_code & FAULT_CODE_DTLB)) in do_sparc64_fault()
335 if (fault_code & FAULT_CODE_BAD_RA) in do_sparc64_fault()
[all …]
/Linux-v6.6/arch/arm64/kernel/probes/
Duprobes.c67 current->thread.fault_code = UPROBE_INV_FAULT_CODE; in arch_uprobe_pre_xol()
81 WARN_ON_ONCE(current->thread.fault_code != UPROBE_INV_FAULT_CODE); in arch_uprobe_post_xol()
97 if (t->thread.fault_code != UPROBE_INV_FAULT_CODE) in arch_uprobe_xol_was_trapped()
/Linux-v6.6/drivers/spi/
Dspi-tle62x0.c78 static unsigned char *decode_fault(unsigned int fault_code) in decode_fault() argument
80 fault_code &= 3; in decode_fault()
82 switch (fault_code) { in decode_fault()
/Linux-v6.6/drivers/scsi/mpt3sas/
Dmpt3sas_base.h1747 void mpt3sas_base_fault_info(struct MPT3SAS_ADAPTER *ioc , u16 fault_code);
1748 #define mpt3sas_print_fault_code(ioc, fault_code) \ argument
1750 mpt3sas_base_fault_info(ioc, fault_code); } while (0)
1752 void mpt3sas_base_coredump_info(struct MPT3SAS_ADAPTER *ioc, u16 fault_code);
1753 #define mpt3sas_print_coredump_info(ioc, fault_code) \ argument
1755 mpt3sas_base_coredump_info(ioc, fault_code); } while (0)
Dmpt3sas_base.c892 mpt3sas_base_fault_info(struct MPT3SAS_ADAPTER *ioc, u16 fault_code) in mpt3sas_base_fault_info() argument
894 ioc_err(ioc, "fault_state(0x%04x)!\n", fault_code); in mpt3sas_base_fault_info()
905 mpt3sas_base_coredump_info(struct MPT3SAS_ADAPTER *ioc, u16 fault_code) in mpt3sas_base_coredump_info() argument
907 ioc_err(ioc, "coredump_state(0x%04x)!\n", fault_code); in mpt3sas_base_coredump_info()
/Linux-v6.6/arch/arm64/kernel/
Dtraps.c247 unsigned long esr = tsk->thread.fault_code; in arm64_show_signal()
297 current->thread.fault_code = err; in arm64_notify_die()
913 current->thread.fault_code = esr; in bad_el0_sync()
Dsignal.c871 if (add_all || current->thread.fault_code) { in setup_sigframe_layout()
968 __put_user_error(current->thread.fault_code, &esr_ctx->esr, err); in setup_sigframe()
Dsignal32.c384 __put_user_error(!!(current->thread.fault_code & ESR_ELx_WNR) << in compat_setup_sigframe()
/Linux-v6.6/arch/arm64/include/asm/
Dprocessor.h168 unsigned long fault_code; /* ESR_EL1 value */ member
/Linux-v6.6/arch/arm64/mm/
Dfault.c475 current->thread.fault_code = esr; in set_thread_esr()