Home
last modified time | relevance | path

Searched refs:error_code (Results 1 – 25 of 202) sorted by relevance

123456789

/linux-6.12.1/arch/x86/mm/
Dfault.c125 is_prefetch(struct pt_regs *regs, unsigned long error_code, unsigned long addr) in is_prefetch() argument
139 if (error_code & X86_PF_INSTR) in is_prefetch()
466 static int is_f00f_bug(struct pt_regs *regs, unsigned long error_code, in is_f00f_bug() argument
470 if (boot_cpu_has_bug(X86_BUG_F00F) && !(error_code & X86_PF_USER) && in is_f00f_bug()
511 show_fault_oops(struct pt_regs *regs, unsigned long error_code, unsigned long address) in show_fault_oops() argument
516 if (error_code & X86_PF_INSTR) { in show_fault_oops()
545 (error_code & X86_PF_USER) ? "user" : "supervisor", in show_fault_oops()
546 (error_code & X86_PF_INSTR) ? "instruction fetch" : in show_fault_oops()
547 (error_code & X86_PF_WRITE) ? "write access" : in show_fault_oops()
550 pr_alert("#PF: error_code(0x%04lx) - %s\n", error_code, in show_fault_oops()
[all …]
/linux-6.12.1/arch/x86/kernel/
Dcet.c28 static const char *cp_err_string(unsigned long error_code) in cp_err_string() argument
30 unsigned int cpec = error_code & CP_EC; in cp_err_string()
37 static void do_unexpected_cp(struct pt_regs *regs, unsigned long error_code) in do_unexpected_cp() argument
41 cp_err_string(error_code)); in do_unexpected_cp()
47 static void do_user_cp_fault(struct pt_regs *regs, unsigned long error_code) in do_user_cp_fault() argument
63 tsk->thread.error_code = error_code; in do_user_cp_fault()
71 regs->ip, regs->sp, ssp, error_code, in do_user_cp_fault()
72 cp_err_string(error_code), in do_user_cp_fault()
73 error_code & CP_ENCL ? " in enclave" : ""); in do_user_cp_fault()
84 static void do_kernel_cp_fault(struct pt_regs *regs, unsigned long error_code) in do_kernel_cp_fault() argument
[all …]
Dtraps.c138 struct pt_regs *regs, long error_code) in do_trap_no_signal() argument
147 error_code, trapnr)) in do_trap_no_signal()
151 if (fixup_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal()
154 tsk->thread.error_code = error_code; in do_trap_no_signal()
156 die(str, regs, error_code); in do_trap_no_signal()
158 if (fixup_vdso_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal()
171 tsk->thread.error_code = error_code; in do_trap_no_signal()
179 struct pt_regs *regs, long error_code) in show_signal() argument
185 regs->ip, regs->sp, error_code); in show_signal()
193 long error_code, int sicode, void __user *addr) in do_trap() argument
[all …]
/linux-6.12.1/arch/sh/mm/
Dfault.c222 no_context(struct pt_regs *regs, unsigned long error_code, in no_context() argument
240 die("Oops", regs, error_code); in no_context()
244 __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, in __bad_area_nosemaphore() argument
259 no_context(regs, error_code, address); in __bad_area_nosemaphore()
263 bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, in bad_area_nosemaphore() argument
266 __bad_area_nosemaphore(regs, error_code, address, SEGV_MAPERR); in bad_area_nosemaphore()
270 __bad_area(struct pt_regs *regs, unsigned long error_code, in __bad_area() argument
281 __bad_area_nosemaphore(regs, error_code, address, si_code); in __bad_area()
285 bad_area(struct pt_regs *regs, unsigned long error_code, unsigned long address) in bad_area() argument
287 __bad_area(regs, error_code, address, SEGV_MAPERR); in bad_area()
[all …]
Dtlbex_32.c23 handle_tlbmiss(struct pt_regs *regs, unsigned long error_code, in handle_tlbmiss() argument
60 if (unlikely(error_code && !pte_write(entry))) in handle_tlbmiss()
63 if (error_code) in handle_tlbmiss()
75 if (error_code == FAULT_CODE_INITIAL) in handle_tlbmiss()
79 set_thread_fault_code(error_code); in handle_tlbmiss()
/linux-6.12.1/arch/x86/entry/
Dentry_fred.c21 static noinstr void fred_bad_type(struct pt_regs *regs, unsigned long error_code) in fred_bad_type() argument
31 regs->fred_ss.type, regs->fred_ss.vector, error_code, in fred_bad_type()
33 die("invalid or fatal FRED event", regs, error_code); in fred_bad_type()
41 regs->fred_ss.type, regs->fred_ss.vector, error_code, in fred_bad_type()
44 if (__die("Invalid or fatal FRED event", regs, error_code)) in fred_bad_type()
180 static noinstr void fred_hwexc(struct pt_regs *regs, unsigned long error_code) in fred_hwexc() argument
184 return exc_page_fault(regs, error_code); in fred_hwexc()
192 case X86_TRAP_DF: return exc_double_fault(regs, error_code); in fred_hwexc()
193 case X86_TRAP_TS: return exc_invalid_tss(regs, error_code); in fred_hwexc()
194 case X86_TRAP_NP: return exc_segment_not_present(regs, error_code); in fred_hwexc()
[all …]
/linux-6.12.1/arch/x86/include/asm/trace/
Dexceptions.h17 unsigned long error_code),
19 TP_ARGS(address, regs, error_code),
24 __field( unsigned long, error_code )
30 __entry->error_code = error_code;
35 __entry->error_code) );
40 unsigned long error_code), \
41 TP_ARGS(address, regs, error_code), \
/linux-6.12.1/arch/x86/boot/compressed/
Didt_handlers_64.S15 .macro EXCEPTION_HANDLER name function error_code=0 argument
19 .if \error_code == 0
72 EXCEPTION_HANDLER boot_page_fault do_boot_page_fault error_code=1
73 EXCEPTION_HANDLER boot_nmi_trap do_boot_nmi_trap error_code=0
76 EXCEPTION_HANDLER boot_stage1_vc do_vc_no_ghcb error_code=1
77 EXCEPTION_HANDLER boot_stage2_vc do_boot_stage2_vc error_code=1
Dident_map_64.c345 static void do_pf_error(const char *msg, unsigned long error_code, in do_pf_error() argument
351 error_puthex(error_code); in do_pf_error()
361 void do_boot_page_fault(struct pt_regs *regs, unsigned long error_code) in do_boot_page_fault() argument
378 if (error_code & (X86_PF_PROT | X86_PF_USER | X86_PF_RSVD)) in do_boot_page_fault()
379 do_pf_error("Unexpected page-fault:", error_code, address, regs->ip); in do_boot_page_fault()
381 do_pf_error("Page-fault on GHCB page:", error_code, address, regs->ip); in do_boot_page_fault()
390 void do_boot_nmi_trap(struct pt_regs *regs, unsigned long error_code) in do_boot_nmi_trap() argument
/linux-6.12.1/drivers/platform/x86/intel/ifs/
Druntest.c92 if (status.error_code < ARRAY_SIZE(scan_test_status)) { in message_not_tested()
95 scan_test_status[status.error_code]); in message_not_tested()
96 } else if (status.error_code == IFS_SW_TIMEOUT) { in message_not_tested()
99 } else if (status.error_code == IFS_SW_PARTIAL_COMPLETION) { in message_not_tested()
128 enum ifs_status_err_code err_code = status.error_code; in can_restart()
264 status.error_code = IFS_SW_TIMEOUT; in ifs_test_core()
282 if (status.error_code == IFS_NO_ERROR) in ifs_test_core()
283 status.error_code = IFS_SW_PARTIAL_COMPLETION; in ifs_test_core()
302 } else if (status.control_error || status.error_code) { in ifs_test_core()
439 if (status.error_code < ARRAY_SIZE(sbaf_test_status)) { in sbaf_message_not_tested()
[all …]
Difs.h192 u32 error_code :8; member
204 u32 error_code :8; member
219 u32 error_code :8; member
229 u32 error_code :8; member
270 u32 error_code :8; member
309 u32 error_code :8; member
/linux-6.12.1/fs/orangefs/
Dorangefs-utils.c474 int orangefs_normalize_to_errno(__s32 error_code) in orangefs_normalize_to_errno() argument
479 if (error_code == 0) { in orangefs_normalize_to_errno()
485 } else if (error_code > 0) { in orangefs_normalize_to_errno()
488 error_code = -error_code; in orangefs_normalize_to_errno()
500 if ((-error_code) & ORANGEFS_NON_ERRNO_ERROR_BIT) { in orangefs_normalize_to_errno()
501 if (((-error_code) & in orangefs_normalize_to_errno()
508 error_code = -ETIMEDOUT; in orangefs_normalize_to_errno()
513 error_code); in orangefs_normalize_to_errno()
514 error_code = -EINVAL; in orangefs_normalize_to_errno()
518 } else if ((-error_code) & ORANGEFS_ERROR_BIT) { in orangefs_normalize_to_errno()
[all …]
/linux-6.12.1/arch/microblaze/mm/
Dfault.c87 unsigned long error_code) in do_page_fault() argument
92 int is_write = error_code & ESR_S; in do_page_fault()
97 regs->esr = error_code; in do_page_fault()
106 if ((error_code & 0x13) == 0x13 || (error_code & 0x11) == 0x11) in do_page_fault()
210 if (unlikely(error_code & 0x08000000)) in do_page_fault()
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hsi.h28 __le16 error_code; member
84 __le16 error_code; member
574 __le16 error_code; member
605 __le16 error_code; member
645 __le16 error_code; member
1553 __le16 error_code; member
1576 __le16 error_code; member
1600 __le16 error_code; member
1624 __le16 error_code; member
1689 __le16 error_code; member
[all …]
/linux-6.12.1/arch/powerpc/mm/
Dfault.c199 static bool bad_kernel_fault(struct pt_regs *regs, unsigned long error_code, in bad_kernel_fault() argument
314 unsigned long error_code, unsigned long address) in sanity_check_fault() argument
364 WARN_ON_ONCE(error_code & DSISR_PROTFAULT); in sanity_check_fault()
414 unsigned long error_code) in ___do_page_fault() argument
421 int is_write = page_fault_is_write(error_code); in ___do_page_fault()
428 if (unlikely(page_fault_is_bad(error_code))) { in ___do_page_fault()
437 sanity_check_fault(is_write, is_user, error_code, address); in ___do_page_fault()
444 if (unlikely(!is_user && bad_kernel_fault(regs, error_code, address, is_write))) { in ___do_page_fault()
488 (error_code & DSISR_KEYFAULT), vma))) { in ___do_page_fault()
530 (error_code & DSISR_KEYFAULT), vma))) in ___do_page_fault()
/linux-6.12.1/arch/x86/include/asm/
Didtentry.h89 __visible void func(struct pt_regs *regs, unsigned long error_code)
100 unsigned long error_code); \
103 unsigned long error_code) \
108 __##func (regs, error_code); \
114 unsigned long error_code)
181 __visible noinstr void func(struct pt_regs *regs, unsigned long error_code)
210 unsigned long error_code) \
213 u32 vector = (u32)(u8)error_code; \
352 __visible noinstr void kernel_##func(struct pt_regs *regs, unsigned long error_code); \
353 __visible noinstr void user_##func(struct pt_regs *regs, unsigned long error_code)
[all …]
Dvsyscall.h17 extern bool emulate_vsyscall(unsigned long error_code,
21 static inline bool emulate_vsyscall(unsigned long error_code, in emulate_vsyscall() argument
/linux-6.12.1/arch/x86/coco/sev/
Dcore.c321 ctxt->fi.error_code = X86_PF_INSTR | X86_PF_USER; in __vc_decode_user_insn()
327 ctxt->fi.error_code = 0; in __vc_decode_user_insn()
349 ctxt->fi.error_code = X86_PF_INSTR; in __vc_decode_kern_insn()
372 unsigned long error_code = X86_PF_PROT | X86_PF_WRITE; in vc_write_mem() local
439 error_code |= X86_PF_USER; in vc_write_mem()
442 ctxt->fi.error_code = error_code; in vc_write_mem()
451 unsigned long error_code = X86_PF_PROT; in vc_read_mem() local
517 error_code |= X86_PF_USER; in vc_read_mem()
520 ctxt->fi.error_code = error_code; in vc_read_mem()
541 ctxt->fi.error_code = 0; in vc_slow_virt_to_phys()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dnested_exceptions_test.c75 uint32_t error_code) in svm_run_l2() argument
87 GUEST_ASSERT_EQ(ctrl->exit_info_1, error_code); in svm_run_l2()
113 static void vmx_run_l2(void *l2_code, int vector, uint32_t error_code) in vmx_run_l2() argument
124 GUEST_ASSERT_EQ(vmreadz(VM_EXIT_INTR_ERROR_CODE), error_code); in vmx_run_l2()
204 events.exception.error_code = SS_ERROR_CODE; in queue_ss_exception()
251 TEST_ASSERT_EQ(events.exception.error_code, SS_ERROR_CODE); in main()
Dsmaller_maxphyaddr_emulation_test.c23 uint64_t error_code; in guest_code() local
26 vector = kvm_asm_safe_ec(FLDS_MEM_EAX, error_code, "a"(MEM_REGION_GVA)); in guest_code()
39 GUEST_ASSERT(error_code & PFERR_RSVD_MASK); in guest_code()
/linux-6.12.1/drivers/thunderbolt/
Ddma_test.c108 enum dma_test_test_error error_code; member
490 if (!dt->error_code) { in dma_test_check_errors()
492 dt->error_code = DMA_TEST_SPEED_ERROR; in dma_test_check_errors()
494 dt->error_code = DMA_TEST_WIDTH_ERROR; in dma_test_check_errors()
498 dt->error_code = DMA_TEST_PACKET_ERROR; in dma_test_check_errors()
525 dt->error_code = DMA_TEST_NO_ERROR; in test_store()
537 dt->error_code = DMA_TEST_CONFIG_ERROR; in test_store()
544 dt->error_code = DMA_TEST_BONDING_ERROR; in test_store()
551 dt->error_code = DMA_TEST_DMA_ERROR; in test_store()
560 dt->error_code = DMA_TEST_BUFFER_ERROR; in test_store()
[all …]
/linux-6.12.1/arch/arm64/kvm/
Dpauth.c128 u64 mask, error_code; in corrupt_addr() local
140 error_code = 2 << shift; in corrupt_addr()
142 error_code = 1 << shift; in corrupt_addr()
145 ptr |= error_code; in corrupt_addr()
/linux-6.12.1/arch/x86/um/shared/sysdep/
Dfaultinfo_64.h19 int error_code; /* in ptrace_faultinfo misleadingly called is_write */ member
24 #define FAULT_WRITE(fi) ((fi).error_code & 2)
Dfaultinfo_32.h19 int error_code; /* in ptrace_faultinfo misleadingly called is_write */ member
24 #define FAULT_WRITE(fi) ((fi).error_code & 2)
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vf_error.c34 uint16_t error_code; in amdgpu_vf_error_put() local
39 error_code = AMDGIM_ERROR_CODE(AMDGIM_ERROR_CATEGORY_VF, sub_error_code); in amdgpu_vf_error_put()
43 adev->virt.vf_errors.code [index] = error_code; in amdgpu_vf_error_put()

123456789