/openbmc/linux/arch/mips/kernel/ |
H A D | unaligned.c | 170 if (user && !access_ok(addr, 4)) in emulate_load_store_insn() 179 if (user && !access_ok(addr, 2)) in emulate_load_store_insn() 238 if (!access_ok(addr, 2)) in emulate_load_store_insn() 247 if (!access_ok(addr, 4)) in emulate_load_store_insn() 256 if (!access_ok(addr, 2)) in emulate_load_store_insn() 265 if (!access_ok(addr, 2)) in emulate_load_store_insn() 274 if (!access_ok(addr, 4)) in emulate_load_store_insn() 289 if (user && !access_ok(addr, 2)) in emulate_load_store_insn() 304 if (user && !access_ok(addr, 4)) in emulate_load_store_insn() 319 if (user && !access_ok(addr, 2)) in emulate_load_store_insn() [all …]
|
/openbmc/linux/arch/mips/loongson64/ |
H 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 …]
|
/openbmc/linux/arch/xtensa/include/asm/ |
H 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()
|
/openbmc/linux/arch/arm64/include/asm/ |
H 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 239 if (access_ok(__p, sizeof(*__p))) { \ 325 if (access_ok(__p, sizeof(*__p))) { \ 390 if (access_ok(to, n)) { in __clear_user()
|
/openbmc/linux/include/asm-generic/ |
H A D | access_ok.h | 44 #ifndef access_ok 45 #define access_ok(addr, size) likely(__access_ok(addr, size)) macro
|
/openbmc/linux/drivers/video/fbdev/mmp/ |
H 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()
|
/openbmc/linux/arch/arm/include/asm/ |
H 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()
|
/openbmc/linux/arch/mips/include/asm/ |
H 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()
|
/openbmc/qemu/linux-user/hppa/ |
H A D | cpu_loop.c | 40 if ((addr & 3) || !access_ok(cs, VERIFY_WRITE, addr, 4)) { in hppa_lws() 55 || !access_ok(cs, VERIFY_WRITE, addr, 1 << size) in hppa_lws() 56 || !access_ok(cs, VERIFY_READ, old, 1 << size) in hppa_lws() 57 || !access_ok(cs, VERIFY_READ, new, 1 << size)) { in hppa_lws()
|
/openbmc/linux/arch/sh/include/asm/ |
H 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)) \
|
/openbmc/linux/arch/nios2/include/asm/ |
H 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)) ? \
|
/openbmc/linux/drivers/video/fbdev/mmp/hw/ |
H 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()
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | uaccess.h | 66 access_ok(_pu_addr, sizeof(*(ptr))) ? \ 305 access_ok(_gu_addr, sizeof(*(ptr))) ? \ 365 return likely(access_ok(addr, size)) ? __clear_user(addr, size) : size; in clear_user() 386 if (access_ok(to, n)) { in copy_mc_to_user() 402 if (unlikely(!access_ok(ptr, len))) in user_access_begin() 418 if (unlikely(!access_ok(ptr, len))) in user_read_access_begin() 432 if (unlikely(!access_ok(ptr, len))) in user_write_access_begin()
|
/openbmc/linux/arch/openrisc/include/asm/ |
H 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()
|
H 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()
|
/openbmc/linux/arch/loongarch/include/asm/ |
H 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)) \
|
/openbmc/linux/arch/microblaze/include/asm/ |
H 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)) { \
|
H 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()
|
/openbmc/linux/arch/hexagon/include/asm/ |
H 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()
|
/openbmc/linux/arch/alpha/include/asm/ |
H 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()
|
/openbmc/linux/arch/x86/kernel/cpu/sgx/ |
H A D | virt.c | 350 if (WARN_ON_ONCE(!access_ok(secs, PAGE_SIZE))) in sgx_virt_ecreate() 379 if (WARN_ON_ONCE(!access_ok(sigstruct, sizeof(struct sgx_sigstruct)) || in __sgx_virt_einit() 380 !access_ok(token, SGX_EINITTOKEN_SIZE) || in __sgx_virt_einit() 381 !access_ok(secs, PAGE_SIZE))) in __sgx_virt_einit()
|
/openbmc/linux/arch/csky/include/asm/ |
H 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()
|
/openbmc/linux/lib/ |
H 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()
|
/openbmc/linux/arch/ia64/include/asm/ |
H 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()
|
/openbmc/linux/arch/arc/include/asm/ |
H A D | futex.h | 78 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser() 127 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
|