/Linux-v5.10/drivers/infiniband/core/ |
D | uverbs_ioctl.c | 137 static bool uverbs_is_attr_cleared(const struct ib_uverbs_attr *uattr, in uverbs_is_attr_cleared() argument 140 if (uattr->len > sizeof_field(struct ib_uverbs_attr, data)) in uverbs_is_attr_cleared() 141 return ib_is_buffer_cleared(u64_to_user_ptr(uattr->data) + len, in uverbs_is_attr_cleared() 142 uattr->len - len); in uverbs_is_attr_cleared() 144 return !memchr_inv((const void *)&uattr->data + len, in uverbs_is_attr_cleared() 145 0, uattr->len - len); in uverbs_is_attr_cleared() 166 struct ib_uverbs_attr *uattr, in uverbs_process_idrs_array() argument 175 if (uattr->attr_data.reserved) in uverbs_process_idrs_array() 178 if (uattr->len % sizeof(u32)) in uverbs_process_idrs_array() 181 array_len = uattr->len / sizeof(u32); in uverbs_process_idrs_array() [all …]
|
D | uverbs_std_types_counters.c | 93 const struct uverbs_attr *uattr; in UVERBS_HANDLER() local 110 uattr = uverbs_attr_get(attrs, UVERBS_ATTR_READ_COUNTERS_BUFF); in UVERBS_HANDLER() 111 read_attr.ncounters = uattr->ptr_attr.len / sizeof(u64); in UVERBS_HANDLER()
|
/Linux-v5.10/net/bpf/ |
D | test_run.c | 83 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() argument 101 if (copy_to_user(&uattr->test.data_size_out, &size, sizeof(size))) in bpf_test_finish() 103 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) in bpf_test_finish() 105 if (copy_to_user(&uattr->test.duration, &duration, sizeof(duration))) in bpf_test_finish() 201 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() argument 234 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) in bpf_prog_test_run_tracing() 261 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp() argument 313 copy_to_user(&uattr->test.retval, &info.retval, sizeof(u32))) in bpf_prog_test_run_raw_tp() 353 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish() argument 370 if (copy_to_user(&uattr->test.ctx_size_out, &size, sizeof(size))) in bpf_ctx_finish() [all …]
|
/Linux-v5.10/arch/powerpc/platforms/powernv/ |
D | vas-api.c | 76 struct vas_tx_win_open_attr uattr; in coproc_ioc_tx_win_open() local 89 rc = copy_from_user(&uattr, uptr, sizeof(uattr)); in coproc_ioc_tx_win_open() 95 if (uattr.version != 1) { in coproc_ioc_tx_win_open() 100 vasid = uattr.vas_id; in coproc_ioc_tx_win_open()
|
/Linux-v5.10/kernel/bpf/ |
D | syscall.c | 1253 union bpf_attr __user *uattr) in generic_map_delete_batch() argument 1296 if (copy_to_user(&uattr->batch.count, &cp, sizeof(cp))) in generic_map_delete_batch() 1305 union bpf_attr __user *uattr) in generic_map_update_batch() argument 1354 if (copy_to_user(&uattr->batch.count, &cp, sizeof(cp))) in generic_map_update_batch() 1366 union bpf_attr __user *uattr) in generic_map_lookup_batch() argument 1389 if (put_user(0, &uattr->batch.count)) in generic_map_lookup_batch() 1453 if ((copy_to_user(&uattr->batch.count, &cp, sizeof(cp)) || in generic_map_lookup_batch() 2099 static int bpf_prog_load(union bpf_attr *attr, union bpf_attr __user *uattr) in bpf_prog_load() argument 2210 err = bpf_check(&prog, attr, uattr); in bpf_prog_load() 3057 union bpf_attr __user *uattr) in bpf_prog_query() argument [all …]
|
D | hashtab.c | 1368 union bpf_attr __user *uattr, in __htab_map_lookup_and_delete_batch() argument 1402 if (put_user(0, &uattr->batch.count)) in __htab_map_lookup_and_delete_batch() 1569 put_user(total, &uattr->batch.count)) in __htab_map_lookup_and_delete_batch() 1580 union bpf_attr __user *uattr) in htab_percpu_map_lookup_batch() argument 1582 return __htab_map_lookup_and_delete_batch(map, attr, uattr, false, in htab_percpu_map_lookup_batch() 1589 union bpf_attr __user *uattr) in htab_percpu_map_lookup_and_delete_batch() argument 1591 return __htab_map_lookup_and_delete_batch(map, attr, uattr, true, in htab_percpu_map_lookup_and_delete_batch() 1597 union bpf_attr __user *uattr) in htab_map_lookup_batch() argument 1599 return __htab_map_lookup_and_delete_batch(map, attr, uattr, false, in htab_map_lookup_batch() 1606 union bpf_attr __user *uattr) in htab_map_lookup_and_delete_batch() argument [all …]
|
D | net_namespace.c | 246 union bpf_attr __user *uattr, in __netns_bpf_prog_query() argument 259 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __netns_bpf_prog_query() 261 if (copy_to_user(&uattr->query.prog_cnt, &prog_cnt, sizeof(prog_cnt))) in __netns_bpf_prog_query() 271 union bpf_attr __user *uattr) in netns_bpf_prog_query() argument 289 ret = __netns_bpf_prog_query(attr, uattr, net, type); in netns_bpf_prog_query()
|
D | cgroup.c | 713 union bpf_attr __user *uattr) in __cgroup_bpf_query() argument 731 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __cgroup_bpf_query() 733 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) in __cgroup_bpf_query() 949 union bpf_attr __user *uattr) in cgroup_bpf_prog_query() argument 958 ret = cgroup_bpf_query(cgrp, attr, uattr); in cgroup_bpf_prog_query()
|
D | verifier.c | 8165 union bpf_attr __user *uattr) in check_btf_func() argument 8220 if (put_user(min_size, &uattr->func_info_rec_size)) in check_btf_func() 8310 union bpf_attr __user *uattr) in check_btf_line() argument 8352 &uattr->line_info_rec_size)) in check_btf_line() 8432 union bpf_attr __user *uattr) in check_btf_info() argument 8448 err = check_btf_func(env, attr, uattr); in check_btf_info() 8452 err = check_btf_line(env, attr, uattr); in check_btf_info() 11816 union bpf_attr __user *uattr) in bpf_check() argument 11908 ret = check_btf_info(env, attr, uattr); in bpf_check()
|
D | btf.c | 5484 union bpf_attr __user *uattr) in btf_get_info_by_fd() argument 5508 put_user(info_copy, &uattr->info.info_len)) in btf_get_info_by_fd()
|
/Linux-v5.10/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-netns.h | 36 union bpf_attr __user *uattr); 44 union bpf_attr __user *uattr) in netns_bpf_prog_query() argument
|
D | bpf.h | 64 union bpf_attr __user *uattr); 67 union bpf_attr __user *uattr); 69 union bpf_attr __user *uattr); 71 union bpf_attr __user *uattr); 434 union bpf_attr __user *uattr); 1230 union bpf_attr __user *uattr); 1233 union bpf_attr __user *uattr); 1236 union bpf_attr __user *uattr); 1373 union bpf_attr __user *uattr); 1410 union bpf_attr __user *uattr); [all …]
|
D | bpf-cgroup.h | 106 union bpf_attr __user *uattr); 116 union bpf_attr __user *uattr); 380 union bpf_attr __user *uattr); 408 union bpf_attr __user *uattr) in cgroup_bpf_prog_query() argument
|
D | btf.h | 26 union bpf_attr __user *uattr);
|
/Linux-v5.10/drivers/media/rc/ |
D | bpf-lirc.c | 291 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in lirc_prog_query() argument 318 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) { in lirc_prog_query() 323 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
|
/Linux-v5.10/ipc/ |
D | mqueue.c | 1516 const struct compat_mq_attr __user *uattr) in get_compat_mq_attr() argument 1520 if (copy_from_user(&v, uattr, sizeof(*uattr))) in get_compat_mq_attr() 1532 struct compat_mq_attr __user *uattr) in put_compat_mq_attr() argument 1541 if (copy_to_user(uattr, &v, sizeof(*uattr))) in put_compat_mq_attr()
|
/Linux-v5.10/kernel/sched/ |
D | core.c | 5620 static int sched_copy_attr(struct sched_attr __user *uattr, struct sched_attr *attr) in sched_copy_attr() argument 5628 ret = get_user(size, &uattr->size); in sched_copy_attr() 5638 ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); in sched_copy_attr() 5658 put_user(sizeof(*attr), &uattr->size); in sched_copy_attr() 5696 SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE3() argument 5703 if (!uattr || pid < 0 || flags) in SYSCALL_DEFINE3() 5706 retval = sched_copy_attr(uattr, &attr); in SYSCALL_DEFINE3() 5810 sched_attr_copy_to_user(struct sched_attr __user *uattr, in sched_attr_copy_to_user() argument 5816 if (!access_ok(uattr, usize)) in sched_attr_copy_to_user() 5834 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user() [all …]
|
/Linux-v5.10/kernel/trace/ |
D | bpf_trace.c | 1782 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() argument
|
/Linux-v5.10/kernel/events/ |
D | core.c | 5452 static int perf_copy_attr(struct perf_event_attr __user *uattr, 11351 static int perf_copy_attr(struct perf_event_attr __user *uattr, in perf_copy_attr() argument 11360 ret = get_user(size, &uattr->size); in perf_copy_attr() 11370 ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); in perf_copy_attr() 11460 put_user(sizeof(*attr), &uattr->size); in perf_copy_attr()
|
/Linux-v5.10/kernel/cgroup/ |
D | cgroup.c | 6524 union bpf_attr __user *uattr) in cgroup_bpf_query() argument 6529 ret = __cgroup_bpf_query(cgrp, attr, uattr); in cgroup_bpf_query()
|