| /linux-6.15/arch/x86/kernel/ |
| H A D | probe_roms.c | 103 if (get_kernel_nofault(device, rom_list) != 0) in probe_list() 129 if (get_kernel_nofault(offset, rom + 0x18) != 0) in find_oprom() 132 if (get_kernel_nofault(vendor, rom + offset + 0x4) != 0) in find_oprom() 135 if (get_kernel_nofault(device, rom + offset + 0x6) != 0) in find_oprom() 143 if (get_kernel_nofault(list, rom + offset + 0x8) == 0 && in find_oprom() 144 get_kernel_nofault(rev, rom + offset + 0xc) == 0 && in find_oprom() 187 return get_kernel_nofault(sig, ptr) == 0 && sig == ROMSIGNATURE; in romsignature() 194 for (sum = 0; length && get_kernel_nofault(c, rom++) == 0; length--) in romchecksum() 215 if (get_kernel_nofault(c, rom + 2) != 0) in probe_roms() 253 if (get_kernel_nofault(c, rom + 2) != 0) in probe_roms()
|
| H A D | alternative.c | 1240 if (get_kernel_nofault(hash, func)) in cfi_get_func_hash() 1254 if (get_kernel_nofault(disp, func - 4)) in cfi_get_func_arity()
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | cfi.c | 38 if (get_kernel_nofault(insn, (void *)regs->epc - 4)) in decode_cfi_insn() 45 if (get_kernel_nofault(insn, (void *)regs->epc) || in decode_cfi_insn() 46 get_kernel_nofault(insn, (void *)regs->epc + GET_INSN_LENGTH(insn))) in decode_cfi_insn() 125 if (get_kernel_nofault(hash, func - cfi_get_offset())) in cfi_get_func_hash()
|
| H A D | traps.c | 45 return get_kernel_nofault(*val, insns); in copy_code() 263 if (get_kernel_nofault(insn, (bug_insn_t *)pc)) in get_break_insn_length() 410 if (get_kernel_nofault(insn, (bug_insn_t *)pc)) in is_valid_bugaddr()
|
| H A D | kgdb.c | 44 if (get_kernel_nofault(op_code, (void *)pc)) in get_step_address() 130 error = get_kernel_nofault(stepped_opcode, (void *)addr); in do_single_step()
|
| /linux-6.15/arch/mips/kernel/ |
| H A D | access-helper.h | 8 get_kernel_nofault(*a, p); in __get_addr() 13 return user ? get_user(*i, (u16 __user *)p) : get_kernel_nofault(*i, p); in __get_inst16() 18 return user ? get_user(*i, (u32 __user *)p) : get_kernel_nofault(*i, p); in __get_inst32()
|
| /linux-6.15/arch/loongarch/kernel/ |
| H A D | access-helper.h | 7 return user ? get_user(*i, (u32 __user *)p) : get_kernel_nofault(*i, p); in __get_inst() 12 return user ? get_user(*a, (unsigned long __user *)p) : get_kernel_nofault(*a, p); in __get_addr()
|
| H A D | kgdb.c | 390 error = get_kernel_nofault(stepped_opcode, (void *)addr); in do_single_step()
|
| /linux-6.15/arch/s390/mm/ |
| H A D | fault.c | 87 if (get_kernel_nofault(entry, table)) in dump_pagetable() 96 if (get_kernel_nofault(entry, table)) in dump_pagetable() 105 if (get_kernel_nofault(entry, table)) in dump_pagetable() 114 if (get_kernel_nofault(entry, table)) in dump_pagetable() 122 if (get_kernel_nofault(entry, table)) in dump_pagetable()
|
| /linux-6.15/arch/s390/kernel/ |
| H A D | ftrace.c | 139 if (get_kernel_nofault(opc, &trampoline->brasl_opc)) in ftrace_get_trampoline() 182 if (get_kernel_nofault(old, &trampoline->interceptor)) in ftrace_modify_trampoline_call() 204 if (get_kernel_nofault(old, addr)) in ftrace_patch_branch_mask()
|
| /linux-6.15/lib/ |
| H A D | test_lockup.c | 427 if (get_kernel_nofault(buf, ptr) || in test_kernel_ptr() 428 get_kernel_nofault(buf, ptr + size - 1)) { in test_kernel_ptr() 445 if (get_kernel_nofault(magic, ptr) || magic != expected) { in test_magic()
|
| /linux-6.15/kernel/ |
| H A D | extable.c | 148 if (!get_kernel_nofault(p, (void *)&desc->addr)) in dereference_function_descriptor()
|
| /linux-6.15/arch/arm/kernel/ |
| H A D | traps.c | 156 if (!get_kernel_nofault(val, (unsigned long *)p)) in dump_mem() 188 bad = get_kernel_nofault(tmp, &((u16 *)addr)[i]); in dump_instr() 195 bad = get_kernel_nofault(val, &((u32 *)addr)[i]); in dump_instr() 399 if (get_kernel_nofault(bkpt, (void *)pc)) in is_valid_bugaddr()
|
| /linux-6.15/arch/sh/kernel/ |
| H A D | traps.c | 123 if (get_kernel_nofault(opcode, (insn_size_t *)addr)) in is_valid_bugaddr()
|
| /linux-6.15/arch/x86/mm/ |
| H A D | fault.c | 103 if (get_kernel_nofault(opcode, instr)) in check_prefetch_opcode() 158 if (get_kernel_nofault(opcode, instr)) in is_prefetch() 348 return get_kernel_nofault(dummy, (unsigned long *)p); in bad_address()
|
| /linux-6.15/arch/x86/pci/ |
| H A D | pcbios.c | 318 if (get_kernel_nofault(sig, &check->fields.signature)) in pci_find_bios()
|
| /linux-6.15/arch/arm/mm/ |
| H A D | alignment.c | 777 fault = get_kernel_nofault(instr, ip); in alignment_get_arm() 792 fault = get_kernel_nofault(instr, ip); in alignment_get_thumb()
|
| /linux-6.15/fs/ |
| H A D | inode.c | 705 if (get_kernel_nofault(host, &mapping->host) || in dump_mapping() 706 get_kernel_nofault(a_ops, &mapping->a_ops)) { in dump_mapping() 716 if (get_kernel_nofault(dentry_first, &host->i_dentry.first) || in dump_mapping() 717 get_kernel_nofault(ino, &host->i_ino)) { in dump_mapping() 728 if (get_kernel_nofault(dentry, dentry_ptr) || in dump_mapping()
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | ftrace.c | 197 if (get_kernel_nofault(insn, (u32 *)(fentry_ip - AARCH64_INSN_SIZE * 2))) in arch_ftrace_get_symaddr()
|
| /linux-6.15/include/linux/ |
| H A D | uaccess.h | 545 #define get_kernel_nofault(val, ptr) ({ \ macro
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A D | kprobes.c | 295 if (get_kernel_nofault(instr, addr)) in kprobe_handler()
|
| H A D | kgdb.c | 420 err = get_kernel_nofault(instr, addr); in kgdb_arch_set_breakpoint()
|
| H A D | process.c | 1420 if (get_kernel_nofault(instr, (const void *)pc)) { in show_instructions()
|
| /linux-6.15/arch/m68k/kernel/ |
| H A D | traps.c | 919 if (get_kernel_nofault(c, cp + i) && i >= 0) { in show_registers()
|
| /linux-6.15/arch/powerpc/sysdev/ |
| H A D | fsl_pci.c | 1086 ret = get_kernel_nofault(inst, (void *)regs->nip); in fsl_pci_mcheck_exception()
|