| /linux-6.15/arch/x86/mm/ |
| H A D | extable.c | 99 struct pt_regs *regs, int trapnr) in ex_handler_fault() argument 101 regs->ax = trapnr; in ex_handler_fault() 106 struct pt_regs *regs, int trapnr) in ex_handler_sgx() argument 108 regs->ax = trapnr | SGX_ENCLS_FAULT_FLAG; in ex_handler_sgx() 159 struct pt_regs *regs, int trapnr, in ex_handler_uaccess() argument 212 struct pt_regs *regs, int trapnr, in ex_handler_ucopy_len() argument 334 return ex_handler_fault(e, regs, trapnr); in fixup_exception() 363 return ex_handler_sgx(e, regs, trapnr); in fixup_exception() 382 if (trapnr == X86_TRAP_NMI) in early_fixup_exception() 411 if (fixup_exception(regs, trapnr, regs->orig_ax, 0)) in early_fixup_exception() [all …]
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | traps.c | 194 if (trapnr < X86_TRAP_UD) { in do_trap_no_signal() 196 error_code, trapnr)) in do_trap_no_signal() 204 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 221 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 769 current->thread.trap_nr = trapnr; in gp_try_fixup_and_notify() 776 kprobe_fault_handler(regs, trapnr)) in gp_try_fixup_and_notify() 786 current->thread.trap_nr = trapnr; in gp_user_force_sig_segv() 1306 if (fixup_exception(regs, trapnr, 0, 0)) in math_error() 1310 task->thread.trap_nr = trapnr; in math_error() 1324 task->thread.trap_nr = trapnr; in math_error() [all …]
|
| H A D | head64.c | 368 void __init do_early_exception(struct pt_regs *regs, int trapnr) in do_early_exception() argument 370 if (trapnr == X86_TRAP_PF && in do_early_exception() 375 trapnr == X86_TRAP_VC && handle_vc_boot_ghcb(regs)) in do_early_exception() 378 if (trapnr == X86_TRAP_VE && tdx_early_handle_ve(regs)) in do_early_exception() 381 early_fixup_exception(regs, trapnr); in do_early_exception()
|
| H A D | kgdb.c | 483 kgdb_arch_handle_exception(args->trapnr, args->signr, in single_step_cont() 548 if (kgdb_handle_exception(args->trapnr, args->signr, cmd, regs)) in __kgdb_notify() 563 .trapnr = trap, in kgdb_ll_trap()
|
| /linux-6.15/arch/x86/entry/vdso/ |
| H A D | extable.c | 12 bool fixup_vdso_exception(struct pt_regs *regs, int trapnr, in fixup_vdso_exception() argument 25 if (trapnr == X86_TRAP_DB || trapnr == X86_TRAP_BP) in fixup_vdso_exception() 38 regs->di = trapnr; in fixup_vdso_exception()
|
| /linux-6.15/arch/x86/kvm/vmx/ |
| H A D | sgx.c | 104 static int sgx_inject_fault(struct kvm_vcpu *vcpu, gva_t gva, int trapnr) in sgx_inject_fault() argument 113 if (trapnr == PF_VECTOR && !boot_cpu_has(X86_FEATURE_SGX2)) { in sgx_inject_fault() 124 if ((trapnr == PF_VECTOR || !boot_cpu_has(X86_FEATURE_SGX2)) && in sgx_inject_fault() 150 int trapnr, ret; in __handle_encls_ecreate() local 207 ret = sgx_virt_ecreate(pageinfo, (void __user *)secs_hva, &trapnr); in __handle_encls_ecreate() 211 return sgx_inject_fault(vcpu, secs_gva, trapnr); in __handle_encls_ecreate() 302 int ret, trapnr; in handle_encls_einit() local 331 vmx->msr_ia32_sgxlepubkeyhash, &trapnr); in handle_encls_einit() 334 return sgx_inject_fault(vcpu, secs_gva, trapnr); in handle_encls_einit()
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | extable.h | 38 extern int fixup_exception(struct pt_regs *regs, int trapnr, 41 extern void early_fixup_exception(struct pt_regs *regs, int trapnr);
|
| H A D | sgx.h | 415 int *trapnr); 417 void __user *secs, u64 *lepubkeyhash, int *trapnr);
|
| H A D | vdso.h | 46 extern bool fixup_vdso_exception(struct pt_regs *regs, int trapnr,
|
| H A D | kprobes.h | 115 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
| H A D | setup.h | 56 extern void __init do_early_exception(struct pt_regs *regs, int trapnr);
|
| /linux-6.15/arch/x86/kernel/cpu/sgx/ |
| H A D | virt.c | 335 int *trapnr) in sgx_virt_ecreate() argument 358 *trapnr = ENCLS_TRAPNR(ret); in sgx_virt_ecreate() 409 void __user *secs, u64 *lepubkeyhash, int *trapnr) in sgx_virt_einit() argument 429 *trapnr = ENCLS_TRAPNR(ret); in sgx_virt_einit()
|
| /linux-6.15/arch/s390/kernel/ |
| H A D | traps.c | 294 unsigned int trapnr; in __do_pgm_check() local 343 trapnr = regs->int_code & PGM_INT_CODE_MASK; in __do_pgm_check() 344 if (trapnr) in __do_pgm_check() 345 pgm_check_table[trapnr](regs); in __do_pgm_check()
|
| H A D | kprobes.c | 398 static int kprobe_trap_handler(struct pt_regs *regs, int trapnr) in kprobe_trap_handler() argument 437 int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument 443 ret = kprobe_trap_handler(regs, trapnr); in kprobe_fault_handler() 474 kprobe_trap_handler(regs, args->trapnr)) in kprobe_exceptions_notify()
|
| /linux-6.15/include/linux/ |
| H A D | kdebug.h | 13 int trapnr; member
|
| /linux-6.15/arch/riscv/include/asm/ |
| H A D | kprobes.h | 40 int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr);
|
| /linux-6.15/arch/csky/include/asm/ |
| H A D | kprobes.h | 41 int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr);
|
| /linux-6.15/arch/sh/include/asm/ |
| H A D | kprobes.h | 48 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
| /linux-6.15/arch/parisc/include/asm/ |
| H A D | kprobes.h | 55 static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument
|
| /linux-6.15/arch/mips/include/asm/ |
| H A D | kprobes.h | 44 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
| /linux-6.15/arch/sparc/include/asm/ |
| H A D | kprobes.h | 50 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
| /linux-6.15/arch/loongarch/include/asm/ |
| H A D | kprobes.h | 48 bool kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
| /linux-6.15/arch/s390/include/asm/ |
| H A D | kprobes.h | 75 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | kprobes.h | 87 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
| /linux-6.15/arch/mips/kernel/ |
| H A D | kprobes.c | 408 int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument 448 && kprobe_fault_handler(args->regs, args->trapnr)) in kprobe_exceptions_notify()
|