/kernel/futex/ |
D | futex.h | 119 extern int get_futex_key(u32 __user *uaddr, bool fshared, union futex_key *key, 143 extern int futex_wait_setup(u32 __user *uaddr, u32 val, unsigned int flags, 149 extern int fault_in_user_writeable(u32 __user *uaddr); 150 extern int futex_cmpxchg_value_locked(u32 *curval, u32 __user *uaddr, u32 uval, u32 newval); 151 extern int futex_get_value_locked(u32 *dest, u32 __user *from); 223 extern int futex_lock_pi_atomic(u32 __user *uaddr, struct futex_hash_bucket *hb, 233 extern int fixup_pi_owner(u32 __user *uaddr, struct futex_q *q, int locked); 259 extern int futex_wait_requeue_pi(u32 __user *uaddr, unsigned int flags, u32 260 val, ktime_t *abs_time, u32 bitset, u32 __user 263 extern int futex_requeue(u32 __user *uaddr1, unsigned int flags, [all …]
|
D | syscalls.c | 30 SYSCALL_DEFINE2(set_robust_list, struct robust_list_head __user *, head, in SYSCALL_DEFINE2() argument 51 struct robust_list_head __user * __user *, head_ptr, in SYSCALL_DEFINE3() argument 52 size_t __user *, len_ptr) in SYSCALL_DEFINE3() argument 54 struct robust_list_head __user *head; in SYSCALL_DEFINE3() 86 long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout, in do_futex() 87 u32 __user *uaddr2, u32 val2, u32 val3) in do_futex() 166 SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val, in SYSCALL_DEFINE6() argument 167 const struct __kernel_timespec __user *, utime, in SYSCALL_DEFINE6() argument 168 u32 __user *, uaddr2, u32, val3) in SYSCALL_DEFINE6() 200 struct futex_waitv __user *uwaitv, in futex_parse_waitv() [all …]
|
D | core.c | 221 int get_futex_key(u32 __user *uaddr, bool fshared, union futex_key *key, in get_futex_key() 420 int fault_in_user_writeable(u32 __user *uaddr) in fault_in_user_writeable() 451 int futex_cmpxchg_value_locked(u32 *curval, u32 __user *uaddr, u32 uval, u32 newval) in futex_cmpxchg_value_locked() 462 int futex_get_value_locked(u32 *dest, u32 __user *from) in futex_get_value_locked() 651 static int handle_futex_death(u32 __user *uaddr, struct task_struct *curr, in handle_futex_death() 766 static inline int fetch_robust_entry(struct robust_list __user **entry, in fetch_robust_entry() 767 struct robust_list __user * __user *head, in fetch_robust_entry() 772 if (get_user(uentry, (unsigned long __user *)head)) in fetch_robust_entry() 775 *entry = (void __user *)(uentry & ~1UL); in fetch_robust_entry() 789 struct robust_list_head __user *head = curr->robust_list; in exit_robust_list() [all …]
|
D | waitwake.c | 144 int futex_wake(u32 __user *uaddr, unsigned int flags, int nr_wake, u32 bitset) in futex_wake() 193 static int futex_atomic_op_inuser(unsigned int encoded_op, u32 __user *uaddr) in futex_atomic_op_inuser() 243 int futex_wake_op(u32 __user *uaddr1, unsigned int flags, u32 __user *uaddr2, in futex_wake_op() 443 u32 __user *uaddr = (u32 __user *)(unsigned long)vs[i].w.uaddr; in futex_wait_multiple_setup() 584 int futex_wait_setup(u32 __user *uaddr, u32 val, unsigned int flags, in futex_wait_setup() 639 int futex_wait(u32 __user *uaddr, unsigned int flags, u32 val, ktime_t *abs_time, u32 bitset) in futex_wait() 705 u32 __user *uaddr = restart->futex.uaddr; in futex_wait_restart()
|
D | pi.c | 202 static int attach_to_pi_state(u32 __user *uaddr, u32 uval, in attach_to_pi_state() 320 static int handle_exit_race(u32 __user *uaddr, u32 uval, in handle_exit_race() 410 static int attach_to_pi_owner(u32 __user *uaddr, u32 uval, union futex_key *key, in attach_to_pi_owner() 474 static int lock_pi_update_atomic(u32 __user *uaddr, u32 uval, u32 newval) in lock_pi_update_atomic() 514 int futex_lock_pi_atomic(u32 __user *uaddr, struct futex_hash_bucket *hb, in futex_lock_pi_atomic() 613 static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_pi_state *pi_state) in wake_futex_pi() 683 static int __fixup_pi_state_owner(u32 __user *uaddr, struct futex_q *q, in __fixup_pi_state_owner() 855 static int fixup_pi_state_owner(u32 __user *uaddr, struct futex_q *q, in fixup_pi_state_owner() 884 int fixup_pi_owner(u32 __user *uaddr, struct futex_q *q, int locked) in fixup_pi_owner() 930 int futex_lock_pi(u32 __user *uaddr, unsigned int flags, ktime_t *time, int trylock) in futex_lock_pi() [all …]
|
D | requeue.c | 267 futex_proxy_trylock_atomic(u32 __user *pifutex, struct futex_hash_bucket *hb1, in futex_proxy_trylock_atomic() 364 int futex_requeue(u32 __user *uaddr1, unsigned int flags, u32 __user *uaddr2, in futex_requeue() 762 int futex_wait_requeue_pi(u32 __user *uaddr, unsigned int flags, in futex_wait_requeue_pi() 764 u32 __user *uaddr2) in futex_wait_requeue_pi()
|
/kernel/ |
D | sysctl-test.c | 36 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data() 82 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset() 125 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_len_is_zero() 159 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_read_but_position_set() 197 char __user *user_buffer = (char __user *)buffer; in sysctl_test_dointvec_read_happy_single_positive() 228 char __user *user_buffer = (char __user *)buffer; in sysctl_test_dointvec_read_happy_single_negative() 258 char __user *user_buffer = (char __user *)buffer; in sysctl_test_dointvec_write_happy_single_positive() 288 char __user *user_buffer = (char __user *)buffer; in sysctl_test_dointvec_write_happy_single_negative() 319 char __user *user_buffer = (char __user *)buffer; in sysctl_test_api_dointvec_write_single_less_int_min() 357 char __user *user_buffer = (char __user *)buffer; in sysctl_test_api_dointvec_write_single_greater_int_max()
|
D | uid16.c | 23 SYSCALL_DEFINE3(chown16, const char __user *, filename, old_uid_t, user, old_gid_t, group) in SYSCALL_DEFINE3() argument 28 SYSCALL_DEFINE3(lchown16, const char __user *, filename, old_uid_t, user, old_gid_t, group) in SYSCALL_DEFINE3() argument 64 SYSCALL_DEFINE3(getresuid16, old_uid_t __user *, ruidp, old_uid_t __user *, euidp, old_uid_t __user… in SYSCALL_DEFINE3() argument 87 SYSCALL_DEFINE3(getresgid16, old_gid_t __user *, rgidp, old_gid_t __user *, egidp, old_gid_t __user… in SYSCALL_DEFINE3() argument 114 static int groups16_to_user(old_gid_t __user *grouplist, in groups16_to_user() 133 old_gid_t __user *grouplist) in groups16_from_user() 154 SYSCALL_DEFINE2(getgroups16, int, gidsetsize, old_gid_t __user *, grouplist) in SYSCALL_DEFINE2() argument 177 SYSCALL_DEFINE2(setgroups16, int, gidsetsize, old_gid_t __user *, grouplist) in SYSCALL_DEFINE2() argument
|
D | signal.c | 71 static void __user *sig_handler(struct task_struct *t, int sig) in sig_handler() 76 static inline bool sig_handler_ignored(void __user *handler, int sig) in sig_handler_ignored() 85 void __user *handler; in sig_task_ignored() 561 void __user *handler = tsk->sighand->action[sig-1].sa.sa_handler; in unhandled_signal() 1726 int force_sig_fault_to_task(int sig, int code, void __user *addr in force_sig_fault_to_task() 1745 int force_sig_fault(int sig, int code, void __user *addr in force_sig_fault() 1752 int send_sig_fault(int sig, int code, void __user *addr in send_sig_fault() 1771 int force_sig_mceerr(int code, void __user *addr, short lsb) in force_sig_mceerr() 1785 int send_sig_mceerr(int code, void __user *addr, short lsb, struct task_struct *t) in send_sig_mceerr() 1800 int force_sig_bnderr(void __user *addr, void __user *lower, void __user *upper) in force_sig_bnderr() [all …]
|
D | compat.c | 41 compat_old_sigset_t __user *, nset, in COMPAT_SYSCALL_DEFINE3() argument 42 compat_old_sigset_t __user *, oset) in COMPAT_SYSCALL_DEFINE3() 83 int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru) in put_compat_rusage() 110 static int compat_get_user_cpu_mask(compat_ulong_t __user *user_mask_ptr, in compat_get_user_cpu_mask() 126 compat_ulong_t __user *, user_mask_ptr) in COMPAT_SYSCALL_DEFINE3() argument 145 compat_ulong_t __user *, user_mask_ptr) in COMPAT_SYSCALL_DEFINE3() argument 180 const struct compat_sigevent __user *u_event) in get_compat_sigevent() 193 long compat_get_bitmap(unsigned long *mask, const compat_ulong_t __user *umask, in compat_get_bitmap() 222 long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask, in compat_put_bitmap() 250 get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat) in get_compat_sigset()
|
D | sys.c | 742 SYSCALL_DEFINE3(getresuid, uid_t __user *, ruidp, uid_t __user *, euidp, uid_t __user *, suidp) in SYSCALL_DEFINE3() argument 831 SYSCALL_DEFINE3(getresgid, gid_t __user *, rgidp, gid_t __user *, egidp, gid_t __user *, sgidp) in SYSCALL_DEFINE3() argument 1018 SYSCALL_DEFINE1(times, struct tms __user *, tbuf) in SYSCALL_DEFINE1() argument 1037 COMPAT_SYSCALL_DEFINE1(times, struct compat_tms __user *, tbuf) in COMPAT_SYSCALL_DEFINE1() argument 1275 static int override_release(char __user *release, size_t len) in override_release() 1301 SYSCALL_DEFINE1(newuname, struct new_utsname __user *, name) in SYSCALL_DEFINE1() argument 1322 SYSCALL_DEFINE1(uname, struct old_utsname __user *, name) in SYSCALL_DEFINE1() argument 1342 SYSCALL_DEFINE1(olduname, struct oldold_utsname __user *, name) in SYSCALL_DEFINE1() argument 1369 SYSCALL_DEFINE2(sethostname, char __user *, name, int, len) in SYSCALL_DEFINE2() argument 1397 SYSCALL_DEFINE2(gethostname, char __user *, name, int, len) in SYSCALL_DEFINE2() argument [all …]
|
D | rseq.c | 88 struct rseq __user *rseq = t->rseq; in rseq_update_cpu_id() 125 struct rseq_cs __user *urseq_cs; in rseq_get_rseq_cs() 127 u32 __user *usig; in rseq_get_rseq_cs() 144 urseq_cs = (struct rseq_cs __user *)(unsigned long)ptr; in rseq_get_rseq_cs() 160 usig = (u32 __user *)(unsigned long)(rseq_cs->abort_ip - sizeof(u32)); in rseq_get_rseq_cs() 336 SYSCALL_DEFINE4(rseq, struct rseq __user *, rseq, u32, rseq_len, in SYSCALL_DEFINE4() argument
|
D | ptrace.c | 626 int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len) in ptrace_readdata() 652 int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len) in ptrace_writedata() 737 ret = copy_from_user(&arg, (void __user *) addr, in ptrace_peek_siginfo() 777 compat_siginfo_t __user *uinfo = compat_ptr(data); in ptrace_peek_siginfo() 787 siginfo_t __user *uinfo = (siginfo_t __user *) data; in ptrace_peek_siginfo() 812 unsigned long size, void __user *data) in ptrace_get_rseq_configuration() 988 void __user *datavp) in ptrace_get_syscall_info() 1036 void __user *datavp = (void __user *) data; in ptrace_request() 1037 unsigned long __user *datalp = datavp; in ptrace_request() 1228 struct iovec __user *uiov = datavp; in ptrace_request() [all …]
|
D | groups.c | 37 static int groups_to_user(gid_t __user *grouplist, in groups_to_user() 55 gid_t __user *grouplist) in groups_from_user() 161 SYSCALL_DEFINE2(getgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2() argument 198 SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2() argument
|
D | seccomp.c | 692 seccomp_prepare_user_filter(const char __user *user_filter) in seccomp_prepare_user_filter() 1455 void __user *buf) in seccomp_notify_recv() 1527 void __user *buf) in seccomp_notify_send() 1571 void __user *buf) in seccomp_notify_id_valid() 1595 struct seccomp_notif_addfd __user *uaddfd, in seccomp_notify_addfd() 1712 void __user *buf = (void __user *)arg; in seccomp_notify_ioctl() 1838 const char __user *filter) in seccomp_set_mode_filter() 1937 const char __user *filter) in seccomp_set_mode_filter() 1943 static long seccomp_get_action_avail(const char __user *uaction) in seccomp_get_action_avail() 1967 static long seccomp_get_notif_sizes(void __user *usizes) in seccomp_get_notif_sizes() [all …]
|
/kernel/time/ |
D | time.c | 62 SYSCALL_DEFINE1(time, __kernel_old_time_t __user *, tloc) in SYSCALL_DEFINE1() argument 81 SYSCALL_DEFINE1(stime, __kernel_old_time_t __user *, tptr) in SYSCALL_DEFINE1() argument 105 SYSCALL_DEFINE1(time32, old_time32_t __user *, tloc) in SYSCALL_DEFINE1() argument 119 SYSCALL_DEFINE1(stime32, old_time32_t __user *, tptr) in SYSCALL_DEFINE1() argument 140 SYSCALL_DEFINE2(gettimeofday, struct __kernel_old_timeval __user *, tv, in SYSCALL_DEFINE2() argument 141 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument 199 SYSCALL_DEFINE2(settimeofday, struct __kernel_old_timeval __user *, tv, in SYSCALL_DEFINE2() argument 200 struct timezone __user *, tz) in SYSCALL_DEFINE2() argument 224 COMPAT_SYSCALL_DEFINE2(gettimeofday, struct old_timeval32 __user *, tv, in COMPAT_SYSCALL_DEFINE2() argument 225 struct timezone __user *, tz) in COMPAT_SYSCALL_DEFINE2() argument [all …]
|
D | posix-stubs.c | 61 const struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument 95 struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument 109 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument 129 const struct __kernel_timespec __user *, rqtp, in SYSCALL_DEFINE4() argument 130 struct __kernel_timespec __user *, rmtp) in SYSCALL_DEFINE4() 175 struct old_timespec32 __user *, tp) in SYSCALL_DEFINE2() argument 188 struct old_timespec32 __user *, tp) in SYSCALL_DEFINE2() argument 203 struct old_timespec32 __user *, tp) in SYSCALL_DEFINE2() argument 223 struct old_timespec32 __user *, rqtp, in SYSCALL_DEFINE4() argument 224 struct old_timespec32 __user *, rmtp) in SYSCALL_DEFINE4()
|
D | itimer.c | 100 static int put_itimerval(struct __kernel_old_itimerval __user *o, in put_itimerval() 113 SYSCALL_DEFINE2(getitimer, int, which, struct __kernel_old_itimerval __user *, value) in SYSCALL_DEFINE2() argument 129 static int put_old_itimerval32(struct old_itimerval32 __user *o, in put_old_itimerval32() 142 struct old_itimerval32 __user *, value) in COMPAT_SYSCALL_DEFINE2() argument 313 static int get_itimerval(struct itimerspec64 *o, const struct __kernel_old_itimerval __user *i) in get_itimerval() 332 SYSCALL_DEFINE3(setitimer, int, which, struct __kernel_old_itimerval __user *, value, in SYSCALL_DEFINE3() argument 333 struct __kernel_old_itimerval __user *, ovalue) in SYSCALL_DEFINE3() 359 static int get_old_itimerval32(struct itimerspec64 *o, const struct old_itimerval32 __user *i) in get_old_itimerval32() 379 struct old_itimerval32 __user *, value, in COMPAT_SYSCALL_DEFINE3() argument 380 struct old_itimerval32 __user *, ovalue) in COMPAT_SYSCALL_DEFINE3()
|
D | posix-timers.c | 499 timer_t __user *created_timer_id) in do_timer_create() 578 struct sigevent __user *, timer_event_spec, in SYSCALL_DEFINE3() argument 579 timer_t __user *, created_timer_id) in SYSCALL_DEFINE3() argument 593 struct compat_sigevent __user *, timer_event_spec, in COMPAT_SYSCALL_DEFINE3() argument 594 timer_t __user *, created_timer_id) in COMPAT_SYSCALL_DEFINE3() argument 739 struct __kernel_itimerspec __user *, setting) in SYSCALL_DEFINE2() argument 754 struct old_itimerspec32 __user *, setting) in SYSCALL_DEFINE2() argument 943 const struct __kernel_itimerspec __user *, new_setting, in SYSCALL_DEFINE4() argument 944 struct __kernel_itimerspec __user *, old_setting) in SYSCALL_DEFINE4() 966 struct old_itimerspec32 __user *, new, in SYSCALL_DEFINE4() argument [all …]
|
/kernel/power/ |
D | user.c | 134 static ssize_t snapshot_read(struct file *filp, char __user *buf, in snapshot_read() 168 static ssize_t snapshot_write(struct file *filp, const char __user *buf, in snapshot_write() 214 void __user *argp) in snapshot_set_swap_area() 313 error = put_user(in_suspend, (int __user *)arg); in snapshot_ioctl() 355 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl() 361 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl() 372 error = put_user(offset, (loff_t __user *)arg); in snapshot_ioctl() 409 error = snapshot_set_swap_area(data, (void __user *)arg); in snapshot_ioctl()
|
/kernel/trace/ |
D | trace_probe_kernel.h | 15 const void __user *uaddr = (__force const void __user *)addr; in kern_fetch_store_strlen_user() 54 const void __user *uaddr = (__force const void __user *)addr; in kern_fetch_store_string_user()
|
/kernel/trace/rv/ |
D | rv.c | 212 static ssize_t monitor_enable_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_enable_read_data() 282 static ssize_t monitor_enable_write_data(struct file *filp, const char __user *user_buf, in monitor_enable_write_data() 317 static ssize_t monitor_desc_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_desc_read_data() 512 static ssize_t enabled_monitors_write(struct file *filp, const char __user *user_buf, in enabled_monitors_write() 596 static ssize_t monitoring_on_read_data(struct file *filp, char __user *user_buf, in monitoring_on_read_data() 647 static ssize_t monitoring_on_write_data(struct file *filp, const char __user *user_buf, in monitoring_on_write_data()
|
/kernel/bpf/ |
D | syscall.c | 737 static ssize_t bpf_dummy_read(struct file *filp, char __user *buf, size_t siz, in bpf_dummy_read() 746 static ssize_t bpf_dummy_write(struct file *filp, const char __user *buf, in bpf_dummy_write() 1285 static void *__bpf_copy_key(void __user *ukey, u64 key_size) in __bpf_copy_key() 1312 void __user *ukey = u64_to_user_ptr(attr->key); in map_lookup_elem() 1313 void __user *uvalue = u64_to_user_ptr(attr->value); in map_lookup_elem() 1498 void __user *ukey = u64_to_user_ptr(attr->key); in map_get_next_key() 1499 void __user *unext_key = u64_to_user_ptr(attr->next_key); in map_get_next_key() 1562 union bpf_attr __user *uattr) in generic_map_delete_batch() 1564 void __user *keys = u64_to_user_ptr(attr->batch.keys); in generic_map_delete_batch() 1619 union bpf_attr __user *uattr) in generic_map_update_batch() [all …]
|
/kernel/entry/ |
D | syscall_user_dispatch.c | 26 info.si_call_addr = (void __user *)KSTK_EIP(current); in trigger_sigsys() 72 unsigned long len, char __user *selector) in set_syscall_user_dispatch()
|
/kernel/locking/ |
D | lock_events.c | 61 ssize_t __weak lockevent_read(struct file *file, char __user *user_buf, in lockevent_read() 88 static ssize_t lockevent_write(struct file *file, const char __user *user_buf, in lockevent_write()
|