/Linux-v5.4/drivers/infiniband/core/ |
D | uverbs_ioctl.c | 136 static bool uverbs_is_attr_cleared(const struct ib_uverbs_attr *uattr, in uverbs_is_attr_cleared() argument 139 if (uattr->len > sizeof(((struct ib_uverbs_attr *)0)->data)) in uverbs_is_attr_cleared() 140 return ib_is_buffer_cleared(u64_to_user_ptr(uattr->data) + len, in uverbs_is_attr_cleared() 141 uattr->len - len); in uverbs_is_attr_cleared() 143 return !memchr_inv((const void *)&uattr->data + len, in uverbs_is_attr_cleared() 144 0, uattr->len - len); in uverbs_is_attr_cleared() 165 struct ib_uverbs_attr *uattr, in uverbs_process_idrs_array() argument 174 if (uattr->attr_data.reserved) in uverbs_process_idrs_array() 177 if (uattr->len % sizeof(u32)) in uverbs_process_idrs_array() 180 array_len = uattr->len / sizeof(u32); in uverbs_process_idrs_array() [all …]
|
D | uverbs_std_types_counters.c | 90 const struct uverbs_attr *uattr; in UVERBS_HANDLER() local 107 uattr = uverbs_attr_get(attrs, UVERBS_ATTR_READ_COUNTERS_BUFF); in UVERBS_HANDLER() 108 read_attr.ncounters = uattr->ptr_attr.len / sizeof(u64); in UVERBS_HANDLER()
|
/Linux-v5.4/net/bpf/ |
D | test_run.c | 77 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() argument 95 if (copy_to_user(&uattr->test.data_size_out, &size, sizeof(size))) in bpf_test_finish() 97 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) in bpf_test_finish() 99 if (copy_to_user(&uattr->test.duration, &duration, sizeof(duration))) in bpf_test_finish() 160 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish() argument 177 if (copy_to_user(&uattr->test.ctx_size_out, &size, sizeof(size))) in bpf_ctx_finish() 242 union bpf_attr __user *uattr) in bpf_prog_test_run_skb() argument 330 ret = bpf_test_finish(kattr, uattr, skb->data, size, retval, duration); in bpf_prog_test_run_skb() 332 ret = bpf_ctx_finish(kattr, uattr, ctx, in bpf_prog_test_run_skb() 343 union bpf_attr __user *uattr) in bpf_prog_test_run_xdp() argument [all …]
|
/Linux-v5.4/kernel/bpf/ |
D | syscall.c | 1630 static int bpf_prog_load(union bpf_attr *attr, union bpf_attr __user *uattr) in bpf_prog_load() argument 1720 err = bpf_check(&prog, attr, uattr); in bpf_prog_load() 2054 union bpf_attr __user *uattr) in bpf_prog_query() argument 2084 return lirc_prog_query(attr, uattr); in bpf_prog_query() 2086 return skb_flow_dissector_prog_query(attr, uattr); in bpf_prog_query() 2091 return cgroup_bpf_prog_query(attr, uattr); in bpf_prog_query() 2097 union bpf_attr __user *uattr) in bpf_prog_test_run() argument 2120 ret = prog->aux->ops->test_run(prog, attr, uattr); in bpf_prog_test_run() 2129 union bpf_attr __user *uattr, in bpf_obj_get_next_id() argument 2149 err = put_user(next_id, &uattr->next_id); in bpf_obj_get_next_id() [all …]
|
D | cgroup.c | 492 union bpf_attr __user *uattr) in __cgroup_bpf_query() argument 509 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __cgroup_bpf_query() 511 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) in __cgroup_bpf_query() 578 union bpf_attr __user *uattr) in cgroup_bpf_prog_query() argument 587 ret = cgroup_bpf_query(cgrp, attr, uattr); in cgroup_bpf_prog_query()
|
D | verifier.c | 6404 union bpf_attr __user *uattr) in check_btf_func() argument 6451 if (put_user(min_size, &uattr->func_info_rec_size)) in check_btf_func() 6524 union bpf_attr __user *uattr) in check_btf_line() argument 6566 &uattr->line_info_rec_size)) in check_btf_line() 6646 union bpf_attr __user *uattr) in check_btf_info() argument 6659 err = check_btf_func(env, attr, uattr); in check_btf_info() 6663 err = check_btf_line(env, attr, uattr); in check_btf_info() 9212 union bpf_attr __user *uattr) in bpf_check() argument 9295 ret = check_btf_info(env, attr, uattr); in bpf_check()
|
D | btf.c | 3460 union bpf_attr __user *uattr) in btf_get_info_by_fd() argument 3483 put_user(info_copy, &uattr->info.info_len)) in btf_get_info_by_fd()
|
/Linux-v5.4/include/linux/ |
D | bpf_lirc.h | 10 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr); 24 union bpf_attr __user *uattr) in lirc_prog_query() argument
|
D | bpf-cgroup.h | 92 union bpf_attr __user *uattr); 100 union bpf_attr __user *uattr); 334 union bpf_attr __user *uattr); 356 union bpf_attr __user *uattr) in cgroup_bpf_prog_query() argument
|
D | bpf.h | 302 union bpf_attr __user *uattr); 713 union bpf_attr __user *uattr); 744 union bpf_attr __user *uattr); 746 union bpf_attr __user *uattr); 749 union bpf_attr __user *uattr); 862 union bpf_attr __user *uattr) in bpf_prog_test_run_xdp() argument 869 union bpf_attr __user *uattr) in bpf_prog_test_run_skb() argument 876 union bpf_attr __user *uattr) in bpf_prog_test_run_flow_dissector() argument
|
D | btf.h | 21 union bpf_attr __user *uattr);
|
D | skbuff.h | 1254 union bpf_attr __user *uattr); 1261 union bpf_attr __user *uattr) in skb_flow_dissector_prog_query() argument
|
/Linux-v5.4/drivers/media/rc/ |
D | bpf-lirc.c | 294 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in lirc_prog_query() argument 321 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) { in lirc_prog_query() 326 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
|
/Linux-v5.4/ipc/ |
D | mqueue.c | 1430 const struct compat_mq_attr __user *uattr) in get_compat_mq_attr() argument 1434 if (copy_from_user(&v, uattr, sizeof(*uattr))) in get_compat_mq_attr() 1446 struct compat_mq_attr __user *uattr) in put_compat_mq_attr() argument 1455 if (copy_to_user(uattr, &v, sizeof(*uattr))) in put_compat_mq_attr()
|
/Linux-v5.4/kernel/sched/ |
D | core.c | 5113 static int sched_copy_attr(struct sched_attr __user *uattr, struct sched_attr *attr) in sched_copy_attr() argument 5121 ret = get_user(size, &uattr->size); in sched_copy_attr() 5131 ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); in sched_copy_attr() 5151 put_user(sizeof(*attr), &uattr->size); in sched_copy_attr() 5189 SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE3() argument 5196 if (!uattr || pid < 0 || flags) in SYSCALL_DEFINE3() 5199 retval = sched_copy_attr(uattr, &attr); in SYSCALL_DEFINE3() 5303 sched_attr_copy_to_user(struct sched_attr __user *uattr, in sched_attr_copy_to_user() argument 5309 if (!access_ok(uattr, usize)) in sched_attr_copy_to_user() 5327 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user() [all …]
|
/Linux-v5.4/net/core/ |
D | flow_dissector.c | 74 union bpf_attr __user *uattr) in skb_flow_dissector_prog_query() argument 98 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in skb_flow_dissector_prog_query() 100 if (copy_to_user(&uattr->query.prog_cnt, &prog_cnt, sizeof(prog_cnt))) in skb_flow_dissector_prog_query()
|
/Linux-v5.4/kernel/events/ |
D | core.c | 5156 static int perf_copy_attr(struct perf_event_attr __user *uattr, 10619 static int perf_copy_attr(struct perf_event_attr __user *uattr, in perf_copy_attr() argument 10628 ret = get_user(size, &uattr->size); in perf_copy_attr() 10638 ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); in perf_copy_attr() 10720 put_user(sizeof(*attr), &uattr->size); in perf_copy_attr()
|
/Linux-v5.4/kernel/cgroup/ |
D | cgroup.c | 6432 union bpf_attr __user *uattr) in cgroup_bpf_query() argument 6437 ret = __cgroup_bpf_query(cgrp, attr, uattr); in cgroup_bpf_query()
|