| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | read_vsyscall.c | 10 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 D | string_kfuncs_failure1.c | 9 char *user_ptr = (char *)1; variable 26 * user_ptr (instead of causing an exception) so the below two groups of tests 56 SEC("syscall") __retval(USER_PTR_ERR) int test_strcmp_user_ptr1(void *ctx) { return bpf_strcmp(user_ptr, "hello"); } in __retval() 57 SEC("syscall") __retval(USER_PTR_ERR) int test_strcmp_user_ptr2(void *ctx) { return bpf_strcmp("hello", user_ptr); } in __retval() 58 SEC("syscall") __retval(USER_PTR_ERR) int test_strcasecmp_user_ptr1(void *ctx) { return bpf_strcasecmp(user_ptr, "HELLO"); } in __retval() 59 SEC("syscall") __retval(USER_PTR_ERR) int test_strcasecmp_user_ptr2(void *ctx) { return bpf_strcasecmp("HELLO", user_ptr); } in __retval() 60 SEC("syscall") __retval(USER_PTR_ERR) int test_strchr_user_ptr(void *ctx) { return bpf_strchr(user_ptr, 'a'); } in __retval() 61 SEC("syscall") __retval(USER_PTR_ERR) int test_strchrnul_user_ptr(void *ctx) { return bpf_strchrnul(user_ptr, 'a'); } in __retval() 62 SEC("syscall") __retval(USER_PTR_ERR) int test_strnchr_user_ptr(void *ctx) { return bpf_strnchr(user_ptr, 1, 'a'); } in __retval() 63 SEC("syscall") __retval(USER_PTR_ERR) int test_strrchr_user_ptr(void *ctx) { return bpf_strrchr(user_ptr, ' in __retval() [all...] |
| H A D | test_attach_probe.c | 24 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 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()
|
| H A D | dynptr_success.c | 909 void *user_ptr; 910 /* Contains the copy of the data pointed by user_ptr. in test_dynptr_probe_str() 1062 test_dynptr_probe(user_ptr, bpf_probe_read_user_dynptr); in bpf_copy_data_from_user_task_str() 1064 test_dynptr_probe_xdp(xdp, user_ptr, bpf_probe_read_user_dynptr); in bpf_copy_data_from_user_task_str() 1080 test_dynptr_probe_str(user_ptr, bpf_probe_read_user_str_dynptr); in test_copy_from_user_task_str_dynptr() 1082 test_dynptr_probe_str_xdp(xdp, user_ptr, bpf_probe_read_user_str_dynptr); in test_copy_from_user_task_str_dynptr() 1098 test_dynptr_probe(user_ptr, bpf_copy_from_user_dynptr); 1105 test_dynptr_probe_str(user_ptr, bpf_copy_from_user_str_dynptr); 1128 test_dynptr_probe(user_ptr, bpf_copy_data_from_user_task); 1135 test_dynptr_probe_str(user_ptr, bpf_copy_data_from_user_task_st 854 void *user_ptr; global() variable [all...] |
| H A D | uprobe_multi.c | 34 void *user_ptr = 0; in verify_sleepable_user_copy() 40 bpf_copy_from_user(data, sizeof(data), user_ptr); in uprobe_multi_check() 27 void *user_ptr = 0; global() variable
|
| H A D | task_work_fail.c | 13 const void *user_ptr = NULL; variable 39 bpf_copy_from_user_str(work->data, sizeof(work->data), (const void *)user_ptr, 0); in process_work()
|
| H A D | task_work.c | 14 const void *user_ptr = NULL; variable 47 bpf_copy_from_user_str(work->data, sizeof(work->data), (const void *)user_ptr, 0); in process_work()
|
| H A D | test_attach_probe_manual.c | 15 void *user_ptr = 0; variable
|
| /linux/drivers/accessibility/speakup/ |
| H 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/net/wireless/ |
| H A D | nl80211.c | 3442 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_wiphy() 3754 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_channel() 3756 struct net_device *netdev = info->user_ptr[1]; in nl80211_set_channel() 4410 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_interface() 4411 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_get_interface() 4559 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_parse_vif_radio_mask() 4581 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_interface() 4585 struct net_device *dev = info->user_ptr[1]; in nl80211_set_interface() 4656 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in _nl80211_new_interface() 4757 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_new_interface() [all …]
|
| /linux/net/devlink/ |
| H A D | sb.c | 207 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 …]
|
| H A D | netlink.c | 222 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 D | rate.c | 243 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_rate_get_doit() 589 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_rate_set_doit() 611 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_rate_new_doit() 667 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_rate_del_doit()
|
| /linux/drivers/net/ovpn/ |
| H A D | netlink.c | 75 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[0]; in ovpn_nl_key_get_doit() [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | armv8_deprecated.c | 167 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/tools/testing/selftests/bpf/prog_tests/ |
| H A D | read_vsyscall.c | 52 skel->bss->user_ptr = (void *)VSYSCALL_ADDR; in test_read_vsyscall()
|
| H A D | probe_read_user_str.c | 20 skel->bss->user_ptr = buf; in test_one_str()
|
| H A D | dynptr.c | 82 skel->bss->user_ptr = user_data; in verify_success()
|
| /linux/drivers/dpll/ |
| H A D | dpll_netlink.c | 1592 struct dpll_pin *pin = info->user_ptr[0]; in dpll_nl_pin_get_doit() 1657 struct dpll_pin *pin = info->user_ptr[0]; in dpll_nl_pin_set_doit() 1766 struct dpll_device *dpll = info->user_ptr[0]; in dpll_nl_device_get_doit() 1820 struct dpll_device *dpll = info->user_ptr[0]; in dpll_nl_device_set_doit() 1869 info->user_ptr[0] = dpll_device_get_by_id(id); in dpll_pre_doit() 1870 if (!info->user_ptr[0]) { in dpll_pre_doit() 1912 info->user_ptr[0] = xa_load(&dpll_pin_xa, in dpll_pin_pre_doit() 1914 if (!info->user_ptr[0] || in dpll_pin_pre_doit() 1915 !dpll_pin_available(info->user_ptr[0])) { in dpll_pin_pre_doit()
|
| /linux/drivers/android/ |
| H A D | binder_alloc.h | 138 unsigned long user_ptr);
|
| H A D | binder_alloc.c | 130 unsigned long user_ptr) in binder_alloc_prepare_to_free_locked() argument 139 if (user_ptr < buffer->user_data) { in binder_alloc_prepare_to_free_locked() 141 } else if (user_ptr > buffer->user_data) { in binder_alloc_prepare_to_free_locked() 170 unsigned long user_ptr) in binder_alloc_prepare_to_free() argument 173 return binder_alloc_prepare_to_free_locked(alloc, user_ptr); in binder_alloc_prepare_to_free()
|
| /linux/kernel/trace/ |
| H A D | trace_syscalls.c | 869 char *user_ptr; in ftrace_syscall_enter() local 905 if (syscall_get_data(sys_data, args, &user_ptr, in ftrace_syscall_enter() 922 syscall_put_data(sys_data, entry, user_ptr, size, user_sizes, uargs); in ftrace_syscall_enter() 1407 char *user_ptr; in perf_syscall_enter() local 1438 if (syscall_get_data(sys_data, args, &user_ptr, in perf_syscall_enter() 1461 syscall_put_data(sys_data, rec, user_ptr, size, user_sizes, uargs); in perf_syscall_enter()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_ioctl.c | 570 void __user *user_ptr; in drm_set_client_name() local 576 user_ptr = u64_to_user_ptr(name->name); in drm_set_client_name() 578 new_name = memdup_user_nul(user_ptr, len); in drm_set_client_name()
|
| /linux/include/uapi/drm/ |
| H A D | etnaviv_drm.h | 233 __u64 user_ptr; /* in, page aligned user pointer */ member
|