Home
last modified time | relevance | path

Searched refs:uattr (Results 1 – 3 of 3) sorted by relevance

/kernel/bpf/
Dsyscall.c670 SYSCALL_DEFINE3(bpf, int, cmd, union bpf_attr __user *, uattr, unsigned int, size) in SYSCALL_DEFINE3() argument
678 if (!access_ok(VERIFY_READ, uattr, 1)) in SYSCALL_DEFINE3()
694 addr = (void __user *)uattr + sizeof(attr); in SYSCALL_DEFINE3()
695 end = (void __user *)uattr + size; in SYSCALL_DEFINE3()
709 if (copy_from_user(&attr, uattr, size) != 0) in SYSCALL_DEFINE3()
/kernel/sched/
Dcore.c4266 static int sched_copy_attr(struct sched_attr __user *uattr, in sched_copy_attr() argument
4272 if (!access_ok(VERIFY_WRITE, uattr, SCHED_ATTR_SIZE_VER0)) in sched_copy_attr()
4280 ret = get_user(size, &uattr->size); in sched_copy_attr()
4304 addr = (void __user *)uattr + sizeof(*attr); in sched_copy_attr()
4305 end = (void __user *)uattr + size; in sched_copy_attr()
4317 ret = copy_from_user(attr, uattr, size); in sched_copy_attr()
4330 put_user(sizeof(*attr), &uattr->size); in sched_copy_attr()
4370 SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE3() argument
4377 if (!uattr || pid < 0 || flags) in SYSCALL_DEFINE3()
4380 retval = sched_copy_attr(uattr, &attr); in SYSCALL_DEFINE3()
[all …]
/kernel/events/
Dcore.c8066 static int perf_copy_attr(struct perf_event_attr __user *uattr, in perf_copy_attr() argument
8072 if (!access_ok(VERIFY_WRITE, uattr, PERF_ATTR_SIZE_VER0)) in perf_copy_attr()
8080 ret = get_user(size, &uattr->size); in perf_copy_attr()
8104 addr = (void __user *)uattr + sizeof(*attr); in perf_copy_attr()
8105 end = (void __user *)uattr + size; in perf_copy_attr()
8117 ret = copy_from_user(attr, uattr, size); in perf_copy_attr()
8191 put_user(sizeof(*attr), &uattr->size); in perf_copy_attr()