Home
last modified time | relevance | path

Searched refs:user_ptr (Results 1 – 25 of 51) sorted by relevance

123

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dread_vsyscall.c10 void *user_ptr = 0; variable
28 read_ret[0] = bpf_probe_read_kernel(buf, sizeof(buf), user_ptr); in do_probe_read()
29 read_ret[1] = bpf_probe_read_kernel_str(buf, sizeof(buf), user_ptr); in do_probe_read()
30 read_ret[2] = bpf_probe_read(buf, sizeof(buf), user_ptr); in do_probe_read()
31 read_ret[3] = bpf_probe_read_str(buf, sizeof(buf), user_ptr); in do_probe_read()
32 read_ret[4] = bpf_probe_read_user(buf, sizeof(buf), user_ptr); in do_probe_read()
33 read_ret[5] = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr); in do_probe_read()
46 read_ret[6] = bpf_copy_from_user(buf, sizeof(buf), user_ptr); in do_copy_from_user()
47 read_ret[7] = bpf_copy_from_user_task(buf, sizeof(buf), user_ptr, in do_copy_from_user()
49 read_ret[8] = bpf_copy_from_user_str((char *)buf, sizeof(buf), user_ptr, 0); in do_copy_from_user()
Dtest_attach_probe.c24 void *user_ptr = 0; variable
92 bpf_copy_from_user(data, sizeof(data), user_ptr); in verify_sleepable_user_copy()
105 ret = bpf_copy_from_user_str(data_short, sizeof(data_short), user_ptr, 0); in verify_sleepable_user_copy_str()
110 ret = bpf_copy_from_user_str(data_short_pad, sizeof(data_short_pad), user_ptr, BPF_F_PAD_ZEROS); in verify_sleepable_user_copy_str()
116 ret = bpf_copy_from_user_str(data_long, dynamic_sz & sizeof(data_long), user_ptr, 0); in verify_sleepable_user_copy_str()
121 ret = bpf_copy_from_user_str(data_long, sizeof(data_long), user_ptr, 0); in verify_sleepable_user_copy_str()
126 ret = bpf_copy_from_user_str(data_long_pad, sizeof(data_long_pad), user_ptr, BPF_F_PAD_ZEROS); in verify_sleepable_user_copy_str()
136 ret = bpf_copy_from_user_str(data_long, sizeof(data_long), user_ptr, 2); in verify_sleepable_user_copy_str()
Dtest_probe_read_user_str.c11 void *user_ptr = 0; variable
20 ret = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr); in on_write()
Duprobe_multi.c34 void *user_ptr = 0; variable
40 bpf_copy_from_user(data, sizeof(data), user_ptr); in verify_sleepable_user_copy()
Dtest_attach_probe_manual.c15 void *user_ptr = 0; variable
/linux-6.12.1/arch/arm/lib/
Duaccess_with_memcpy.c231 void *user_ptr, *kernel_ptr;
243 user_ptr = vmap(&dst_page, 1, VM_IOREMAP, __pgprot(__PAGE_COPY));
244 if (!user_ptr)
248 ret = __copy_to_user_memcpy(user_ptr, kernel_ptr, PAGE_SIZE);
252 ret |= __copy_to_user_memcpy(user_ptr, kernel_ptr, size);
254 ret |= __copy_to_user_std(user_ptr, kernel_ptr, size);
261 ret |= __clear_user_memset(user_ptr, size);
263 ret |= __clear_user_std(user_ptr, size);
271 vunmap(user_ptr);
/linux-6.12.1/net/ieee802154/
Dnl802154.c663 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_get_wpan_phy()
906 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_get_interface()
907 struct wpan_dev *wdev = info->user_ptr[1]; in nl802154_get_interface()
924 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_new_interface()
955 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_del_interface()
956 struct wpan_dev *wpan_dev = info->user_ptr[1]; in nl802154_del_interface()
968 info->user_ptr[1] = NULL; in nl802154_del_interface()
975 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_channel()
994 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_cca_mode()
1025 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_cca_ed_level()
[all …]
/linux-6.12.1/net/batman-adv/
Dnetlink.c410 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_mesh()
439 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_set_mesh()
708 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_start()
765 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_cancel()
893 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_get_hardif()
894 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_hardif()
926 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_set_hardif()
927 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_set_hardif()
1107 struct batadv_softif_vlan *vlan = info->user_ptr[1]; in batadv_netlink_get_vlan()
1108 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_vlan()
[all …]
/linux-6.12.1/drivers/accessibility/speakup/
Di18n.c518 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.12.1/net/wireless/
Dnl80211.c3257 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_wiphy()
3574 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_channel()
3576 struct net_device *netdev = info->user_ptr[1]; in nl80211_set_channel()
4179 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_interface()
4180 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_get_interface()
4317 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_interface()
4321 struct net_device *dev = info->user_ptr[1]; in nl80211_set_interface()
4386 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in _nl80211_new_interface()
4479 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_new_interface()
4494 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_del_interface()
[all …]
/linux-6.12.1/drivers/accel/ivpu/
Divpu_ms.c104 void __user *user_ptr, u64 user_size, u64 *user_bytes_copied) in copy_leftover_bytes() argument
110 if (copy_to_user(user_ptr + *user_bytes_copied, ms->leftover_addr, copy_bytes)) in copy_leftover_bytes()
123 void __user *user_ptr, u64 user_size, u64 *user_bytes_copied) in copy_samples_to_user() argument
130 ret = copy_leftover_bytes(ms, user_ptr, user_size, user_bytes_copied); in copy_samples_to_user()
148 return copy_leftover_bytes(ms, user_ptr, user_size, user_bytes_copied); in copy_samples_to_user()
/linux-6.12.1/net/devlink/
Dsb.c207 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_get_doit()
309 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_pool_get_doit()
418 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_pool_set_doit()
509 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_sb_port_pool_get_doit()
627 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_sb_port_pool_set_doit()
628 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_port_pool_set_doit()
719 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_sb_tc_pool_bind_get_doit()
867 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_sb_tc_pool_bind_set_doit()
868 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_tc_pool_bind_set_doit()
905 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_occ_snapshot_doit()
[all …]
Dnetlink.c222 info->user_ptr[0] = devlink; in __devlink_nl_pre_doit()
229 info->user_ptr[1] = devlink_port; in __devlink_nl_pre_doit()
233 info->user_ptr[1] = devlink_port; in __devlink_nl_pre_doit()
274 devlink = info->user_ptr[0]; in __devlink_nl_post_doit()
Ddpipe.c217 struct devlink *devlink = info->user_ptr[0]; in devlink_dpipe_tables_fill()
294 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_dpipe_table_get_doit()
483 devlink = dump_ctx->info->user_ptr[0]; in devlink_dpipe_entry_ctx_prepare()
568 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_dpipe_entries_get_doit()
655 struct devlink *devlink = info->user_ptr[0]; in devlink_dpipe_headers_fill()
718 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_dpipe_headers_get_doit()
752 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_dpipe_table_counters_set_doit()
Dport.c596 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_port_get_doit()
832 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_port_set_doit()
858 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_port_split_doit()
859 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_port_split_doit()
889 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_port_unsplit_doit()
890 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_port_unsplit_doit()
901 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_port_new_doit()
963 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_port_del_doit()
965 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_port_del_doit()
Ddev.c225 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_get_doit()
521 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_reload_doit()
687 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_eswitch_get_doit()
708 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_eswitch_set_doit()
910 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_info_get_doit()
1138 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_flash_update_doit()
1306 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_selftests_get_doit()
1376 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_selftests_run_doit()
Dresource.c110 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_resource_set_doit()
222 struct devlink *devlink = info->user_ptr[0]; in devlink_resource_fill()
290 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_resource_dump_doit()
Dhealth.c360 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_get_doit()
458 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_set_doit()
667 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_recover_doit()
1120 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_diagnose_doit()
1215 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_dump_clear_doit()
1232 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_test_doit()
/linux-6.12.1/drivers/gpu/drm/i915/gem/
Di915_gem_userptr.c490 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl()
493 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl()
513 ret = probe_range(current->mm, args->user_ptr, args->user_size); in i915_gem_userptr_ioctl()
531 obj->userptr.ptr = args->user_ptr; in i915_gem_userptr_ioctl()
/linux-6.12.1/drivers/gpu/drm/etnaviv/
Detnaviv_drv.c392 if (offset_in_page(args->user_ptr | args->user_size) || in etnaviv_ioctl_gem_userptr()
393 (uintptr_t)args->user_ptr != args->user_ptr || in etnaviv_ioctl_gem_userptr()
395 args->user_ptr & ~PAGE_MASK) in etnaviv_ioctl_gem_userptr()
398 if (!access_ok((void __user *)(unsigned long)args->user_ptr, in etnaviv_ioctl_gem_userptr()
402 return etnaviv_gem_new_userptr(dev, file, args->user_ptr, in etnaviv_ioctl_gem_userptr()
/linux-6.12.1/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c1030 void __user *user_ptr, size_t array_size, in v4l2_compat_get_array_args() argument
1050 struct v4l2_plane32 __user *p32 = user_ptr; in v4l2_compat_get_array_args()
1073 struct v4l2_ext_control32 __user *ec32 = user_ptr; in v4l2_compat_get_array_args()
1093 if (copy_from_user(mbuf, user_ptr, array_size)) in v4l2_compat_get_array_args()
1101 int v4l2_compat_put_array_args(struct file *file, void __user *user_ptr, in v4l2_compat_put_array_args() argument
1120 struct v4l2_plane32 __user *p32 = user_ptr; in v4l2_compat_put_array_args()
1143 struct v4l2_ext_control32 __user *ec32 = user_ptr; in v4l2_compat_put_array_args()
1166 if (copy_to_user(user_ptr, mbuf, array_size)) in v4l2_compat_put_array_args()
/linux-6.12.1/arch/x86/xen/
Dmmu_pv.c465 pgd_t *user_ptr = NULL; in xen_get_user_pgd() local
469 user_ptr = (pgd_t *)page->private; in xen_get_user_pgd()
470 if (user_ptr) in xen_get_user_pgd()
471 user_ptr += offset; in xen_get_user_pgd()
474 return user_ptr; in xen_get_user_pgd()
508 pgd_t *user_ptr = xen_get_user_pgd((pgd_t *)ptr); in xen_set_p4d() local
511 trace_xen_mmu_set_p4d(ptr, (p4d_t *)user_ptr, val); in xen_set_p4d()
517 if (user_ptr) { in xen_set_p4d()
518 WARN_ON(xen_page_pinned(user_ptr)); in xen_set_p4d()
520 *user_ptr = pgd_val; in xen_set_p4d()
[all …]
/linux-6.12.1/arch/arm64/kernel/
Darmv8_deprecated.c167 const void __user *user_ptr; in swp_handler() local
199 user_ptr = (const void __user *)(unsigned long)(address & ~3); in swp_handler()
200 if (!access_ok(user_ptr, 4)) { in swp_handler()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dread_vsyscall.c51 skel->bss->user_ptr = (void *)VSYSCALL_ADDR; in test_read_vsyscall()
Dprobe_read_user_str.c20 skel->bss->user_ptr = buf; in test_one_str()

123