Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/bpf/progs/
H A Dread_vsyscall.c10 void *user_ptr = 0; variable
30 read_ret[0] = bpf_probe_read_kernel(buf, sizeof(buf), user_ptr); in do_probe_read()
31 read_ret[1] = bpf_probe_read_kernel_str(buf, sizeof(buf), user_ptr); in do_probe_read()
32 read_ret[2] = bpf_probe_read(buf, sizeof(buf), user_ptr); in do_probe_read()
33 read_ret[3] = bpf_probe_read_str(buf, sizeof(buf), user_ptr); in do_probe_read()
34 read_ret[4] = bpf_probe_read_user(buf, sizeof(buf), user_ptr); in do_probe_read()
35 read_ret[5] = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr); in do_probe_read()
48 read_ret[6] = bpf_copy_from_user(buf, sizeof(buf), user_ptr); in do_copy_from_user()
49 read_ret[7] = bpf_copy_from_user_task(buf, sizeof(buf), user_ptr, in do_copy_from_user()
51 read_ret[8] = bpf_copy_from_user_str((char *)buf, sizeof(buf), user_ptr, in do_copy_from_user()
[all...]
H A Dstring_kfuncs_failure1.c9 char *user_ptr = (char *)1; variable
26 * user_ptr (instead of causing an exception) so the below two groups of tests
50 SEC("syscall") __retval(USER_PTR_ERR) int test_strcmp_user_ptr1(void *ctx) { return bpf_strcmp(user_ptr, "hello"); } in __retval()
51 SEC("syscall") __retval(USER_PTR_ERR) int test_strcmp_user_ptr2(void *ctx) { return bpf_strcmp("hello", user_ptr); } in __retval()
52 SEC("syscall") __retval(USER_PTR_ERR) int test_strchr_user_ptr(void *ctx) { return bpf_strchr(user_ptr, 'a'); } in __retval()
53 SEC("syscall") __retval(USER_PTR_ERR) int test_strchrnul_user_ptr(void *ctx) { return bpf_strchrnul(user_ptr, 'a'); } in __retval()
54 SEC("syscall") __retval(USER_PTR_ERR) int test_strnchr_user_ptr(void *ctx) { return bpf_strnchr(user_ptr, 1, 'a'); } in __retval()
55 SEC("syscall") __retval(USER_PTR_ERR) int test_strrchr_user_ptr(void *ctx) { return bpf_strrchr(user_ptr, 'a'); } in __retval()
56 SEC("syscall") __retval(USER_PTR_ERR) int test_strlen_user_ptr(void *ctx) { return bpf_strlen(user_ptr); } in __retval()
57 SEC("syscall") __retval(USER_PTR_ERR) int test_strnlen_user_ptr(void *ctx) { return bpf_strnlen(user_ptr, in __retval()
[all...]
H A 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()
H A Dbpf_iter_tasks.c12 void *user_ptr = 0; variable
116 ret = bpf_copy_from_user_task_str((char *)task_str2, 10, user_ptr, task, 0); in dump_task_sleepable()
124 ret = bpf_copy_from_user_task_str((char *)task_str3, 2, user_ptr, task, 0); in dump_task_sleepable()
131 ret = bpf_copy_from_user_task_str((char *)task_str4, 20, user_ptr, task, 0); in dump_task_sleepable()
139 ret = bpf_copy_from_user_task_str((char *)task_str4, 20, user_ptr, task, BPF_F_PAD_ZEROS); in dump_task_sleepable()
147 ret = bpf_copy_from_user_task_str(big_str1, 5000, user_ptr, task, 0); in dump_task_sleepable()
H A 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()
H A Duprobe_multi_session.c18 void *user_ptr = 0; variable
61 bpf_copy_from_user(data, sizeof(data), user_ptr); in verify_sleepable_user_copy()
H A Duprobe_multi.c34 void *user_ptr = 0; variable
40 bpf_copy_from_user(data, sizeof(data), user_ptr); in verify_sleepable_user_copy()
H A Dtest_attach_probe_manual.c15 void *user_ptr = 0; variable
/linux/net/ieee802154/
H A 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()
962 * user_ptr[1] so that nl802154_post_doit won't dereference it 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[ in nl802154_set_cca_mode()
[all...]
/linux/net/batman-adv/
H A Dnetlink.c67 * saved in info->user_ptr[0]
74 * saved in info->user_ptr[1]
81 * saved in info->user_ptr[1]
408 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_mesh()
437 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_set_mesh()
706 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_start()
763 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_cancel()
891 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_cmd_get_hardif()
892 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_cmd_get_hardif()
924 struct batadv_hard_iface *hard_iface = info->user_ptr[ in batadv_netlink_set_hardif()
[all...]
/linux/drivers/accessibility/speakup/
H A 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/drivers/accel/ivpu/
H A Divpu_ms.c111 void __user *user_ptr, u64 user_size, u64 *user_bytes_copied) in copy_leftover_bytes() argument
117 if (copy_to_user(user_ptr + *user_bytes_copied, ms->leftover_addr, copy_bytes)) in copy_leftover_bytes()
130 void __user *user_ptr, u64 user_size, u64 *user_bytes_copied) in copy_samples_to_user() argument
137 ret = copy_leftover_bytes(ms, user_ptr, user_size, user_bytes_copied); in copy_samples_to_user()
155 return copy_leftover_bytes(ms, user_ptr, user_size, user_bytes_copied); in copy_samples_to_user()
/linux/net/wireless/
H A Dnl80211.c3312 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_wiphy()
3627 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_channel()
3629 struct net_device *netdev = info->user_ptr[1]; in nl80211_set_channel()
4281 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_interface()
4282 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_get_interface()
4430 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_parse_vif_radio_mask()
4452 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_interface()
4456 struct net_device *dev = info->user_ptr[1]; in nl80211_set_interface()
4527 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in _nl80211_new_interface()
4628 struct cfg80211_registered_device *rdev = info->user_ptr[ in nl80211_new_interface()
[all...]
/linux/net/devlink/
H A 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[ in devlink_nl_sb_occ_snapshot_doit()
[all...]
H A 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()
H A 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()
H A 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()
685 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_eswitch_get_doit()
706 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_eswitch_set_doit()
908 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_info_get_doit()
1136 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_flash_update_doit()
1304 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_selftests_get_doit()
1374 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_selftests_run_doit()
H A Dresource.c110 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_resource_set_doit()
219 struct devlink *devlink = info->user_ptr[0]; in devlink_resource_fill()
287 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_resource_dump_doit()
/linux/drivers/net/ovpn/
H A Dnetlink.c75 netdevice_tracker *tracker = (netdevice_tracker *)&info->user_ptr[1]; in ovpn_nl_pre_doit()
82 info->user_ptr[0] = ovpn; in ovpn_nl_pre_doit()
90 netdevice_tracker *tracker = (netdevice_tracker *)&info->user_ptr[1]; in ovpn_nl_post_doit()
91 struct ovpn_priv *ovpn = info->user_ptr[0]; in ovpn_nl_post_doit()
344 struct ovpn_priv *ovpn = info->user_ptr[0]; in ovpn_nl_peer_new_doit()
469 struct ovpn_priv *ovpn = info->user_ptr[0]; in ovpn_nl_peer_set_doit()
653 struct ovpn_priv *ovpn = info->user_ptr[0]; in ovpn_nl_peer_get_doit()
779 struct ovpn_priv *ovpn = info->user_ptr[0]; in ovpn_nl_peer_del_doit()
878 struct ovpn_priv *ovpn = info->user_ptr[0]; in ovpn_nl_key_new_doit()
983 struct ovpn_priv *ovpn = info->user_ptr[ in ovpn_nl_key_get_doit()
[all...]
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_userptr.c489 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl()
492 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl()
512 ret = probe_range(current->mm, args->user_ptr, args->user_size); in i915_gem_userptr_ioctl()
530 obj->userptr.ptr = args->user_ptr; in i915_gem_userptr_ioctl()
/linux/arch/arm64/kernel/
H A 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/arch/x86/xen/
H A Dmmu_pv.c510 pgd_t *user_ptr = NULL; in xen_get_user_pgd() local
514 user_ptr = (pgd_t *)page->private; in xen_get_user_pgd()
515 if (user_ptr) in xen_get_user_pgd()
516 user_ptr += offset; in xen_get_user_pgd()
519 return user_ptr; in xen_get_user_pgd()
553 pgd_t *user_ptr = xen_get_user_pgd((pgd_t *)ptr); in xen_set_p4d() local
556 trace_xen_mmu_set_p4d(ptr, (p4d_t *)user_ptr, val); in xen_set_p4d()
562 if (user_ptr) { in xen_set_p4d()
563 WARN_ON(xen_page_pinned(user_ptr)); in xen_set_p4d()
565 *user_ptr in xen_set_p4d()
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dread_vsyscall.c52 skel->bss->user_ptr = (void *)VSYSCALL_ADDR; in test_read_vsyscall()
H A Dprobe_read_user_str.c20 skel->bss->user_ptr = buf; in test_one_str()
/linux/drivers/dpll/
H A Ddpll_netlink.c1539 struct dpll_pin *pin = info->user_ptr[0]; in dpll_nl_pin_get_doit()
1604 struct dpll_pin *pin = info->user_ptr[0]; in dpll_nl_pin_set_doit()
1711 struct dpll_device *dpll = info->user_ptr[0]; in dpll_nl_device_get_doit()
1754 struct dpll_device *dpll = info->user_ptr[0]; in dpll_nl_device_set_doit()
1803 info->user_ptr[0] = dpll_device_get_by_id(id); in dpll_pre_doit()
1804 if (!info->user_ptr[0]) { in dpll_pre_doit()
1846 info->user_ptr[0] = xa_load(&dpll_pin_xa, in dpll_pin_pre_doit()
1848 if (!info->user_ptr[0] || in dpll_pin_pre_doit()
1849 !dpll_pin_available(info->user_ptr[0])) { in dpll_pin_pre_doit()

12