/linux-6.1.9/arch/x86/mm/ |
D | extable.c | 98 struct pt_regs *regs, int trapnr) in ex_handler_fault() argument 100 regs->ax = trapnr; in ex_handler_fault() 105 struct pt_regs *regs, int trapnr) in ex_handler_sgx() argument 107 regs->ax = trapnr | SGX_ENCLS_FAULT_FLAG; in ex_handler_sgx() 134 struct pt_regs *regs, int trapnr) in ex_handler_uaccess() argument 136 …WARN_ONCE(trapnr == X86_TRAP_GP, "General protection fault in user access. Non-canonical address?"… in ex_handler_uaccess() 141 struct pt_regs *regs, int trapnr) in ex_handler_copy() argument 143 …WARN_ONCE(trapnr == X86_TRAP_GP, "General protection fault in user access. Non-canonical address?"… in ex_handler_copy() 144 return ex_handler_fault(fixup, regs, trapnr); in ex_handler_copy() 192 struct pt_regs *regs, int trapnr, int reg, int imm) in ex_handler_ucopy_len() argument [all …]
|
/linux-6.1.9/arch/x86/kernel/ |
D | traps.c | 105 do_trap_no_signal(struct task_struct *tsk, int trapnr, const char *str, in do_trap_no_signal() argument 113 if (trapnr < X86_TRAP_UD) { in do_trap_no_signal() 115 error_code, trapnr)) in do_trap_no_signal() 119 if (fixup_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal() 123 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 126 if (fixup_vdso_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal() 140 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 160 do_trap(int trapnr, int signr, char *str, struct pt_regs *regs, in do_trap() argument 165 if (!do_trap_no_signal(tsk, trapnr, str, regs, error_code)) in do_trap() 178 unsigned long trapnr, int signr, int sicode, void __user *addr) in do_error_trap() argument [all …]
|
D | head64.c | 411 void __init do_early_exception(struct pt_regs *regs, int trapnr) in do_early_exception() argument 413 if (trapnr == X86_TRAP_PF && in do_early_exception() 418 trapnr == X86_TRAP_VC && handle_vc_boot_ghcb(regs)) in do_early_exception() 421 if (trapnr == X86_TRAP_VE && tdx_early_handle_ve(regs)) in do_early_exception() 424 early_fixup_exception(regs, trapnr); in do_early_exception()
|
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.1.9/arch/x86/entry/vdso/ |
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.1.9/arch/x86/include/asm/ |
D | extable.h | 38 extern int fixup_exception(struct pt_regs *regs, int trapnr, 40 extern int fixup_bug(struct pt_regs *regs, int trapnr); 42 extern void early_fixup_exception(struct pt_regs *regs, int trapnr);
|
D | sgx.h | 396 int *trapnr); 398 void __user *secs, u64 *lepubkeyhash, int *trapnr);
|
D | vdso.h | 52 extern bool fixup_vdso_exception(struct pt_regs *regs, int trapnr,
|
D | kprobes.h | 115 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
D | setup.h | 55 extern void __init do_early_exception(struct pt_regs *regs, int trapnr);
|
/linux-6.1.9/arch/x86/kvm/vmx/ |
D | sgx.c | 103 static int sgx_inject_fault(struct kvm_vcpu *vcpu, gva_t gva, int trapnr) in sgx_inject_fault() argument 112 if (trapnr == PF_VECTOR && !boot_cpu_has(X86_FEATURE_SGX2)) { in sgx_inject_fault() 123 if ((trapnr == PF_VECTOR || !boot_cpu_has(X86_FEATURE_SGX2)) && in sgx_inject_fault() 149 int trapnr, ret; in __handle_encls_ecreate() local 199 ret = sgx_virt_ecreate(pageinfo, (void __user *)secs_hva, &trapnr); in __handle_encls_ecreate() 203 return sgx_inject_fault(vcpu, secs_gva, trapnr); in __handle_encls_ecreate() 294 int ret, trapnr; in handle_encls_einit() local 323 vmx->msr_ia32_sgxlepubkeyhash, &trapnr); in handle_encls_einit() 326 return sgx_inject_fault(vcpu, secs_gva, trapnr); in handle_encls_einit()
|
/linux-6.1.9/arch/x86/kernel/cpu/sgx/ |
D | virt.c | 332 int *trapnr) in sgx_virt_ecreate() argument 355 *trapnr = ENCLS_TRAPNR(ret); in sgx_virt_ecreate() 406 void __user *secs, u64 *lepubkeyhash, int *trapnr) in sgx_virt_einit() argument 426 *trapnr = ENCLS_TRAPNR(ret); in sgx_virt_einit()
|
/linux-6.1.9/arch/s390/kernel/ |
D | traps.c | 297 unsigned int trapnr; in __do_pgm_check() local 339 trapnr = regs->int_code & PGM_INT_CODE_MASK; in __do_pgm_check() 340 if (trapnr) in __do_pgm_check() 341 pgm_check_table[trapnr](regs); in __do_pgm_check()
|
D | kprobes.c | 457 static int kprobe_trap_handler(struct pt_regs *regs, int trapnr) in kprobe_trap_handler() argument 496 int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument 502 ret = kprobe_trap_handler(regs, trapnr); in kprobe_fault_handler() 533 kprobe_trap_handler(regs, args->trapnr)) in kprobe_exceptions_notify()
|
/linux-6.1.9/include/linux/ |
D | kdebug.h | 13 int trapnr; member
|
/linux-6.1.9/arch/riscv/include/asm/ |
D | kprobes.h | 40 int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr);
|
/linux-6.1.9/arch/csky/include/asm/ |
D | kprobes.h | 41 int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr);
|
/linux-6.1.9/arch/parisc/include/asm/ |
D | kprobes.h | 54 static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr) in kprobe_fault_handler() argument
|
/linux-6.1.9/arch/sh/include/asm/ |
D | kprobes.h | 48 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
/linux-6.1.9/arch/mips/include/asm/ |
D | kprobes.h | 44 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
/linux-6.1.9/arch/sparc/include/asm/ |
D | kprobes.h | 52 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
/linux-6.1.9/arch/s390/include/asm/ |
D | kprobes.h | 76 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
/linux-6.1.9/arch/powerpc/include/asm/ |
D | kprobes.h | 89 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
/linux-6.1.9/arch/ia64/include/asm/ |
D | kprobes.h | 109 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
|
/linux-6.1.9/arch/mips/kernel/ |
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()
|