/linux-6.3-rc2/arch/arm/lib/ |
A D | uaccess_with_memcpy.c | 228 void *user_ptr, *kernel_ptr; 240 user_ptr = vmap(&dst_page, 1, VM_IOREMAP, __pgprot(__PAGE_COPY)); 241 if (!user_ptr) 245 ret = __copy_to_user_memcpy(user_ptr, kernel_ptr, PAGE_SIZE); 249 ret |= __copy_to_user_memcpy(user_ptr, kernel_ptr, size); 251 ret |= __copy_to_user_std(user_ptr, kernel_ptr, size); 258 ret |= __clear_user_memset(user_ptr, size); 260 ret |= __clear_user_std(user_ptr, size); 268 vunmap(user_ptr);
|
/linux-6.3-rc2/net/ieee802154/ |
A D | nl802154.c | 907 struct wpan_dev *wdev = info->user_ptr[1]; in nl802154_get_interface() 968 info->user_ptr[1] = NULL; in nl802154_del_interface() 1070 struct net_device *dev = info->user_ptr[1]; in nl802154_set_pan_id() 1106 struct net_device *dev = info->user_ptr[1]; in nl802154_set_short_addr() 1148 struct net_device *dev = info->user_ptr[1]; in nl802154_set_backoff_exponent() 2525 info->user_ptr[0] = rdev; in nl802154_pre_doit() 2547 info->user_ptr[1] = dev; in nl802154_pre_doit() 2549 info->user_ptr[1] = wpan_dev; in nl802154_pre_doit() 2563 info->user_ptr[0] = rdev; in nl802154_pre_doit() 2573 if (info->user_ptr[1]) { in nl802154_post_doit() [all …]
|
/linux-6.3-rc2/net/devlink/ |
A D | netlink.c | 124 info->user_ptr[0] = devlink; in devlink_nl_pre_doit() 131 info->user_ptr[1] = devlink_port; in devlink_nl_pre_doit() 135 info->user_ptr[1] = devlink_port; in devlink_nl_pre_doit() 144 info->user_ptr[1] = devlink_rate; in devlink_nl_pre_doit() 153 info->user_ptr[1] = rate_node; in devlink_nl_pre_doit() 160 info->user_ptr[1] = linecard; in devlink_nl_pre_doit() 175 devlink = info->user_ptr[0]; in devlink_nl_post_doit()
|
A D | dev.c | 201 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_get_doit() 420 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_reload() 586 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_eswitch_get_doit() 607 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_eswitch_set_doit() 809 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_info_get_doit() 1037 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_flash_update() 1210 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_selftests_get_doit() 1278 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_selftests_run()
|
A D | leftover.c | 1318 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_split_doit() 1350 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_unsplit_doit() 1393 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_new_doit() 1443 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_del_doit() 1686 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_rate_new_doit() 2110 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_get_doit() 2213 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_pool_get_doit() 2322 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_pool_set_doit() 2531 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_port_pool_set_doit() 2768 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_tc_pool_bind_set_doit() [all …]
|
A D | health.c | 362 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_get_doit() 444 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_set_doit() 650 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_recover_doit() 1212 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_diagnose_doit() 1303 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_dump_clear_doit() 1322 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_test_doit()
|
/linux-6.3-rc2/net/batman-adv/ |
A D | netlink.c | 412 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_mesh() 441 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_set_mesh() 710 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_start() 767 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_cancel() 1298 info->user_ptr[0] = bat_priv; in batadv_pre_doit() 1308 info->user_ptr[1] = hard_iface; in batadv_pre_doit() 1318 info->user_ptr[1] = vlan; in batadv_pre_doit() 1345 info->user_ptr[1]) { in batadv_post_doit() 1346 hard_iface = info->user_ptr[1]; in batadv_post_doit() 1352 vlan = info->user_ptr[1]; in batadv_post_doit() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | test_probe_read_user_str.c | 11 void *user_ptr = 0; variable 20 ret = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr); in on_write()
|
A D | test_attach_probe.c | 24 void *user_ptr = 0; variable 117 bpf_copy_from_user(data, sizeof(data), user_ptr); in verify_sleepable_user_copy()
|
/linux-6.3-rc2/drivers/accessibility/speakup/ |
A D | i18n.c | 518 char *user_ptr = user; in fmt_validate() local 522 user_ptr = next_specifier(user_ptr); in fmt_validate() 523 if (template_ptr && user_ptr) { in fmt_validate() 525 valid = compare_specifiers(&template_ptr, &user_ptr); in fmt_validate() 530 if (template_ptr || user_ptr) in fmt_validate()
|
/linux-6.3-rc2/net/wireless/ |
A D | nl80211.c | 4143 struct net_device *dev = info->user_ptr[1]; in nl80211_set_interface() 4347 info->user_ptr[1] = NULL; in nl80211_del_interface() 4359 struct net_device *dev = info->user_ptr[1]; in nl80211_set_noack_map() 4456 struct net_device *dev = info->user_ptr[1]; in nl80211_get_key() 16275 info->user_ptr[0] = rdev; in nl80211_pre_doit() 16295 info->user_ptr[1] = dev; in nl80211_pre_doit() 16297 info->user_ptr[1] = wdev; in nl80211_pre_doit() 16306 info->user_ptr[0] = rdev; in nl80211_pre_doit() 16361 if (info->user_ptr[1]) { in nl80211_post_doit() 16367 dev_put(info->user_ptr[1]); in nl80211_post_doit() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_userptr.c | 517 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl() 520 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl() 540 ret = probe_range(current->mm, args->user_ptr, args->user_size); in i915_gem_userptr_ioctl() 558 obj->userptr.ptr = args->user_ptr; in i915_gem_userptr_ioctl()
|
/linux-6.3-rc2/drivers/media/v4l2-core/ |
A D | v4l2-compat-ioctl32.c | 1038 void __user *user_ptr, size_t array_size, in v4l2_compat_get_array_args() argument 1051 struct v4l2_clip32 __user *c32 = user_ptr; in v4l2_compat_get_array_args() 1081 struct v4l2_plane32 __user *p32 = user_ptr; in v4l2_compat_get_array_args() 1104 struct v4l2_ext_control32 __user *ec32 = user_ptr; in v4l2_compat_get_array_args() 1124 if (copy_from_user(mbuf, user_ptr, array_size)) in v4l2_compat_get_array_args() 1132 int v4l2_compat_put_array_args(struct file *file, void __user *user_ptr, in v4l2_compat_put_array_args() argument 1144 struct v4l2_clip32 __user *c32 = user_ptr; in v4l2_compat_put_array_args() 1173 struct v4l2_plane32 __user *p32 = user_ptr; in v4l2_compat_put_array_args() 1196 struct v4l2_ext_control32 __user *ec32 = user_ptr; in v4l2_compat_put_array_args() 1219 if (copy_to_user(user_ptr, mbuf, array_size)) in v4l2_compat_put_array_args()
|
A D | v4l2-ioctl.c | 3078 void __user **user_ptr, void ***kernel_ptr) in check_array_args() argument 3094 *user_ptr = (void __user *)buf->m.planes; in check_array_args() 3111 *user_ptr = (void __user *)edid->edid; in check_array_args() 3129 *user_ptr = (void __user *)ctrls->controls; in check_array_args() 3150 *user_ptr = (void __user *)fmt->fmt.win.clips; in check_array_args() 3166 *user_ptr = u64_to_user_ptr(routing->routes); in check_array_args() 3357 void __user *user_ptr = NULL; in video_usercopy() local 3392 user_ptr, array_size, in video_usercopy() 3395 err = copy_from_user(array_buf, user_ptr, array_size) ? in video_usercopy() 3431 *kernel_ptr = (void __force *)user_ptr; in video_usercopy() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_drv.c | 380 if (offset_in_page(args->user_ptr | args->user_size) || in etnaviv_ioctl_gem_userptr() 381 (uintptr_t)args->user_ptr != args->user_ptr || in etnaviv_ioctl_gem_userptr() 383 args->user_ptr & ~PAGE_MASK) in etnaviv_ioctl_gem_userptr() 386 if (!access_ok((void __user *)(unsigned long)args->user_ptr, in etnaviv_ioctl_gem_userptr() 390 return etnaviv_gem_new_userptr(dev, file, args->user_ptr, in etnaviv_ioctl_gem_userptr()
|
/linux-6.3-rc2/arch/arm64/kernel/ |
A D | armv8_deprecated.c | 169 const void __user *user_ptr; in swp_handler() local 201 user_ptr = (const void __user *)(unsigned long)(address & ~3); in swp_handler() 202 if (!access_ok(user_ptr, 4)) { in swp_handler()
|
/linux-6.3-rc2/arch/x86/xen/ |
A D | mmu_pv.c | 450 pgd_t *user_ptr = NULL; in xen_get_user_pgd() local 454 user_ptr = (pgd_t *)page->private; in xen_get_user_pgd() 455 if (user_ptr) in xen_get_user_pgd() 456 user_ptr += offset; in xen_get_user_pgd() 459 return user_ptr; in xen_get_user_pgd() 493 pgd_t *user_ptr = xen_get_user_pgd((pgd_t *)ptr); in xen_set_p4d() local 502 if (user_ptr) { in xen_set_p4d() 503 WARN_ON(xen_page_pinned(user_ptr)); in xen_set_p4d() 505 *user_ptr = pgd_val; in xen_set_p4d() 515 if (user_ptr) in xen_set_p4d() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | probe_read_user_str.c | 20 skel->bss->user_ptr = buf; in test_one_str()
|
/linux-6.3-rc2/drivers/gpu/drm/panfrost/ |
A D | panfrost_perfcnt.c | 243 void __user *user_ptr = (void __user *)(uintptr_t)req->buf_ptr; in panfrost_ioctl_perfcnt_dump() local 260 if (copy_to_user(user_ptr, perfcnt->buf, perfcnt->bosize)) in panfrost_ioctl_perfcnt_dump()
|
/linux-6.3-rc2/drivers/android/ |
A D | binder_alloc.h | 135 uintptr_t user_ptr);
|
/linux-6.3-rc2/drivers/accel/ivpu/ |
A D | ivpu_gem.h | 32 uintptr_t user_ptr; member
|
A D | ivpu_gem.c | 337 const struct ivpu_addr_range *range, u64 user_ptr) in ivpu_bo_alloc() argument 362 bo->user_ptr = user_ptr; in ivpu_bo_alloc()
|
/linux-6.3-rc2/kernel/bpf/ |
A D | helpers.c | 649 const void __user *, user_ptr) in BPF_CALL_3() argument 651 int ret = copy_from_user(dst, user_ptr, size); in BPF_CALL_3() 672 const void __user *, user_ptr, struct task_struct *, tsk, u64, flags) in BPF_CALL_5() argument 683 ret = access_process_vm(tsk, (unsigned long)user_ptr, dst, size, 0); in BPF_CALL_5() 736 void __user *user_ptr = (__force void __user *)unsafe_ptr; in bpf_trace_copy_string() local 744 return strncpy_from_user_nofault(buf, user_ptr, bufsz); in bpf_trace_copy_string() 750 return strncpy_from_user_nofault(buf, user_ptr, bufsz); in bpf_trace_copy_string()
|
/linux-6.3-rc2/include/uapi/drm/ |
A D | etnaviv_drm.h | 233 __u64 user_ptr; /* in, page aligned user pointer */ member
|
/linux-6.3-rc2/include/media/ |
A D | v4l2-ioctl.h | 693 void __user *user_ptr, size_t array_size, 695 int v4l2_compat_put_array_args(struct file *file, void __user *user_ptr,
|