Home
last modified time | relevance | path

Searched refs:copy_from_kernel_nofault (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.12.1/arch/x86/kernel/
Dcfi.c38 if (copy_from_kernel_nofault(buffer, (void *)regs->ip - 12, MAX_INSN_SIZE)) in decode_cfi_insn()
47 if (copy_from_kernel_nofault(buffer, (void *)regs->ip - 6, MAX_INSN_SIZE)) in decode_cfi_insn()
Dftrace.c92 if (copy_from_kernel_nofault(cur_code, (void *)ip, MCOUNT_INSN_SIZE)) { in ftrace_verify_code()
352 ret = copy_from_kernel_nofault(trampoline, (void *)start_offset, size); in create_trampoline()
368 ret = copy_from_kernel_nofault(ip, x86_nops[2], 2); in create_trampoline()
505 ret = copy_from_kernel_nofault(&call, ptr, CALL_INSN_SIZE); in addr_from_call()
Ddumpstack.c79 return copy_from_kernel_nofault(buf, (u8 *)src, nbytes); in copy_code()
/linux-6.12.1/kernel/trace/
Dtrace_probe_kernel.h33 ret = copy_from_kernel_nofault(&c, (u8 *)addr + len, 1); in fetch_store_strlen()
116 return copy_from_kernel_nofault(dest, src, size); in probe_mem_read()
/linux-6.12.1/arch/s390/kernel/
Dftrace.c106 if (copy_from_kernel_nofault(&old, (void *)rec->ip, sizeof(old))) in ftrace_init_nop()
134 if (copy_from_kernel_nofault(&insn, (void *)rec->ip, sizeof(insn))) in ftrace_get_trampoline()
162 if (copy_from_kernel_nofault(&old, (void *)ip, sizeof(old))) in ftrace_patch_branch_insn()
/linux-6.12.1/mm/
Dmaccess.c24 long copy_from_kernel_nofault(void *dst, const void *src, size_t size) in copy_from_kernel_nofault() function
48 EXPORT_SYMBOL_GPL(copy_from_kernel_nofault);
/linux-6.12.1/arch/sh/kernel/
Dftrace.c206 if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
266 if (copy_from_kernel_nofault(code, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_mod()
Dtraps_32.c82 return copy_from_kernel_nofault(dst, (const void __force *)src, cnt); in copy_from_kernel_wrapper()
553 if (copy_from_kernel_nofault(&instruction, (void *)(regs->pc), in do_address_error()
Dio_trapped.c283 if (copy_from_kernel_nofault(&instruction, (void *)(regs->pc), in handle_trapped_io()
/linux-6.12.1/drivers/dio/
Ddio.c143 if (copy_from_kernel_nofault(&i, in dio_find()
216 if (copy_from_kernel_nofault(&i, in dio_init()
/linux-6.12.1/arch/x86/include/asm/
Dptrace.h386 extern long copy_from_kernel_nofault(void *dst, const void *src, size_t size);
406 ret = copy_from_kernel_nofault(&val, addr, sizeof(val)); in regs_get_kernel_stack_nth()
/linux-6.12.1/include/linux/
Duaccess.h408 long copy_from_kernel_nofault(void *dst, const void *src, size_t size);
450 copy_from_kernel_nofault(&(val), __gk_ptr, sizeof(val));\
Dbpfptr.h54 return copy_from_kernel_nofault(dst, src.kernel + offset, size); in copy_from_bpfptr_offset()
/linux-6.12.1/kernel/debug/kdb/
Dkdb_support.c268 int ret = copy_from_kernel_nofault((char *)res, (char *)addr, size); in kdb_getarea_size()
492 copy_from_kernel_nofault(&tmp, (char *)p, sizeof(unsigned long))) in kdb_task_state_char()
/linux-6.12.1/arch/riscv/kernel/
Dftrace.c49 if (copy_from_kernel_nofault(replaced, (void *)hook_pos, in ftrace_check_current_call()
/linux-6.12.1/arch/csky/kernel/
Dftrace.c75 if (copy_from_kernel_nofault((void *)olds, (void *)hook_pos, in ftrace_check_current_nop()
/linux-6.12.1/arch/parisc/kernel/
Dftrace.c171 ret = copy_from_kernel_nofault(insn, ip, size); in ftrace_make_call()
Dkgdb.c158 int ret = copy_from_kernel_nofault(bpt->saved_instr, in kgdb_arch_set_breakpoint()
/linux-6.12.1/arch/arm64/kernel/
Dpatching.c62 ret = copy_from_kernel_nofault(&val, addr, AARCH64_INSN_SIZE); in aarch64_insn_read()
/linux-6.12.1/arch/arm/kernel/
Dftrace.c109 if (copy_from_kernel_nofault(&replaced, (void *)pc, in ftrace_modify_code()
Dkgdb.c259 err = copy_from_kernel_nofault(bpt->saved_instr, (char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
/linux-6.12.1/arch/x86/kernel/kprobes/
Dcore.c238 if (copy_from_kernel_nofault(buf, (void *)addr, in __recover_probed_insn()
382 if (copy_from_kernel_nofault(&insn, (void *)addr, sizeof(u32))) in arch_adjust_kprobe_addr()
414 if (copy_from_kernel_nofault(dest, (void *)recovered_insn, in __copy_instruction()
/linux-6.12.1/drivers/misc/
Dkgdbts.c842 copy_from_kernel_nofault(before, (char *)kgdbts_break_test, in run_plant_and_detach_test()
850 copy_from_kernel_nofault(after, (char *)kgdbts_break_test, in run_plant_and_detach_test()
/linux-6.12.1/fs/
Dd_path.c50 if (unlikely(copy_from_kernel_nofault(dst, src, len))) { in prepend_copy()
/linux-6.12.1/arch/loongarch/kernel/
Dinst.c186 ret = copy_from_kernel_nofault(&val, addr, LOONGARCH_INSN_SIZE); in larch_insn_read()

123