/linux-6.6.21/tools/testing/selftests/powerpc/mm/ |
D | pkey_exec_prot.c | 26 static volatile unsigned int *fault_addr; variable 33 if (sinfo->si_addr != (void *) fault_addr) in trap_handler() 47 if (sinfo->si_addr != (void *) fault_addr) { in segv_handler() 162 fault_addr = insns; in test() 180 printf("read from %p, pkey permissions are %s\n", fault_addr, in test() 182 i = *fault_addr; in test() 197 printf("write to %p, pkey permissions are %s\n", fault_addr, in test() 199 *fault_addr = PPC_INST_TRAP; in test() 218 printf("read from %p, pkey permissions are %s\n", fault_addr, in test() 220 i = *fault_addr; in test() [all …]
|
D | pkey_siginfo.c | 32 static volatile unsigned int *volatile fault_addr; variable 50 if (sinfo->si_addr != (void *) fault_addr) { in segv_handler() 68 pgstart = (void *) ((unsigned long) fault_addr & ~(pgsize - 1)); in segv_handler() 179 fault_addr = base + (rand() % numinsns); in protect_access() 190 FAIL_IF_EXIT(*fault_addr != PPC_INST_NOP && in protect_access() 191 *fault_addr != PPC_INST_BLR); in protect_access() 200 *fault_addr = PPC_INST_BLR; in protect_access() 201 FAIL_IF_EXIT(*fault_addr != PPC_INST_BLR); in protect_access() 209 : : "r"(fault_addr) : "ctr", "lr"); in protect_access()
|
D | bad_accesses.c | 29 static volatile unsigned long fault_addr; variable 35 fault_addr = (unsigned long)info->si_addr; in segv_handler() 44 fault_addr = 0; in bad_access() 60 (fault_addr < PAGE_OFFSET || fault_addr >= kernel_virt_end)); in bad_access()
|
D | exec_prot.c | 28 static volatile unsigned int *fault_addr; variable 48 if (sinfo->si_addr != (void *)fault_addr) in trap_handler() 59 if (sinfo->si_addr != (void *)fault_addr) { in segv_handler() 164 fault_addr = insns; in test() 174 i = *fault_addr; in test() 186 *fault_addr = PPC_INST_NOP; in test()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_mod_race.c | 63 static int test_setup_uffd(void *fault_addr) in test_setup_uffd() argument 80 uffd_register.range.start = (unsigned long)fault_addr; in test_setup_uffd() 92 void *fault_addr, *skel_fail; in test_bpf_mod_race_config() local 99 fault_addr = mmap(0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in test_bpf_mod_race_config() 100 if (!ASSERT_NEQ(fault_addr, MAP_FAILED, "mmap for uffd registration")) in test_bpf_mod_race_config() 112 skel->rodata->bpf_mod_race_config.fault_addr = fault_addr; in test_bpf_mod_race_config() 120 uffd = test_setup_uffd(fault_addr); in test_bpf_mod_race_config() 184 munmap(fault_addr, 4096); in test_bpf_mod_race_config()
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | extable.h | 34 #define ASM_EXCEPTIONTABLE_ENTRY( fault_addr, except_addr, opcode )\ argument 37 ".word (" #fault_addr " - .), (" #except_addr " - .)\n" \ 49 #define ASM_EXCEPTIONTABLE_ENTRY_EFAULT( fault_addr, except_addr, register )\ argument 50 ASM_EXCEPTIONTABLE_ENTRY( fault_addr, except_addr + 1, "or %%r0,%%r0," register)
|
/linux-6.6.21/arch/riscv/kvm/ |
D | vcpu_exit.c | 17 unsigned long hva, fault_addr; in gstage_page_fault() local 22 fault_addr = (trap->htval << 2) | (trap->stval & 0x3); in gstage_page_fault() 23 gfn = fault_addr >> PAGE_SHIFT; in gstage_page_fault() 32 fault_addr, in gstage_page_fault() 36 fault_addr, in gstage_page_fault() 43 ret = kvm_riscv_gstage_map(vcpu, memslot, fault_addr, hva, in gstage_page_fault()
|
D | vcpu_insn.c | 454 unsigned long fault_addr, in kvm_riscv_vcpu_mmio_load() argument 532 if (fault_addr & (len - 1)) in kvm_riscv_vcpu_mmio_load() 544 run->mmio.phys_addr = fault_addr; in kvm_riscv_vcpu_mmio_load() 548 if (!kvm_io_bus_read(vcpu, KVM_MMIO_BUS, fault_addr, len, data_buf)) { in kvm_riscv_vcpu_mmio_load() 576 unsigned long fault_addr, in kvm_riscv_vcpu_mmio_store() argument 647 if (fault_addr & (len - 1)) in kvm_riscv_vcpu_mmio_store() 677 run->mmio.phys_addr = fault_addr; in kvm_riscv_vcpu_mmio_store() 682 fault_addr, len, run->mmio.data)) { in kvm_riscv_vcpu_mmio_store()
|
/linux-6.6.21/arch/x86/mm/ |
D | extable.c | 58 unsigned long fault_addr) in ex_handler_zeropad() argument 86 if (fault_addr != addr + sizeof(long)) in ex_handler_zeropad() 234 unsigned long fault_addr) in fixup_exception() argument 269 return ex_handler_uaccess(e, regs, trapnr, fault_addr); in fixup_exception() 300 return ex_handler_ucopy_len(e, regs, trapnr, fault_addr, reg, imm); in fixup_exception() 302 return ex_handler_zeropad(e, regs, fault_addr); in fixup_exception()
|
/linux-6.6.21/arch/mips/include/asm/ |
D | fpu_emulator.h | 170 void __user **fault_addr); 171 void force_fcr31_sig(unsigned long fcr31, void __user *fault_addr, 173 int process_fpemu_return(int sig, void __user *fault_addr,
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | bpf_mod_race.c | 12 void *fault_addr; member 79 bpf_copy_from_user(&dst, 1, bpf_mod_race_config.fault_addr); in BPF_PROG()
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | kvm_vcpu_insn.h | 41 unsigned long fault_addr, 44 unsigned long fault_addr,
|
/linux-6.6.21/arch/x86/entry/vdso/ |
D | extable.c | 13 unsigned long error_code, unsigned long fault_addr) in fixup_vdso_exception() argument 40 regs->dx = fault_addr; in fixup_vdso_exception()
|
/linux-6.6.21/arch/um/include/asm/ |
D | processor-generic.h | 26 void *fault_addr; member 52 .fault_addr = NULL, \
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | traps.c | 428 void __user *fault_addr, struct task_struct *tsk) in force_fcsr_sig() argument 443 force_sig_fault(SIGFPE, si_code, fault_addr); in force_fcsr_sig() 446 static int process_fpemu_return(int sig, void __user *fault_addr, unsigned long fcsr) in process_fpemu_return() argument 455 force_fcsr_sig(fcsr, fault_addr, current); in process_fpemu_return() 459 force_sig_fault(SIGBUS, BUS_ADRERR, fault_addr); in process_fpemu_return() 464 if (vma_lookup(current->mm, (unsigned long)fault_addr)) in process_fpemu_return() 469 force_sig_fault(SIGSEGV, si_code, fault_addr); in process_fpemu_return() 484 void __user *fault_addr; in do_fpe() local 498 fault_addr = (void __user *) regs->csr_era; in do_fpe() 501 process_fpemu_return(sig, fault_addr, fcsr); in do_fpe()
|
/linux-6.6.21/arch/mips/kernel/ |
D | traps.c | 771 void force_fcr31_sig(unsigned long fcr31, void __user *fault_addr, in force_fcr31_sig() argument 787 force_sig_fault_to_task(SIGFPE, si_code, fault_addr, tsk); in force_fcr31_sig() 790 int process_fpemu_return(int sig, void __user *fault_addr, unsigned long fcr31) in process_fpemu_return() argument 799 force_fcr31_sig(fcr31, fault_addr, current); in process_fpemu_return() 803 force_sig_fault(SIGBUS, BUS_ADRERR, fault_addr); in process_fpemu_return() 808 if (vma_lookup(current->mm, (unsigned long)fault_addr)) in process_fpemu_return() 813 force_sig_fault(SIGSEGV, si_code, fault_addr); in process_fpemu_return() 826 void __user *fault_addr; in simulate_fp() local 853 &fault_addr); in simulate_fp() 866 process_fpemu_return(sig, fault_addr, fcr31); in simulate_fp() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_gt.c | 321 u64 fault_addr; in xehp_check_faults() local 326 fault_addr = ((u64)(fault_data1 & FAULT_VA_HIGH_BITS) << 44) | in xehp_check_faults() 335 upper_32_bits(fault_addr), lower_32_bits(fault_addr), in xehp_check_faults() 362 u64 fault_addr; in gen8_check_faults() local 367 fault_addr = ((u64)(fault_data1 & FAULT_VA_HIGH_BITS) << 44) | in gen8_check_faults() 376 upper_32_bits(fault_addr), lower_32_bits(fault_addr), in gen8_check_faults()
|
/linux-6.6.21/arch/mips/math-emu/ |
D | cp1emu.c | 972 struct mm_decoded_insn dec_insn, void __user **fault_addr) in cop1Emulate() argument 1056 *fault_addr = dva; in cop1Emulate() 1061 *fault_addr = dva; in cop1Emulate() 1074 *fault_addr = dva; in cop1Emulate() 1079 *fault_addr = dva; in cop1Emulate() 1090 *fault_addr = wva; in cop1Emulate() 1095 *fault_addr = wva; in cop1Emulate() 1108 *fault_addr = wva; in cop1Emulate() 1113 *fault_addr = wva; in cop1Emulate() 1363 sig = fpux_emu(xcp, ctx, ir, fault_addr); in cop1Emulate() [all …]
|
/linux-6.6.21/drivers/dma/idxd/ |
D | debugfs.c | 40 entry->e.pasid, entry->e.batch_idx, entry->e.fault_addr); in dump_event_entry() 46 cr->fault_addr, cr->invalid_flags); in dump_event_entry()
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | dtl.h | 18 __be64 fault_addr; member
|
/linux-6.6.21/arch/x86/include/asm/ |
D | vdso.h | 54 unsigned long fault_addr);
|
D | extable.h | 39 unsigned long error_code, unsigned long fault_addr);
|
/linux-6.6.21/drivers/scsi/cxlflash/ |
D | ocxl_hw.h | 69 u64 fault_addr; /* Address that triggered the fault */ member
|
/linux-6.6.21/include/uapi/linux/ |
D | idxd.h | 322 uint64_t fault_addr; member 380 uint64_t fault_addr; member
|
/linux-6.6.21/arch/um/kernel/ |
D | trap.c | 244 current->thread.fault_addr = (void *) address; in segv() 247 else if (current->thread.fault_addr != NULL) in segv()
|