/linux-6.3-rc2/arch/mips/kernel/ |
A D | unaligned.c | 197 if (!access_ok(addr, 2)) in emulate_load_store_insn() 206 if (!access_ok(addr, 4)) in emulate_load_store_insn() 215 if (!access_ok(addr, 2)) in emulate_load_store_insn() 224 if (!access_ok(addr, 2)) in emulate_load_store_insn() 233 if (!access_ok(addr, 4)) in emulate_load_store_insn() 248 if (user && !access_ok(addr, 2)) in emulate_load_store_insn() 263 if (user && !access_ok(addr, 4)) in emulate_load_store_insn() 278 if (user && !access_ok(addr, 2)) in emulate_load_store_insn() 301 if (user && !access_ok(addr, 4)) in emulate_load_store_insn() 324 if (user && !access_ok(addr, 8)) in emulate_load_store_insn() [all …]
|
A D | signal32.c | 49 if (!access_ok(act, sizeof(*act))) 64 if (!access_ok(oact, sizeof(*oact)))
|
/linux-6.3-rc2/arch/mips/loongson64/ |
A D | cop2-ex.c | 71 if (!access_ok(addr, 16)) in loongson_cu2_call() 86 if (!access_ok(addr, 16)) in loongson_cu2_call() 110 if (!access_ok(addr, 16)) in loongson_cu2_call() 127 if (!access_ok(addr, 16)) in loongson_cu2_call() 160 if (!access_ok(addr, 2)) in loongson_cu2_call() 171 if (!access_ok(addr, 4)) in loongson_cu2_call() 182 if (!access_ok(addr, 8)) in loongson_cu2_call() 195 if (!access_ok(addr, 4)) in loongson_cu2_call() 211 if (!access_ok(addr, 8)) in loongson_cu2_call() 239 if (!access_ok(addr, 2)) in loongson_cu2_call() [all …]
|
/linux-6.3-rc2/arch/xtensa/include/asm/ |
A D | uaccess.h | 64 if (access_ok(__pu_addr, size)) \ 160 if (access_ok(__gu_addr, size)) \ 261 if (access_ok(addr, size)) in clear_user() 275 if (access_ok(src, 1)) in strncpy_from_user() 290 if (!access_ok(str, 1)) in strnlen_user()
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A D | uaccess.h | 38 static inline int access_ok(const void __user *addr, unsigned long size) in access_ok() function 51 #define access_ok access_ok macro 287 if (access_ok(__p, sizeof(*__p))) { \ 373 if (access_ok(__p, sizeof(*__p))) { \ 438 if (access_ok(to, n)) { in __clear_user()
|
/linux-6.3-rc2/drivers/video/fbdev/mmp/ |
A D | core.c | 164 mutex_init(&path->access_ok); in mmp_register_path() 198 mutex_init(&path->overlays[i].access_ok); in mmp_register_path() 229 mutex_destroy(&path->overlays[i].access_ok); in mmp_unregister_path() 231 mutex_destroy(&path->access_ok); in mmp_unregister_path()
|
/linux-6.3-rc2/include/asm-generic/ |
A D | access_ok.h | 44 #ifndef access_ok 45 #define access_ok(addr, size) likely(__access_ok(addr, size)) macro
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | uaccess.h | 71 access_ok(__p, sizeof(*__p)) ? __put_user((x), __p) : -EFAULT; \ 97 access_ok(__p, sizeof(*__p)) ? __get_user((x), __p) : \ 482 if (__cl_size && access_ok(__cl_addr, __cl_size)) \ 512 if (!access_ok(__from, __len)) in strncpy_from_user() 548 if (!access_ok(s, 1)) in strnlen_user()
|
/linux-6.3-rc2/arch/arm/include/asm/ |
A D | futex.h | 53 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic() 107 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic() 137 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser()
|
/linux-6.3-rc2/drivers/video/fbdev/mmp/hw/ |
A D | mmp_ctrl.c | 136 mutex_lock(&overlay->access_ok); in overlay_set_win() 162 mutex_unlock(&overlay->access_ok); in overlay_set_win() 173 mutex_lock(&overlay->access_ok); in dmafetch_onoff() 178 mutex_unlock(&overlay->access_ok); in dmafetch_onoff() 184 mutex_lock(&path->access_ok); in path_enabledisable() 191 mutex_unlock(&path->access_ok); in path_enabledisable() 262 mutex_lock(&path->access_ok); in path_set_mode() 313 mutex_unlock(&path->access_ok); in path_set_mode() 485 mutex_init(&ctrl->access_ok); in mmphw_probe()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | uaccess.h | 65 access_ok(_pu_addr, sizeof(*(ptr))) ? \ 270 access_ok(_gu_addr, sizeof(*(ptr))) ? \ 330 return likely(access_ok(addr, size)) ? __clear_user(addr, size) : size; in clear_user() 351 if (access_ok(to, n)) { in copy_mc_to_user() 369 if (unlikely(!access_ok(ptr, len))) in user_access_begin() 385 if (unlikely(!access_ok(ptr, len))) in user_read_access_begin() 399 if (unlikely(!access_ok(ptr, len))) in user_write_access_begin()
|
/linux-6.3-rc2/arch/sh/include/asm/ |
A D | uaccess.h | 50 if (likely(access_ok(__gu_addr, (size)))) \ 71 if (likely(access_ok(__pu_addr, size))) \ 112 if (__cl_size && access_ok(__cl_addr, __cl_size)) \
|
/linux-6.3-rc2/arch/nios2/include/asm/ |
A D | uaccess.h | 51 if (!access_ok(to, n)) in clear_user() 129 if (access_ok( __gu_ptr, sizeof(*__gu_ptr))) \ 184 access_ok(__pu_ptr, sizeof(*__pu_ptr)) ? \
|
/linux-6.3-rc2/arch/microblaze/include/asm/ |
A D | uaccess.h | 50 if (unlikely(!access_ok(to, n))) in clear_user() 97 access_ok(__gu_ptr, sizeof(*__gu_ptr)) ? \ 192 if (access_ok(__pu_addr, size)) { \
|
A D | futex.h | 37 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser() 73 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
|
/linux-6.3-rc2/arch/loongarch/include/asm/ |
A D | uaccess.h | 50 access_ok(__p, sizeof(*__p)) ? __get_user((x), __p) : \ 76 access_ok(__p, sizeof(*__p)) ? __put_user((x), __p) : -EFAULT; \ 248 if (__cl_size && access_ok(__cl_addr, __cl_size)) \
|
/linux-6.3-rc2/arch/openrisc/include/asm/ |
A D | futex.h | 38 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser() 74 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
|
A D | uaccess.h | 68 if (access_ok(__pu_addr, size)) \ 140 if (access_ok(__gu_addr, size)) \ 229 if (likely(access_ok(addr, size))) in clear_user()
|
/linux-6.3-rc2/arch/x86/kernel/cpu/sgx/ |
A D | virt.c | 347 if (WARN_ON_ONCE(!access_ok(secs, PAGE_SIZE))) in sgx_virt_ecreate() 376 if (WARN_ON_ONCE(!access_ok(sigstruct, sizeof(struct sgx_sigstruct)) || in __sgx_virt_einit() 377 !access_ok(token, SGX_EINITTOKEN_SIZE) || in __sgx_virt_einit() 378 !access_ok(secs, PAGE_SIZE))) in __sgx_virt_einit()
|
/linux-6.3-rc2/arch/hexagon/include/asm/ |
A D | futex.h | 39 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser() 79 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
|
/linux-6.3-rc2/arch/alpha/include/asm/ |
A D | futex.h | 34 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser() 70 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
|
/linux-6.3-rc2/lib/ |
A D | usercopy.c | 15 if (!should_fail_usercopy() && likely(access_ok(from, n))) { in _copy_from_user() 39 if (likely(access_ok(to, n))) { in _copy_to_user()
|
/linux-6.3-rc2/arch/csky/include/asm/ |
A D | futex.h | 46 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser() 89 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
|
/linux-6.3-rc2/arch/riscv/include/asm/ |
A D | futex.h | 41 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser() 83 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
|
/linux-6.3-rc2/arch/ia64/include/asm/ |
A D | futex.h | 53 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser() 88 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
|