| /linux-6.15/arch/x86/mm/ |
| H A D | fault.c | 138 if (error_code & X86_PF_INSTR) in is_prefetch() 587 if (error_code & X86_PF_RMP) in show_fault_oops() 614 unsigned long *error_code) in sanitize_error_code() argument 626 *error_code |= X86_PF_PROT; in sanitize_error_code() 630 unsigned long error_code) in set_signal_archinfo() argument 635 tsk->thread.error_code = error_code | X86_PF_USER; in set_signal_archinfo() 861 if (error_code & X86_PF_PK) in bad_area_access_from_pkeys() 1062 if (error_code & X86_PF_PK) in access_error() 1211 unsigned long error_code, in do_user_addr_fault() argument 1292 if (error_code & X86_PF_SHSTK) in do_user_addr_fault() [all …]
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | cet.c | 30 unsigned int cpec = error_code & CP_EC; in cp_err_string() 41 cp_err_string(error_code)); in do_unexpected_cp() 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() 114 if ((error_code & CP_EC) != CP_ENDBR) { in do_kernel_cp_fault() 115 do_unexpected_cp(regs, error_code); in do_kernel_cp_fault() 152 do_user_cp_fault(regs, error_code); in DEFINE_IDTENTRY_ERRORCODE() 154 do_unexpected_cp(regs, error_code); in DEFINE_IDTENTRY_ERRORCODE() 157 do_kernel_cp_fault(regs, error_code); in DEFINE_IDTENTRY_ERRORCODE() [all …]
|
| H A D | traps.c | 196 error_code, trapnr)) in do_trap_no_signal() 203 tsk->thread.error_code = error_code; in do_trap_no_signal() 205 die(str, regs, error_code); in do_trap_no_signal() 220 tsk->thread.error_code = error_code; in do_trap_no_signal() 441 error_code, BUS_ADRALN, NULL); in DEFINE_IDTENTRY_ERRORCODE() 567 tsk->thread.error_code = error_code; in DEFINE_IDTENTRY_DF() 768 current->thread.error_code = error_code; in gp_try_fixup_and_notify() 785 current->thread.error_code = error_code; in gp_user_force_sig_segv() 828 if (error_code) in DEFINE_IDTENTRY_ERRORCODE() 1309 task->thread.error_code = 0; in math_error() [all …]
|
| /linux-6.15/arch/sh/mm/ |
| H A D | fault.c | 240 die("Oops", regs, error_code); in no_context() 259 no_context(regs, error_code, address); in __bad_area_nosemaphore() 307 no_context(regs, error_code, address); in do_sigbus() 322 no_context(regs, error_code, address); in mm_fault_error() 336 no_context(regs, error_code, address); in mm_fault_error() 348 do_sigbus(regs, error_code, address); in mm_fault_error() 350 bad_area(regs, error_code, address); in mm_fault_error() 360 if (error_code & FAULT_CODE_WRITE) { in access_error() 390 unsigned long error_code, in do_page_fault() argument 457 set_thread_fault_code(error_code); in do_page_fault() [all …]
|
| H A D | tlbex_32.c | 23 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.15/arch/x86/entry/ |
| H A D | entry_fred.c | 184 return exc_page_fault(regs, error_code); in fred_hwexc() 210 default: return fred_bad_type(regs, error_code); in fred_hwexc() 220 default: return fred_bad_type(regs, error_code); in fred_swexc() 226 unsigned long error_code = regs->orig_ax; in fred_entry_from_user() local 239 return fred_hwexc(regs, error_code); in fred_entry_from_user() 247 return fred_swexc(regs, error_code); in fred_entry_from_user() 253 return fred_bad_type(regs, error_code); in fred_entry_from_user() 258 unsigned long error_code = regs->orig_ax; in fred_entry_from_kernel() local 271 return fred_hwexc(regs, error_code); in fred_entry_from_kernel() 277 return fred_swexc(regs, error_code); in fred_entry_from_kernel() [all …]
|
| /linux-6.15/arch/x86/include/asm/trace/ |
| H A D | exceptions.h | 17 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.15/arch/x86/boot/compressed/ |
| H A D | idt_handlers_64.S | 15 .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
|
| H A D | ident_map_64.c | 345 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.15/drivers/platform/x86/intel/ifs/ |
| H A D | runtest.c | 95 scan_test_status[status.error_code]); in message_not_tested() 96 } else if (status.error_code == IFS_SW_TIMEOUT) { in message_not_tested() 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() 442 sbaf_test_status[status.error_code]); in sbaf_message_not_tested() 443 } else if (status.error_code == IFS_SW_TIMEOUT) { in sbaf_message_not_tested() 473 return !(status.sbaf_status || status.error_code); in sbaf_bundle_completed() 562 status.error_code = IFS_SW_TIMEOUT; in ifs_sbaf_test_core() 589 if (status.error_code == IFS_NO_ERROR) in ifs_sbaf_test_core() [all …]
|
| H A D | ifs.h | 191 u32 error_code :8; member 203 u32 error_code :8; member 218 u32 error_code :8; member 228 u32 error_code :8; member 269 u32 error_code :8; member 308 u32 error_code :8; member
|
| /linux-6.15/fs/orangefs/ |
| H A D | orangefs-utils.c | 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() 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() 521 error_code = -PINT_errno_mapping[i]; in orangefs_normalize_to_errno() 523 error_code = -EINVAL; in orangefs_normalize_to_errno() 531 error_code = -EINVAL; in orangefs_normalize_to_errno() [all …]
|
| /linux-6.15/arch/microblaze/mm/ |
| H A D | fault.c | 87 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.15/arch/powerpc/mm/ |
| H A D | fault.c | 199 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() 448 if (unlikely(!is_user && bad_kernel_fault(regs, error_code, address, is_write))) { in ___do_page_fault() 494 (error_code & DSISR_KEYFAULT), vma))) { in ___do_page_fault() 536 (error_code & DSISR_KEYFAULT), vma))) in ___do_page_fault()
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | idtentry.h | 89 __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; \ 353 __visible noinstr void user_##func(struct pt_regs *regs, unsigned long error_code) 428 unsigned long error_code, \ [all …]
|
| H A D | vsyscall.h | 17 extern bool emulate_vsyscall(unsigned long error_code, 21 static inline bool emulate_vsyscall(unsigned long error_code, in emulate_vsyscall() argument
|
| /linux-6.15/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_hsi.h | 28 __le16 error_code; member 88 __le16 error_code; member 582 __le16 error_code; member 613 __le16 error_code; member 653 __le16 error_code; member 1598 __le16 error_code; member 1621 __le16 error_code; member 1645 __le16 error_code; member 1669 __le16 error_code; member 1734 __le16 error_code; member [all …]
|
| /linux-6.15/tools/testing/selftests/kvm/x86/ |
| H A D | nested_exceptions_test.c | 75 uint32_t error_code) in svm_run_l2() argument 87 GUEST_ASSERT_EQ(ctrl->exit_info_1, error_code); in svm_run_l2() 114 static void vmx_run_l2(void *l2_code, int vector, uint32_t error_code) in vmx_run_l2() argument 125 GUEST_ASSERT_EQ(vmreadz(VM_EXIT_INTR_ERROR_CODE), error_code); in vmx_run_l2() 206 events.exception.error_code = SS_ERROR_CODE; in queue_ss_exception() 253 TEST_ASSERT_EQ(events.exception.error_code, SS_ERROR_CODE); in main()
|
| H A D | smaller_maxphyaddr_emulation_test.c | 23 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.15/drivers/thunderbolt/ |
| H A D | dma_test.c | 108 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.15/arch/x86/coco/sev/ |
| H A D | core.c | 313 ctxt->fi.error_code = 0; in __vc_decode_user_insn() 425 error_code |= X86_PF_USER; in vc_write_mem() 428 ctxt->fi.error_code = error_code; in vc_write_mem() 503 error_code |= X86_PF_USER; in vc_read_mem() 506 ctxt->fi.error_code = error_code; in vc_read_mem() 527 ctxt->fi.error_code = 0; in vc_slow_virt_to_phys() 569 ctxt->fi.error_code = 0; in vc_ioio_check() 576 long error_code = ctxt->fi.error_code; in vc_forward_exception() local 1883 ctxt->fi.error_code = 0; in vc_handle_mmio_movs() 2015 ctxt->fi.error_code = 0; in vc_handle_dr7_write() [all …]
|
| /linux-6.15/arch/arm64/kvm/ |
| H A D | pauth.c | 128 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.15/arch/x86/um/shared/sysdep/ |
| H A D | faultinfo_64.h | 19 int error_code; /* in ptrace_faultinfo misleadingly called is_write */ member 24 #define FAULT_WRITE(fi) ((fi).error_code & 2)
|
| H A D | faultinfo_32.h | 19 int error_code; /* in ptrace_faultinfo misleadingly called is_write */ member 24 #define FAULT_WRITE(fi) ((fi).error_code & 2)
|
| /linux-6.15/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_vf_error.c | 34 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()
|