Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/arch/arm64/include/asm/
Dprocessor.h168 unsigned long fault_code; /* ESR_EL1 value */ member
/linux-6.6.21/arch/arm64/mm/
Dfault.c475 current->thread.fault_code = esr; in set_thread_esr()