Searched refs:__user (Results 1 - 200 of 2345) sorted by relevance

1234567891011>>

/linux-4.4.14/arch/sparc/kernel/
H A Dsigutil.h4 int save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu);
5 int restore_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu);
6 int save_rwin_state(int wsaved, __siginfo_rwin_t __user *rwin);
7 int restore_rwin_state(__siginfo_rwin_t __user *rp);
H A Dsystbls.h14 asmlinkage long sys_getdomainname(char __user *name, int len);
35 void __user *ptr, long fifth);
46 utrap_handler_t __user *old_p,
47 utrap_handler_t __user *old_d);
52 asmlinkage long sys32_truncate64(const char __user * path,
59 asmlinkage long compat_sys_stat64(const char __user * filename,
60 struct compat_stat64 __user *statbuf);
61 asmlinkage long compat_sys_lstat64(const char __user * filename,
62 struct compat_stat64 __user *statbuf);
64 struct compat_stat64 __user * statbuf);
66 const char __user *filename,
67 struct compat_stat64 __user * statbuf, int flag);
69 char __user *ubuf,
74 char __user *ubuf,
97 struct compat_stat64 __user * statbuf);
99 const char __user *filename,
100 struct compat_stat64 __user * statbuf,
H A Dsys_sparc32.c54 asmlinkage long sys32_truncate64(const char __user * path, unsigned long high, unsigned long low) sys32_truncate64()
71 struct compat_stat64 __user *statbuf) cp_compat_stat64()
82 err |= put_user(0, (unsigned long __user *) &statbuf->__pad3[0]); cp_compat_stat64()
85 err |= put_user(0, (unsigned int __user *) &statbuf->__pad4[0]); cp_compat_stat64()
86 err |= put_user(0, (unsigned int __user *) &statbuf->__pad4[4]); cp_compat_stat64()
100 asmlinkage long compat_sys_stat64(const char __user * filename, compat_sys_stat64()
101 struct compat_stat64 __user *statbuf) compat_sys_stat64()
111 asmlinkage long compat_sys_lstat64(const char __user * filename, compat_sys_lstat64()
112 struct compat_stat64 __user *statbuf) compat_sys_lstat64()
123 struct compat_stat64 __user * statbuf) compat_sys_fstat64()
134 const char __user *filename, compat_sys_fstatat64()
135 struct compat_stat64 __user * statbuf, int flag) compat_sys_fstatat64()
147 struct compat_old_sigaction __user *,act, COMPAT_SYSCALL_DEFINE3()
148 struct compat_old_sigaction __user *,oact) COMPAT_SYSCALL_DEFINE3()
155 struct compat_sigaction __user *,act, COMPAT_SYSCALL_DEFINE5()
156 struct compat_sigaction __user *,oact, COMPAT_SYSCALL_DEFINE5()
157 void __user *,restorer, COMPAT_SYSCALL_DEFINE5()
199 char __user *ubuf, sys32_pread64()
208 char __user *ubuf, sys32_pwrite64()
H A Dsignal_32.c40 __siginfo_fpu_t __user *fpu_save;
44 __siginfo_rwin_t __user *rwin_save;
52 __siginfo_fpu_t __user *fpu_save;
56 __siginfo_rwin_t __user *rwin_save;
67 static inline bool invalid_frame_pointer(void __user *fp, int fplen) invalid_frame_pointer()
78 struct signal_frame __user *sf; do_sigreturn()
80 __siginfo_fpu_t __user *fpu_save; do_sigreturn()
81 __siginfo_rwin_t __user *rwin_save; do_sigreturn()
89 sf = (struct signal_frame __user *) regs->u_regs[UREG_FP]; do_sigreturn()
144 struct rt_signal_frame __user *sf; do_rt_sigreturn()
146 __siginfo_fpu_t __user *fpu_save; do_rt_sigreturn()
147 __siginfo_rwin_t __user *rwin_save; do_rt_sigreturn()
152 sf = (struct rt_signal_frame __user *) regs->u_regs[UREG_FP]; do_rt_sigreturn()
201 static inline void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, unsigned long framesize) get_sigframe()
210 return (void __user *) -1L; get_sigframe()
223 return (void __user *) sp; get_sigframe()
229 struct signal_frame __user *sf; setup_frame()
231 void __user *tail; setup_frame()
244 sf = (struct signal_frame __user *) setup_frame()
260 __siginfo_fpu_t __user *fp = tail; setup_frame()
268 __siginfo_rwin_t __user *rwp = tail; setup_frame()
324 struct rt_signal_frame __user *sf; setup_rt_frame()
326 void __user *tail; setup_rt_frame()
337 sf = (struct rt_signal_frame __user *) setup_rt_frame()
356 __siginfo_fpu_t __user *fp = tail; setup_rt_frame()
364 __siginfo_rwin_t __user *rwp = tail; setup_rt_frame()
532 asmlinkage int do_sys_sigstack(struct sigstack __user *ssptr, do_sys_sigstack()
533 struct sigstack __user *ossptr, do_sys_sigstack()
H A Dptrace_32.c51 void *kbuf, void __user *ubuf) genregs32_get()
54 unsigned long __user *reg_window; genregs32_get()
56 unsigned long __user *u = ubuf; genregs32_get()
69 reg_window = (unsigned long __user *) regs->u_regs[UREG_I6]; genregs32_get()
81 reg_window = (unsigned long __user *) regs->u_regs[UREG_I6]; genregs32_get()
129 const void *kbuf, const void __user *ubuf) genregs32_set()
132 unsigned long __user *reg_window; genregs32_set()
134 const unsigned long __user *u = ubuf; genregs32_set()
147 reg_window = (unsigned long __user *) regs->u_regs[UREG_I6]; genregs32_set()
160 reg_window = (unsigned long __user *) regs->u_regs[UREG_I6]; genregs32_set()
213 void *kbuf, void __user *ubuf) fpregs32_get()
257 const void *kbuf, const void __user *ubuf) fpregs32_set()
344 void __user *addr2p; arch_ptrace()
346 struct pt_regs __user *pregs; arch_ptrace()
347 struct fps __user *fps; arch_ptrace()
351 addr2p = (void __user *) addr2; arch_ptrace()
352 pregs = (struct pt_regs __user *) addr; arch_ptrace()
353 fps = (struct fps __user *) addr; arch_ptrace()
H A Dsigutil_32.c14 int save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) save_fpu_state()
48 int restore_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) restore_fpu_state()
82 int save_rwin_state(int wsaved, __siginfo_rwin_t __user *rwin) save_rwin_state()
99 int restore_rwin_state(__siginfo_rwin_t __user *rp) restore_rwin_state()
H A Dsigutil_64.c14 int save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) save_fpu_state()
34 int restore_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) restore_fpu_state()
58 int save_rwin_state(int wsaved, __siginfo_rwin_t __user *rwin) save_rwin_state()
73 int restore_rwin_state(__siginfo_rwin_t __user *rp) restore_rwin_state()
H A Dptrace_64.c127 if (copy_from_user(kbuf, (void __user *) uaddr, len)) get_from_target()
141 if (copy_to_user((void __user *) uaddr, kbuf, len)) set_to_target()
210 void *kbuf, void __user *ubuf) genregs64_get()
260 const void *kbuf, const void __user *ubuf) genregs64_set()
334 void *kbuf, void __user *ubuf) fpregs64_get()
401 const void *kbuf, const void __user *ubuf) fpregs64_set()
478 void *kbuf, void __user *ubuf) genregs32_get()
481 compat_ulong_t __user *reg_window; genregs32_get()
483 compat_ulong_t __user *u = ubuf; genregs32_get()
496 reg_window = (compat_ulong_t __user *) regs->u_regs[UREG_I6]; genregs32_get()
521 reg_window = (compat_ulong_t __user *) regs->u_regs[UREG_I6]; genregs32_get()
587 const void *kbuf, const void __user *ubuf) genregs32_set()
590 compat_ulong_t __user *reg_window; genregs32_set()
592 const compat_ulong_t __user *u = ubuf; genregs32_set()
605 reg_window = (compat_ulong_t __user *) regs->u_regs[UREG_I6]; genregs32_set()
632 reg_window = (compat_ulong_t __user *) regs->u_regs[UREG_I6]; genregs32_set()
706 void *kbuf, void __user *ubuf) fpregs32_get()
760 const void *kbuf, const void __user *ubuf) fpregs32_set()
868 struct pt_regs32 __user *pregs; compat_arch_ptrace()
869 struct compat_fps __user *fps; compat_arch_ptrace()
875 pregs = (struct pt_regs32 __user *) addr; compat_arch_ptrace()
876 fps = (struct compat_fps __user *) addr; compat_arch_ptrace()
941 (char __user *)addr2, data); compat_arch_ptrace()
950 ret = ptrace_writedata(child, (char __user *) addr2, compat_arch_ptrace()
979 struct pt_regs __user *pregs; arch_ptrace()
980 struct fps __user *fps; arch_ptrace()
981 void __user *addr2p; arch_ptrace()
984 pregs = (struct pt_regs __user *) addr; arch_ptrace()
985 fps = (struct fps __user *) addr; arch_ptrace()
986 addr2p = (void __user *) addr2; arch_ptrace()
H A Dsignal_64.c46 struct ucontext __user *ucp = (struct ucontext __user *) sparc64_set_context()
49 mc_gregset_t __user *grp; sparc64_set_context()
108 (&(((struct reg_window __user *)(STACK_BIAS+regs->u_regs[UREG_I6]))->ins[6]))); sparc64_set_context()
110 (&(((struct reg_window __user *)(STACK_BIAS+regs->u_regs[UREG_I6]))->ins[7]))); sparc64_set_context()
125 ((unsigned long __user *)&(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs))+16, sparc64_set_context()
145 struct ucontext __user *ucp = (struct ucontext __user *) sparc64_get_context()
148 mc_gregset_t __user *grp; sparc64_get_context()
149 mcontext_t __user *mcp; sparc64_get_context()
178 (unsigned long __user *)&ucp->uc_sigmask); sparc64_get_context()
204 (&(((struct reg_window __user *)(STACK_BIAS+regs->u_regs[UREG_I6]))->ins[6]))); sparc64_get_context()
206 (&(((struct reg_window __user *)(STACK_BIAS+regs->u_regs[UREG_I6]))->ins[7]))); sparc64_get_context()
221 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, sparc64_get_context()
241 static bool invalid_frame_pointer(void __user *fp) invalid_frame_pointer()
252 __siginfo_fpu_t __user *fpu_save;
261 struct rt_signal_frame __user *sf; do_rt_sigreturn()
262 __siginfo_fpu_t __user *fpu_save; do_rt_sigreturn()
263 __siginfo_rwin_t __user *rwin_save; do_rt_sigreturn()
271 sf = (struct rt_signal_frame __user *) do_rt_sigreturn()
328 static inline void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, unsigned long framesize) get_sigframe()
337 return (void __user *) -1L; get_sigframe()
350 return (void __user *) sp; get_sigframe()
356 struct rt_signal_frame __user *sf; setup_rt_frame()
358 void __user *tail; setup_rt_frame()
371 sf = (struct rt_signal_frame __user *) setup_rt_frame()
385 __siginfo_fpu_t __user *fpu_save = tail; setup_rt_frame()
393 __siginfo_rwin_t __user *rwin_save = tail; setup_rt_frame()
408 err |= copy_in_user((u64 __user *)sf, setup_rt_frame()
409 (u64 __user *)(regs->u_regs[UREG_FP] + setup_rt_frame()
H A Dsys_sparc_32.c156 info.si_addr = (void __user *)regs->pc; sparc_breakpoint()
166 struct old_sigaction __user *,act, SYSCALL_DEFINE3()
167 struct old_sigaction __user *,oact) SYSCALL_DEFINE3()
174 const struct sigaction __user *, act, SYSCALL_DEFINE5()
175 struct sigaction __user *, oact, SYSCALL_DEFINE5()
176 void __user *, restorer, SYSCALL_DEFINE5()
202 asmlinkage long sys_getdomainname(char __user *name, int len) sys_getdomainname()
H A Dsignal32.c72 int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from) copy_siginfo_to_user32()
128 int copy_siginfo_from_user32(siginfo_t *to, compat_siginfo_t __user *from) copy_siginfo_from_user32()
145 static bool invalid_frame_pointer(void __user *fp, int fplen) invalid_frame_pointer()
155 struct signal_frame32 __user *sf; do_sigreturn32()
170 sf = (struct signal_frame32 __user *) regs->u_regs[UREG_FP]; do_sigreturn32()
246 struct rt_signal_frame32 __user *sf; do_rt_sigreturn32()
259 sf = (struct rt_signal_frame32 __user *) regs->u_regs[UREG_FP]; do_rt_sigreturn32()
332 static void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, unsigned long framesize) get_sigframe()
344 return (void __user *) -1L; get_sigframe()
357 return (void __user *) sp; get_sigframe()
421 struct signal_frame32 __user *sf; setup_frame32()
423 void __user *tail; setup_frame32()
440 sf = (struct signal_frame32 __user *) setup_frame32()
473 __siginfo_fpu_t __user *fp = tail; setup_frame32()
481 __siginfo_rwin_t __user *rwp = tail; setup_frame32()
501 err |= copy_in_user((u32 __user *)sf, setup_frame32()
502 (u32 __user *)(regs->u_regs[UREG_FP]), setup_frame32()
552 struct rt_signal_frame32 __user *sf; setup_rt_frame32()
554 void __user *tail; setup_rt_frame32()
571 sf = (struct rt_signal_frame32 __user *) setup_rt_frame32()
604 __siginfo_fpu_t __user *fp = tail; setup_rt_frame32()
612 __siginfo_rwin_t __user *rwp = tail; setup_rt_frame32()
632 err |= copy_in_user((u32 __user *)sf, setup_rt_frame32()
633 (u32 __user *)(regs->u_regs[UREG_FP]), setup_rt_frame32()
769 struct sigstack32 __user *ssptr = do_sys32_sigstack()
770 (struct sigstack32 __user *)((unsigned long)(u_ssptr)); do_sys32_sigstack()
771 struct sigstack32 __user *ossptr = do_sys32_sigstack()
772 (struct sigstack32 __user *)((unsigned long)(u_ossptr)); do_sys32_sigstack()
/linux-4.4.14/arch/s390/kernel/
H A Dcompat_wrapper.c62 COMPAT_SYSCALL_WRAP2(creat, const char __user *, pathname, umode_t, mode);
63 COMPAT_SYSCALL_WRAP2(link, const char __user *, oldname, const char __user *, newname);
64 COMPAT_SYSCALL_WRAP1(unlink, const char __user *, pathname);
65 COMPAT_SYSCALL_WRAP1(chdir, const char __user *, filename);
66 COMPAT_SYSCALL_WRAP3(mknod, const char __user *, filename, umode_t, mode, unsigned, dev);
67 COMPAT_SYSCALL_WRAP2(chmod, const char __user *, filename, umode_t, mode);
68 COMPAT_SYSCALL_WRAP1(oldumount, char __user *, name);
69 COMPAT_SYSCALL_WRAP2(access, const char __user *, filename, int, mode);
70 COMPAT_SYSCALL_WRAP2(rename, const char __user *, oldname, const char __user *, newname);
71 COMPAT_SYSCALL_WRAP2(mkdir, const char __user *, pathname, umode_t, mode);
72 COMPAT_SYSCALL_WRAP1(rmdir, const char __user *, pathname);
73 COMPAT_SYSCALL_WRAP1(pipe, int __user *, fildes);
76 COMPAT_SYSCALL_WRAP1(acct, const char __user *, name);
77 COMPAT_SYSCALL_WRAP2(umount, char __user *, name, int, flags);
78 COMPAT_SYSCALL_WRAP1(chroot, const char __user *, filename);
80 COMPAT_SYSCALL_WRAP2(sethostname, char __user *, name, int, len);
81 COMPAT_SYSCALL_WRAP2(symlink, const char __user *, old, const char __user *, new);
82 COMPAT_SYSCALL_WRAP3(readlink, const char __user *, path, char __user *, buf, int, bufsiz);
83 COMPAT_SYSCALL_WRAP1(uselib, const char __user *, library);
84 COMPAT_SYSCALL_WRAP2(swapon, const char __user *, specialfile, int, swap_flags);
85 COMPAT_SYSCALL_WRAP4(reboot, int, magic1, int, magic2, unsigned int, cmd, void __user *, arg);
87 COMPAT_SYSCALL_WRAP3(syslog, int, type, char __user *, buf, int, len);
88 COMPAT_SYSCALL_WRAP1(swapoff, const char __user *, specialfile);
89 COMPAT_SYSCALL_WRAP2(setdomainname, char __user *, name, int, len);
90 COMPAT_SYSCALL_WRAP1(newuname, struct new_utsname __user *, name);
92 COMPAT_SYSCALL_WRAP3(init_module, void __user *, umod, unsigned long, len, const char __user *, uargs);
93 COMPAT_SYSCALL_WRAP2(delete_module, const char __user *, name_user, unsigned int, flags);
94 COMPAT_SYSCALL_WRAP4(quotactl, unsigned int, cmd, const char __user *, special, qid_t, id, void __user *, addr);
97 COMPAT_SYSCALL_WRAP5(llseek, unsigned int, fd, unsigned long, high, unsigned long, low, loff_t __user *, result, unsigned int, whence);
101 COMPAT_SYSCALL_WRAP2(sched_setparam, pid_t, pid, struct sched_param __user *, param);
102 COMPAT_SYSCALL_WRAP2(sched_getparam, pid_t, pid, struct sched_param __user *, param);
103 COMPAT_SYSCALL_WRAP3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param);
105 COMPAT_SYSCALL_WRAP3(poll, struct pollfd __user *, ufds, unsigned int, nfds, int, timeout);
107 COMPAT_SYSCALL_WRAP2(getcwd, char __user *, buf, unsigned long, size);
110 COMPAT_SYSCALL_WRAP3(lchown, const char __user *, filename, uid_t, user, gid_t, group);
111 COMPAT_SYSCALL_WRAP2(getgroups, int, gidsetsize, gid_t __user *, grouplist);
112 COMPAT_SYSCALL_WRAP2(setgroups, int, gidsetsize, gid_t __user *, grouplist);
113 COMPAT_SYSCALL_WRAP3(getresuid, uid_t __user *, ruid, uid_t __user *, euid, uid_t __user *, suid);
114 COMPAT_SYSCALL_WRAP3(getresgid, gid_t __user *, rgid, gid_t __user *, egid, gid_t __user *, sgid);
115 COMPAT_SYSCALL_WRAP3(chown, const char __user *, filename, uid_t, user, gid_t, group);
116 COMPAT_SYSCALL_WRAP2(pivot_root, const char __user *, new_root, const char __user *, put_old);
117 COMPAT_SYSCALL_WRAP3(mincore, unsigned long, start, size_t, len, unsigned char __user *, vec);
119 COMPAT_SYSCALL_WRAP5(setxattr, const char __user *, path, const char __user *, name, const void __user *, value, size_t, size, int, flags);
120 COMPAT_SYSCALL_WRAP5(lsetxattr, const char __user *, path, const char __user *, name, const void __user *, value, size_t, size, int, flags);
121 COMPAT_SYSCALL_WRAP5(fsetxattr, int, fd, const char __user *, name, const void __user *, value, size_t, size, int, flags);
122 COMPAT_SYSCALL_WRAP3(getdents64, unsigned int, fd, struct linux_dirent64 __user *, dirent, unsigned int, count);
123 COMPAT_SYSCALL_WRAP4(getxattr, const char __user *, path, const char __user *, name, void __user *, value, size_t, size);
124 COMPAT_SYSCALL_WRAP4(lgetxattr, const char __user *, path, const char __user *, name, void __user *, value, size_t, size);
125 COMPAT_SYSCALL_WRAP4(fgetxattr, int, fd, const char __user *, name, void __user *, value, size_t, size);
126 COMPAT_SYSCALL_WRAP3(listxattr, const char __user *, path, char __user *, list, size_t, size);
127 COMPAT_SYSCALL_WRAP3(llistxattr, const char __user *, path, char __user *, list, size_t, size);
128 COMPAT_SYSCALL_WRAP3(flistxattr, int, fd, char __user *, list, size_t, size);
129 COMPAT_SYSCALL_WRAP2(removexattr, const char __user *, path, const char __user *, name);
130 COMPAT_SYSCALL_WRAP2(lremovexattr, const char __user *, path, const char __user *, name);
131 COMPAT_SYSCALL_WRAP2(fremovexattr, int, fd, const char __user *, name);
132 COMPAT_SYSCALL_WRAP1(set_tid_address, int __user *, tidptr);
133 COMPAT_SYSCALL_WRAP4(epoll_ctl, int, epfd, int, op, int, fd, struct epoll_event __user *, event);
134 COMPAT_SYSCALL_WRAP4(epoll_wait, int, epfd, struct epoll_event __user *, events, int, maxevents, int, timeout);
136 COMPAT_SYSCALL_WRAP3(io_cancel, aio_context_t, ctx_id, struct iocb __user *, iocb, struct io_event __user *, result);
137 COMPAT_SYSCALL_WRAP1(mq_unlink, const char __user *, name);
138 COMPAT_SYSCALL_WRAP5(add_key, const char __user *, tp, const char __user *, dsc, const void __user *, pld, size_t, len, key_serial_t, id);
139 COMPAT_SYSCALL_WRAP4(request_key, const char __user *, tp, const char __user *, dsc, const char __user *, info, key_serial_t, id);
141 COMPAT_SYSCALL_WRAP3(inotify_add_watch, int, fd, const char __user *, path, u32, mask);
142 COMPAT_SYSCALL_WRAP3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode);
143 COMPAT_SYSCALL_WRAP4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, unsigned, dev);
144 COMPAT_SYSCALL_WRAP5(fchownat, int, dfd, const char __user *, filename, uid_t, user, gid_t, group, int, flag);
145 COMPAT_SYSCALL_WRAP3(unlinkat, int, dfd, const char __user *, pathname, int, flag);
146 COMPAT_SYSCALL_WRAP4(renameat, int, olddfd, const char __user *, oldname, int, newdfd, const char __user *, newname);
147 COMPAT_SYSCALL_WRAP5(linkat, int, olddfd, const char __user *, oldname, int, newdfd, const char __user *, newname, int, flags);
148 COMPAT_SYSCALL_WRAP3(symlinkat, const char __user *, oldname, int, newdfd, const char __user *, newname);
149 COMPAT_SYSCALL_WRAP4(readlinkat, int, dfd, const char __user *, path, char __user *, buf, int, bufsiz);
150 COMPAT_SYSCALL_WRAP3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode);
151 COMPAT_SYSCALL_WRAP3(faccessat, int, dfd, const char __user *, filename, int, mode);
153 COMPAT_SYSCALL_WRAP6(splice, int, fd_in, loff_t __user *, off_in, int, fd_out, loff_t __user *, off_out, size_t, len, unsigned int, flags);
155 COMPAT_SYSCALL_WRAP3(getcpu, unsigned __user *, cpu, unsigned __user *, node, struct getcpu_cache __user *, cache);
156 COMPAT_SYSCALL_WRAP2(pipe2, int __user *, fildes, int, flags);
157 COMPAT_SYSCALL_WRAP5(perf_event_open, struct perf_event_attr __user *, attr_uptr, pid_t, pid, int, cpu, int, group_fd, unsigned long, flags);
158 COMPAT_SYSCALL_WRAP5(clone, unsigned long, newsp, unsigned long, clone_flags, int __user *, parent_tidptr, int __user *, child_tidptr, unsigned long, tls);
159 COMPAT_SYSCALL_WRAP4(prlimit64, pid_t, pid, unsigned int, resource, const struct rlimit64 __user *, new_rlim, struct rlimit64 __user *, old_rlim);
160 COMPAT_SYSCALL_WRAP5(name_to_handle_at, int, dfd, const char __user *, name, struct file_handle __user *, handle, int __user *, mnt_id, int, flag);
162 COMPAT_SYSCALL_WRAP3(finit_module, int, fd, const char __user *, uargs, int, flags);
163 COMPAT_SYSCALL_WRAP3(sched_setattr, pid_t, pid, struct sched_attr __user *, attr, unsigned int, flags);
164 COMPAT_SYSCALL_WRAP4(sched_getattr, pid_t, pid, struct sched_attr __user *, attr, unsigned int, size, unsigned int, flags);
165 COMPAT_SYSCALL_WRAP5(renameat2, int, olddfd, const char __user *, oldname, int, newdfd, const char __user *, newname, unsigned int, flags);
166 COMPAT_SYSCALL_WRAP3(seccomp, unsigned int, op, unsigned int, flags, const char __user *, uargs)
167 COMPAT_SYSCALL_WRAP3(getrandom, char __user *, buf, size_t, count, unsigned int, flags)
168 COMPAT_SYSCALL_WRAP2(memfd_create, const char __user *, uname, unsigned int, flags)
170 COMPAT_SYSCALL_WRAP3(s390_pci_mmio_write, const unsigned long, mmio_addr, const void __user *, user_buffer, const size_t, length);
171 COMPAT_SYSCALL_WRAP3(s390_pci_mmio_read, const unsigned long, mmio_addr, void __user *, user_buffer, const size_t, length);
172 COMPAT_SYSCALL_WRAP4(socketpair, int, family, int, type, int, protocol, int __user *, usockvec);
173 COMPAT_SYSCALL_WRAP3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen);
174 COMPAT_SYSCALL_WRAP3(connect, int, fd, struct sockaddr __user *, uservaddr, int, addrlen);
175 COMPAT_SYSCALL_WRAP4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr, int __user *, upeer_addrlen, int, flags);
176 COMPAT_SYSCALL_WRAP3(getsockname, int, fd, struct sockaddr __user *, usockaddr, int __user *, usockaddr_len);
177 COMPAT_SYSCALL_WRAP3(getpeername, int, fd, struct sockaddr __user *, usockaddr, int __user *, usockaddr_len);
178 COMPAT_SYSCALL_WRAP6(sendto, int, fd, void __user *, buff, size_t, len, unsigned int, flags, struct sockaddr __user *, addr, int, addr_len);
H A Dcompat_linux.h90 long compat_sys_s390_chown16(const char __user *filename, u16 user, u16 group);
91 long compat_sys_s390_lchown16(const char __user *filename, u16 user, u16 group);
98 long compat_sys_s390_getresuid16(u16 __user *ruid, u16 __user *euid, u16 __user *suid);
100 long compat_sys_s390_getresgid16(u16 __user *rgid, u16 __user *egid, u16 __user *sgid);
103 long compat_sys_s390_getgroups16(int gidsetsize, u16 __user *grouplist);
104 long compat_sys_s390_setgroups16(int gidsetsize, u16 __user *grouplist);
109 long compat_sys_s390_truncate64(const char __user *path, u32 high, u32 low);
111 long compat_sys_s390_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, u32 high, u32 low);
112 long compat_sys_s390_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, u32 high, u32 low);
114 long compat_sys_s390_stat64(const char __user *filename, struct stat64_emu31 __user *statbuf);
115 long compat_sys_s390_lstat64(const char __user *filename, struct stat64_emu31 __user *statbuf);
116 long compat_sys_s390_fstat64(unsigned int fd, struct stat64_emu31 __user *statbuf);
117 long compat_sys_s390_fstatat64(unsigned int dfd, const char __user *filename, struct stat64_emu31 __user *statbuf, int flag);
118 long compat_sys_s390_old_mmap(struct mmap_arg_struct_emu31 __user *arg);
119 long compat_sys_s390_mmap2(struct mmap_arg_struct_emu31 __user *arg);
120 long compat_sys_s390_read(unsigned int fd, char __user * buf, compat_size_t count);
121 long compat_sys_s390_write(unsigned int fd, const char __user * buf, compat_size_t count);
123 long compat_sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
H A Duprobes.c281 rc = emu_load_ril((u16 __user *)uptr, &rx->u32[1]); handle_insn_ril()
284 rc = emu_load_ril((s16 __user *)uptr, &rx->u64); handle_insn_ril()
287 rc = emu_load_ril((s16 __user *)uptr, &rx->u32[1]); handle_insn_ril()
290 rc = emu_load_ril((u16 __user *)uptr, &rx->u64); handle_insn_ril()
293 rc = emu_load_ril((u64 __user *)uptr, &rx->u64); handle_insn_ril()
296 rc = emu_load_ril((s32 __user *)uptr, &rx->u64); handle_insn_ril()
299 rc = emu_load_ril((u32 __user *)uptr, &rx->u32[1]); handle_insn_ril()
302 rc = emu_load_ril((u32 __user *)uptr, &rx->u64); handle_insn_ril()
305 rc = emu_store_ril(regs, (u16 __user *)uptr, &rx->u16[3]); handle_insn_ril()
308 rc = emu_store_ril(regs, (u64 __user *)uptr, &rx->u64); handle_insn_ril()
311 rc = emu_store_ril(regs, (u32 __user *)uptr, &rx->u32[1]); handle_insn_ril()
322 rc = emu_cmp_ril(regs, (s16 __user *)uptr, &rx->s64); handle_insn_ril()
325 rc = emu_cmp_ril(regs, (s16 __user *)uptr, &rx->s32[1]); handle_insn_ril()
328 rc = emu_cmp_ril(regs, (u16 __user *)uptr, &rx->u64); handle_insn_ril()
331 rc = emu_cmp_ril(regs, (u16 __user *)uptr, &rx->u32[1]); handle_insn_ril()
334 rc = emu_cmp_ril(regs, (s64 __user *)uptr, &rx->s64); handle_insn_ril()
337 rc = emu_cmp_ril(regs, (u64 __user *)uptr, &rx->u64); handle_insn_ril()
340 rc = emu_cmp_ril(regs, (s32 __user *)uptr, &rx->s64); handle_insn_ril()
343 rc = emu_cmp_ril(regs, (s32 __user *)uptr, &rx->s32[1]); handle_insn_ril()
346 rc = emu_cmp_ril(regs, (u32 __user *)uptr, &rx->u64); handle_insn_ril()
349 rc = emu_cmp_ril(regs, (u32 __user *)uptr, &rx->u32[1]); handle_insn_ril()
H A Dcompat_linux.c89 COMPAT_SYSCALL_DEFINE3(s390_chown16, const char __user *, filename, COMPAT_SYSCALL_DEFINE3()
95 COMPAT_SYSCALL_DEFINE3(s390_lchown16, const char __user *, COMPAT_SYSCALL_DEFINE3()
132 COMPAT_SYSCALL_DEFINE3(s390_getresuid16, u16 __user *, ruidp, COMPAT_SYSCALL_DEFINE3()
133 u16 __user *, euidp, u16 __user *, suidp) COMPAT_SYSCALL_DEFINE3()
156 COMPAT_SYSCALL_DEFINE3(s390_getresgid16, u16 __user *, rgidp, COMPAT_SYSCALL_DEFINE3()
157 u16 __user *, egidp, u16 __user *, sgidp) COMPAT_SYSCALL_DEFINE3()
184 static int groups16_to_user(u16 __user *grouplist, struct group_info *group_info) groups16_to_user()
201 static int groups16_from_user(struct group_info *group_info, u16 __user *grouplist) groups16_from_user()
222 COMPAT_SYSCALL_DEFINE2(s390_getgroups16, int, gidsetsize, u16 __user *, grouplist) COMPAT_SYSCALL_DEFINE2()
247 COMPAT_SYSCALL_DEFINE2(s390_setgroups16, int, gidsetsize, u16 __user *, grouplist) COMPAT_SYSCALL_DEFINE2()
302 COMPAT_SYSCALL_DEFINE3(s390_truncate64, const char __user *, path, u32, high, u32, low) COMPAT_SYSCALL_DEFINE3()
312 COMPAT_SYSCALL_DEFINE5(s390_pread64, unsigned int, fd, char __user *, ubuf, COMPAT_SYSCALL_DEFINE5()
320 COMPAT_SYSCALL_DEFINE5(s390_pwrite64, unsigned int, fd, const char __user *, ubuf, COMPAT_SYSCALL_DEFINE5()
358 static int cp_stat64(struct stat64_emu31 __user *ubuf, struct kstat *stat) cp_stat64()
382 COMPAT_SYSCALL_DEFINE2(s390_stat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) COMPAT_SYSCALL_DEFINE2()
391 COMPAT_SYSCALL_DEFINE2(s390_lstat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) COMPAT_SYSCALL_DEFINE2()
400 COMPAT_SYSCALL_DEFINE2(s390_fstat64, unsigned int, fd, struct stat64_emu31 __user *, statbuf) COMPAT_SYSCALL_DEFINE2()
409 COMPAT_SYSCALL_DEFINE4(s390_fstatat64, unsigned int, dfd, const char __user *, filename, COMPAT_SYSCALL_DEFINE4()
410 struct stat64_emu31 __user *, statbuf, int, flag) COMPAT_SYSCALL_DEFINE4()
436 COMPAT_SYSCALL_DEFINE1(s390_old_mmap, struct mmap_arg_struct_emu31 __user *, arg) COMPAT_SYSCALL_DEFINE1()
448 COMPAT_SYSCALL_DEFINE1(s390_mmap2, struct mmap_arg_struct_emu31 __user *, arg) COMPAT_SYSCALL_DEFINE1()
457 COMPAT_SYSCALL_DEFINE3(s390_read, unsigned int, fd, char __user *, buf, compat_size_t, count) COMPAT_SYSCALL_DEFINE3()
465 COMPAT_SYSCALL_DEFINE3(s390_write, unsigned int, fd, const char __user *, buf, compat_size_t, count) COMPAT_SYSCALL_DEFINE3()
495 COMPAT_SYSCALL_DEFINE1(s390_fadvise64_64, struct fadvise64_64_args __user *, args) COMPAT_SYSCALL_DEFINE1()
H A Dsignal.c118 static int save_sigregs(struct pt_regs *regs, _sigregs __user *sregs) save_sigregs()
136 static int restore_sigregs(struct pt_regs *regs, _sigregs __user *sregs) restore_sigregs()
176 _sigregs_ext __user *sregs_ext) save_sigregs_ext()
196 _sigregs_ext __user *sregs_ext) restore_sigregs_ext()
218 struct sigframe __user *frame = SYSCALL_DEFINE0()
219 (struct sigframe __user *) regs->gprs[15]; SYSCALL_DEFINE0()
240 struct rt_sigframe __user *frame = SYSCALL_DEFINE0()
241 (struct rt_sigframe __user *)regs->gprs[15]; SYSCALL_DEFINE0()
264 static inline void __user * get_sigframe()
274 return (void __user *) -1UL; get_sigframe()
282 return (void __user *)((sp - frame_size) & -8ul); get_sigframe()
288 struct sigframe __user *frame; setup_frame()
303 if (frame == (void __user *) -1UL) setup_frame()
307 if (__put_user(regs->gprs[15], (addr_t __user *) frame)) setup_frame()
312 sc.sregs = (_sigregs __user __force *) &frame->sregs; setup_frame()
324 if (__put_user(regs->gprs[2], (int __user *) &frame->signo)) setup_frame()
337 __u16 __user *svc = (void __user *) frame + frame_size - 2; setup_frame()
370 struct rt_sigframe __user *frame; setup_rt_frame()
387 if (frame == (void __user *) -1UL) setup_rt_frame()
391 if (__put_user(regs->gprs[15], (addr_t __user *) frame)) setup_rt_frame()
400 __u16 __user *svc = &frame->svc_insn; setup_rt_frame()
/linux-4.4.14/include/linux/
H A Dcompat.h153 extern int compat_get_timespec(struct timespec *, const void __user *);
154 extern int compat_put_timespec(const struct timespec *, void __user *);
155 extern int compat_get_timeval(struct timeval *, const void __user *);
156 extern int compat_put_timeval(const struct timeval *, void __user *);
164 extern int compat_convert_timespec(struct timespec __user **,
165 const void __user *);
197 struct compat_rusage __user *);
202 struct compat_siginfo __user *, int,
203 struct compat_rusage __user *);
312 compat_sys_set_robust_list(struct compat_robust_list_head __user *head,
315 compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr,
316 compat_size_t __user *len_ptr);
325 long compat_sys_msgctl(int first, int second, void __user *uptr);
326 long compat_sys_shmctl(int first, int second, void __user *uptr);
327 long compat_sys_semtimedop(int semid, struct sembuf __user *tsems,
328 unsigned nsems, const struct compat_timespec __user *timeout);
331 asmlinkage long compat_sys_ustat(unsigned dev, struct compat_ustat __user *u32);
334 const struct compat_iovec __user *vec, compat_ulong_t vlen);
336 const struct compat_iovec __user *vec, compat_ulong_t vlen);
338 const struct compat_iovec __user *vec,
341 const struct compat_iovec __user *vec,
346 const struct compat_iovec __user *vec,
352 const struct compat_iovec __user *vec,
358 asmlinkage long compat_sys_execve(const char __user *filename, const compat_uptr_t __user *argv,
359 const compat_uptr_t __user *envp);
360 asmlinkage long compat_sys_execveat(int dfd, const char __user *filename,
361 const compat_uptr_t __user *argv,
362 const compat_uptr_t __user *envp, int flags);
364 asmlinkage long compat_sys_select(int n, compat_ulong_t __user *inp,
365 compat_ulong_t __user *outp, compat_ulong_t __user *exp,
366 struct compat_timeval __user *tvp);
368 asmlinkage long compat_sys_old_select(struct compat_sel_arg_struct __user *arg);
371 compat_uint_t __user *stat_addr, int options,
372 struct compat_rusage __user *ru);
379 long compat_get_bitmap(unsigned long *mask, const compat_ulong_t __user *umask,
381 long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask,
383 int copy_siginfo_from_user32(siginfo_t *to, struct compat_siginfo __user *from);
384 int copy_siginfo_to_user32(struct compat_siginfo __user *to, const siginfo_t *from);
386 const struct compat_sigevent __user *u_event);
388 struct compat_siginfo __user *uinfo);
391 const struct compat_old_sigaction __user *act,
392 struct compat_old_sigaction __user *oact);
416 const struct compat_itimerspec __user *src);
417 extern int put_compat_itimerspec(struct compat_itimerspec __user *dst,
420 asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv,
421 struct timezone __user *tz);
422 asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv,
423 struct timezone __user *tz);
425 asmlinkage long compat_sys_adjtimex(struct compat_timex __user *utp);
432 compat_ulong_t maxnode, const compat_ulong_t __user *old_nodes,
433 const compat_ulong_t __user *new_nodes);
444 asmlinkage long compat_sys_lookup_dcookie(u32, u32, char __user *, compat_size_t);
450 struct epoll_event __user *events,
452 const compat_sigset_t __user *sigmask,
455 asmlinkage long compat_sys_utime(const char __user *filename,
456 struct compat_utimbuf __user *t);
458 const char __user *filename,
459 struct compat_timespec __user *t,
462 asmlinkage long compat_sys_time(compat_time_t __user *tloc);
463 asmlinkage long compat_sys_stime(compat_time_t __user *tptr);
465 const compat_sigset_t __user *sigmask,
468 const struct compat_itimerspec __user *utmr,
469 struct compat_itimerspec __user *otmr);
471 struct compat_itimerspec __user *otmr);
474 __u32 __user *pages,
475 const int __user *nodes,
476 int __user *status,
479 const char __user *filename,
480 struct compat_timeval __user *t);
481 asmlinkage long compat_sys_utimes(const char __user *filename,
482 struct compat_timeval __user *t);
483 asmlinkage long compat_sys_newstat(const char __user *filename,
484 struct compat_stat __user *statbuf);
485 asmlinkage long compat_sys_newlstat(const char __user *filename,
486 struct compat_stat __user *statbuf);
488 const char __user *filename,
489 struct compat_stat __user *statbuf,
492 struct compat_stat __user *statbuf);
493 asmlinkage long compat_sys_statfs(const char __user *pathname,
494 struct compat_statfs __user *buf);
496 struct compat_statfs __user *buf);
497 asmlinkage long compat_sys_statfs64(const char __user *pathname,
499 struct compat_statfs64 __user *buf);
501 struct compat_statfs64 __user *buf);
506 asmlinkage long compat_sys_io_setup(unsigned nr_reqs, u32 __user *ctx32p);
510 struct io_event __user *events,
511 struct compat_timespec __user *timeout);
513 u32 __user *iocb);
514 asmlinkage long compat_sys_mount(const char __user *dev_name,
515 const char __user *dir_name,
516 const char __user *type, compat_ulong_t flags,
517 const void __user *data);
519 struct compat_old_linux_dirent __user *,
522 struct compat_linux_dirent __user *dirent,
526 struct linux_dirent64 __user *dirent,
529 asmlinkage long compat_sys_vmsplice(int fd, const struct compat_iovec __user *,
531 asmlinkage long compat_sys_open(const char __user *filename, int flags,
533 asmlinkage long compat_sys_openat(int dfd, const char __user *filename,
536 struct file_handle __user *handle,
538 asmlinkage long compat_sys_truncate(const char __user *, compat_off_t);
540 asmlinkage long compat_sys_pselect6(int n, compat_ulong_t __user *inp,
541 compat_ulong_t __user *outp,
542 compat_ulong_t __user *exp,
543 struct compat_timespec __user *tsp,
544 void __user *sig);
545 asmlinkage long compat_sys_ppoll(struct pollfd __user *ufds,
547 struct compat_timespec __user *tsp,
548 const compat_sigset_t __user *sigmask,
551 const compat_sigset_t __user *sigmask,
553 asmlinkage long compat_sys_get_mempolicy(int __user *policy,
554 compat_ulong_t __user *nmask,
558 asmlinkage long compat_sys_set_mempolicy(int mode, compat_ulong_t __user *nmask,
562 compat_ulong_t __user *nmask,
566 char __user *optval, unsigned int optlen);
567 asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg,
569 asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg,
571 asmlinkage long compat_sys_recvmsg(int fd, struct compat_msghdr __user *msg,
573 asmlinkage long compat_sys_recv(int fd, void __user *buf, compat_size_t len,
575 asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, compat_size_t len,
576 unsigned flags, struct sockaddr __user *addr,
577 int __user *addrlen);
578 asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg,
580 struct compat_timespec __user *timeout);
581 asmlinkage long compat_sys_nanosleep(struct compat_timespec __user *rqtp,
582 struct compat_timespec __user *rmtp);
584 struct compat_itimerval __user *it);
586 struct compat_itimerval __user *in,
587 struct compat_itimerval __user *out);
588 asmlinkage long compat_sys_times(struct compat_tms __user *tbuf);
590 struct compat_rlimit __user *rlim);
592 struct compat_rlimit __user *rlim);
593 asmlinkage long compat_sys_getrusage(int who, struct compat_rusage __user *ru);
596 compat_ulong_t __user *user_mask_ptr);
599 compat_ulong_t __user *user_mask_ptr);
601 struct compat_sigevent __user *timer_event_spec,
602 timer_t __user *created_timer_id);
604 struct compat_itimerspec __user *new,
605 struct compat_itimerspec __user *old);
607 struct compat_itimerspec __user *setting);
609 struct compat_timespec __user *tp);
611 struct compat_timespec __user *tp);
613 struct compat_timex __user *tp);
615 struct compat_timespec __user *tp);
617 struct compat_timespec __user *rqtp,
618 struct compat_timespec __user *rmtp);
619 asmlinkage long compat_sys_rt_sigtimedwait(compat_sigset_t __user *uthese,
620 struct compat_siginfo __user *uinfo,
621 struct compat_timespec __user *uts, compat_size_t sigsetsize);
622 asmlinkage long compat_sys_rt_sigsuspend(compat_sigset_t __user *unewset,
624 asmlinkage long compat_sys_rt_sigprocmask(int how, compat_sigset_t __user *set,
625 compat_sigset_t __user *oset,
627 asmlinkage long compat_sys_rt_sigpending(compat_sigset_t __user *uset,
631 const struct compat_sigaction __user *,
632 struct compat_sigaction __user *,
636 struct compat_siginfo __user *uinfo);
637 asmlinkage long compat_sys_sysinfo(struct compat_sysinfo __user *info);
640 asmlinkage long compat_sys_futex(u32 __user *uaddr, int op, u32 val,
641 struct compat_timespec __user *utime, u32 __user *uaddr2,
644 char __user *optval, int __user *optlen);
647 struct compat_kexec_segment __user *,
650 const struct compat_mq_attr __user *u_mqstat,
651 struct compat_mq_attr __user *u_omqstat);
653 const struct compat_sigevent __user *u_notification);
654 asmlinkage long compat_sys_mq_open(const char __user *u_name,
656 struct compat_mq_attr __user *u_attr);
658 const char __user *u_msg_ptr,
660 const struct compat_timespec __user *u_abs_timeout);
662 char __user *u_msg_ptr,
663 compat_size_t msg_len, unsigned int __user *u_msg_prio,
664 const struct compat_timespec __user *u_abs_timeout);
665 asmlinkage long compat_sys_socketcall(int call, u32 __user *args);
666 asmlinkage long compat_sys_sysctl(struct compat_sysctl_args __user *args);
669 const struct compat_iovec __user *uvector,
674 extern void __user *compat_alloc_user_space(unsigned long len);
677 const struct compat_iovec __user *lvec,
678 compat_ulong_t liovcnt, const struct compat_iovec __user *rvec,
681 const struct compat_iovec __user *lvec,
682 compat_ulong_t liovcnt, const struct compat_iovec __user *rvec,
686 compat_off_t __user *offset, compat_size_t count);
688 compat_loff_t __user *offset, compat_size_t count);
689 asmlinkage long compat_sys_sigaltstack(const compat_stack_t __user *uss_ptr,
690 compat_stack_t __user *uoss_ptr);
693 asmlinkage long compat_sys_sigpending(compat_old_sigset_t __user *set);
697 asmlinkage long compat_sys_sigprocmask(int how, compat_old_sigset_t __user *nset,
698 compat_old_sigset_t __user *oset);
701 int compat_restore_altstack(const compat_stack_t __user *uss);
702 int __compat_save_altstack(compat_stack_t __user *, unsigned long);
704 compat_stack_t __user *__uss = uss; \
706 put_user_ex(ptr_to_compat((void __user *)t->sas_ss_sp), &__uss->ss_sp); \
712 struct compat_timespec __user *interval);
715 int, const char __user *);
H A Dsyscalls.h208 asmlinkage long sys32_quotactl(unsigned int cmd, const char __user *special,
209 qid_t id, void __user *addr);
210 asmlinkage long sys_time(time_t __user *tloc);
211 asmlinkage long sys_stime(time_t __user *tptr);
212 asmlinkage long sys_gettimeofday(struct timeval __user *tv,
213 struct timezone __user *tz);
214 asmlinkage long sys_settimeofday(struct timeval __user *tv,
215 struct timezone __user *tz);
216 asmlinkage long sys_adjtimex(struct timex __user *txc_p);
218 asmlinkage long sys_times(struct tms __user *tbuf);
221 asmlinkage long sys_nanosleep(struct timespec __user *rqtp, struct timespec __user *rmtp);
229 asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid);
230 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid);
234 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist);
246 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist);
248 asmlinkage long sys_acct(const char __user *name);
255 asmlinkage long sys_sigpending(old_sigset_t __user *set);
256 asmlinkage long sys_sigprocmask(int how, old_sigset_t __user *set,
257 old_sigset_t __user *oset);
258 asmlinkage long sys_sigaltstack(const struct sigaltstack __user *uss,
259 struct sigaltstack __user *uoss);
261 asmlinkage long sys_getitimer(int which, struct itimerval __user *value);
263 struct itimerval __user *value,
264 struct itimerval __user *ovalue);
266 struct sigevent __user *timer_event_spec,
267 timer_t __user * created_timer_id);
269 struct itimerspec __user *setting);
272 const struct itimerspec __user *new_setting,
273 struct itimerspec __user *old_setting);
276 const struct timespec __user *tp);
278 struct timespec __user *tp);
280 struct timex __user *tx);
282 struct timespec __user *tp);
284 const struct timespec __user *rqtp,
285 struct timespec __user *rmtp);
289 struct sched_param __user *param);
291 struct sched_param __user *param);
293 struct sched_attr __user *attr,
297 struct sched_param __user *param);
299 struct sched_attr __user *attr,
303 unsigned long __user *user_mask_ptr);
305 unsigned long __user *user_mask_ptr);
310 struct timespec __user *interval);
316 void __user *arg);
319 struct kexec_segment __user *segments,
323 const char __user *cmdline_ptr,
328 asmlinkage long sys_wait4(pid_t pid, int __user *stat_addr,
329 int options, struct rusage __user *ru);
331 struct siginfo __user *infop,
332 int options, struct rusage __user *ru);
333 asmlinkage long sys_waitpid(pid_t pid, int __user *stat_addr, int options);
334 asmlinkage long sys_set_tid_address(int __user *tidptr);
335 asmlinkage long sys_futex(u32 __user *uaddr, int op, u32 val,
336 struct timespec __user *utime, u32 __user *uaddr2,
339 asmlinkage long sys_init_module(void __user *umod, unsigned long len,
340 const char __user *uargs);
341 asmlinkage long sys_delete_module(const char __user *name_user,
352 asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize);
355 asmlinkage long sys_sigaction(int, const struct old_sigaction __user *,
356 struct old_sigaction __user *);
361 const struct sigaction __user *,
362 struct sigaction __user *,
365 asmlinkage long sys_rt_sigprocmask(int how, sigset_t __user *set,
366 sigset_t __user *oset, size_t sigsetsize);
367 asmlinkage long sys_rt_sigpending(sigset_t __user *set, size_t sigsetsize);
368 asmlinkage long sys_rt_sigtimedwait(const sigset_t __user *uthese,
369 siginfo_t __user *uinfo,
370 const struct timespec __user *uts,
373 siginfo_t __user *uinfo);
377 asmlinkage long sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo);
387 asmlinkage long sys_mount(char __user *dev_name, char __user *dir_name,
388 char __user *type, unsigned long flags,
389 void __user *data);
390 asmlinkage long sys_umount(char __user *name, int flags);
391 asmlinkage long sys_oldumount(char __user *name);
392 asmlinkage long sys_truncate(const char __user *path, long length);
394 asmlinkage long sys_stat(const char __user *filename,
395 struct __old_kernel_stat __user *statbuf);
396 asmlinkage long sys_statfs(const char __user * path,
397 struct statfs __user *buf);
398 asmlinkage long sys_statfs64(const char __user *path, size_t sz,
399 struct statfs64 __user *buf);
400 asmlinkage long sys_fstatfs(unsigned int fd, struct statfs __user *buf);
402 struct statfs64 __user *buf);
403 asmlinkage long sys_lstat(const char __user *filename,
404 struct __old_kernel_stat __user *statbuf);
406 struct __old_kernel_stat __user *statbuf);
407 asmlinkage long sys_newstat(const char __user *filename,
408 struct stat __user *statbuf);
409 asmlinkage long sys_newlstat(const char __user *filename,
410 struct stat __user *statbuf);
411 asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf);
412 asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf);
414 asmlinkage long sys_stat64(const char __user *filename,
415 struct stat64 __user *statbuf);
416 asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf);
417 asmlinkage long sys_lstat64(const char __user *filename,
418 struct stat64 __user *statbuf);
419 asmlinkage long sys_fstatat64(int dfd, const char __user *filename,
420 struct stat64 __user *statbuf, int flag);
423 asmlinkage long sys_truncate64(const char __user *path, loff_t length);
427 asmlinkage long sys_setxattr(const char __user *path, const char __user *name,
428 const void __user *value, size_t size, int flags);
429 asmlinkage long sys_lsetxattr(const char __user *path, const char __user *name,
430 const void __user *value, size_t size, int flags);
431 asmlinkage long sys_fsetxattr(int fd, const char __user *name,
432 const void __user *value, size_t size, int flags);
433 asmlinkage long sys_getxattr(const char __user *path, const char __user *name,
434 void __user *value, size_t size);
435 asmlinkage long sys_lgetxattr(const char __user *path, const char __user *name,
436 void __user *value, size_t size);
437 asmlinkage long sys_fgetxattr(int fd, const char __user *name,
438 void __user *value, size_t size);
439 asmlinkage long sys_listxattr(const char __user *path, char __user *list,
441 asmlinkage long sys_llistxattr(const char __user *path, char __user *list,
443 asmlinkage long sys_flistxattr(int fd, char __user *list, size_t size);
444 asmlinkage long sys_removexattr(const char __user *path,
445 const char __user *name);
446 asmlinkage long sys_lremovexattr(const char __user *path,
447 const char __user *name);
448 asmlinkage long sys_fremovexattr(int fd, const char __user *name);
469 unsigned char __user * vec);
471 asmlinkage long sys_pivot_root(const char __user *new_root,
472 const char __user *put_old);
473 asmlinkage long sys_chroot(const char __user *filename);
474 asmlinkage long sys_mknod(const char __user *filename, umode_t mode,
476 asmlinkage long sys_link(const char __user *oldname,
477 const char __user *newname);
478 asmlinkage long sys_symlink(const char __user *old, const char __user *new);
479 asmlinkage long sys_unlink(const char __user *pathname);
480 asmlinkage long sys_rename(const char __user *oldname,
481 const char __user *newname);
482 asmlinkage long sys_chmod(const char __user *filename, umode_t mode);
490 asmlinkage long sys_pipe(int __user *fildes);
491 asmlinkage long sys_pipe2(int __user *fildes, int flags);
499 asmlinkage long sys_io_setup(unsigned nr_reqs, aio_context_t __user *ctx);
504 struct io_event __user *events,
505 struct timespec __user *timeout);
507 struct iocb __user * __user *);
508 asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb,
509 struct io_event __user *result);
511 off_t __user *offset, size_t count);
513 loff_t __user *offset, size_t count);
514 asmlinkage long sys_readlink(const char __user *path,
515 char __user *buf, int bufsiz);
516 asmlinkage long sys_creat(const char __user *pathname, umode_t mode);
517 asmlinkage long sys_open(const char __user *filename,
520 asmlinkage long sys_access(const char __user *filename, int mode);
522 asmlinkage long sys_chown(const char __user *filename,
524 asmlinkage long sys_lchown(const char __user *filename,
528 asmlinkage long sys_chown16(const char __user *filename,
530 asmlinkage long sys_lchown16(const char __user *filename,
538 asmlinkage long sys_getresuid16(old_uid_t __user *ruid,
539 old_uid_t __user *euid, old_uid_t __user *suid);
541 asmlinkage long sys_getresgid16(old_gid_t __user *rgid,
542 old_gid_t __user *egid, old_gid_t __user *sgid);
545 asmlinkage long sys_getgroups16(int gidsetsize, old_gid_t __user *grouplist);
546 asmlinkage long sys_setgroups16(int gidsetsize, old_gid_t __user *grouplist);
553 asmlinkage long sys_utime(char __user *filename,
554 struct utimbuf __user *times);
555 asmlinkage long sys_utimes(char __user *filename,
556 struct timeval __user *utimes);
560 unsigned long offset_low, loff_t __user *result,
562 asmlinkage long sys_read(unsigned int fd, char __user *buf, size_t count);
565 const struct iovec __user *vec,
567 asmlinkage long sys_write(unsigned int fd, const char __user *buf,
570 const struct iovec __user *vec,
572 asmlinkage long sys_pread64(unsigned int fd, char __user *buf,
574 asmlinkage long sys_pwrite64(unsigned int fd, const char __user *buf,
576 asmlinkage long sys_preadv(unsigned long fd, const struct iovec __user *vec,
578 asmlinkage long sys_pwritev(unsigned long fd, const struct iovec __user *vec,
580 asmlinkage long sys_getcwd(char __user *buf, unsigned long size);
581 asmlinkage long sys_mkdir(const char __user *pathname, umode_t mode);
582 asmlinkage long sys_chdir(const char __user *filename);
584 asmlinkage long sys_rmdir(const char __user *pathname);
585 asmlinkage long sys_lookup_dcookie(u64 cookie64, char __user *buf, size_t len);
586 asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special,
587 qid_t id, void __user *addr);
589 struct linux_dirent __user *dirent,
592 struct linux_dirent64 __user *dirent,
596 char __user *optval, int optlen);
598 char __user *optval, int __user *optlen);
599 asmlinkage long sys_bind(int, struct sockaddr __user *, int);
600 asmlinkage long sys_connect(int, struct sockaddr __user *, int);
601 asmlinkage long sys_accept(int, struct sockaddr __user *, int __user *);
602 asmlinkage long sys_accept4(int, struct sockaddr __user *, int __user *, int);
603 asmlinkage long sys_getsockname(int, struct sockaddr __user *, int __user *);
604 asmlinkage long sys_getpeername(int, struct sockaddr __user *, int __user *);
605 asmlinkage long sys_send(int, void __user *, size_t, unsigned);
606 asmlinkage long sys_sendto(int, void __user *, size_t, unsigned,
607 struct sockaddr __user *, int);
608 asmlinkage long sys_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags);
609 asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg,
611 asmlinkage long sys_recv(int, void __user *, size_t, unsigned);
612 asmlinkage long sys_recvfrom(int, void __user *, size_t, unsigned,
613 struct sockaddr __user *, int __user *);
614 asmlinkage long sys_recvmsg(int fd, struct user_msghdr __user *msg, unsigned flags);
615 asmlinkage long sys_recvmmsg(int fd, struct mmsghdr __user *msg,
617 struct timespec __user *timeout);
619 asmlinkage long sys_socketpair(int, int, int, int __user *);
620 asmlinkage long sys_socketcall(int call, unsigned long __user *args);
622 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
624 asmlinkage long sys_select(int n, fd_set __user *inp, fd_set __user *outp,
625 fd_set __user *exp, struct timeval __user *tvp);
626 asmlinkage long sys_old_select(struct sel_arg_struct __user *arg);
630 struct epoll_event __user *event);
631 asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events,
633 asmlinkage long sys_epoll_pwait(int epfd, struct epoll_event __user *events,
635 const sigset_t __user *sigmask,
637 asmlinkage long sys_gethostname(char __user *name, int len);
638 asmlinkage long sys_sethostname(char __user *name, int len);
639 asmlinkage long sys_setdomainname(char __user *name, int len);
640 asmlinkage long sys_newuname(struct new_utsname __user *name);
641 asmlinkage long sys_uname(struct old_utsname __user *);
642 asmlinkage long sys_olduname(struct oldold_utsname __user *);
645 struct rlimit __user *rlim);
647 asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim);
650 struct rlimit __user *rlim);
652 const struct rlimit64 __user *new_rlim,
653 struct rlimit64 __user *old_rlim);
654 asmlinkage long sys_getrusage(int who, struct rusage __user *ru);
658 asmlinkage long sys_msgsnd(int msqid, struct msgbuf __user *msgp,
660 asmlinkage long sys_msgrcv(int msqid, struct msgbuf __user *msgp,
662 asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf);
665 asmlinkage long sys_semop(int semid, struct sembuf __user *sops,
668 asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops,
670 const struct timespec __user *timeout);
671 asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);
673 asmlinkage long sys_shmdt(char __user *shmaddr);
674 asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);
676 unsigned long third, void __user *ptr, long fifth);
678 asmlinkage long sys_mq_open(const char __user *name, int oflag, umode_t mode, struct mq_attr __user *attr);
679 asmlinkage long sys_mq_unlink(const char __user *name);
680 asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec __user *abs_timeout);
681 asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct timespec __user *abs_timeout);
682 asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification);
683 asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat);
688 void __user *buf);
691 void __user *buf);
695 asmlinkage long sys_swapon(const char __user *specialfile, int swap_flags);
696 asmlinkage long sys_swapoff(const char __user *specialfile);
697 asmlinkage long sys_sysctl(struct __sysctl_args __user *args);
698 asmlinkage long sys_sysinfo(struct sysinfo __user *info);
701 asmlinkage long sys_syslog(int type, char __user *buf, int len);
702 asmlinkage long sys_uselib(const char __user *library);
707 asmlinkage long sys_add_key(const char __user *_type,
708 const char __user *_description,
709 const void __user *_payload,
713 asmlinkage long sys_request_key(const char __user *_type,
714 const char __user *_description,
715 const char __user *_callout_info,
723 asmlinkage long sys_set_mempolicy(int mode, const unsigned long __user *nmask,
726 const unsigned long __user *from,
727 const unsigned long __user *to);
729 const void __user * __user *pages,
730 const int __user *nodes,
731 int __user *status,
735 const unsigned long __user *nmask,
738 asmlinkage long sys_get_mempolicy(int __user *policy,
739 unsigned long __user *nmask,
745 asmlinkage long sys_inotify_add_watch(int fd, const char __user *path,
749 asmlinkage long sys_spu_run(int fd, __u32 __user *unpc,
750 __u32 __user *ustatus);
751 asmlinkage long sys_spu_create(const char __user *name,
754 asmlinkage long sys_mknodat(int dfd, const char __user * filename, umode_t mode,
756 asmlinkage long sys_mkdirat(int dfd, const char __user * pathname, umode_t mode);
757 asmlinkage long sys_unlinkat(int dfd, const char __user * pathname, int flag);
758 asmlinkage long sys_symlinkat(const char __user * oldname,
759 int newdfd, const char __user * newname);
760 asmlinkage long sys_linkat(int olddfd, const char __user *oldname,
761 int newdfd, const char __user *newname, int flags);
762 asmlinkage long sys_renameat(int olddfd, const char __user * oldname,
763 int newdfd, const char __user * newname);
764 asmlinkage long sys_renameat2(int olddfd, const char __user *oldname,
765 int newdfd, const char __user *newname,
767 asmlinkage long sys_futimesat(int dfd, const char __user *filename,
768 struct timeval __user *utimes);
769 asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode);
770 asmlinkage long sys_fchmodat(int dfd, const char __user * filename,
772 asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user,
774 asmlinkage long sys_openat(int dfd, const char __user *filename, int flags,
776 asmlinkage long sys_newfstatat(int dfd, const char __user *filename,
777 struct stat __user *statbuf, int flag);
778 asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *buf,
780 asmlinkage long sys_utimensat(int dfd, const char __user *filename,
781 struct timespec __user *utimes, int flags);
784 asmlinkage long sys_splice(int fd_in, loff_t __user *off_in,
785 int fd_out, loff_t __user *off_out,
788 asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov,
798 struct robust_list_head __user * __user *head_ptr,
799 size_t __user *len_ptr);
800 asmlinkage long sys_set_robust_list(struct robust_list_head __user *head,
802 asmlinkage long sys_getcpu(unsigned __user *cpu, unsigned __user *node, struct getcpu_cache __user *cache);
803 asmlinkage long sys_signalfd(int ufd, sigset_t __user *user_mask, size_t sizemask);
804 asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags);
807 const struct itimerspec __user *utmr,
808 struct itimerspec __user *otmr);
809 asmlinkage long sys_timerfd_gettime(int ufd, struct itimerspec __user *otmr);
812 asmlinkage long sys_memfd_create(const char __user *uname_ptr, unsigned int flags);
815 asmlinkage long sys_old_readdir(unsigned int, struct old_linux_dirent __user *, unsigned int);
816 asmlinkage long sys_pselect6(int, fd_set __user *, fd_set __user *,
817 fd_set __user *, struct timespec __user *,
818 void __user *);
819 asmlinkage long sys_ppoll(struct pollfd __user *, unsigned int,
820 struct timespec __user *, const sigset_t __user *,
825 const char __user *pathname);
831 asmlinkage long sys_clone(unsigned long, unsigned long, int __user *, unsigned long,
832 int __user *);
835 asmlinkage long sys_clone(unsigned long, unsigned long, int, int __user *,
836 int __user *, unsigned long);
838 asmlinkage long sys_clone(unsigned long, unsigned long, int __user *,
839 int __user *, unsigned long);
843 asmlinkage long sys_execve(const char __user *filename,
844 const char __user *const __user *argv,
845 const char __user *const __user *envp);
848 struct perf_event_attr __user *attr_uptr,
854 asmlinkage long sys_old_mmap(struct mmap_arg_struct __user *arg);
855 asmlinkage long sys_name_to_handle_at(int dfd, const char __user *name,
856 struct file_handle __user *handle,
857 int __user *mnt_id, int flag);
859 struct file_handle __user *handle,
863 const struct iovec __user *lvec,
865 const struct iovec __user *rvec,
869 const struct iovec __user *lvec,
871 const struct iovec __user *rvec,
877 asmlinkage long sys_finit_module(int fd, const char __user *uargs, int flags);
879 const char __user *uargs);
880 asmlinkage long sys_getrandom(char __user *buf, size_t count,
884 asmlinkage long sys_execveat(int dfd, const char __user *filename,
885 const char __user *const __user *argv,
886 const char __user *const __user *envp, int flags);
H A Daio.h18 struct iocb __user *__user *iocbpp, bool compat);
23 struct iocb __user * __user *iocbpp, do_io_submit()
H A Dmroute.h22 extern int ip_mroute_setsockopt(struct sock *, int, char __user *, unsigned int);
23 extern int ip_mroute_getsockopt(struct sock *, int, char __user *, int __user *);
24 extern int ipmr_ioctl(struct sock *sk, int cmd, void __user *arg);
25 extern int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
30 int optname, char __user *optval, unsigned int optlen) ip_mroute_setsockopt()
37 int optname, char __user *optval, int __user *optlen) ip_mroute_getsockopt()
43 int ipmr_ioctl(struct sock *sk, int cmd, void __user *arg) ipmr_ioctl()
H A Dresource.h9 int getrusage(struct task_struct *p, int who, struct rusage __user *ru);
H A Dmroute6.h25 extern int ip6_mroute_setsockopt(struct sock *, int, char __user *, unsigned int);
26 extern int ip6_mroute_getsockopt(struct sock *, int, char __user *, int __user *);
28 extern int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg);
29 extern int ip6mr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
35 int optname, char __user *optval, unsigned int optlen) ip6_mroute_setsockopt()
42 int optname, char __user *optval, int __user *optlen) ip6_mroute_getsockopt()
48 int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg) ip6mr_ioctl()
H A Dvt_kern.h46 int con_set_cmap(unsigned char __user *cmap);
47 int con_get_cmap(unsigned char __user *cmap);
65 int con_set_trans_old(unsigned char __user * table);
66 int con_get_trans_old(unsigned char __user * table);
67 int con_set_trans_new(unsigned short __user * table);
68 int con_get_trans_new(unsigned short __user * table);
70 int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list);
71 int con_get_unimap(struct vc_data *vc, ushort ct, ushort __user *uct, struct unipair __user *list);
79 static inline int con_set_trans_old(unsigned char __user *table) con_set_trans_old()
83 static inline int con_get_trans_old(unsigned char __user *table) con_get_trans_old()
87 static inline int con_set_trans_new(unsigned short __user *table) con_set_trans_new()
91 static inline int con_get_trans_new(unsigned short __user *table) con_get_trans_new()
100 int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list) con_set_unimap()
105 int con_get_unimap(struct vc_data *vc, ushort ct, ushort __user *uct, con_get_unimap()
106 struct unipair __user *list) con_get_unimap()
171 extern int vt_do_diacrit(unsigned int cmd, void __user *up, int eperm);
174 extern int vt_do_kbkeycode_ioctl(int cmd, struct kbkeycode __user *user_kbkc,
176 extern int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe,
178 extern int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb,
H A Dmsg.h35 extern long do_msgsnd(int msqid, long mtype, void __user *mtext,
37 extern long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp,
39 long (*msg_fill)(void __user *, struct msg_msg *,
H A Dnmi.h79 void __user *, size_t *, loff_t *);
81 void __user *, size_t *, loff_t *);
83 void __user *, size_t *, loff_t *);
85 void __user *, size_t *, loff_t *);
87 void __user *, size_t *, loff_t *);
H A Dnamei.h47 extern int user_path_at_empty(int, const char __user *, unsigned, struct path *, int *empty);
49 static inline int user_path_at(int dfd, const char __user *name, unsigned flags, user_path_at()
55 static inline int user_path(const char __user *name, struct path *path) user_path()
60 static inline int user_lpath(const char __user *name, struct path *path) user_lpath()
65 static inline int user_path_dir(const char __user *name, struct path *path) user_path_dir()
74 extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int);
H A Duser_namespace.h69 extern ssize_t proc_uid_map_write(struct file *, const char __user *, size_t, loff_t *);
70 extern ssize_t proc_gid_map_write(struct file *, const char __user *, size_t, loff_t *);
71 extern ssize_t proc_projid_map_write(struct file *, const char __user *, size_t, loff_t *);
72 extern ssize_t proc_setgroups_write(struct file *, const char __user *, size_t, loff_t *);
H A Dseccomp.h49 extern long prctl_set_seccomp(unsigned long, char __user *);
74 static inline long prctl_set_seccomp(unsigned long arg2, char __user *arg3) prctl_set_seccomp()
101 unsigned long filter_off, void __user *data);
104 unsigned long n, void __user *data) seccomp_get_filter()
H A Dfutex.h11 long do_futex(u32 __user *uaddr, int op, u32 val, union ktime *timeout,
12 u32 __user *uaddr2, u32 val2, u32 val3);
15 handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi);
H A Dthread_info.h24 u32 __user *uaddr;
29 u32 __user *uaddr2;
34 struct timespec __user *rmtp;
36 struct compat_timespec __user *compat_rmtp;
42 struct pollfd __user *ufds;
H A Dsysctl.h38 void __user *buffer, size_t *lenp, loff_t *ppos);
41 void __user *, size_t *, loff_t *);
43 void __user *, size_t *, loff_t *);
45 void __user *, size_t *, loff_t *);
47 void __user *, size_t *, loff_t *);
49 void __user *, size_t *, loff_t *);
51 void __user *, size_t *, loff_t *);
53 void __user *, size_t *, loff_t *);
55 void __user *, size_t *, loff_t *);
57 void __user *, size_t *, loff_t *);
219 void __user *buffer, size_t *lenp, loff_t *ppos);
/linux-4.4.14/include/net/
H A Dcompat.h32 int compat_sock_get_timestamp(struct sock *, struct timeval __user *);
33 int compat_sock_get_timestampns(struct sock *, struct timespec __user *);
43 int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *,
44 struct sockaddr __user **, struct iovec **);
45 asmlinkage long compat_sys_sendmsg(int, struct compat_msghdr __user *,
47 asmlinkage long compat_sys_sendmmsg(int, struct compat_mmsghdr __user *,
49 asmlinkage long compat_sys_recvmsg(int, struct compat_msghdr __user *,
51 asmlinkage long compat_sys_recvmmsg(int, struct compat_mmsghdr __user *,
53 struct compat_timespec __user *);
54 asmlinkage long compat_sys_getsockopt(int, int, int, char __user *,
55 int __user *);
61 int compat_mc_setsockopt(struct sock *, int, int, char __user *, unsigned int,
62 int (*)(struct sock *, int, int, char __user *,
64 int compat_mc_getsockopt(struct sock *, int, int, char __user *, int __user *,
65 int (*)(struct sock *, int, int, char __user *,
66 int __user *));
/linux-4.4.14/arch/mips/kernel/
H A Dsignal-common.h25 extern void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs,
28 extern int fpcsr_pending(unsigned int __user *fpcsr);
36 _save_fp_context(void __user *fpregs, void __user *csr);
38 _restore_fp_context(void __user *fpregs, void __user *csr);
40 extern asmlinkage int _save_msa_all_upper(void __user *buf);
41 extern asmlinkage int _restore_msa_all_upper(void __user *buf);
H A Dsignal.c45 static int (*save_fp_context)(void __user *sc);
46 static int (*restore_fp_context)(void __user *sc);
69 static int copy_fp_to_sigcontext(void __user *sc) copy_fp_to_sigcontext()
72 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; copy_fp_to_sigcontext()
73 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; copy_fp_to_sigcontext()
88 static int copy_fp_from_sigcontext(void __user *sc) copy_fp_from_sigcontext()
91 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; copy_fp_from_sigcontext()
92 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; copy_fp_from_sigcontext()
110 static int save_hw_fp_context(void __user *sc) save_hw_fp_context()
113 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; save_hw_fp_context()
114 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; save_hw_fp_context()
119 static int restore_hw_fp_context(void __user *sc) restore_hw_fp_context()
122 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; restore_hw_fp_context()
123 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; restore_hw_fp_context()
132 static inline void __user *sc_to_extcontext(void __user *sc) sc_to_extcontext()
134 struct ucontext __user *uc; sc_to_extcontext()
145 static int save_msa_extcontext(void __user *buf) save_msa_extcontext()
147 struct msa_extcontext __user *msa = buf; save_msa_extcontext()
191 static int restore_msa_extcontext(void __user *buf, unsigned int size) restore_msa_extcontext()
193 struct msa_extcontext __user *msa = buf; restore_msa_extcontext()
237 static int save_extcontext(void __user *buf) save_extcontext()
258 static int restore_extcontext(void __user *buf) restore_extcontext()
296 int protected_save_fp_context(void __user *sc) protected_save_fp_context()
299 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; protected_save_fp_context()
300 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; protected_save_fp_context()
301 uint32_t __user *used_math = sc + abi->off_sc_used_math; protected_save_fp_context()
349 int protected_restore_fp_context(void __user *sc) protected_restore_fp_context()
352 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; protected_restore_fp_context()
353 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; protected_restore_fp_context()
354 uint32_t __user *used_math = sc + abi->off_sc_used_math; protected_restore_fp_context()
410 int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) setup_sigcontext()
468 int fpcsr_pending(unsigned int __user *fpcsr) fpcsr_pending()
487 int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) restore_sigcontext()
519 void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, get_sigframe()
539 return (void __user *)((sp - frame_size) & (ICACHE_REFILLS_WORKAROUND_WAR ? ~(cpu_icache_line_size()-1) : ALMASK)); get_sigframe()
547 SYSCALL_DEFINE1(sigsuspend, sigset_t __user *, uset) SYSCALL_DEFINE1()
554 SYSCALL_DEFINE3(sigaction, int, sig, const struct sigaction __user *, act, SYSCALL_DEFINE3()
555 struct sigaction __user *, oact) SYSCALL_DEFINE3()
597 struct sigframe __user *frame; sys_sigreturn()
601 frame = (struct sigframe __user *) regs.regs[29]; sys_sigreturn()
632 struct rt_sigframe __user *frame; sys_rt_sigreturn()
636 frame = (struct rt_sigframe __user *) regs.regs[29]; sys_rt_sigreturn()
671 struct sigframe __user *frame; setup_frame()
710 struct rt_sigframe __user *frame; setup_rt_frame()
869 static int smp_save_fp_context(void __user *sc) smp_save_fp_context()
876 static int smp_restore_fp_context(void __user *sc) smp_restore_fp_context()
H A Dptrace32.c64 u32 __user * addrOthers; compat_arch_ptrace()
69 if (get_user(addrOthers, (u32 __user * __user *) (unsigned long) addr) != 0) compat_arch_ptrace()
76 ret = put_user(tmp, (u32 __user *) (unsigned long) data); compat_arch_ptrace()
159 ret = put_user(tmp, (unsigned __user *) (unsigned long) data); compat_arch_ptrace()
174 u32 __user * addrOthers; compat_arch_ptrace()
178 if (get_user(addrOthers, (u32 __user * __user *) (unsigned long) addr) != 0) compat_arch_ptrace()
260 (struct user_pt_regs __user *) (__u64) data); compat_arch_ptrace()
265 (struct user_pt_regs __user *) (__u64) data); compat_arch_ptrace()
269 ret = ptrace_getfpregs(child, (__u32 __user *) (__u64) data); compat_arch_ptrace()
273 ret = ptrace_setfpregs(child, (__u32 __user *) (__u64) data); compat_arch_ptrace()
278 (unsigned int __user *) (unsigned long) data); compat_arch_ptrace()
283 (unsigned long __user *) (unsigned long) data); compat_arch_ptrace()
288 (struct pt_watch_regs __user *) (unsigned long) addr); compat_arch_ptrace()
293 (struct pt_watch_regs __user *) (unsigned long) addr); compat_arch_ptrace()
H A Dptrace.c102 int ptrace_getregs(struct task_struct *child, struct user_pt_regs __user *data) ptrace_getregs()
113 __put_user((long)regs->regs[i], (__s64 __user *)&data->regs[i]); ptrace_getregs()
114 __put_user((long)regs->lo, (__s64 __user *)&data->lo); ptrace_getregs()
115 __put_user((long)regs->hi, (__s64 __user *)&data->hi); ptrace_getregs()
116 __put_user((long)regs->cp0_epc, (__s64 __user *)&data->cp0_epc); ptrace_getregs()
117 __put_user((long)regs->cp0_badvaddr, (__s64 __user *)&data->cp0_badvaddr); ptrace_getregs()
118 __put_user((long)regs->cp0_status, (__s64 __user *)&data->cp0_status); ptrace_getregs()
119 __put_user((long)regs->cp0_cause, (__s64 __user *)&data->cp0_cause); ptrace_getregs()
129 int ptrace_setregs(struct task_struct *child, struct user_pt_regs __user *data) ptrace_setregs()
140 __get_user(regs->regs[i], (__s64 __user *)&data->regs[i]); ptrace_setregs()
141 __get_user(regs->lo, (__s64 __user *)&data->lo); ptrace_setregs()
142 __get_user(regs->hi, (__s64 __user *)&data->hi); ptrace_setregs()
143 __get_user(regs->cp0_epc, (__s64 __user *)&data->cp0_epc); ptrace_setregs()
150 int ptrace_getfpregs(struct task_struct *child, __u32 __user *data) ptrace_getfpregs()
161 i + (__u64 __user *)data); ptrace_getfpregs()
164 __put_user((__u64) -1, i + (__u64 __user *) data); ptrace_getfpregs()
173 int ptrace_setfpregs(struct task_struct *child, __u32 __user *data) ptrace_setfpregs()
187 __get_user(fpr_val, i + (__u64 __user *)data); ptrace_setfpregs()
200 struct pt_watch_regs __user *addr) ptrace_get_watch_regs()
239 struct pt_watch_regs __user *addr) ptrace_set_watch_regs()
293 void *kbuf, void __user *ubuf) gpr32_get()
321 const void *kbuf, const void __user *ubuf) gpr32_set()
372 void *kbuf, void __user *ubuf) gpr64_get()
400 const void *kbuf, const void __user *ubuf) gpr64_set()
445 void *kbuf, void __user *ubuf) fpr_get()
473 const void *kbuf, const void __user *ubuf) fpr_set()
671 void __user *addrp = (void __user *) addr; arch_ptrace()
672 void __user *datavp = (void __user *) data; arch_ptrace()
673 unsigned long __user *datalp = (void __user *) data; arch_ptrace()
H A Dsignal32.c71 struct sigcontext32 __user *sc) setup_sigcontext32()
104 struct sigcontext32 __user *sc) restore_sigcontext32()
136 asmlinkage int sys32_sigsuspend(compat_sigset_t __user *uset) sys32_sigsuspend()
141 SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *, act,
142 struct compat_sigaction __user *, oact)
155 new_ka.sa.sa_handler = (void __user *)(s64)handler;
183 int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from) copy_siginfo_to_user32()
235 int copy_siginfo_from_user32(siginfo_t *to, compat_siginfo_t __user *from) copy_siginfo_from_user32()
247 struct sigframe32 __user *frame; sys32_sigreturn()
251 frame = (struct sigframe32 __user *) regs.regs[29]; sys32_sigreturn()
281 struct rt_sigframe32 __user *frame; sys32_rt_sigreturn()
285 frame = (struct rt_sigframe32 __user *) regs.regs[29]; sys32_rt_sigreturn()
319 struct sigframe32 __user *frame; setup_frame_32()
359 struct rt_sigframe32 __user *frame; setup_rt_frame_32()
/linux-4.4.14/arch/frv/include/asm/
H A Dfutex.h10 extern int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr);
13 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, futex_atomic_cmpxchg_inatomic()
H A Duaccess.h65 #define access_ok(type,addr,size) (__range_ok((void __user *)(addr), (size)) == 0)
122 typeof(*(ptr)) __user *_p = (ptr); \
214 const typeof(*(ptr)) __user *_p = (ptr);\
261 #define ____force(x) (__force void *)(void __user *)(x)
281 __copy_to_user(void __user *to, const void *from, unsigned long n) __copy_to_user()
288 __copy_from_user(void *to, const void __user *from, unsigned long n) __copy_from_user()
294 static inline long copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
307 static inline long copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
312 extern long strncpy_from_user(char *dst, const char __user *src, long count);
313 extern long strnlen_user(const char __user *src, long count);
/linux-4.4.14/arch/x86/include/asm/
H A Dsighandling.h15 void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
16 int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc);
17 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
H A Dsys_ia32.h23 asmlinkage long sys32_truncate64(const char __user *, unsigned long, unsigned long);
26 asmlinkage long sys32_stat64(const char __user *, struct stat64 __user *);
27 asmlinkage long sys32_lstat64(const char __user *, struct stat64 __user *);
28 asmlinkage long sys32_fstat64(unsigned int, struct stat64 __user *);
29 asmlinkage long sys32_fstatat(unsigned int, const char __user *,
30 struct stat64 __user *, int);
32 asmlinkage long sys32_mmap(struct mmap_arg_struct32 __user *);
34 asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int);
36 asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32);
37 asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32);
H A Duaccess_64.h49 copy_in_user(void __user *to, const void __user *from, unsigned len);
52 int __copy_from_user_nocheck(void *dst, const void __user *src, unsigned size) __copy_from_user_nocheck()
59 case 1:__get_user_asm(*(u8 *)dst, (u8 __user *)src, __copy_from_user_nocheck()
62 case 2:__get_user_asm(*(u16 *)dst, (u16 __user *)src, __copy_from_user_nocheck()
65 case 4:__get_user_asm(*(u32 *)dst, (u32 __user *)src, __copy_from_user_nocheck()
68 case 8:__get_user_asm(*(u64 *)dst, (u64 __user *)src, __copy_from_user_nocheck()
72 __get_user_asm(*(u64 *)dst, (u64 __user *)src, __copy_from_user_nocheck()
77 (u16 __user *)(8 + (char __user *)src), __copy_from_user_nocheck()
81 __get_user_asm(*(u64 *)dst, (u64 __user *)src, __copy_from_user_nocheck()
86 (u64 __user *)(8 + (char __user *)src), __copy_from_user_nocheck()
95 int __copy_from_user(void *dst, const void __user *src, unsigned size) __copy_from_user()
102 int __copy_to_user_nocheck(void __user *dst, const void *src, unsigned size) __copy_to_user_nocheck()
109 case 1:__put_user_asm(*(u8 *)src, (u8 __user *)dst, __copy_to_user_nocheck()
112 case 2:__put_user_asm(*(u16 *)src, (u16 __user *)dst, __copy_to_user_nocheck()
115 case 4:__put_user_asm(*(u32 *)src, (u32 __user *)dst, __copy_to_user_nocheck()
118 case 8:__put_user_asm(*(u64 *)src, (u64 __user *)dst, __copy_to_user_nocheck()
122 __put_user_asm(*(u64 *)src, (u64 __user *)dst, __copy_to_user_nocheck()
127 __put_user_asm(4[(u16 *)src], 4 + (u16 __user *)dst, __copy_to_user_nocheck()
131 __put_user_asm(*(u64 *)src, (u64 __user *)dst, __copy_to_user_nocheck()
136 __put_user_asm(1[(u64 *)src], 1 + (u64 __user *)dst, __copy_to_user_nocheck()
145 int __copy_to_user(void __user *dst, const void *src, unsigned size) __copy_to_user()
152 int __copy_in_user(void __user *dst, const void __user *src, unsigned size) __copy_in_user()
163 __get_user_asm(tmp, (u8 __user *)src, __copy_in_user()
166 __put_user_asm(tmp, (u8 __user *)dst, __copy_in_user()
172 __get_user_asm(tmp, (u16 __user *)src, __copy_in_user()
175 __put_user_asm(tmp, (u16 __user *)dst, __copy_in_user()
182 __get_user_asm(tmp, (u32 __user *)src, __copy_in_user()
185 __put_user_asm(tmp, (u32 __user *)dst, __copy_in_user()
191 __get_user_asm(tmp, (u64 __user *)src, __copy_in_user()
194 __put_user_asm(tmp, (u64 __user *)dst, __copy_in_user()
205 __copy_from_user_inatomic(void *dst, const void __user *src, unsigned size) __copy_from_user_inatomic()
211 __copy_to_user_inatomic(void __user *dst, const void *src, unsigned size) __copy_to_user_inatomic()
216 extern long __copy_user_nocache(void *dst, const void __user *src,
220 __copy_from_user_nocache(void *dst, const void __user *src, unsigned size) __copy_from_user_nocache()
227 __copy_from_user_inatomic_nocache(void *dst, const void __user *src, __copy_from_user_inatomic_nocache()
H A Dsyscalls.h24 asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
30 asmlinkage long sys_set_thread_area(struct user_desc __user *);
31 asmlinkage long sys_get_thread_area(struct user_desc __user *);
41 asmlinkage long sys_vm86old(struct vm86_struct __user *);
H A Duaccess_32.h14 (void __user *to, const void *from, unsigned long n);
16 (void *to, const void __user *from, unsigned long n);
18 (void *to, const void __user *from, unsigned long n);
20 (void *to, const void __user *from, unsigned long n);
22 (void *to, const void __user *from, unsigned long n);
44 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) __copy_to_user_inatomic()
51 __put_user_size(*(u8 *)from, (u8 __user *)to, __copy_to_user_inatomic()
55 __put_user_size(*(u16 *)from, (u16 __user *)to, __copy_to_user_inatomic()
59 __put_user_size(*(u32 *)from, (u32 __user *)to, __copy_to_user_inatomic()
63 __put_user_size(*(u64 *)from, (u64 __user *)to, __copy_to_user_inatomic()
87 __copy_to_user(void __user *to, const void *from, unsigned long n) __copy_to_user()
94 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) __copy_from_user_inatomic()
143 __copy_from_user(void *to, const void __user *from, unsigned long n) __copy_from_user()
165 const void __user *from, unsigned long n) __copy_from_user_nocache()
187 __copy_from_user_inatomic_nocache(void *to, const void __user *from, __copy_from_user_inatomic_nocache()
H A Dmmu.h22 void __user *vdso;
/linux-4.4.14/drivers/isdn/hardware/eicon/
H A Ddiva.h12 typedef int (*divas_xdi_copy_to_user_fn_t) (void *os_handle, void __user *dst,
16 const void __user *src, int length);
18 int diva_xdi_read(void *adapter, void *os_handle, void __user *dst,
21 int diva_xdi_write(void *adapter, void *os_handle, const void __user *src,
24 void *diva_xdi_open_adapter(void *os_handle, const void __user *src,
/linux-4.4.14/ipc/
H A Dsyscall.c17 unsigned long, third, void __user *, ptr, long, fifth) SYSCALL_DEFINE6()
26 return sys_semtimedop(first, (struct sembuf __user *)ptr, SYSCALL_DEFINE6()
29 return sys_semtimedop(first, (struct sembuf __user *)ptr, SYSCALL_DEFINE6()
31 (const struct timespec __user *)fifth); SYSCALL_DEFINE6()
39 if (get_user(arg, (unsigned long __user *) ptr)) SYSCALL_DEFINE6()
45 return sys_msgsnd(first, (struct msgbuf __user *) ptr, SYSCALL_DEFINE6()
55 (struct ipc_kludge __user *) ptr, SYSCALL_DEFINE6()
63 (struct msgbuf __user *) ptr, SYSCALL_DEFINE6()
69 return sys_msgctl(first, second, (struct msqid_ds __user *)ptr); SYSCALL_DEFINE6()
75 ret = do_shmat(first, (char __user *)ptr, SYSCALL_DEFINE6()
79 return put_user(raddr, (unsigned long __user *) third); SYSCALL_DEFINE6()
89 return sys_shmdt((char __user *)ptr); SYSCALL_DEFINE6()
94 (struct shmid_ds __user *) ptr); SYSCALL_DEFINE6()
H A Dcompat_mq.c26 const struct compat_mq_attr __user *uattr) get_compat_mq_attr()
38 struct compat_mq_attr __user *uattr) put_compat_mq_attr()
49 COMPAT_SYSCALL_DEFINE4(mq_open, const char __user *, u_name, COMPAT_SYSCALL_DEFINE4()
51 struct compat_mq_attr __user *, u_attr) COMPAT_SYSCALL_DEFINE4()
53 void __user *p = NULL; COMPAT_SYSCALL_DEFINE4()
68 const char __user *, u_msg_ptr, COMPAT_SYSCALL_DEFINE5()
70 const struct compat_timespec __user *, u_abs_timeout) COMPAT_SYSCALL_DEFINE5()
72 struct timespec __user *u_ts; COMPAT_SYSCALL_DEFINE5()
82 char __user *, u_msg_ptr, COMPAT_SYSCALL_DEFINE5()
83 compat_size_t, msg_len, unsigned int __user *, u_msg_prio, COMPAT_SYSCALL_DEFINE5()
84 const struct compat_timespec __user *, u_abs_timeout) COMPAT_SYSCALL_DEFINE5()
86 struct timespec __user *u_ts; COMPAT_SYSCALL_DEFINE5()
96 const struct compat_sigevent __user *, u_notification) COMPAT_SYSCALL_DEFINE2()
98 struct sigevent __user *p = NULL; COMPAT_SYSCALL_DEFINE2()
113 const struct compat_mq_attr __user *, u_mqstat, COMPAT_SYSCALL_DEFINE3()
114 struct compat_mq_attr __user *, u_omqstat) COMPAT_SYSCALL_DEFINE3()
117 struct mq_attr __user *p = compat_alloc_user_space(2 * sizeof(*p)); COMPAT_SYSCALL_DEFINE3()
H A Dcompat.c137 struct compat_ipc64_perm __user *up64) __get_compat_ipc64_perm()
148 struct compat_ipc_perm __user *up) __get_compat_ipc_perm()
159 struct compat_ipc64_perm __user *up64) __put_compat_ipc64_perm()
174 struct compat_ipc_perm __user *uip) __put_compat_ipc_perm()
195 struct compat_semid64_ds __user *up64) get_compat_semid64_ds()
203 struct compat_semid_ds __user *up) get_compat_semid_ds()
211 struct compat_semid64_ds __user *up64) put_compat_semid64_ds()
225 struct compat_semid_ds __user *up) put_compat_semid_ds()
243 struct semid64_ds __user *up64; do_compat_semctl()
310 static long compat_do_msg_fill(void __user *dest, struct msg_msg *msg, size_t bufsz) compat_do_msg_fill()
312 struct compat_msgbuf __user *msgp = dest; compat_do_msg_fill()
350 if (get_user(pad, (u32 __user *) compat_ptr(ptr))) COMPAT_SYSCALL_DEFINE6()
355 struct compat_msgbuf __user *up = compat_ptr(ptr); COMPAT_SYSCALL_DEFINE6()
367 void __user *uptr = compat_ptr(ptr); COMPAT_SYSCALL_DEFINE6()
421 struct compat_msgbuf __user *up = compat_ptr(msgp); COMPAT_SYSCALL_DEFINE4()
437 struct compat_msqid64_ds __user *up64) get_compat_msqid64()
449 struct compat_msqid_ds __user *up) get_compat_msqid()
461 struct compat_msqid64_ds __user *up64) put_compat_msqid64_ds()
480 struct compat_msqid_ds __user *up) put_compat_msqid_ds()
498 COMPAT_SYSCALL_DEFINE3(msgctl, int, first, int, second, void __user *, uptr) COMPAT_SYSCALL_DEFINE3()
503 void __user *p; COMPAT_SYSCALL_DEFINE3()
565 struct compat_shmid64_ds __user *up64) get_compat_shmid64_ds()
573 struct compat_shmid_ds __user *up) get_compat_shmid_ds()
581 struct compat_shmid64_ds __user *up64) put_compat_shmid64_ds()
599 struct compat_shmid_ds __user *up) put_compat_shmid_ds()
617 struct compat_shminfo64 __user *up64) put_compat_shminfo64()
634 struct shminfo __user *up) put_compat_shminfo()
650 static inline int put_compat_shm_info(struct shm_info __user *ip, put_compat_shm_info()
651 struct compat_shm_info __user *uip) put_compat_shm_info()
668 COMPAT_SYSCALL_DEFINE3(shmctl, int, first, int, second, void __user *, uptr) COMPAT_SYSCALL_DEFINE3()
670 void __user *p; COMPAT_SYSCALL_DEFINE3()
749 COMPAT_SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsems, COMPAT_SYSCALL_DEFINE4()
751 const struct compat_timespec __user *, timeout) COMPAT_SYSCALL_DEFINE4()
753 struct timespec __user *ts64; COMPAT_SYSCALL_DEFINE4()
/linux-4.4.14/net/ipv4/
H A Dudp_impl.h14 char __user *optval, unsigned int optlen);
16 char __user *optval, int __user *optlen);
20 char __user *optval, unsigned int optlen);
22 char __user *optval, int __user *optlen);
/linux-4.4.14/drivers/gpu/drm/nouveau/
H A Dnouveau_usif.h6 int usif_ioctl(struct drm_file *, void __user *, u32);
/linux-4.4.14/fs/xfs/
H A Dxfs_discard.h7 extern int xfs_ioc_trim(struct xfs_mount *, struct fstrim_range __user *);
H A Dxfs_itable.h28 void __user *buffer,
50 char __user *ubuffer,/* buffer with inode stats */
54 void __user *ubuffer, /* buffer to write to */
63 void __user *buffer,
73 void __user *buffer,
79 void __user *ubuffer, /* buffer to write to */
86 void __user *ubuffer, /* buffer to write to */
96 void __user *buffer, /* buffer with inode info */
H A Dxfs_ioctl.h53 unsigned char __user *ubuf,
61 const unsigned char __user *ubuf,
74 void __user *uhandle,
H A Dxfs_ioctl32.c47 compat_xfs_flock64_t __user *arg32) xfs_compat_flock64_copyin()
63 compat_xfs_fsop_geom_v1_t __user *arg32) xfs_compat_ioc_fsgeometry_v1()
80 compat_xfs_growfs_data_t __user *arg32) xfs_compat_growfs_data_copyin()
91 compat_xfs_growfs_rt_t __user *arg32) xfs_compat_growfs_rt_copyin()
101 void __user *ubuffer, xfs_inumbers_fmt_compat()
106 compat_xfs_inogrp_t __user *p32 = ubuffer; xfs_inumbers_fmt_compat()
126 compat_xfs_bstime_t __user *bstime32) xfs_ioctl32_bstime_copyin()
141 compat_xfs_bstat_t __user *bstat32) xfs_ioctl32_bstat_copyin()
173 compat_xfs_bstime_t __user *p32, xfs_bstime_store_compat()
188 void __user *ubuffer, xfs_bulkstat_one_fmt_compat()
193 compat_xfs_bstat_t __user *p32 = ubuffer; xfs_bulkstat_one_fmt_compat()
230 void __user *buffer, /* buffer to place output in */ xfs_bulkstat_one_compat()
245 compat_xfs_fsop_bulkreq_t __user *p32) xfs_compat_ioc_bulkstat()
315 compat_xfs_fsop_handlereq_t __user *arg32) xfs_compat_handlereq_copyin()
345 void __user *arg) xfs_compat_attrlist_by_handle()
396 void __user *arg) xfs_compat_attrmulti_by_handle()
490 void __user *arg) xfs_compat_fssetdm_by_handle()
534 void __user *arg = (void __user *)p; xfs_file_compat_ioctl()
629 struct compat_xfs_swapext __user *sxu = arg; xfs_file_compat_ioctl()
/linux-4.4.14/arch/powerpc/kernel/
H A Dsignal.h15 extern void __user *get_sigframe(struct ksignal *ksig, unsigned long sp,
24 extern unsigned long copy_fpr_to_user(void __user *to,
26 extern unsigned long copy_transact_fpr_to_user(void __user *to,
29 void __user *from);
31 void __user *from);
33 extern unsigned long copy_vsx_to_user(void __user *to,
35 extern unsigned long copy_transact_vsx_to_user(void __user *to,
38 void __user *from);
40 void __user *from);
H A Dsyscalls.c86 ppc_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct timeval __user *tvp) ppc_select()
90 unsigned long __user *buffer = (unsigned long __user *)n; ppc_select()
93 || __get_user(inp, ((fd_set __user * __user *)(buffer+1))) ppc_select()
94 || __get_user(outp, ((fd_set __user * __user *)(buffer+2))) ppc_select()
95 || __get_user(exp, ((fd_set __user * __user *)(buffer+3))) ppc_select()
96 || __get_user(tvp, ((struct timeval __user * __user *)(buffer+4)))) ppc_select()
H A Dsignal_32.c94 static inline int put_sigset_t(compat_sigset_t __user *uset, sigset_t *set) put_sigset_t()
112 const compat_sigset_t __user *uset) get_sigset_t()
136 struct mcontext __user *frame) save_general_regs()
153 struct mcontext __user *sr) restore_general_regs()
171 static inline int put_sigset_t(sigset_t __user *uset, sigset_t *set) put_sigset_t()
176 static inline int get_sigset_t(sigset_t *set, const sigset_t __user *uset) get_sigset_t()
182 #define from_user_ptr(p) ((void __user *)(p))
185 struct mcontext __user *frame) save_general_regs()
192 struct mcontext __user *sr) restore_general_regs()
264 unsigned long copy_fpr_to_user(void __user *to, copy_fpr_to_user()
278 void __user *from) copy_fpr_from_user()
292 unsigned long copy_vsx_to_user(void __user *to, copy_vsx_to_user()
305 void __user *from) copy_vsx_from_user()
318 unsigned long copy_transact_fpr_to_user(void __user *to, copy_transact_fpr_to_user()
332 void __user *from) copy_transact_fpr_from_user()
346 unsigned long copy_transact_vsx_to_user(void __user *to, copy_transact_vsx_to_user()
359 void __user *from) copy_transact_vsx_from_user()
372 inline unsigned long copy_fpr_to_user(void __user *to, copy_fpr_to_user()
380 void __user *from) copy_fpr_from_user()
387 inline unsigned long copy_transact_fpr_to_user(void __user *to, copy_transact_fpr_to_user()
395 void __user *from) copy_transact_fpr_from_user()
408 static int save_user_regs(struct pt_regs *regs, struct mcontext __user *frame, save_user_regs()
409 struct mcontext __user *tm_frame, int sigret, save_user_regs()
442 if (__put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32])) save_user_regs()
481 if (__put_user(current->thread.spefscr, (u32 __user *)&frame->mc_vregs + ELF_NEVRREG)) save_user_regs()
516 struct mcontext __user *frame, save_tm_user_regs()
517 struct mcontext __user *tm_frame, int sigret) save_tm_user_regs()
578 (u32 __user *)&frame->mc_vregs[32])) save_tm_user_regs()
582 (u32 __user *)&tm_frame->mc_vregs[32])) save_tm_user_regs()
586 (u32 __user *)&tm_frame->mc_vregs[32])) save_tm_user_regs()
639 if (__put_user(current->thread.spefscr, (u32 __user *)&frame->mc_vregs + ELF_NEVRREG)) save_tm_user_regs()
663 struct mcontext __user *sr, int sig) restore_user_regs()
715 if (__get_user(current->thread.vrsave, (u32 __user *)&sr->mc_vregs[32])) restore_user_regs()
759 if (__get_user(current->thread.spefscr, (u32 __user *)&sr->mc_vregs + ELF_NEVRREG)) restore_user_regs()
773 struct mcontext __user *sr, restore_tm_user_regs()
774 struct mcontext __user *tm_sr) restore_tm_user_regs()
829 (u32 __user *)&sr->mc_vregs[32]) || restore_tm_user_regs()
831 (u32 __user *)&tm_sr->mc_vregs[32])) restore_tm_user_regs()
873 if (__get_user(current->thread.spefscr, (u32 __user *)&sr->mc_vregs restore_tm_user_regs()
914 int copy_siginfo_to_user32(struct compat_siginfo __user *d, const siginfo_t *s) copy_siginfo_to_user32()
976 int copy_siginfo_from_user32(siginfo_t *to, struct compat_siginfo __user *from) copy_siginfo_from_user32()
994 struct rt_sigframe __user *rt_sf; handle_rt_signal32()
995 struct mcontext __user *frame; handle_rt_signal32()
996 struct mcontext __user *tm_frame = NULL; handle_rt_signal32()
997 void __user *addr; handle_rt_signal32()
1054 addr = (void __user *)regs->gpr[1]; handle_rt_signal32()
1055 if (put_user(regs->gpr[1], (u32 __user *)newsp)) handle_rt_signal32()
1081 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) do_setcontext()
1084 struct mcontext __user *mcp; do_setcontext()
1094 mcp = (struct mcontext __user *)(u64)cmcp; do_setcontext()
1111 static int do_setcontext_tm(struct ucontext __user *ucp, do_setcontext_tm()
1112 struct ucontext __user *tm_ucp, do_setcontext_tm()
1116 struct mcontext __user *mcp; do_setcontext_tm()
1117 struct mcontext __user *tm_mcp; do_setcontext_tm()
1127 mcp = (struct mcontext __user *)(u64)cmcp; do_setcontext_tm()
1128 tm_mcp = (struct mcontext __user *)(u64)tm_cmcp; do_setcontext_tm()
1139 long sys_swapcontext(struct ucontext __user *old_ctx, sys_swapcontext()
1140 struct ucontext __user *new_ctx, sys_swapcontext()
1150 struct mcontext __user *mcp; sys_swapcontext()
1160 mcp = (struct mcontext __user *)(u64)cmcp; sys_swapcontext()
1188 struct mcontext __user *mctx; sys_swapcontext()
1197 mctx = (struct mcontext __user *) sys_swapcontext()
1208 || __get_user(tmp, (u8 __user *) new_ctx) sys_swapcontext()
1209 || __get_user(tmp, (u8 __user *) new_ctx + ctx_size - 1)) sys_swapcontext()
1233 struct rt_sigframe __user *rt_sf; sys_rt_sigreturn()
1235 struct ucontext __user *uc_transact; sys_rt_sigreturn()
1243 rt_sf = (struct rt_sigframe __user *) sys_rt_sigreturn()
1250 uc_transact = (struct ucontext __user *)(uintptr_t)tmp; sys_rt_sigreturn()
1253 struct mcontext __user *mcp; sys_rt_sigreturn()
1257 mcp = (struct mcontext __user *)(u64)cmcp; sys_rt_sigreturn()
1308 int sys_debug_setcontext(struct ucontext __user *ctx, sys_debug_setcontext()
1309 int ndbg, struct sig_dbg_op __user *dbg, sys_debug_setcontext()
1372 || __get_user(tmp, (u8 __user *) ctx) sys_debug_setcontext()
1373 || __get_user(tmp, (u8 __user *) (ctx + 1) - 1)) sys_debug_setcontext()
1419 struct sigcontext __user *sc; handle_signal32()
1420 struct sigframe __user *frame; handle_signal32()
1421 struct mcontext __user *tm_mctx = NULL; handle_signal32()
1430 sc = (struct sigcontext __user *) &frame->sctx; handle_signal32()
1474 if (put_user(regs->gpr[1], (u32 __user *)newsp)) handle_signal32()
1502 struct sigframe __user *sf; sys_sigreturn()
1503 struct sigcontext __user *sc; sys_sigreturn()
1505 struct mcontext __user *sr; sys_sigreturn()
1506 void __user *addr; sys_sigreturn()
1509 struct mcontext __user *mcp, *tm_mcp; sys_sigreturn()
1516 sf = (struct sigframe __user *)(regs->gpr[1] + __SIGNAL_FRAMESIZE); sys_sigreturn()
1535 mcp = (struct mcontext __user *)&sf->mctx; sys_sigreturn()
1536 tm_mcp = (struct mcontext __user *)&sf->mctx_transact; sys_sigreturn()
1547 sr = (struct mcontext __user *)from_user_ptr(sigctx.regs); sys_sigreturn()
H A Dsys_ppc32.c56 asmlinkage long ppc32_select(u32 n, compat_ulong_t __user *inp, ppc32_select()
57 compat_ulong_t __user *outp, compat_ulong_t __user *exp, ppc32_select()
77 compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, compat_sys_pread64()
83 compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, compat_sys_pwrite64()
94 asmlinkage int compat_sys_truncate64(const char __user * path, u32 reg4, compat_sys_truncate64()
/linux-4.4.14/drivers/pci/
H A Dsyscall.c17 unsigned long, off, unsigned long, len, void __user *, buf) SYSCALL_DEFINE5()
55 err = put_user(byte, (unsigned char __user *)buf); SYSCALL_DEFINE5()
58 err = put_user(word, (unsigned short __user *)buf); SYSCALL_DEFINE5()
61 err = put_user(dword, (unsigned int __user *)buf); SYSCALL_DEFINE5()
73 put_user(-1, (unsigned char __user *)buf); SYSCALL_DEFINE5()
76 put_user(-1, (unsigned short __user *)buf); SYSCALL_DEFINE5()
79 put_user(-1, (unsigned int __user *)buf); SYSCALL_DEFINE5()
87 unsigned long, off, unsigned long, len, void __user *, buf) SYSCALL_DEFINE5()
104 err = get_user(byte, (u8 __user *)buf); SYSCALL_DEFINE5()
113 err = get_user(word, (u16 __user *)buf); SYSCALL_DEFINE5()
122 err = get_user(dword, (u32 __user *)buf); SYSCALL_DEFINE5()
/linux-4.4.14/include/uapi/linux/
H A Ddlm_device.h41 void __user *castparam;
42 void __user *castaddr;
43 void __user *bastparam;
44 void __user *bastaddr;
45 struct dlm_lksb __user *lksb;
84 void __user * user_astaddr;
85 void __user * user_astparam;
86 struct dlm_lksb __user * user_lksb;
H A Duvcvideo.h52 struct uvc_menu_info __user *menu_info;
64 __u8 __user *data;
H A Duio.h18 void __user *iov_base; /* BSD uses caddr_t (1003.1g requires void *) */
H A Dnfs4_mount.h23 const char __user * data;
48 struct sockaddr __user * host_addr; /* 1 */
55 int __user *auth_flavours; /* 1 */
H A Di2o-dev.h55 void __user *msg; /* message */
60 void __user *resbuf; /* Buffer for result */
61 unsigned int __user *reslen; /* Buffer length in bytes */
67 void __user *opbuf; /* Operation List buffer */
69 void __user *resbuf; /* Result List buffer */
70 unsigned int __user *reslen; /* Result List buffer length in bytes */
78 void __user *buf; /* Pointer to software buffer */
79 unsigned int __user *swlen; /* Length of software data */
80 unsigned int __user *maxfrag; /* Maximum fragment count */
81 unsigned int __user *curfrag; /* Current fragment count */
88 void __user *resbuf; /* Buffer for reply HTML page */
89 unsigned int __user *reslen; /* Length in bytes of reply buffer */
90 void __user *qbuf; /* Pointer to HTTP query string */
/linux-4.4.14/arch/arc/mm/
H A Dextable.c30 long arc_copy_from_user_noinline(void *to, const void __user *from, arc_copy_from_user_noinline()
37 long arc_copy_to_user_noinline(void __user *to, const void *from, arc_copy_to_user_noinline()
44 unsigned long arc_clear_user_noinline(void __user *to, arc_clear_user_noinline()
51 long arc_strncpy_from_user_noinline(char *dst, const char __user *src, arc_strncpy_from_user_noinline()
58 long arc_strnlen_user_noinline(const char __user *src, long n) arc_strnlen_user_noinline()
/linux-4.4.14/arch/metag/include/asm/
H A Dsyscalls.h16 asmlinkage int sys_metag_setglobalbit(char __user *, int);
18 asmlinkage int sys_metag_set_tls(void __user *);
21 asmlinkage long sys_truncate64_metag(const char __user *, unsigned long,
28 asmlinkage ssize_t sys_pread64_metag(unsigned long, char __user *, size_t,
30 asmlinkage ssize_t sys_pwrite64_metag(unsigned long, char __user *, size_t,
H A Dptrace.h37 void *kbuf, void __user *ubuf);
41 const void *kbuf, const void __user *ubuf);
45 void *kbuf, void __user *ubuf);
49 const void *kbuf, const void __user *ubuf);
53 void *kbuf, void __user *ubuf);
57 const void *kbuf, const void __user *ubuf);
H A Duaccess.h99 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
105 extern long __put_user_asm_b(unsigned int x, void __user *addr);
106 extern long __put_user_asm_w(unsigned int x, void __user *addr);
107 extern long __put_user_asm_d(unsigned int x, void __user *addr);
108 extern long __put_user_asm_l(unsigned long long x, void __user *addr);
150 const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
157 extern unsigned char __get_user_asm_b(const void __user *addr, long *err);
158 extern unsigned short __get_user_asm_w(const void __user *addr, long *err);
159 extern unsigned int __get_user_asm_d(const void __user *addr, long *err);
186 extern long __must_check __strncpy_from_user(char *dst, const char __user *src,
196 extern long __must_check strnlen_user(const char __user *src, long count);
201 const void __user *from,
205 copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
215 extern unsigned long __must_check __copy_user(void __user *to,
219 static inline unsigned long copy_to_user(void __user *to, const void *from, copy_to_user()
234 extern unsigned long __must_check __do_clear_user(void __user *to,
237 static inline unsigned long clear_user(void __user *to, unsigned long n) clear_user()
/linux-4.4.14/net/
H A Dcompat.c35 struct compat_msghdr __user *umsg, get_compat_msghdr()
36 struct sockaddr __user **save_addr, get_compat_msghdr()
93 ((void __user *)((char __user *)(cmsg) + CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr))))
101 (struct compat_cmsghdr __user *)((msg)->msg_control) : \
102 (struct compat_cmsghdr __user *)NULL)
110 static inline struct compat_cmsghdr __user *cmsg_compat_nxthdr(struct msghdr *msg, cmsg_compat_nxthdr()
111 struct compat_cmsghdr __user *cmsg, int cmsg_len) cmsg_compat_nxthdr()
113 char __user *ptr = (char __user *)cmsg + CMSG_COMPAT_ALIGN(cmsg_len); cmsg_compat_nxthdr()
114 if ((unsigned long)(ptr + 1 - (char __user *)msg->msg_control) > cmsg_compat_nxthdr()
117 return (struct compat_cmsghdr __user *)ptr; cmsg_compat_nxthdr()
127 struct compat_cmsghdr __user *ucmsg; cmsghdr_from_user_compat_to_kern()
204 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; put_cmsg_compat()
260 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; scm_detach_fds_compat()
264 int __user *cmfptr; scm_detach_fds_compat()
270 for (i = 0, cmfptr = (int __user *) CMSG_COMPAT_DATA(cm); i < fdmax; i++, cmfptr++) { scm_detach_fds_compat()
313 char __user *optval, unsigned int optlen) do_set_attach_filter()
315 struct compat_sock_fprog __user *fprog32 = (struct compat_sock_fprog __user *)optval; do_set_attach_filter()
316 struct sock_fprog __user *kfprog = compat_alloc_user_space(sizeof(struct sock_fprog)); do_set_attach_filter()
328 return sock_setsockopt(sock, level, optname, (char __user *)kfprog, do_set_attach_filter()
333 int optname, char __user *optval, unsigned int optlen) do_set_sock_timeout()
335 struct compat_timeval __user *up = (struct compat_timeval __user *)optval; do_set_sock_timeout()
355 char __user *optval, unsigned int optlen) compat_sock_setsockopt()
367 char __user *, optval, unsigned int, optlen) COMPAT_SYSCALL_DEFINE5()
394 char __user *optval, int __user *optlen) do_get_sock_timeout()
396 struct compat_timeval __user *up; do_get_sock_timeout()
401 up = (struct compat_timeval __user *) optval; do_get_sock_timeout()
423 char __user *optval, int __user *optlen) compat_sock_getsockopt()
430 int compat_sock_get_timestamp(struct sock *sk, struct timeval __user *userstamp) compat_sock_get_timestamp()
432 struct compat_timeval __user *ctv; compat_sock_get_timestamp()
439 ctv = (struct compat_timeval __user *) userstamp; compat_sock_get_timestamp()
458 int compat_sock_get_timestampns(struct sock *sk, struct timespec __user *userstamp) compat_sock_get_timestampns()
460 struct compat_timespec __user *ctv; compat_sock_get_timestampns()
467 ctv = (struct compat_timespec __user *) userstamp; compat_sock_get_timestampns()
487 char __user *, optval, int __user *, optlen) COMPAT_SYSCALL_DEFINE5()
542 char __user *optval, unsigned int optlen, compat_mc_setsockopt()
543 int (*setsockopt)(struct sock *, int, int, char __user *, unsigned int)) compat_mc_setsockopt()
545 char __user *koptval = optval; compat_mc_setsockopt()
552 struct compat_group_req __user *gr32 = (void *)optval; compat_mc_setsockopt()
553 struct group_req __user *kgr = compat_mc_setsockopt()
564 koptval = (char __user *)kgr; compat_mc_setsockopt()
573 struct compat_group_source_req __user *gsr32 = (void *)optval; compat_mc_setsockopt()
574 struct group_source_req __user *kgsr = compat_alloc_user_space( compat_mc_setsockopt()
588 koptval = (char __user *)kgsr; compat_mc_setsockopt()
594 struct compat_group_filter __user *gf32 = (void *)optval; compat_mc_setsockopt()
595 struct group_filter __user *kgf; compat_mc_setsockopt()
617 koptval = (char __user *)kgf; compat_mc_setsockopt()
629 char __user *optval, int __user *optlen, compat_mc_getsockopt()
630 int (*getsockopt)(struct sock *, int, int, char __user *, int __user *)) compat_mc_getsockopt()
632 struct compat_group_filter __user *gf32 = (void *)optval; compat_mc_getsockopt()
633 struct group_filter __user *kgf; compat_mc_getsockopt()
634 int __user *koptlen; compat_mc_getsockopt()
669 err = getsockopt(sock, level, optname, (char __user *)kgf, koptlen); compat_mc_getsockopt()
717 COMPAT_SYSCALL_DEFINE3(sendmsg, int, fd, struct compat_msghdr __user *, msg, unsigned int, flags) COMPAT_SYSCALL_DEFINE3()
719 return __sys_sendmsg(fd, (struct user_msghdr __user *)msg, flags | MSG_CMSG_COMPAT); COMPAT_SYSCALL_DEFINE3()
722 COMPAT_SYSCALL_DEFINE4(sendmmsg, int, fd, struct compat_mmsghdr __user *, mmsg, COMPAT_SYSCALL_DEFINE4()
725 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, COMPAT_SYSCALL_DEFINE4()
729 COMPAT_SYSCALL_DEFINE3(recvmsg, int, fd, struct compat_msghdr __user *, msg, unsigned int, flags) COMPAT_SYSCALL_DEFINE3()
731 return __sys_recvmsg(fd, (struct user_msghdr __user *)msg, flags | MSG_CMSG_COMPAT); COMPAT_SYSCALL_DEFINE3()
734 COMPAT_SYSCALL_DEFINE4(recv, int, fd, void __user *, buf, compat_size_t, len, unsigned int, flags) COMPAT_SYSCALL_DEFINE4()
739 COMPAT_SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, buf, compat_size_t, len, COMPAT_SYSCALL_DEFINE6()
740 unsigned int, flags, struct sockaddr __user *, addr, COMPAT_SYSCALL_DEFINE6()
741 int __user *, addrlen) COMPAT_SYSCALL_DEFINE6()
746 COMPAT_SYSCALL_DEFINE5(recvmmsg, int, fd, struct compat_mmsghdr __user *, mmsg, COMPAT_SYSCALL_DEFINE5()
748 struct compat_timespec __user *, timeout) COMPAT_SYSCALL_DEFINE5()
754 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, COMPAT_SYSCALL_DEFINE5()
760 datagrams = __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, COMPAT_SYSCALL_DEFINE5()
768 COMPAT_SYSCALL_DEFINE2(socketcall, int, call, u32 __user *, args) COMPAT_SYSCALL_DEFINE2()
H A Dsocket.c188 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) move_addr_to_kernel()
217 void __user *uaddr, int __user *ulen) move_addr_to_user()
831 static int (*br_ioctl_hook) (struct net *, unsigned int cmd, void __user *arg);
833 void brioctl_set(int (*hook) (struct net *, unsigned int, void __user *)) brioctl_set()
842 static int (*vlan_ioctl_hook) (struct net *, void __user *arg);
844 void vlan_ioctl_set(int (*hook) (struct net *, void __user *)) vlan_ioctl_set()
853 static int (*dlci_ioctl_hook) (unsigned int, void __user *);
855 void dlci_ioctl_set(int (*hook) (unsigned int, void __user *)) dlci_ioctl_set()
867 void __user *argp = (void __user *)arg; sock_do_ioctl()
890 void __user *argp = (void __user *)arg; sock_ioctl()
909 if (get_user(pid, (int __user *)argp)) sock_ioctl()
917 (int __user *)argp); sock_ioctl()
1255 int __user *, usockvec) SYSCALL_DEFINE4()
1363 SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) SYSCALL_DEFINE3()
1425 SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr, SYSCALL_DEFINE4()
1426 int __user *, upeer_addrlen, int, flags) SYSCALL_DEFINE4()
1506 SYSCALL_DEFINE3(accept, int, fd, struct sockaddr __user *, upeer_sockaddr, SYSCALL_DEFINE3()
1507 int __user *, upeer_addrlen) SYSCALL_DEFINE3()
1524 SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr, SYSCALL_DEFINE3()
1556 SYSCALL_DEFINE3(getsockname, int, fd, struct sockaddr __user *, usockaddr, SYSCALL_DEFINE3()
1557 int __user *, usockaddr_len) SYSCALL_DEFINE3()
1587 SYSCALL_DEFINE3(getpeername, int, fd, struct sockaddr __user *, usockaddr, SYSCALL_DEFINE3()
1588 int __user *, usockaddr_len) SYSCALL_DEFINE3()
1619 SYSCALL_DEFINE6(sendto, int, fd, void __user *, buff, size_t, len, SYSCALL_DEFINE6()
1620 unsigned int, flags, struct sockaddr __user *, addr, SYSCALL_DEFINE6()
1663 SYSCALL_DEFINE4(send, int, fd, void __user *, buff, size_t, len, SYSCALL_DEFINE4()
1675 SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size, SYSCALL_DEFINE6()
1676 unsigned int, flags, struct sockaddr __user *, addr, SYSCALL_DEFINE6()
1677 int __user *, addr_len) SYSCALL_DEFINE6()
1720 SYSCALL_DEFINE4(recv, int, fd, void __user *, ubuf, size_t, size, SYSCALL_DEFINE4()
1732 char __user *, optval, int, optlen) SYSCALL_DEFINE5()
1766 char __user *, optval, int __user *, optlen) SYSCALL_DEFINE5()
1823 struct user_msghdr __user *umsg, copy_msghdr_from_user()
1824 struct sockaddr __user **save_addr, copy_msghdr_from_user()
1827 struct sockaddr __user *uaddr; copy_msghdr_from_user()
1828 struct iovec __user *uiov; copy_msghdr_from_user()
1875 static int ___sys_sendmsg(struct socket *sock, struct user_msghdr __user *msg, ___sys_sendmsg()
1879 struct compat_msghdr __user *msg_compat = ___sys_sendmsg()
1880 (struct compat_msghdr __user *)msg; ___sys_sendmsg()
1925 (void __user __force *)msg_sys->msg_control, ___sys_sendmsg()
1971 long __sys_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags) __sys_sendmsg()
1988 SYSCALL_DEFINE3(sendmsg, int, fd, struct user_msghdr __user *, msg, unsigned int, flags) SYSCALL_DEFINE3()
1999 int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, __sys_sendmmsg()
2004 struct mmsghdr __user *entry; __sys_sendmmsg()
2005 struct compat_mmsghdr __user *compat_entry; __sys_sendmmsg()
2020 compat_entry = (struct compat_mmsghdr __user *)mmsg; __sys_sendmmsg()
2025 err = ___sys_sendmsg(sock, (struct user_msghdr __user *)compat_entry, __sys_sendmmsg()
2033 (struct user_msghdr __user *)entry, __sys_sendmmsg()
2055 SYSCALL_DEFINE4(sendmmsg, int, fd, struct mmsghdr __user *, mmsg, SYSCALL_DEFINE4()
2063 static int ___sys_recvmsg(struct socket *sock, struct user_msghdr __user *msg, ___sys_recvmsg()
2066 struct compat_msghdr __user *msg_compat = ___sys_recvmsg()
2067 (struct compat_msghdr __user *)msg; ___sys_recvmsg()
2078 struct sockaddr __user *uaddr; ___sys_recvmsg()
2079 int __user *uaddr_len = COMPAT_NAMELEN(msg); ___sys_recvmsg()
2135 long __sys_recvmsg(int fd, struct user_msghdr __user *msg, unsigned flags) __sys_recvmsg()
2152 SYSCALL_DEFINE3(recvmsg, int, fd, struct user_msghdr __user *, msg, SYSCALL_DEFINE3()
2164 int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, __sys_recvmmsg()
2169 struct mmsghdr __user *entry; __sys_recvmmsg()
2170 struct compat_mmsghdr __user *compat_entry; __sys_recvmmsg()
2190 compat_entry = (struct compat_mmsghdr __user *)mmsg; __sys_recvmmsg()
2197 err = ___sys_recvmsg(sock, (struct user_msghdr __user *)compat_entry, __sys_recvmmsg()
2206 (struct user_msghdr __user *)entry, __sys_recvmmsg()
2268 SYSCALL_DEFINE5(recvmmsg, int, fd, struct mmsghdr __user *, mmsg, SYSCALL_DEFINE5()
2270 struct timespec __user *, timeout) SYSCALL_DEFINE5()
2313 SYSCALL_DEFINE2(socketcall, int, call, unsigned long __user *, args) SYSCALL_DEFINE2()
2343 err = sys_bind(a0, (struct sockaddr __user *)a1, a[2]); SYSCALL_DEFINE2()
2346 err = sys_connect(a0, (struct sockaddr __user *)a1, a[2]); SYSCALL_DEFINE2()
2352 err = sys_accept4(a0, (struct sockaddr __user *)a1, SYSCALL_DEFINE2()
2353 (int __user *)a[2], 0); SYSCALL_DEFINE2()
2357 sys_getsockname(a0, (struct sockaddr __user *)a1, SYSCALL_DEFINE2()
2358 (int __user *)a[2]); SYSCALL_DEFINE2()
2362 sys_getpeername(a0, (struct sockaddr __user *)a1, SYSCALL_DEFINE2()
2363 (int __user *)a[2]); SYSCALL_DEFINE2()
2366 err = sys_socketpair(a0, a1, a[2], (int __user *)a[3]); SYSCALL_DEFINE2()
2369 err = sys_send(a0, (void __user *)a1, a[2], a[3]); SYSCALL_DEFINE2()
2372 err = sys_sendto(a0, (void __user *)a1, a[2], a[3], SYSCALL_DEFINE2()
2373 (struct sockaddr __user *)a[4], a[5]); SYSCALL_DEFINE2()
2376 err = sys_recv(a0, (void __user *)a1, a[2], a[3]); SYSCALL_DEFINE2()
2379 err = sys_recvfrom(a0, (void __user *)a1, a[2], a[3], SYSCALL_DEFINE2()
2380 (struct sockaddr __user *)a[4], SYSCALL_DEFINE2()
2381 (int __user *)a[5]); SYSCALL_DEFINE2()
2387 err = sys_setsockopt(a0, a1, a[2], (char __user *)a[3], a[4]); SYSCALL_DEFINE2()
2391 sys_getsockopt(a0, a1, a[2], (char __user *)a[3], SYSCALL_DEFINE2()
2392 (int __user *)a[4]); SYSCALL_DEFINE2()
2395 err = sys_sendmsg(a0, (struct user_msghdr __user *)a1, a[2]); SYSCALL_DEFINE2()
2398 err = sys_sendmmsg(a0, (struct mmsghdr __user *)a1, a[2], a[3]); SYSCALL_DEFINE2()
2401 err = sys_recvmsg(a0, (struct user_msghdr __user *)a1, a[2]); SYSCALL_DEFINE2()
2404 err = sys_recvmmsg(a0, (struct mmsghdr __user *)a1, a[2], a[3], SYSCALL_DEFINE2()
2405 (struct timespec __user *)a[4]); SYSCALL_DEFINE2()
2408 err = sys_accept4(a0, (struct sockaddr __user *)a1, SYSCALL_DEFINE2()
2409 (int __user *)a[2], a[3]); SYSCALL_DEFINE2()
2551 unsigned int cmd, void __user *up) do_siocgstamp()
2567 unsigned int cmd, void __user *up) do_siocgstampns()
2582 static int dev_ifname32(struct net *net, struct compat_ifreq __user *uifr32) dev_ifname32()
2584 struct ifreq __user *uifr; dev_ifname32()
2601 static int dev_ifconf(struct net *net, struct compat_ifconf __user *uifc32) dev_ifconf()
2605 struct ifconf __user *uifc; dev_ifconf()
2606 struct compat_ifreq __user *ifr32; dev_ifconf()
2607 struct ifreq __user *ifr; dev_ifconf()
2625 ifr = ifc.ifc_req = (void __user *)(uifc + 1); dev_ifconf()
2671 static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32) ethtool_ioctl()
2673 struct compat_ethtool_rxnfc __user *compat_rxnfc; ethtool_ioctl()
2676 struct ethtool_rxnfc __user *rxnfc; ethtool_ioctl()
2677 struct ifreq __user *ifr; ethtool_ioctl()
2718 rxnfc = (void __user *)ifr + ALIGN(sizeof(struct ifreq), 8); ethtool_ioctl()
2742 (void __user *)(&rxnfc->fs.m_ext + 1) - ethtool_ioctl()
2743 (void __user *)rxnfc) || ethtool_ioctl()
2746 (void __user *)(&rxnfc->fs.location + 1) - ethtool_ioctl()
2747 (void __user *)&rxnfc->fs.ring_cookie) || ethtool_ioctl()
2759 (const void __user *)(&rxnfc->fs.m_ext + 1) - ethtool_ioctl()
2760 (const void __user *)rxnfc) || ethtool_ioctl()
2763 (const void __user *)(&rxnfc->fs.location + 1) - ethtool_ioctl()
2764 (const void __user *)&rxnfc->fs.ring_cookie) || ethtool_ioctl()
2792 static int compat_siocwandev(struct net *net, struct compat_ifreq __user *uifr32) compat_siocwandev()
2794 void __user *uptr; compat_siocwandev()
2796 struct ifreq __user *uifr; compat_siocwandev()
2814 struct compat_ifreq __user *ifr32) bond_ioctl()
2831 (struct ifreq __user __force *) &kifr); bond_ioctl()
2842 struct compat_ifreq __user *u_ifreq32) compat_ifr_data_ioctl()
2844 struct ifreq __user *u_ifreq64; compat_ifr_data_ioctl()
2846 void __user *data64; compat_ifr_data_ioctl()
2868 unsigned int cmd, struct compat_ifreq __user *uifr32) dev_ifsioc()
2870 struct ifreq __user *uifr; dev_ifsioc()
2904 struct compat_ifreq __user *uifr32) compat_sioc_ifmap()
2907 struct compat_ifmap __user *uifmap32; compat_sioc_ifmap()
2924 err = dev_ioctl(net, cmd, (void __user __force *)&ifr); compat_sioc_ifmap()
2973 unsigned int cmd, void __user *argp) routing_ioctl()
2984 struct in6_rtmsg32 __user *ur6 = argp; routing_ioctl()
2997 struct rtentry32 __user *ur4 = argp; routing_ioctl()
3008 r4.rt_dev = (char __user __force *)devname; routing_ioctl()
3033 static int old_bridge_ioctl(compat_ulong_t __user *argp) old_bridge_ioctl()
3047 void __user *argp = compat_ptr(arg); compat_sock_ioctl_trans()
3231 char __user *uoptval; kernel_getsockopt()
3232 int __user *uoptlen; kernel_getsockopt()
3235 uoptval = (char __user __force *) optval; kernel_getsockopt()
3236 uoptlen = (int __user __force *) optlen; kernel_getsockopt()
3253 char __user *uoptval; kernel_setsockopt()
3256 uoptval = (char __user __force *) optval; kernel_setsockopt()
/linux-4.4.14/arch/x86/math-emu/
H A Dload_store.c67 void __user * data_address) FPU_load_store()
124 FPU_load_single((float __user *)data_address, &loaded_data); FPU_load_store()
136 FPU_load_int32((long __user *)data_address, &loaded_data); FPU_load_store()
142 FPU_load_double((double __user *)data_address, FPU_load_store()
155 FPU_load_int16((short __user *)data_address, &loaded_data); FPU_load_store()
165 (st0_ptr, st0_tag, (long __user *)data_address)) FPU_load_store()
175 (st0_ptr, st0_tag, (long long __user *)data_address)) FPU_load_store()
185 (st0_ptr, st0_tag, (short __user *)data_address)) FPU_load_store()
193 (float __user *)data_address); FPU_load_store()
197 FPU_store_int32(st0_ptr, st0_tag, (long __user *)data_address); FPU_load_store()
202 (double __user *)data_address); FPU_load_store()
206 FPU_store_int16(st0_ptr, st0_tag, (short __user *)data_address); FPU_load_store()
211 (st0_ptr, st0_tag, (float __user *)data_address)) FPU_load_store()
218 (st0_ptr, st0_tag, (long __user *)data_address)) FPU_load_store()
225 (st0_ptr, st0_tag, (double __user *)data_address)) FPU_load_store()
232 (st0_ptr, st0_tag, (short __user *)data_address)) FPU_load_store()
237 fldenv(addr_modes, (u_char __user *) data_address); FPU_load_store()
242 frstor(addr_modes, (u_char __user *) data_address); FPU_load_store()
248 loaded_tag = FPU_load_bcd((u_char __user *) data_address); FPU_load_store()
255 (unsigned short __user *)data_address); FPU_load_store()
268 FPU_load_extended((long double __user *)data_address, 0); FPU_load_store()
273 loaded_tag = FPU_load_int64((long long __user *)data_address); FPU_load_store()
279 fstenv(addr_modes, (u_char __user *) data_address); FPU_load_store()
282 fsave(addr_modes, (u_char __user *) data_address); FPU_load_store()
287 (st0_ptr, st0_tag, (u_char __user *) data_address)) FPU_load_store()
295 (unsigned short __user *)data_address); FPU_load_store()
301 (st0_ptr, st0_tag, (long double __user *)data_address)) FPU_load_store()
309 (unsigned short __user *)data_address); FPU_load_store()
315 (st0_ptr, st0_tag, (long long __user *)data_address)) FPU_load_store()
H A Dfpu_proto.h85 extern void __user *FPU_get_address(u_char FPU_modrm, unsigned long *fpu_eip,
88 extern void __user *FPU_get_address_16(u_char FPU_modrm, unsigned long *fpu_eip,
93 void __user * data_address);
126 extern int FPU_load_extended(long double __user *s, int stnr);
127 extern int FPU_load_double(double __user *dfloat, FPU_REG *loaded_data);
128 extern int FPU_load_single(float __user *single, FPU_REG *loaded_data);
129 extern int FPU_load_int64(long long __user *_s);
130 extern int FPU_load_int32(long __user *_s, FPU_REG *loaded_data);
131 extern int FPU_load_int16(short __user *_s, FPU_REG *loaded_data);
132 extern int FPU_load_bcd(u_char __user *s);
134 long double __user * d);
136 double __user * dfloat);
138 float __user * single);
140 long long __user * d);
141 extern int FPU_store_int32(FPU_REG *st0_ptr, u_char st0_tag, long __user *d);
142 extern int FPU_store_int16(FPU_REG *st0_ptr, u_char st0_tag, short __user *d);
143 extern int FPU_store_bcd(FPU_REG *st0_ptr, u_char st0_tag, u_char __user *d);
145 extern u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user *s);
146 extern void frstor(fpu_addr_modes addr_modes, u_char __user *data_address);
147 extern u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user *d);
148 extern void fsave(fpu_addr_modes addr_modes, u_char __user *data_address);
H A Dreg_ld_str.c81 int FPU_load_extended(long double __user *s, int stnr) FPU_load_extended()
94 int FPU_load_double(double __user *dfloat, FPU_REG *loaded_data) FPU_load_double()
101 FPU_get_user(m64, 1 + (unsigned long __user *)dfloat); FPU_load_double()
102 FPU_get_user(l64, (unsigned long __user *)dfloat); FPU_load_double()
155 int FPU_load_single(float __user *single, FPU_REG *loaded_data) FPU_load_single()
162 FPU_get_user(m32, (unsigned long __user *)single); FPU_load_single()
209 int FPU_load_int64(long long __user *_s) FPU_load_int64()
239 int FPU_load_int32(long __user *_s, FPU_REG *loaded_data) FPU_load_int32()
268 int FPU_load_int16(short __user *_s, FPU_REG *loaded_data) FPU_load_int16()
297 int FPU_load_bcd(u_char __user *s) FPU_load_bcd()
337 long double __user * d) FPU_store_extended()
349 FPU_put_user(st0_ptr->sigl, (unsigned long __user *)d); FPU_store_extended()
351 (unsigned long __user *)((u_char __user *) d + 4)); FPU_store_extended()
353 (unsigned short __user *)((u_char __user *) d + FPU_store_extended()
367 FPU_put_user(0, (unsigned long __user *)d); FPU_store_extended()
368 FPU_put_user(0xc0000000, 1 + (unsigned long __user *)d); FPU_store_extended()
369 FPU_put_user(0xffff, 4 + (short __user *)d); FPU_store_extended()
378 int FPU_store_double(FPU_REG *st0_ptr, u_char st0_tag, double __user *dfloat) FPU_store_double()
542 FPU_put_user(0, (unsigned long __user *)dfloat); FPU_store_double()
544 1 + (unsigned long __user *)dfloat); FPU_store_double()
555 FPU_put_user(l[0], (unsigned long __user *)dfloat); FPU_store_double()
556 FPU_put_user(l[1], 1 + (unsigned long __user *)dfloat); FPU_store_double()
563 int FPU_store_single(FPU_REG *st0_ptr, u_char st0_tag, float __user *single) FPU_store_single()
728 (unsigned long __user *)single); FPU_store_single()
745 FPU_put_user(templ, (unsigned long __user *)single); FPU_store_single()
752 int FPU_store_int64(FPU_REG *st0_ptr, u_char st0_tag, long long __user *d) FPU_store_int64()
802 int FPU_store_int32(FPU_REG *st0_ptr, u_char st0_tag, long __user *d) FPU_store_int32()
841 FPU_put_user(t.sigl, (unsigned long __user *)d); FPU_store_int32()
848 int FPU_store_int16(FPU_REG *st0_ptr, u_char st0_tag, short __user *d) FPU_store_int16()
894 int FPU_store_bcd(FPU_REG *st0_ptr, u_char st0_tag, u_char __user *d) FPU_store_bcd()
1026 u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user *s) fldenv()
1037 FPU_get_user(control_word, (unsigned short __user *)s); fldenv()
1038 FPU_get_user(partial_status, (unsigned short __user *)(s + 2)); fldenv()
1039 FPU_get_user(tag_word, (unsigned short __user *)(s + 4)); fldenv()
1041 (unsigned short __user *)(s + 6)); fldenv()
1043 (unsigned short __user *)(s + 8)); fldenv()
1045 (unsigned short __user *)(s + 0x0a)); fldenv()
1047 (unsigned short __user *)(s + 0x0c)); fldenv()
1059 FPU_get_user(control_word, (unsigned short __user *)s); fldenv()
1060 FPU_get_user(partial_status, (unsigned short __user *)(s + 4)); fldenv()
1061 FPU_get_user(tag_word, (unsigned short __user *)(s + 8)); fldenv()
1063 (unsigned long __user *)(s + 0x0c)); fldenv()
1065 (unsigned short __user *)(s + 0x10)); fldenv()
1067 (unsigned short __user *)(s + 0x12)); fldenv()
1069 (unsigned long __user *)(s + 0x14)); fldenv()
1071 (unsigned long __user *)(s + 0x18)); fldenv()
1119 void frstor(fpu_addr_modes addr_modes, u_char __user *data_address) frstor()
1122 u_char __user *s = fldenv(addr_modes, data_address); frstor()
1142 u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user *d) fstenv()
1150 FPU_put_user(control_word & ~0xe080, (unsigned long __user *)d); fstenv()
1152 FPU_put_user(control_word, (unsigned short __user *)d); fstenv()
1154 FPU_put_user(status_word(), (unsigned short __user *)(d + 2)); fstenv()
1155 FPU_put_user(fpu_tag_word, (unsigned short __user *)(d + 4)); fstenv()
1157 (unsigned short __user *)(d + 6)); fstenv()
1159 (unsigned short __user *)(d + 0x0a)); fstenv()
1163 (unsigned short __user *)(d + 8)); fstenv()
1165 (unsigned short __user *)(d + 0x0c)); fstenv()
1168 (unsigned short __user *)(d + 8)); fstenv()
1170 (unsigned short __user *)(d + 0x0c)); fstenv()
1198 void fsave(fpu_addr_modes addr_modes, u_char __user *data_address) fsave()
1200 u_char __user *d; fsave()
H A Dget_address.c78 FPU_get_user(base, (u_char __user *) (*fpu_eip)); /* The SIB byte */ sib()
104 FPU_get_user(displacement, (signed char __user *)(*fpu_eip)); sib()
113 FPU_get_user(displacement, (long __user *)(*fpu_eip)); sib()
208 void __user *FPU_get_address(u_char FPU_modrm, unsigned long *fpu_eip, FPU_get_address()
238 (unsigned long __user FPU_get_address()
243 return (void __user *)address; FPU_get_address()
248 return (void __user *)address; FPU_get_address()
254 FPU_get_user(address, (signed char __user *)(*fpu_eip)); FPU_get_address()
262 FPU_get_user(address, (long __user *)(*fpu_eip)); FPU_get_address()
290 return (void __user *)address; FPU_get_address()
293 void __user *FPU_get_address_16(u_char FPU_modrm, unsigned long *fpu_eip, FPU_get_address_16()
318 (unsigned short __user *)(*fpu_eip)); FPU_get_address_16()
328 FPU_get_user(address, (signed char __user *)(*fpu_eip)); FPU_get_address_16()
336 FPU_get_user(address, (unsigned short __user *)(*fpu_eip)); FPU_get_address_16()
398 return (void __user *)address; FPU_get_address_16()
/linux-4.4.14/kernel/
H A Dfutex_compat.c23 fetch_robust_entry(compat_uptr_t *uentry, struct robust_list __user **entry, fetch_robust_entry()
24 compat_uptr_t __user *head, unsigned int *pi) fetch_robust_entry()
35 static void __user *futex_uaddr(struct robust_list __user *entry, futex_uaddr()
39 void __user *uaddr = compat_ptr(base + futex_offset); futex_uaddr()
52 struct compat_robust_list_head __user *head = curr->compat_robust_list; compat_exit_robust_list()
53 struct robust_list __user *entry, *next_entry, *pending; compat_exit_robust_list()
83 while (entry != (struct robust_list __user *) &head->list) { compat_exit_robust_list()
89 (compat_uptr_t __user *)&entry->next, &next_pi); compat_exit_robust_list()
95 void __user *uaddr = futex_uaddr(entry, futex_offset); compat_exit_robust_list()
114 void __user *uaddr = futex_uaddr(pending, futex_offset); compat_exit_robust_list()
121 struct compat_robust_list_head __user *, head, COMPAT_SYSCALL_DEFINE2()
136 compat_uptr_t __user *, head_ptr, COMPAT_SYSCALL_DEFINE3()
137 compat_size_t __user *, len_ptr) COMPAT_SYSCALL_DEFINE3()
139 struct compat_robust_list_head __user *head; COMPAT_SYSCALL_DEFINE3()
174 COMPAT_SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val, COMPAT_SYSCALL_DEFINE6()
175 struct compat_timespec __user *, utime, u32 __user *, uaddr2, COMPAT_SYSCALL_DEFINE6()
H A Dcompat.c33 static int compat_get_timex(struct timex *txc, struct compat_timex __user *utp) compat_get_timex()
63 static int compat_put_timex(struct compat_timex __user *utp, struct timex *txc) compat_put_timex()
91 COMPAT_SYSCALL_DEFINE2(gettimeofday, struct compat_timeval __user *, tv, COMPAT_SYSCALL_DEFINE2()
92 struct timezone __user *, tz) COMPAT_SYSCALL_DEFINE2()
108 COMPAT_SYSCALL_DEFINE2(settimeofday, struct compat_timeval __user *, tv, COMPAT_SYSCALL_DEFINE2()
109 struct timezone __user *, tz) COMPAT_SYSCALL_DEFINE2()
129 static int __compat_get_timeval(struct timeval *tv, const struct compat_timeval __user *ctv) __compat_get_timeval()
136 static int __compat_put_timeval(const struct timeval *tv, struct compat_timeval __user *ctv) __compat_put_timeval()
143 static int __compat_get_timespec(struct timespec *ts, const struct compat_timespec __user *cts) __compat_get_timespec()
150 static int __compat_put_timespec(const struct timespec *ts, struct compat_timespec __user *cts) __compat_put_timespec()
157 int compat_get_timeval(struct timeval *tv, const void __user *utv) compat_get_timeval()
166 int compat_put_timeval(const struct timeval *tv, void __user *utv) compat_put_timeval()
175 int compat_get_timespec(struct timespec *ts, const void __user *uts) compat_get_timespec()
184 int compat_put_timespec(const struct timespec *ts, void __user *uts) compat_put_timespec()
193 int compat_convert_timespec(struct timespec __user **kts, compat_convert_timespec()
194 const void __user *cts) compat_convert_timespec()
197 struct timespec __user *uts; compat_convert_timespec()
200 *kts = (struct timespec __user *)cts; compat_convert_timespec()
218 struct compat_timespec __user *rmtp; compat_nanosleep_restart()
223 restart->nanosleep.rmtp = (struct timespec __user *) &rmt; compat_nanosleep_restart()
239 COMPAT_SYSCALL_DEFINE2(nanosleep, struct compat_timespec __user *, rqtp, COMPAT_SYSCALL_DEFINE2()
240 struct compat_timespec __user *, rmtp) COMPAT_SYSCALL_DEFINE2()
255 rmtp ? (struct timespec __user *)&rmt : NULL, COMPAT_SYSCALL_DEFINE2()
291 struct compat_itimerval __user *i) get_compat_itimerval()
300 static inline long put_compat_itimerval(struct compat_itimerval __user *o, put_compat_itimerval()
311 struct compat_itimerval __user *, it) COMPAT_SYSCALL_DEFINE2()
323 struct compat_itimerval __user *, in, COMPAT_SYSCALL_DEFINE3()
324 struct compat_itimerval __user *, out) COMPAT_SYSCALL_DEFINE3()
348 COMPAT_SYSCALL_DEFINE1(times, struct compat_tms __user *, tbuf) COMPAT_SYSCALL_DEFINE1()
374 COMPAT_SYSCALL_DEFINE1(sigpending, compat_old_sigset_t __user *, set) COMPAT_SYSCALL_DEFINE1()
381 ret = sys_sigpending((old_sigset_t __user *) &s); COMPAT_SYSCALL_DEFINE1()
402 compat_old_sigset_t __user *, nset, COMPAT_SYSCALL_DEFINE3()
403 compat_old_sigset_t __user *, oset) COMPAT_SYSCALL_DEFINE3()
445 struct compat_rlimit __user *, rlim) COMPAT_SYSCALL_DEFINE2()
464 struct compat_rlimit __user *, rlim) COMPAT_SYSCALL_DEFINE2()
471 ret = sys_old_getrlimit(resource, (struct rlimit __user *)&r); COMPAT_SYSCALL_DEFINE2()
491 struct compat_rlimit __user *, rlim) COMPAT_SYSCALL_DEFINE2()
511 int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru) put_compat_rusage()
538 compat_uint_t __user *, stat_addr, COMPAT_SYSCALL_DEFINE4()
540 struct compat_rusage __user *, ru) COMPAT_SYSCALL_DEFINE4()
553 (unsigned int __user *) &status : NULL), COMPAT_SYSCALL_DEFINE4()
554 options, (struct rusage __user *) &r); COMPAT_SYSCALL_DEFINE4()
569 struct compat_siginfo __user *, uinfo, int, options, COMPAT_SYSCALL_DEFINE5()
570 struct compat_rusage __user *, uru) COMPAT_SYSCALL_DEFINE5()
580 ret = sys_waitid(which, pid, (siginfo_t __user *)&info, options, COMPAT_SYSCALL_DEFINE5()
581 uru ? (struct rusage __user *)&ru : NULL); COMPAT_SYSCALL_DEFINE5()
602 static int compat_get_user_cpu_mask(compat_ulong_t __user *user_mask_ptr, compat_get_user_cpu_mask()
618 compat_ulong_t __user *, user_mask_ptr) COMPAT_SYSCALL_DEFINE3()
637 compat_ulong_t __user *, user_mask_ptr) COMPAT_SYSCALL_DEFINE3()
665 const struct compat_itimerspec __user *src) get_compat_itimerspec()
673 int put_compat_itimerspec(struct compat_itimerspec __user *dst, put_compat_itimerspec()
683 struct compat_sigevent __user *, timer_event_spec, COMPAT_SYSCALL_DEFINE3()
684 timer_t __user *, created_timer_id) COMPAT_SYSCALL_DEFINE3()
686 struct sigevent __user *event = NULL; COMPAT_SYSCALL_DEFINE3()
701 struct compat_itimerspec __user *, new, COMPAT_SYSCALL_DEFINE4()
702 struct compat_itimerspec __user *, old) COMPAT_SYSCALL_DEFINE4()
715 (struct itimerspec __user *) &newts, COMPAT_SYSCALL_DEFINE4()
716 (struct itimerspec __user *) &oldts); COMPAT_SYSCALL_DEFINE4()
724 struct compat_itimerspec __user *, setting) COMPAT_SYSCALL_DEFINE2()
733 (struct itimerspec __user *) &ts); COMPAT_SYSCALL_DEFINE2()
741 struct compat_timespec __user *, tp) COMPAT_SYSCALL_DEFINE2()
752 (struct timespec __user *) &ts); COMPAT_SYSCALL_DEFINE2()
758 struct compat_timespec __user *, tp) COMPAT_SYSCALL_DEFINE2()
767 (struct timespec __user *) &ts); COMPAT_SYSCALL_DEFINE2()
775 struct compat_timex __user *, utp) COMPAT_SYSCALL_DEFINE2()
787 ret = sys_clock_adjtime(which_clock, (struct timex __user *) &txc); COMPAT_SYSCALL_DEFINE2()
798 struct compat_timespec __user *, tp) COMPAT_SYSCALL_DEFINE2()
807 (struct timespec __user *) &ts); COMPAT_SYSCALL_DEFINE2()
819 struct compat_timespec __user *rmtp = restart->nanosleep.compat_rmtp; compat_clock_nanosleep_restart()
821 restart->nanosleep.rmtp = (struct timespec __user *) &tu; compat_clock_nanosleep_restart()
839 struct compat_timespec __user *, rqtp, COMPAT_SYSCALL_DEFINE4()
840 struct compat_timespec __user *, rmtp) COMPAT_SYSCALL_DEFINE4()
853 (struct timespec __user *) &in, COMPAT_SYSCALL_DEFINE4()
854 (struct timespec __user *) &out); COMPAT_SYSCALL_DEFINE4()
877 const struct compat_sigevent __user *u_event) get_compat_sigevent()
890 long compat_get_bitmap(unsigned long *mask, const compat_ulong_t __user *umask, compat_get_bitmap()
932 long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask, compat_put_bitmap()
996 COMPAT_SYSCALL_DEFINE4(rt_sigtimedwait, compat_sigset_t __user *, uthese, COMPAT_SYSCALL_DEFINE4()
997 struct compat_siginfo __user *, uinfo, COMPAT_SYSCALL_DEFINE4()
998 struct compat_timespec __user *, uts, compat_size_t, sigsetsize) COMPAT_SYSCALL_DEFINE4()
1032 COMPAT_SYSCALL_DEFINE1(time, compat_time_t __user *, tloc) COMPAT_SYSCALL_DEFINE1()
1048 COMPAT_SYSCALL_DEFINE1(stime, compat_time_t __user *, tptr) COMPAT_SYSCALL_DEFINE1()
1068 COMPAT_SYSCALL_DEFINE1(adjtimex, struct compat_timex __user *, utp) COMPAT_SYSCALL_DEFINE1()
1088 compat_uptr_t __user *, pages32, COMPAT_SYSCALL_DEFINE6()
1089 const int __user *, nodes, COMPAT_SYSCALL_DEFINE6()
1090 int __user *, status, COMPAT_SYSCALL_DEFINE6()
1093 const void __user * __user *pages; COMPAT_SYSCALL_DEFINE6()
1109 const compat_ulong_t __user *, old_nodes, COMPAT_SYSCALL_DEFINE4()
1110 const compat_ulong_t __user *, new_nodes) COMPAT_SYSCALL_DEFINE4()
1112 unsigned long __user *old = NULL; COMPAT_SYSCALL_DEFINE4()
1113 unsigned long __user *new = NULL; COMPAT_SYSCALL_DEFINE4()
1143 struct compat_timespec __user *, interval) COMPAT_SYSCALL_DEFINE2()
1150 ret = sys_sched_rr_get_interval(pid, (struct timespec __user *)&t); COMPAT_SYSCALL_DEFINE2()
1161 void __user *compat_alloc_user_space(unsigned long len) compat_alloc_user_space()
1163 void __user *ptr; compat_alloc_user_space()
H A Duid16.c19 SYSCALL_DEFINE3(chown16, const char __user *, filename, old_uid_t, user, old_gid_t, group) SYSCALL_DEFINE3()
24 SYSCALL_DEFINE3(lchown16, const char __user *, filename, old_uid_t, user, old_gid_t, group) SYSCALL_DEFINE3()
60 SYSCALL_DEFINE3(getresuid16, old_uid_t __user *, ruidp, old_uid_t __user *, euidp, old_uid_t __user *, suidp) SYSCALL_DEFINE3()
84 SYSCALL_DEFINE3(getresgid16, old_gid_t __user *, rgidp, old_gid_t __user *, egidp, old_gid_t __user *, sgidp) SYSCALL_DEFINE3()
111 static int groups16_to_user(old_gid_t __user *grouplist, groups16_to_user()
130 old_gid_t __user *grouplist) groups16_from_user()
151 SYSCALL_DEFINE2(getgroups16, int, gidsetsize, old_gid_t __user *, grouplist) SYSCALL_DEFINE2()
174 SYSCALL_DEFINE2(setgroups16, int, gidsetsize, old_gid_t __user *, grouplist) SYSCALL_DEFINE2()
/linux-4.4.14/arch/powerpc/include/asm/
H A Duaccess.h179 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
190 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
200 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
268 __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
282 __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
296 __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
308 __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
318 extern unsigned long __copy_tofrom_user(void __user *to,
319 const void __user *from, unsigned long size);
324 const void __user *from, unsigned long n) copy_from_user()
329 return __copy_tofrom_user((__force void __user *)to, from, n); copy_from_user()
332 return __copy_tofrom_user((__force void __user *)to, from, copy_from_user()
338 static inline unsigned long copy_to_user(void __user *to, copy_to_user()
344 return __copy_tofrom_user(to, (__force void __user *)from, n); copy_to_user()
347 return __copy_tofrom_user(to, (__force void __user *)from, copy_to_user()
358 extern unsigned long copy_from_user(void *to, const void __user *from,
360 extern unsigned long copy_to_user(void __user *to, const void *from,
362 extern unsigned long copy_in_user(void __user *to, const void __user *from,
368 const void __user *from, unsigned long n) __copy_from_user_inatomic()
390 return __copy_tofrom_user((__force void __user *)to, from, n); __copy_from_user_inatomic()
393 static inline unsigned long __copy_to_user_inatomic(void __user *to, __copy_to_user_inatomic()
401 __put_user_size(*(u8 *)from, (u8 __user *)to, 1, ret); __copy_to_user_inatomic()
404 __put_user_size(*(u16 *)from, (u16 __user *)to, 2, ret); __copy_to_user_inatomic()
407 __put_user_size(*(u32 *)from, (u32 __user *)to, 4, ret); __copy_to_user_inatomic()
410 __put_user_size(*(u64 *)from, (u64 __user *)to, 8, ret); __copy_to_user_inatomic()
416 return __copy_tofrom_user(to, (__force const void __user *)from, n); __copy_to_user_inatomic()
420 const void __user *from, unsigned long size) __copy_from_user()
426 static inline unsigned long __copy_to_user(void __user *to, __copy_to_user()
433 extern unsigned long __clear_user(void __user *addr, unsigned long size);
435 static inline unsigned long clear_user(void __user *addr, unsigned long size) clear_user()
447 extern long strncpy_from_user(char *dst, const char __user *src, long count);
448 extern __must_check long strlen_user(const char __user *str);
449 extern __must_check long strnlen_user(const char __user *str, long n);
H A Dsyscalls.h18 asmlinkage int ppc_rtas(struct rtas_args __user *uargs);
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_ioc32.c91 struct drm_version __user *version; compat_drm_version()
94 if (copy_from_user(&v32, (void __user *)arg, sizeof(v32))) compat_drm_version()
101 || __put_user((void __user *)(unsigned long)v32.name, compat_drm_version()
104 || __put_user((void __user *)(unsigned long)v32.date, compat_drm_version()
107 || __put_user((void __user *)(unsigned long)v32.desc, compat_drm_version()
124 if (copy_to_user((void __user *)arg, &v32, sizeof(v32))) compat_drm_version()
138 struct drm_unique __user *u; compat_drm_getunique()
141 if (copy_from_user(&uq32, (void __user *)arg, sizeof(uq32))) compat_drm_getunique()
148 || __put_user((void __user *)(unsigned long)uq32.unique, compat_drm_getunique()
158 if (copy_to_user((void __user *)arg, &uq32, sizeof(uq32))) compat_drm_getunique()
167 struct drm_unique __user *u; compat_drm_setunique()
169 if (copy_from_user(&uq32, (void __user *)arg, sizeof(uq32))) compat_drm_setunique()
176 || __put_user((void __user *)(unsigned long)uq32.unique, compat_drm_setunique()
195 drm_map32_t __user *argp = (void __user *)arg; compat_drm_getmap()
197 struct drm_map __user *map; compat_drm_getmap()
232 drm_map32_t __user *argp = (void __user *)arg; compat_drm_addmap()
234 struct drm_map __user *map; compat_drm_addmap()
274 drm_map32_t __user *argp = (void __user *)arg; compat_drm_rmmap()
275 struct drm_map __user *map; compat_drm_rmmap()
303 drm_client32_t __user *argp = (void __user *)arg; compat_drm_getclient()
304 struct drm_client __user *client; compat_drm_getclient()
345 drm_stats32_t __user *argp = (void __user *)arg; compat_drm_getstats()
346 struct drm_stats __user *stats; compat_drm_getstats()
381 drm_buf_desc32_t __user *argp = (void __user *)arg; compat_drm_addbufs()
382 struct drm_buf_desc __user *buf; compat_drm_addbufs()
411 drm_buf_desc32_t __user *argp = (void __user *)arg; compat_drm_markbufs()
412 struct drm_buf_desc __user *buf; compat_drm_markbufs()
438 drm_buf_info32_t __user *argp = (void __user *)arg; compat_drm_infobufs()
439 drm_buf_desc32_t __user *to; compat_drm_infobufs()
440 struct drm_buf_info __user *request; compat_drm_infobufs()
441 struct drm_buf_desc __user *list; compat_drm_infobufs()
450 to = (drm_buf_desc32_t __user *) (unsigned long)req32.list; compat_drm_infobufs()
501 drm_buf_map32_t __user *argp = (void __user *)arg; compat_drm_mapbufs()
503 drm_buf_pub32_t __user *list32; compat_drm_mapbufs()
504 struct drm_buf_map __user *request; compat_drm_mapbufs()
505 struct drm_buf_pub __user *list; compat_drm_mapbufs()
509 void __user *addr; compat_drm_mapbufs()
514 list32 = (void __user *)(unsigned long)req32.list; compat_drm_mapbufs()
560 struct drm_buf_free __user *request; compat_drm_freebufs()
561 drm_buf_free32_t __user *argp = (void __user *)arg; compat_drm_freebufs()
570 || __put_user((int __user *)(unsigned long)req32.list, compat_drm_freebufs()
586 struct drm_ctx_priv_map __user *request; compat_drm_setsareactx()
587 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; compat_drm_setsareactx()
606 struct drm_ctx_priv_map __user *request; compat_drm_getsareactx()
607 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; compat_drm_getsareactx()
641 drm_ctx_res32_t __user *argp = (void __user *)arg; compat_drm_resctx()
643 struct drm_ctx_res __user *res; compat_drm_resctx()
653 || __put_user((struct drm_ctx __user *) (unsigned long)res32.contexts, compat_drm_resctx()
685 drm_dma32_t __user *argp = (void __user *)arg; compat_drm_dma()
686 struct drm_dma __user *d; compat_drm_dma()
698 || __put_user((int __user *)(unsigned long)d32.send_indices, compat_drm_dma()
700 || __put_user((int __user *)(unsigned long)d32.send_sizes, compat_drm_dma()
704 || __put_user((int __user *)(unsigned long)d32.request_indices, compat_drm_dma()
706 || __put_user((int __user *)(unsigned long)d32.request_sizes, compat_drm_dma()
731 drm_agp_mode32_t __user *argp = (void __user *)arg; compat_drm_agp_enable()
733 struct drm_agp_mode __user *mode; compat_drm_agp_enable()
762 drm_agp_info32_t __user *argp = (void __user *)arg; compat_drm_agp_info()
764 struct drm_agp_info __user *info; compat_drm_agp_info()
802 drm_agp_buffer32_t __user *argp = (void __user *)arg; compat_drm_agp_alloc()
804 struct drm_agp_buffer __user *request; compat_drm_agp_alloc()
833 drm_agp_buffer32_t __user *argp = (void __user *)arg; compat_drm_agp_free()
834 struct drm_agp_buffer __user *request; compat_drm_agp_free()
854 drm_agp_binding32_t __user *argp = (void __user *)arg; compat_drm_agp_bind()
856 struct drm_agp_binding __user *request; compat_drm_agp_bind()
873 drm_agp_binding32_t __user *argp = (void __user *)arg; compat_drm_agp_unbind()
874 struct drm_agp_binding __user *request; compat_drm_agp_unbind()
895 drm_scatter_gather32_t __user *argp = (void __user *)arg; compat_drm_sg_alloc()
896 struct drm_scatter_gather __user *request; compat_drm_sg_alloc()
921 drm_scatter_gather32_t __user *argp = (void __user *)arg; compat_drm_sg_free()
922 struct drm_scatter_gather __user *request; compat_drm_sg_free()
947 struct drm_update_draw __user *request; compat_drm_update_draw()
950 if (copy_from_user(&update32, (void __user *)arg, sizeof(update32))) compat_drm_update_draw()
987 drm_wait_vblank32_t __user *argp = (void __user *)arg; compat_drm_wait_vblank()
989 union drm_wait_vblank __user *request; compat_drm_wait_vblank()
1033 struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg; compat_drm_mode_addfb2()
1035 struct drm_mode_fb_cmd2 __user *req64; compat_drm_mode_addfb2()
/linux-4.4.14/arch/powerpc/lib/
H A Dusercopy_64.c12 unsigned long copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
21 unsigned long copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
28 unsigned long copy_in_user(void __user *to, const void __user *from, copy_in_user()
/linux-4.4.14/arch/sparc/include/asm/
H A Duaccess.h12 long strncpy_from_user(char *dest, const char __user *src, long count);
H A Duaccess_64.h74 static inline int __access_ok(const void __user * addr, unsigned long size) __access_ok()
79 static inline int access_ok(int type, const void __user * addr, unsigned long size) access_ok()
246 const void __user *from,
248 unsigned long copy_from_user_fixup(void *to, const void __user *from,
251 copy_from_user(void *to, const void __user *from, unsigned long size) copy_from_user()
262 unsigned long __must_check ___copy_to_user(void __user *to,
265 unsigned long copy_to_user_fixup(void __user *to, const void *from,
268 copy_to_user(void __user *to, const void *from, unsigned long size) copy_to_user()
278 unsigned long __must_check ___copy_in_user(void __user *to,
279 const void __user *from,
281 unsigned long copy_in_user_fixup(void __user *to, void __user *from,
284 copy_in_user(void __user *to, void __user *from, unsigned long size) copy_in_user()
294 unsigned long __must_check __clear_user(void __user *, unsigned long);
298 __must_check long strlen_user(const char __user *str);
299 __must_check long strnlen_user(const char __user *str, long n);
H A Duaccess_32.h117 #define __m(x) ((struct __large_struct __user *)(x))
312 unsigned long __copy_user(void __user *to, const void __user *from, unsigned long size);
314 static inline unsigned long copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
317 return __copy_user(to, (__force void __user *) from, n); copy_to_user()
322 static inline unsigned long __copy_to_user(void __user *to, const void *from, unsigned long n) __copy_to_user()
324 return __copy_user(to, (__force void __user *) from, n); __copy_to_user()
327 static inline unsigned long copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
330 return __copy_user((__force void __user *) to, from, n); copy_from_user()
335 static inline unsigned long __copy_from_user(void *to, const void __user *from, unsigned long n) __copy_from_user()
337 return __copy_user((__force void __user *) to, from, n); __copy_from_user()
343 static inline unsigned long __clear_user(void __user *addr, unsigned long size) __clear_user()
364 static inline unsigned long clear_user(void __user *addr, unsigned long n) clear_user()
372 __must_check long strlen_user(const char __user *str);
373 __must_check long strnlen_user(const char __user *str, long n);
/linux-4.4.14/net/mac80211/
H A Ddebugfs.h8 int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,
/linux-4.4.14/include/asm-generic/
H A Dtermios.h20 const struct termio __user *termio) user_termio_to_kernel_termios()
55 static inline int kernel_termios_to_user_termio(struct termio __user *termio, kernel_termios_to_user_termio()
71 struct termios2 __user *u) user_termios_to_kernel_termios()
76 static inline int kernel_termios_to_user_termios(struct termios2 __user *u, kernel_termios_to_user_termios()
83 struct termios __user *u) user_termios_to_kernel_termios_1()
88 static inline int kernel_termios_to_user_termios_1(struct termios __user *u, kernel_termios_to_user_termios_1()
95 struct termios __user *u) user_termios_to_kernel_termios()
100 static inline int kernel_termios_to_user_termios(struct termios __user *u, kernel_termios_to_user_termios()
H A Dsiginfo.h20 extern int copy_siginfo_to_user(struct siginfo __user *to, const struct siginfo *from);
H A Duaccess.h80 const void __user * from, unsigned long n) __copy_from_user()
109 static inline __must_check long __copy_to_user(void __user *to, __copy_to_user()
175 static inline int __put_user_fn(size_t size, void __user *ptr, void *x) __put_user_fn()
237 static inline int __get_user_fn(size_t size, const void __user *ptr, void *x) __get_user_fn()
258 const void __user * from, unsigned long n) copy_from_user()
267 static inline long copy_to_user(void __user *to, copy_to_user()
282 __strncpy_from_user(char *dst, const char __user *src, long count) __strncpy_from_user()
293 strncpy_from_user(char *dst, const char __user *src, long count) strncpy_from_user()
314 static inline long strnlen_user(const char __user *src, long n) strnlen_user()
321 static inline long strlen_user(const char __user *src) strlen_user()
331 __clear_user(void __user *to, unsigned long n) __clear_user()
339 clear_user(void __user *to, unsigned long n) clear_user()
/linux-4.4.14/include/uapi/asm-generic/
H A Dsignal-defs.h18 typedef __signalfn_t __user *__sighandler_t;
21 typedef __restorefn_t __user *__sigrestore_t;
/linux-4.4.14/arch/mips/include/asm/
H A Dsignal.h26 extern int protected_save_fp_context(void __user *sc);
27 extern int protected_restore_fp_context(void __user *sc);
H A Dtermios.h30 struct termio __user *termio) user_termio_to_kernel_termios()
59 static inline int kernel_termios_to_user_termio(struct termio __user *termio, kernel_termios_to_user_termio()
81 static inline int user_termios_to_kernel_termios(struct ktermios __user *k, user_termios_to_kernel_termios()
87 static inline int kernel_termios_to_user_termios(struct termios2 __user *u, kernel_termios_to_user_termios()
94 struct termios __user *u) user_termios_to_kernel_termios_1()
99 static inline int kernel_termios_to_user_termios_1(struct termios __user *u, kernel_termios_to_user_termios_1()
H A Dcompat-signal.h13 static inline int __copy_conv_sigset_to_user(compat_sigset_t __user *d, __copy_conv_sigset_to_user()
30 const compat_sigset_t __user *s) __copy_conv_sigset_from_user()
/linux-4.4.14/arch/sh/include/asm/
H A Dfutex-irq.h5 static inline int atomic_futex_op_xchg_set(int oparg, u32 __user *uaddr, atomic_futex_op_xchg_set()
22 static inline int atomic_futex_op_xchg_add(int oparg, u32 __user *uaddr, atomic_futex_op_xchg_add()
39 static inline int atomic_futex_op_xchg_or(int oparg, u32 __user *uaddr, atomic_futex_op_xchg_or()
56 static inline int atomic_futex_op_xchg_and(int oparg, u32 __user *uaddr, atomic_futex_op_xchg_and()
73 static inline int atomic_futex_op_xchg_xor(int oparg, u32 __user *uaddr, atomic_futex_op_xchg_xor()
91 u32 __user *uaddr, atomic_futex_op_cmpxchg_inatomic()
H A Dsyscalls_32.h15 asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
17 asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
H A Duaccess.h54 #define __m(x) (*(struct __large_struct __user *)(x))
60 const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
81 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
91 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
105 extern long strncpy_from_user(char *dest, const char __user *src, long count);
107 extern __must_check long strlen_user(const char __user *str);
108 extern __must_check long strnlen_user(const char __user *str, long n);
115 __copy_from_user(void *to, const void __user *from, unsigned long n) __copy_from_user()
121 __copy_to_user(void __user *to, const void *from, unsigned long n) __copy_to_user()
137 void __user * __cl_addr = (addr); \
148 copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
160 copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
204 unsigned long (*from)(void *dst, const void __user *src, unsigned long cnt);
205 unsigned long (*to)(void __user *dst, const void *src, unsigned long cnt);
/linux-4.4.14/net/ipv6/
H A Dudp_impl.h17 char __user *optval, int __user *optlen);
19 char __user *optval, unsigned int optlen);
22 char __user *optval, unsigned int optlen);
24 char __user *optval, int __user *optlen);
/linux-4.4.14/arch/alpha/kernel/
H A Dosf_sys.c100 struct osf_dirent __user *dirent;
101 long __user *basep;
110 struct osf_dirent __user *dirent; osf_filldir()
136 dirent = (void __user *)dirent + reclen; osf_filldir()
146 struct osf_dirent __user *, dirent, unsigned int, count, SYSCALL_DEFINE4()
147 long __user *, basep) SYSCALL_DEFINE4()
273 linux_to_osf_stat(struct kstat *lstat, struct osf_stat __user *osf_stat) linux_to_osf_stat()
299 linux_to_osf_statfs(struct kstatfs *linux_stat, struct osf_statfs __user *osf_stat, linux_to_osf_statfs()
320 linux_to_osf_statfs64(struct kstatfs *linux_stat, struct osf_statfs64 __user *osf_stat, linux_to_osf_statfs64()
339 SYSCALL_DEFINE3(osf_statfs, const char __user *, pathname, SYSCALL_DEFINE3()
340 struct osf_statfs __user *, buffer, unsigned long, bufsiz) SYSCALL_DEFINE3()
349 SYSCALL_DEFINE2(osf_stat, char __user *, name, struct osf_stat __user *, buf) SYSCALL_DEFINE2()
361 SYSCALL_DEFINE2(osf_lstat, char __user *, name, struct osf_stat __user *, buf) SYSCALL_DEFINE2()
373 SYSCALL_DEFINE2(osf_fstat, int, fd, struct osf_stat __user *, buf) SYSCALL_DEFINE2()
386 struct osf_statfs __user *, buffer, unsigned long, bufsiz) SYSCALL_DEFINE3()
395 SYSCALL_DEFINE3(osf_statfs64, char __user *, pathname, SYSCALL_DEFINE3()
396 struct osf_statfs64 __user *, buffer, unsigned long, bufsiz) SYSCALL_DEFINE3()
406 struct osf_statfs64 __user *, buffer, unsigned long, bufsiz) SYSCALL_DEFINE3()
421 char __user *devname;
427 char __user *devname;
436 char __user *devname;
450 osf_ufs_mount(const char __user *dirname, osf_ufs_mount()
451 struct ufs_args __user *args, int flags) osf_ufs_mount()
471 osf_cdfs_mount(const char __user *dirname, osf_cdfs_mount()
472 struct cdfs_args __user *args, int flags) osf_cdfs_mount()
492 osf_procfs_mount(const char __user *dirname, osf_procfs_mount()
493 struct procfs_args __user *args, int flags) osf_procfs_mount()
503 SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const char __user *, path, SYSCALL_DEFINE4()
504 int, flag, void __user *, data) SYSCALL_DEFINE4()
526 SYSCALL_DEFINE1(osf_utsname, char __user *, name) SYSCALL_DEFINE1()
562 SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, int, namelen) SYSCALL_DEFINE2()
608 char __user *path;
611 char __user *buf;
616 char __user *buf;
619 char __user *path;
621 struct proplistname_args __user *name_args;
623 char __user *buf;
624 int __user *min_buf_size;
628 struct proplistname_args __user *name_args;
630 char __user *buf;
631 int __user *min_buf_size;
634 char __user *path;
636 struct proplistname_args __user *name_args;
640 struct proplistname_args __user *name_args;
651 union pl_args __user *, args) SYSCALL_DEFINE2()
654 int __user *min_buf_size_ptr; SYSCALL_DEFINE2()
688 SYSCALL_DEFINE2(osf_sigstack, struct sigstack __user *, uss, SYSCALL_DEFINE2()
689 struct sigstack __user *, uoss) SYSCALL_DEFINE2()
697 void __user *ss_sp; SYSCALL_DEFINE2()
729 SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user *, buf, long, count) SYSCALL_DEFINE3()
767 SYSCALL_DEFINE5(osf_getsysinfo, unsigned long, op, void __user *, buffer, SYSCALL_DEFINE5()
768 unsigned long, nbytes, int __user *, start, void __user *, arg) SYSCALL_DEFINE5()
780 if (put_user(w, (unsigned long __user *) buffer)) SYSCALL_DEFINE5()
796 if (put_user(w, (unsigned int __user *)buffer)) SYSCALL_DEFINE5()
806 if (put_user(w, (unsigned long __user*)buffer)) SYSCALL_DEFINE5()
824 SYSCALL_DEFINE5(osf_setsysinfo, unsigned long, op, void __user *, buffer, SYSCALL_DEFINE5()
825 unsigned long, nbytes, int __user *, start, void __user *, arg) SYSCALL_DEFINE5()
839 if (get_user(swcr, (unsigned long __user *)buffer)) SYSCALL_DEFINE5()
858 if (get_user(exc, (unsigned long __user *)buffer)) SYSCALL_DEFINE5()
905 unsigned __user *p = buffer; SYSCALL_DEFINE5()
955 get_tv32(struct timeval *o, struct timeval32 __user *i) get_tv32()
963 put_tv32(struct timeval32 __user *o, struct timeval *i) put_tv32()
971 get_it32(struct itimerval *o, struct itimerval32 __user *i) get_it32()
981 put_it32(struct itimerval32 __user *o, struct itimerval *i) put_it32()
997 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, SYSCALL_DEFINE2()
998 struct timezone __user *, tz) SYSCALL_DEFINE2()
1013 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, SYSCALL_DEFINE2()
1014 struct timezone __user *, tz) SYSCALL_DEFINE2()
1032 SYSCALL_DEFINE2(osf_getitimer, int, which, struct itimerval32 __user *, it) SYSCALL_DEFINE2()
1044 SYSCALL_DEFINE3(osf_setitimer, int, which, struct itimerval32 __user *, in, SYSCALL_DEFINE3()
1045 struct itimerval32 __user *, out) SYSCALL_DEFINE3()
1067 SYSCALL_DEFINE2(osf_utimes, const char __user *, filename, SYSCALL_DEFINE2()
1068 struct timeval32 __user *, tvs) SYSCALL_DEFINE2()
1091 SYSCALL_DEFINE5(osf_select, int, n, fd_set __user *, inp, fd_set __user *, outp, SYSCALL_DEFINE5()
1092 fd_set __user *, exp, struct timeval32 __user *, tvp) SYSCALL_DEFINE5()
1137 SYSCALL_DEFINE2(osf_getrusage, int, who, struct rusage32 __user *, ru) SYSCALL_DEFINE2()
1170 SYSCALL_DEFINE4(osf_wait4, pid_t, pid, int __user *, ustatus, int, options, SYSCALL_DEFINE4()
1171 struct rusage32 __user *, ur) SYSCALL_DEFINE4()
1184 ret = sys_wait4(pid, (unsigned int __user *) &status, options, SYSCALL_DEFINE4()
1185 (struct rusage __user *) &r); SYSCALL_DEFINE4()
1220 SYSCALL_DEFINE2(osf_usleep_thread, struct timeval32 __user *, sleep, SYSCALL_DEFINE2()
1221 struct timeval32 __user *, remain) SYSCALL_DEFINE2()
1274 SYSCALL_DEFINE1(old_adjtimex, struct timex32 __user *, txc_p) SYSCALL_DEFINE1()
1370 osf_fix_iov_len(const struct iovec __user *iov, unsigned long count) osf_fix_iov_len()
1375 int __user *iov_len_high = (int __user *)&iov[i].iov_len + 1; osf_fix_iov_len()
1384 const struct iovec __user *, vector, unsigned long, count) SYSCALL_DEFINE3()
1393 const struct iovec __user *, vector, unsigned long, count) SYSCALL_DEFINE3()
/linux-4.4.14/arch/x86/um/
H A Dsignal.c82 static int convert_fxsr_to_user(struct _fpstate __user *buf, convert_fxsr_to_user()
86 struct _fpreg __user *to; convert_fxsr_to_user()
104 unsigned long __user *t = (unsigned long __user *)to; convert_fxsr_to_user()
116 struct _fpstate __user *buf) convert_fxsr_from_user()
120 struct _fpreg __user *from; convert_fxsr_from_user()
139 unsigned long __user *f = (unsigned long __user *)from; convert_fxsr_from_user()
154 struct sigcontext __user *from) copy_sc_from_user()
209 &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0], copy_sc_from_user()
246 static int copy_sc_to_user(struct sigcontext __user *to, copy_sc_to_user()
247 struct _fpstate __user *to_fp, struct pt_regs *regs, copy_sc_to_user()
339 static int copy_ucontext_to_user(struct ucontext __user *uc, copy_ucontext_to_user()
340 struct _fpstate __user *fp, sigset_t *set, copy_ucontext_to_user()
353 char __user *pretcode;
363 char __user *pretcode;
365 struct siginfo __user *pinfo;
366 void __user *puc;
376 struct sigframe __user *frame; setup_signal_stack_sc()
377 void __user *restorer; setup_signal_stack_sc()
382 frame = (struct sigframe __user *) stack_top - 1; setup_signal_stack_sc()
404 err |= __put_user(0xb858, (short __user *)(frame->retcode+0)); setup_signal_stack_sc()
405 err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2)); setup_signal_stack_sc()
406 err |= __put_user(0x80cd, (short __user *)(frame->retcode+6)); setup_signal_stack_sc()
422 struct rt_sigframe __user *frame; setup_signal_stack_si()
423 void __user *restorer; setup_signal_stack_si()
427 frame = (struct rt_sigframe __user *) stack_top - 1; setup_signal_stack_si()
450 err |= __put_user(0xb8, (char __user *)(frame->retcode+0)); setup_signal_stack_si()
451 err |= __put_user(__NR_rt_sigreturn, (int __user *)(frame->retcode+1)); setup_signal_stack_si()
452 err |= __put_user(0x80cd, (short __user *)(frame->retcode+5)); setup_signal_stack_si()
468 struct sigframe __user *frame = (struct sigframe __user *)(sp - 8); sys_sigreturn()
470 struct sigcontext __user *sc = &frame->sc; sys_sigreturn()
495 char __user *pretcode;
504 struct rt_sigframe __user *frame; setup_signal_stack_si()
508 frame = (struct rt_sigframe __user *) setup_signal_stack_si()
511 frame = (struct rt_sigframe __user *) ((unsigned long) frame - 128 - 8); setup_signal_stack_si()
575 struct rt_sigframe __user *frame = sys_rt_sigreturn()
576 (struct rt_sigframe __user *)(sp - sizeof(long)); sys_rt_sigreturn()
577 struct ucontext __user *uc = &frame->uc; sys_rt_sigreturn()
H A Dbug.c17 if (probe_kernel_address((unsigned short __user *)eip, ud2)) is_valid_bugaddr()
/linux-4.4.14/lib/
H A Dtest_user_copy.c40 char __user *usermem; test_user_copy_init()
58 usermem = (char __user *)user_addr; test_user_copy_init()
66 ret |= test(get_user(value, (unsigned long __user *)usermem), test_user_copy_init()
68 ret |= test(put_user(value, (unsigned long __user *)usermem), test_user_copy_init()
72 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), test_user_copy_init()
75 ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem, test_user_copy_init()
78 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, test_user_copy_init()
81 ret |= test(!copy_to_user((char __user *)kmem, bad_usermem, test_user_copy_init()
84 ret |= test(!get_user(value, (unsigned long __user *)kmem), test_user_copy_init()
86 ret |= test(!put_user(value, (unsigned long __user *)kmem), test_user_copy_init()
/linux-4.4.14/drivers/staging/android/ion/
H A Dcompat_ion.c50 struct compat_ion_allocation_data __user *data32, compat_get_ion_allocation_data()
51 struct ion_allocation_data __user *data) compat_get_ion_allocation_data()
73 struct compat_ion_handle_data __user *data32, compat_get_ion_handle_data()
74 struct ion_handle_data __user *data) compat_get_ion_handle_data()
86 struct compat_ion_allocation_data __user *data32, compat_put_ion_allocation_data()
87 struct ion_allocation_data __user *data) compat_put_ion_allocation_data()
109 struct compat_ion_custom_data __user *data32, compat_get_ion_custom_data()
110 struct ion_custom_data __user *data) compat_get_ion_custom_data()
134 struct compat_ion_allocation_data __user *data32; compat_ion_ioctl()
135 struct ion_allocation_data __user *data; compat_ion_ioctl()
153 struct compat_ion_handle_data __user *data32; compat_ion_ioctl()
154 struct ion_handle_data __user *data; compat_ion_ioctl()
170 struct compat_ion_custom_data __user *data32; compat_ion_ioctl()
171 struct ion_custom_data __user *data; compat_ion_ioctl()
/linux-4.4.14/arch/x86/ia32/
H A Dia32_signal.c71 struct sigcontext_32 __user *sc) ia32_restore_sigcontext()
74 void __user *buf; ia32_restore_sigcontext()
118 struct sigframe_ia32 __user *frame = (struct sigframe_ia32 __user *)(regs->sp-8); sys32_sigreturn()
144 struct rt_sigframe_ia32 __user *frame; sys32_rt_sigreturn()
147 frame = (struct rt_sigframe_ia32 __user *)(regs->sp - 4); sys32_rt_sigreturn()
173 static int ia32_setup_sigcontext(struct sigcontext_32 __user *sc, ia32_setup_sigcontext()
174 void __user *fpstate, ia32_setup_sigcontext()
180 put_user_ex(get_user_seg(gs), (unsigned int __user *)&sc->gs); ia32_setup_sigcontext()
181 put_user_ex(get_user_seg(fs), (unsigned int __user *)&sc->fs); ia32_setup_sigcontext()
182 put_user_ex(get_user_seg(ds), (unsigned int __user *)&sc->ds); ia32_setup_sigcontext()
183 put_user_ex(get_user_seg(es), (unsigned int __user *)&sc->es); ia32_setup_sigcontext()
196 put_user_ex(regs->cs, (unsigned int __user *)&sc->cs); ia32_setup_sigcontext()
199 put_user_ex(regs->ss, (unsigned int __user *)&sc->ss); ia32_setup_sigcontext()
214 static void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, get_sigframe()
216 void __user **fpstate) get_sigframe()
237 *fpstate = (struct _fpstate_32 __user *) sp; get_sigframe()
238 if (copy_fpstate_to_sigframe(*fpstate, (void __user *)fx_aligned, get_sigframe()
240 return (void __user *) -1L; get_sigframe()
247 return (void __user *) sp; get_sigframe()
253 struct sigframe_ia32 __user *frame; ia32_setup_frame()
254 void __user *restorer; ia32_setup_frame()
256 void __user *fpstate = NULL; ia32_setup_frame()
304 put_user_ex(*((u64 *)&code), (u64 __user *)frame->retcode); ia32_setup_frame()
331 struct rt_sigframe_ia32 __user *frame; ia32_setup_rt_frame()
332 void __user *restorer; ia32_setup_rt_frame()
334 void __user *fpstate = NULL; ia32_setup_rt_frame()
378 put_user_ex(*((u64 *)&code), (u64 __user *)frame->retcode); ia32_setup_rt_frame()
H A Dsys_ia32.c53 asmlinkage long sys32_truncate64(const char __user *filename, sys32_truncate64()
70 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) cp_stat64()
98 asmlinkage long sys32_stat64(const char __user *filename, sys32_stat64()
99 struct stat64 __user *statbuf) sys32_stat64()
109 asmlinkage long sys32_lstat64(const char __user *filename, sys32_lstat64()
110 struct stat64 __user *statbuf) sys32_lstat64()
119 asmlinkage long sys32_fstat64(unsigned int fd, struct stat64 __user *statbuf) sys32_fstat64()
128 asmlinkage long sys32_fstatat(unsigned int dfd, const char __user *filename, sys32_fstatat()
129 struct stat64 __user *statbuf, int flag) sys32_fstatat()
155 asmlinkage long sys32_mmap(struct mmap_arg_struct32 __user *arg) sys32_mmap()
169 asmlinkage long sys32_waitpid(compat_pid_t pid, unsigned int __user *stat_addr, sys32_waitpid()
176 asmlinkage long sys32_pread(unsigned int fd, char __user *ubuf, u32 count, sys32_pread()
183 asmlinkage long sys32_pwrite(unsigned int fd, const char __user *ubuf, sys32_pwrite()
/linux-4.4.14/drivers/misc/sgi-gru/
H A Dgrukdump.c37 static int gru_user_copy_handle(void __user **dp, void *s) gru_user_copy_handle()
47 void __user *ubuf, int ctxnum, int dsrcnt, gru_dump_context_data()
78 void __user *ubuf, void __user *ubufend) gru_dump_tfm()
98 void __user *ubuf, void __user *ubufend) gru_dump_tgh()
118 void __user *ubuf, void __user *ubufend, char data_opt, gru_dump_context()
122 struct gru_dump_context_header __user *uhdr = ubuf; gru_dump_context()
189 void __user *ubuf; gru_dump_chiplet_request()
190 void __user *ubufend; gru_dump_chiplet_request()
193 if (copy_from_user(&req, (void __user *)arg, sizeof(req))) gru_dump_chiplet_request()
226 if (copy_to_user((void __user *)arg, &req, sizeof(req))) gru_dump_chiplet_request()
/linux-4.4.14/drivers/oprofile/
H A Doprofile_files.c30 static ssize_t timeout_read(struct file *file, char __user *buf, timeout_read()
38 static ssize_t timeout_write(struct file *file, char const __user *buf, timeout_write()
68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) depth_read()
75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) depth_write()
105 static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) pointer_size_read()
117 static ssize_t cpu_type_read(struct file *file, char __user *buf, size_t count, loff_t *offset) cpu_type_read()
129 static ssize_t enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) enable_read()
135 static ssize_t enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) enable_write()
166 static ssize_t dump_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) dump_write()
/linux-4.4.14/arch/um/include/asm/
H A Duaccess.h25 extern long __copy_from_user(void *to, const void __user *from, unsigned long n);
26 extern long __copy_to_user(void __user *to, const void *from, unsigned long n);
27 extern long __strncpy_from_user(char *dst, const char __user *src, long count);
28 extern long __strnlen_user(const void __user *str, long len);
29 extern unsigned long __clear_user(void __user *mem, unsigned long len);
/linux-4.4.14/arch/unicore32/include/asm/
H A Duaccess.h32 __copy_from_user(void *to, const void __user *from, unsigned long n);
34 __copy_to_user(void __user *to, const void *from, unsigned long n);
36 __clear_user(void __user *addr, unsigned long n);
38 __strncpy_from_user(char *to, const char __user *from, unsigned long count);
40 __strnlen_user(const char __user *s, long n);
/linux-4.4.14/arch/x86/um/asm/
H A Dptrace.h51 struct user_desc __user *user_desc);
54 struct user_desc __user *user_desc);
70 struct user_desc __user *user_desc) ptrace_get_thread_area()
76 struct user_desc __user *user_desc) ptrace_set_thread_area()
82 unsigned long __user *addr);
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_ioc32.c63 drm_radeon_init_t __user *init; compat_radeon_cp_init()
65 if (copy_from_user(&init32, (void __user *)arg, sizeof(init32))) compat_radeon_cp_init()
110 drm_radeon_clear_t __user *clr; compat_radeon_cp_clear()
112 if (copy_from_user(&clr32, (void __user *)arg, sizeof(clr32))) compat_radeon_cp_clear()
122 || __put_user((void __user *)(unsigned long)clr32.depth_boxes, compat_radeon_cp_clear()
136 drm_radeon_stipple32_t __user *argp = (void __user *)arg; compat_radeon_cp_stipple()
137 drm_radeon_stipple_t __user *request; compat_radeon_cp_stipple()
145 || __put_user((unsigned int __user *)(unsigned long)mask, compat_radeon_cp_stipple()
171 drm_radeon_texture_t __user *request; compat_radeon_cp_texture()
173 drm_radeon_tex_image_t __user *image; compat_radeon_cp_texture()
175 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_cp_texture()
179 if (copy_from_user(&img32, (void __user *)(unsigned long)req32.image, compat_radeon_cp_texture()
187 image = (drm_radeon_tex_image_t __user *) (request + 1); compat_radeon_cp_texture()
199 || __put_user((const void __user *)(unsigned long)img32.data, compat_radeon_cp_texture()
219 drm_radeon_vertex2_t __user *request; compat_radeon_cp_vertex2()
221 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_cp_vertex2()
229 || __put_user((void __user *)(unsigned long)req32.state, compat_radeon_cp_vertex2()
232 || __put_user((void __user *)(unsigned long)req32.prim, compat_radeon_cp_vertex2()
250 drm_radeon_cmd_buffer_t __user *request; compat_radeon_cp_cmdbuf()
252 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_cp_cmdbuf()
258 || __put_user((void __user *)(unsigned long)req32.buf, compat_radeon_cp_cmdbuf()
261 || __put_user((void __user *)(unsigned long)req32.boxes, compat_radeon_cp_cmdbuf()
277 drm_radeon_getparam_t __user *request; compat_radeon_cp_getparam()
279 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_cp_getparam()
285 || __put_user((void __user *)(unsigned long)req32.value, compat_radeon_cp_getparam()
303 drm_radeon_mem_alloc_t __user *request; compat_radeon_mem_alloc()
305 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_mem_alloc()
313 || __put_user((int __user *)(unsigned long)req32.region_offset, compat_radeon_mem_alloc()
328 drm_radeon_irq_emit_t __user *request; compat_radeon_irq_emit()
330 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_irq_emit()
335 || __put_user((int __user *)(unsigned long)req32.irq_seq, compat_radeon_irq_emit()
353 drm_radeon_setparam_t __user *request; compat_radeon_cp_setparam()
355 if (copy_from_user(&req32, (void __user *) arg, sizeof(req32))) compat_radeon_cp_setparam()
361 || __put_user((void __user *)(unsigned long)req32.value, compat_radeon_cp_setparam()
/linux-4.4.14/arch/ia64/include/asm/
H A Duaccess.h101 case 2: __ret = (__put_user((x), (u8 __user *)(ptr))) \
102 | (__put_user((x) >> 8, ((u8 __user *)(ptr) + 1))); break; \
103 case 4: __ret = (__put_user((x), (u16 __user *)(ptr))) \
104 | (__put_user((x) >> 16, ((u16 __user *)(ptr) + 1))); break; \
105 case 8: __ret = (__put_user((x), (u32 __user *)(ptr))) \
106 | (__put_user((x) >> 32, ((u32 __user *)(ptr) + 1))); break; \
119 case 2: __ret = (__get_user((x), (u8 __user *)(ptr))) \
120 | (__get_user((x) >> 8, ((u8 __user *)(ptr) + 1))); break; \
121 case 4: __ret = (__get_user((x), (u16 __user *)(ptr))) \
122 | (__get_user((x) >> 16, ((u16 __user *)(ptr) + 1))); break; \
123 case 8: __ret = (__get_user((x), (u32 __user *)(ptr))) \
124 | (__get_user((x) >> 32, ((u32 __user *)(ptr) + 1))); break; \
132 # define __m(x) (*(struct __large_struct __user *)(x))
189 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
217 __typeof__ (*(ptr)) __user *__pu_ptr = (ptr); \
238 extern unsigned long __must_check __copy_user (void __user *to, const void __user *from,
242 __copy_to_user (void __user *to, const void *from, unsigned long count) __copy_to_user()
244 return __copy_user(to, (__force void __user *) from, count); __copy_to_user()
248 __copy_from_user (void *to, const void __user *from, unsigned long count) __copy_from_user()
250 return __copy_user((__force void __user *) to, from, count); __copy_from_user()
257 void __user *__cu_to = (to); \
262 __cu_len = __copy_user(__cu_to, (__force void __user *) __cu_from, __cu_len); \
269 const void __user *__cu_from = (from); \
274 __cu_len = __copy_user((__force void __user *) __cu_to, __cu_from, __cu_len); \
281 copy_in_user (void __user *to, const void __user *from, unsigned long n) copy_in_user()
288 extern unsigned long __do_clear_user (void __user *, unsigned long);
305 extern long __must_check __strncpy_from_user (char *to, const char __user *from, long to_len);
309 const char __user * __sfu_from = (from); \
317 extern unsigned long __strlen_user (const char __user *);
321 const char __user *__su_str = (str); \
333 extern unsigned long __strnlen_user (const char __user *, long);
337 const char __user *__su_str = (str); \
/linux-4.4.14/arch/tile/include/asm/
H A Dsignal.h21 int restore_sigcontext(struct pt_regs *, struct sigcontext __user *);
22 int setup_sigcontext(struct sigcontext __user *, struct pt_regs *);
25 void __user *frame, int sig);
H A Dsyscalls.h54 long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf);
55 long sys_truncate64(const char __user *path, loff_t length);
66 void __user *parent_tid, void __user *child_tid);
H A Duaccess.h323 __typeof__(*(ptr)) __user *__Pu_addr = (ptr); \
331 __typeof__(*(ptr)) const __user *__Gu_addr = (ptr); \
357 void __user *to, const void *from, unsigned long n);
360 __copy_to_user(void __user *to, const void *from, unsigned long n) __copy_to_user()
367 copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
398 void *to, const void __user *from, unsigned long n);
400 void *to, const void __user *from, unsigned long n);
403 __copy_from_user(void *to, const void __user *from, unsigned long n) __copy_from_user()
410 _copy_from_user(void *to, const void __user *from, unsigned long n) _copy_from_user()
429 const void __user *from, copy_from_user()
462 void __user *to, const void __user *from, unsigned long n);
465 __copy_in_user(void __user *to, const void __user *from, unsigned long n) __copy_in_user()
472 copy_in_user(void __user *to, const void __user *from, unsigned long n) copy_in_user()
481 extern long strnlen_user(const char __user *str, long n);
482 extern long strlen_user(const char __user *str);
483 extern long strncpy_from_user(char *dst, const char __user *src, long);
495 extern unsigned long clear_user_asm(void __user *mem, unsigned long len); __clear_user()
497 void __user *mem, unsigned long len) __clear_user()
503 void __user *mem, unsigned long len) clear_user()
518 extern unsigned long flush_user_asm(void __user *mem, unsigned long len); __flush_user()
520 void __user *mem, unsigned long len) __flush_user()
531 void __user *mem, unsigned long len) flush_user()
546 extern unsigned long finv_user_asm(void __user *mem, unsigned long len); __finv_user()
548 void __user *mem, unsigned long len) __finv_user()
558 void __user *mem, unsigned long len) finv_user()
H A Dcompat.h243 static inline void __user *compat_ptr(compat_uptr_t uptr) compat_ptr()
245 return (void __user *)(long)(s32)uptr; compat_ptr()
248 static inline compat_uptr_t ptr_to_compat(void __user *uptr) ptr_to_compat()
254 static inline unsigned long ptr_to_compat_reg(void __user *uptr) ptr_to_compat_reg()
259 static inline void __user *arch_compat_alloc_user_space(long len) arch_compat_alloc_user_space()
262 return (void __user *)regs->sp - len; arch_compat_alloc_user_space()
277 long compat_sys_truncate64(char __user *filename, u32 dummy, u32 low, u32 high);
279 long compat_sys_pread64(unsigned int fd, char __user *ubuf, size_t count,
281 long compat_sys_pwrite64(unsigned int fd, char __user *ubuf, size_t count,
290 unsigned int offset_low, loff_t __user * result,
/linux-4.4.14/fs/quota/
H A Dcompat.c43 asmlinkage long sys32_quotactl(unsigned int cmd, const char __user *special, sys32_quotactl()
44 qid_t id, void __user *addr) sys32_quotactl()
47 struct if_dqblk __user *dqblk; sys32_quotactl()
48 struct compat_if_dqblk __user *compat_dqblk; sys32_quotactl()
49 struct fs_quota_stat __user *fsqstat; sys32_quotactl()
50 struct compat_fs_quota_stat __user *compat_fsqstat; sys32_quotactl()
/linux-4.4.14/arch/powerpc/include/uapi/asm/
H A Ducontext.h22 struct ucontext __user *uc_link;
26 struct mcontext __user *uc_regs;/* points to uc_mcontext field */
/linux-4.4.14/tools/virtio/linux/
H A Duaccess.h35 static inline int copy_from_user(void *to, const void __user volatile *from, copy_from_user()
43 static inline int copy_to_user(void __user volatile *to, const void *from, copy_to_user()
/linux-4.4.14/drivers/video/fbdev/
H A Dsbuslib.c105 struct fbtype __user *f = (struct fbtype __user *) arg; sbusfb_ioctl_helper()
117 struct fbcmap __user *c = (struct fbcmap __user *) arg; sbusfb_ioctl_helper()
121 unsigned char __user *ured; sbusfb_ioctl_helper()
122 unsigned char __user *ugreen; sbusfb_ioctl_helper()
123 unsigned char __user *ublue; sbusfb_ioctl_helper()
158 struct fbcmap __user *c = (struct fbcmap __user *) arg; sbusfb_ioctl_helper()
159 unsigned char __user *ured; sbusfb_ioctl_helper()
160 unsigned char __user *ugreen; sbusfb_ioctl_helper()
161 unsigned char __user *ublue; sbusfb_ioctl_helper()
196 struct fbcmap32 __user *argp = (void __user *)arg; fbiogetputcmap()
197 struct fbcmap __user *p = compat_alloc_user_space(sizeof(*p)); fbiogetputcmap()
218 struct fbcursor __user *p = compat_alloc_user_space(sizeof(*p)); fbiogscursor()
219 struct fbcursor32 __user *argp = (void __user *)arg; fbiogscursor()
/linux-4.4.14/arch/s390/lib/
H A Duaccess.c20 static inline unsigned long copy_from_user_mvcos(void *x, const void __user *ptr, copy_from_user_mvcos()
60 static inline unsigned long copy_from_user_mvcp(void *x, const void __user *ptr, copy_from_user_mvcp()
105 unsigned long __copy_from_user(void *to, const void __user *from, unsigned long n) __copy_from_user()
113 static inline unsigned long copy_to_user_mvcos(void __user *ptr, const void *x, copy_to_user_mvcos()
143 static inline unsigned long copy_to_user_mvcs(void __user *ptr, const void *x, copy_to_user_mvcs()
178 unsigned long __copy_to_user(void __user *to, const void *from, unsigned long n) __copy_to_user()
186 static inline unsigned long copy_in_user_mvcos(void __user *to, const void __user *from, copy_in_user_mvcos()
209 static inline unsigned long copy_in_user_mvc(void __user *to, const void __user *from, copy_in_user_mvc()
241 unsigned long __copy_in_user(void __user *to, const void __user *from, unsigned long n) __copy_in_user()
249 static inline unsigned long clear_user_mvcos(void __user *to, unsigned long size) clear_user_mvcos()
277 static inline unsigned long clear_user_xc(void __user *to, unsigned long size) clear_user_xc()
313 unsigned long __clear_user(void __user *to, unsigned long size) __clear_user()
321 static inline unsigned long strnlen_user_srst(const char __user *src, strnlen_user_srst()
343 unsigned long __strnlen_user(const char __user *src, unsigned long size) __strnlen_user()
352 long __strncpy_from_user(char *dst, const char __user *src, long size) __strncpy_from_user()
/linux-4.4.14/arch/arm/kernel/
H A Dsys_oabi-compat.c118 struct oldabi_stat64 __user *statbuf) cp_oldabi_stat64()
144 asmlinkage long sys_oabi_stat64(const char __user * filename, sys_oabi_stat64()
145 struct oldabi_stat64 __user * statbuf) sys_oabi_stat64()
154 asmlinkage long sys_oabi_lstat64(const char __user * filename, sys_oabi_lstat64()
155 struct oldabi_stat64 __user * statbuf) sys_oabi_lstat64()
165 struct oldabi_stat64 __user * statbuf) sys_oabi_fstat64()
175 const char __user *filename, sys_oabi_fstatat64()
176 struct oldabi_stat64 __user *statbuf, sys_oabi_fstatat64()
204 if (copy_from_user(&user, (struct oabi_flock64 __user *)arg, do_locks()
224 if (copy_to_user((struct oabi_flock64 __user *)arg, do_locks()
254 struct oabi_epoll_event __user *event) sys_oabi_epoll_ctl()
275 struct oabi_epoll_event __user *events, sys_oabi_epoll_wait()
309 struct oabi_sembuf __user *tsops, sys_oabi_semtimedop()
311 const struct timespec __user *timeout) sys_oabi_semtimedop()
347 asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops, sys_oabi_semop()
354 void __user *ptr, long fifth) sys_oabi_ipc()
359 (struct oabi_sembuf __user *)ptr, sys_oabi_ipc()
363 (struct oabi_sembuf __user *)ptr, sys_oabi_ipc()
365 (const struct timespec __user *)fifth); sys_oabi_ipc()
371 asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen) sys_oabi_bind()
381 asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen) sys_oabi_connect()
391 asmlinkage long sys_oabi_sendto(int fd, void __user *buff, sys_oabi_sendto()
393 struct sockaddr __user *addr, sys_oabi_sendto()
404 asmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags) sys_oabi_sendmsg()
406 struct sockaddr __user *addr; sys_oabi_sendmsg()
430 asmlinkage long sys_oabi_socketcall(int call, unsigned long __user *args) sys_oabi_socketcall()
437 r = sys_oabi_bind(a[0], (struct sockaddr __user *)a[1], a[2]); sys_oabi_socketcall()
441 r = sys_oabi_connect(a[0], (struct sockaddr __user *)a[1], a[2]); sys_oabi_socketcall()
445 r = sys_oabi_sendto(a[0], (void __user *)a[1], a[2], a[3], sys_oabi_socketcall()
446 (struct sockaddr __user *)a[4], a[5]); sys_oabi_socketcall()
450 r = sys_oabi_sendmsg(a[0], (struct user_msghdr __user *)a[1], a[2]); sys_oabi_socketcall()
H A Dperf_callchain.c23 struct frame_tail __user *fp;
32 static struct frame_tail __user * user_backtrace()
33 user_backtrace(struct frame_tail __user *tail, user_backtrace()
64 struct frame_tail __user *tail; perf_callchain_user()
76 tail = (struct frame_tail __user *)regs->ARM_fp - 1; perf_callchain_user()
/linux-4.4.14/fs/
H A Dcompat.c75 COMPAT_SYSCALL_DEFINE2(utime, const char __user *, filename, COMPAT_SYSCALL_DEFINE2()
76 struct compat_utimbuf __user *, t) COMPAT_SYSCALL_DEFINE2()
90 COMPAT_SYSCALL_DEFINE4(utimensat, unsigned int, dfd, const char __user *, filename, struct compat_timespec __user *, t, int, flags) COMPAT_SYSCALL_DEFINE4()
105 COMPAT_SYSCALL_DEFINE3(futimesat, unsigned int, dfd, const char __user *, filename, struct compat_timeval __user *, t) COMPAT_SYSCALL_DEFINE3()
124 COMPAT_SYSCALL_DEFINE2(utimes, const char __user *, filename, struct compat_timeval __user *, t) COMPAT_SYSCALL_DEFINE2()
129 static int cp_compat_stat(struct kstat *stat, struct compat_stat __user *ubuf) cp_compat_stat()
162 COMPAT_SYSCALL_DEFINE2(newstat, const char __user *, filename, COMPAT_SYSCALL_DEFINE2()
163 struct compat_stat __user *, statbuf) COMPAT_SYSCALL_DEFINE2()
174 COMPAT_SYSCALL_DEFINE2(newlstat, const char __user *, filename, COMPAT_SYSCALL_DEFINE2()
175 struct compat_stat __user *, statbuf) COMPAT_SYSCALL_DEFINE2()
188 const char __user *, filename, COMPAT_SYSCALL_DEFINE4()
189 struct compat_stat __user *, statbuf, int, flag) COMPAT_SYSCALL_DEFINE4()
202 struct compat_stat __user *, statbuf) COMPAT_SYSCALL_DEFINE2()
212 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) put_compat_statfs()
250 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) COMPAT_SYSCALL_DEFINE2()
259 COMPAT_SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct compat_statfs __user *, buf) COMPAT_SYSCALL_DEFINE2()
268 static int put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstatfs *kbuf) put_compat_statfs64()
301 COMPAT_SYSCALL_DEFINE3(statfs64, const char __user *, pathname, compat_size_t, sz, struct compat_statfs64 __user *, buf) COMPAT_SYSCALL_DEFINE3()
315 COMPAT_SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, compat_size_t, sz, struct compat_statfs64 __user *, buf) COMPAT_SYSCALL_DEFINE3()
334 COMPAT_SYSCALL_DEFINE2(ustat, unsigned, dev, struct compat_ustat __user *, u) COMPAT_SYSCALL_DEFINE2()
350 static int get_compat_flock(struct flock *kfl, struct compat_flock __user *ufl) get_compat_flock()
362 static int put_compat_flock(struct flock *kfl, struct compat_flock __user *ufl) put_compat_flock()
375 static int get_compat_flock64(struct flock *kfl, struct compat_flock64 __user *ufl) get_compat_flock64()
389 static int put_compat_flock64(struct flock *kfl, struct compat_flock64 __user *ufl) put_compat_flock64()
504 COMPAT_SYSCALL_DEFINE2(io_setup, unsigned, nr_reqs, u32 __user *, ctx32p) COMPAT_SYSCALL_DEFINE2()
514 /* The __user pointer cast is valid because of the set_fs() */ COMPAT_SYSCALL_DEFINE2()
515 ret = sys_io_setup(nr_reqs, (aio_context_t __user *) &ctx64); COMPAT_SYSCALL_DEFINE2()
526 struct io_event __user *, events, COMPAT_SYSCALL_DEFINE5()
527 struct compat_timespec __user *, timeout) COMPAT_SYSCALL_DEFINE5()
530 struct timespec __user *ut = NULL; COMPAT_SYSCALL_DEFINE5()
547 const struct compat_iovec __user *uvector, unsigned long nr_segs, compat_rw_copy_check_uvector()
620 copy_iocb(long nr, u32 __user *ptr32, struct iocb __user * __user *ptr64) copy_iocb()
637 int, nr, u32 __user *, iocb) COMPAT_SYSCALL_DEFINE3()
639 struct iocb __user * __user *iocb64; COMPAT_SYSCALL_DEFINE3()
789 COMPAT_SYSCALL_DEFINE5(mount, const char __user *, dev_name, COMPAT_SYSCALL_DEFINE5()
790 const char __user *, dir_name, COMPAT_SYSCALL_DEFINE5()
791 const char __user *, type, compat_ulong_t, flags, COMPAT_SYSCALL_DEFINE5()
792 const void __user *, data) COMPAT_SYSCALL_DEFINE5()
846 struct compat_old_linux_dirent __user *dirent;
856 struct compat_old_linux_dirent __user *dirent; compat_fillonedir()
885 struct compat_old_linux_dirent __user *, dirent, unsigned int, count) COMPAT_SYSCALL_DEFINE3()
914 struct compat_linux_dirent __user *current_dir;
915 struct compat_linux_dirent __user *previous;
923 struct compat_linux_dirent __user * dirent; compat_filldir()
952 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) compat_filldir()
955 dirent = (void __user *)dirent + reclen; compat_filldir()
965 struct compat_linux_dirent __user *, dirent, unsigned int, count) COMPAT_SYSCALL_DEFINE3()
968 struct compat_linux_dirent __user * lastdirent; COMPAT_SYSCALL_DEFINE3()
1001 struct linux_dirent64 __user *current_dir;
1002 struct linux_dirent64 __user *previous;
1011 struct linux_dirent64 __user *dirent; compat_filldir64()
1042 dirent = (void __user *)dirent + reclen; compat_filldir64()
1052 struct linux_dirent64 __user *, dirent, unsigned int, count) COMPAT_SYSCALL_DEFINE3()
1055 struct linux_dirent64 __user * lastdirent; COMPAT_SYSCALL_DEFINE3()
1090 COMPAT_SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) COMPAT_SYSCALL_DEFINE3()
1099 COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode) COMPAT_SYSCALL_DEFINE4()
1106 static int poll_select_copy_remaining(struct timespec *end_time, void __user *p, poll_select_copy_remaining()
1162 int compat_get_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, compat_get_fd_set()
1195 int compat_set_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, compat_set_fd_set()
1234 int compat_core_sys_select(int n, compat_ulong_t __user *inp, compat_core_sys_select()
1235 compat_ulong_t __user *outp, compat_ulong_t __user *exp, compat_core_sys_select()
1305 COMPAT_SYSCALL_DEFINE5(select, int, n, compat_ulong_t __user *, inp, COMPAT_SYSCALL_DEFINE5()
1306 compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, COMPAT_SYSCALL_DEFINE5()
1307 struct compat_timeval __user *, tvp) COMPAT_SYSCALL_DEFINE5()
1338 COMPAT_SYSCALL_DEFINE1(old_select, struct compat_sel_arg_struct __user *, arg) COMPAT_SYSCALL_DEFINE1()
1348 static long do_compat_pselect(int n, compat_ulong_t __user *inp, do_compat_pselect()
1349 compat_ulong_t __user *outp, compat_ulong_t __user *exp, do_compat_pselect()
1350 struct compat_timespec __user *tsp, compat_sigset_t __user *sigmask, do_compat_pselect()
1399 COMPAT_SYSCALL_DEFINE6(pselect6, int, n, compat_ulong_t __user *, inp, COMPAT_SYSCALL_DEFINE6()
1400 compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, COMPAT_SYSCALL_DEFINE6()
1401 struct compat_timespec __user *, tsp, void __user *, sig) COMPAT_SYSCALL_DEFINE6()
1409 __get_user(up, (compat_uptr_t __user *)sig) || COMPAT_SYSCALL_DEFINE6()
1411 (compat_size_t __user *)(sig+sizeof(up)))) COMPAT_SYSCALL_DEFINE6()
1418 COMPAT_SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, COMPAT_SYSCALL_DEFINE5()
1419 unsigned int, nfds, struct compat_timespec __user *, tsp, COMPAT_SYSCALL_DEFINE5()
1420 const compat_sigset_t __user *, sigmask, compat_size_t, sigsetsize) COMPAT_SYSCALL_DEFINE5()
1477 struct file_handle __user *, handle, int, flags) COMPAT_SYSCALL_DEFINE3()
H A Dstat.c90 int vfs_fstatat(int dfd, const char __user *filename, struct kstat *stat, vfs_fstatat()
121 int vfs_stat(const char __user *name, struct kstat *stat) vfs_stat()
127 int vfs_lstat(const char __user *name, struct kstat *stat) vfs_lstat()
140 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) cp_old_stat()
177 SYSCALL_DEFINE2(stat, const char __user *, filename, SYSCALL_DEFINE2()
178 struct __old_kernel_stat __user *, statbuf) SYSCALL_DEFINE2()
190 SYSCALL_DEFINE2(lstat, const char __user *, filename, SYSCALL_DEFINE2()
191 struct __old_kernel_stat __user *, statbuf) SYSCALL_DEFINE2()
203 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) SYSCALL_DEFINE2()
229 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) cp_new_stat()
266 SYSCALL_DEFINE2(newstat, const char __user *, filename, SYSCALL_DEFINE2()
267 struct stat __user *, statbuf) SYSCALL_DEFINE2()
277 SYSCALL_DEFINE2(newlstat, const char __user *, filename, SYSCALL_DEFINE2()
278 struct stat __user *, statbuf) SYSCALL_DEFINE2()
291 SYSCALL_DEFINE4(newfstatat, int, dfd, const char __user *, filename, SYSCALL_DEFINE4()
292 struct stat __user *, statbuf, int, flag) SYSCALL_DEFINE4()
304 SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf) SYSCALL_DEFINE2()
315 SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname, SYSCALL_DEFINE4()
316 char __user *, buf, int, bufsiz) SYSCALL_DEFINE4()
349 SYSCALL_DEFINE3(readlink, const char __user *, path, char __user *, buf, SYSCALL_DEFINE3()
363 static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf) cp_new_stat64()
398 SYSCALL_DEFINE2(stat64, const char __user *, filename, SYSCALL_DEFINE2()
399 struct stat64 __user *, statbuf) SYSCALL_DEFINE2()
410 SYSCALL_DEFINE2(lstat64, const char __user *, filename, SYSCALL_DEFINE2()
411 struct stat64 __user *, statbuf) SYSCALL_DEFINE2()
422 SYSCALL_DEFINE2(fstat64, unsigned long, fd, struct stat64 __user *, statbuf) SYSCALL_DEFINE2()
433 SYSCALL_DEFINE4(fstatat64, int, dfd, const char __user *, filename, SYSCALL_DEFINE4()
434 struct stat64 __user *, statbuf, int, flag) SYSCALL_DEFINE4()
H A Dreaddir.c73 struct old_linux_dirent __user * dirent;
82 struct old_linux_dirent __user * dirent; fillonedir()
111 struct old_linux_dirent __user *, dirent, unsigned int, count) SYSCALL_DEFINE3()
146 struct linux_dirent __user * current_dir;
147 struct linux_dirent __user * previous;
155 struct linux_dirent __user * dirent; filldir()
184 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) filldir()
187 dirent = (void __user *)dirent + reclen; filldir()
197 struct linux_dirent __user *, dirent, unsigned int, count) SYSCALL_DEFINE3()
200 struct linux_dirent __user * lastdirent; SYSCALL_DEFINE3()
231 struct linux_dirent64 __user * current_dir;
232 struct linux_dirent64 __user * previous;
240 struct linux_dirent64 __user *dirent; filldir64()
268 dirent = (void __user *)dirent + reclen; filldir64()
278 struct linux_dirent64 __user *, dirent, unsigned int, count) SYSCALL_DEFINE3()
281 struct linux_dirent64 __user * lastdirent; SYSCALL_DEFINE3()
H A Dstatfs.c77 int user_statfs(const char __user *pathname, struct kstatfs *st) user_statfs()
106 static int do_statfs_native(struct kstatfs *st, struct statfs __user *p) do_statfs_native()
148 static int do_statfs64(struct kstatfs *st, struct statfs64 __user *p) do_statfs64()
172 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) SYSCALL_DEFINE2()
181 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) SYSCALL_DEFINE3()
193 SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf) SYSCALL_DEFINE2()
202 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) SYSCALL_DEFINE3()
228 SYSCALL_DEFINE2(ustat, unsigned, dev, struct ustat __user *, ubuf) SYSCALL_DEFINE2()
H A Dbinfmt_aout.c50 void __user *dump_start; aout_core_dump()
54 # define START_DATA(u) ((void __user *)u.start_data) aout_core_dump()
56 # define START_DATA(u) ((void __user *)((u.u_tsize << PAGE_SHIFT) + \ aout_core_dump()
59 # define START_STACK(u) ((void __user *)u.start_stack) aout_core_dump()
144 static unsigned long __user *create_aout_tables(char __user *p, struct linux_binprm * bprm) create_aout_tables()
146 char __user * __user *argv; create_aout_tables()
147 char __user * __user *envp; create_aout_tables()
148 unsigned long __user *sp; create_aout_tables()
152 sp = (void __user *)((-(unsigned long)sizeof(char *)) & (unsigned long) p); create_aout_tables()
167 envp = (char __user * __user *) sp; create_aout_tables()
169 argv = (char __user * __user *) sp; create_aout_tables()
329 (unsigned long) create_aout_tables((char __user *) bprm->p, bprm); load_aout_binary()
H A Dxattr.c322 setxattr(struct dentry *d, const char __user *name, const void __user *value, setxattr()
367 static int path_setxattr(const char __user *pathname, path_setxattr()
368 const char __user *name, const void __user *value, path_setxattr()
390 SYSCALL_DEFINE5(setxattr, const char __user *, pathname, SYSCALL_DEFINE5()
391 const char __user *, name, const void __user *, value, SYSCALL_DEFINE5()
397 SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, SYSCALL_DEFINE5()
398 const char __user *, name, const void __user *, value, SYSCALL_DEFINE5()
404 SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name, SYSCALL_DEFINE5()
405 const void __user *,value, size_t, size, int, flags) SYSCALL_DEFINE5()
426 getxattr(struct dentry *d, const char __user *name, void __user *value, getxattr()
471 static ssize_t path_getxattr(const char __user *pathname, path_getxattr()
472 const char __user *name, void __user *value, path_getxattr()
490 SYSCALL_DEFINE4(getxattr, const char __user *, pathname, SYSCALL_DEFINE4()
491 const char __user *, name, void __user *, value, size_t, size) SYSCALL_DEFINE4()
496 SYSCALL_DEFINE4(lgetxattr, const char __user *, pathname, SYSCALL_DEFINE4()
497 const char __user *, name, void __user *, value, size_t, size) SYSCALL_DEFINE4()
502 SYSCALL_DEFINE4(fgetxattr, int, fd, const char __user *, name, SYSCALL_DEFINE4()
503 void __user *, value, size_t, size) SYSCALL_DEFINE4()
520 listxattr(struct dentry *d, char __user *list, size_t size) listxattr()
554 static ssize_t path_listxattr(const char __user *pathname, char __user *list, path_listxattr()
572 SYSCALL_DEFINE3(listxattr, const char __user *, pathname, char __user *, list, SYSCALL_DEFINE3()
578 SYSCALL_DEFINE3(llistxattr, const char __user *, pathname, char __user *, list, SYSCALL_DEFINE3()
584 SYSCALL_DEFINE3(flistxattr, int, fd, char __user *, list, size_t, size) SYSCALL_DEFINE3()
601 removexattr(struct dentry *d, const char __user *name) removexattr()
615 static int path_removexattr(const char __user *pathname, path_removexattr()
616 const char __user *name, unsigned int lookup_flags) path_removexattr()
637 SYSCALL_DEFINE2(removexattr, const char __user *, pathname, SYSCALL_DEFINE2()
638 const char __user *, name) SYSCALL_DEFINE2()
643 SYSCALL_DEFINE2(lremovexattr, const char __user *, pathname, SYSCALL_DEFINE2()
644 const char __user *, name) SYSCALL_DEFINE2()
649 SYSCALL_DEFINE2(fremovexattr, int, fd, const char __user *, name) SYSCALL_DEFINE2()
H A Dread_write.c24 typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *);
303 unsigned long, offset_low, loff_t __user *, result, SYSCALL_DEFINE5()
411 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) new_sync_read()
428 ssize_t __vfs_read(struct file *file, char __user *buf, size_t count, __vfs_read()
440 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) vfs_read()
467 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) new_sync_write()
469 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; new_sync_write()
485 ssize_t __vfs_write(struct file *file, const char __user *p, size_t count, __vfs_write()
500 const char __user *p; __kernel_write()
508 p = (__force const char __user *)buf; __kernel_write()
523 ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) vfs_write()
562 SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count) SYSCALL_DEFINE3()
577 SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, SYSCALL_DEFINE3()
594 SYSCALL_DEFINE4(pread64, unsigned int, fd, char __user *, buf, SYSCALL_DEFINE4()
614 SYSCALL_DEFINE4(pwrite64, unsigned int, fd, const char __user *, buf, SYSCALL_DEFINE4()
699 ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, rw_copy_check_uvector()
749 void __user *buf = iov[seg].iov_base; rw_copy_check_uvector()
775 const struct iovec __user * uvector, do_readv_writev()
826 ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, vfs_readv()
839 ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, vfs_writev()
852 SYSCALL_DEFINE3(readv, unsigned long, fd, const struct iovec __user *, vec, SYSCALL_DEFINE3()
872 SYSCALL_DEFINE3(writev, unsigned long, fd, const struct iovec __user *, vec, SYSCALL_DEFINE3()
898 SYSCALL_DEFINE5(preadv, unsigned long, fd, const struct iovec __user *, vec, SYSCALL_DEFINE5()
922 SYSCALL_DEFINE5(pwritev, unsigned long, fd, const struct iovec __user *, vec, SYSCALL_DEFINE5()
949 const struct compat_iovec __user *uvector, compat_do_readv_writev()
1001 const struct compat_iovec __user *vec, compat_readv()
1023 const struct compat_iovec __user *,vec, COMPAT_SYSCALL_DEFINE3()
1041 const struct compat_iovec __user *vec, __compat_sys_preadv64()
1061 const struct compat_iovec __user *,vec, COMPAT_SYSCALL_DEFINE4()
1069 const struct compat_iovec __user *,vec, COMPAT_SYSCALL_DEFINE5()
1078 const struct compat_iovec __user *vec, compat_writev()
1100 const struct compat_iovec __user *, vec, COMPAT_SYSCALL_DEFINE3()
1118 const struct compat_iovec __user *vec, __compat_sys_pwritev64()
1138 const struct compat_iovec __user *,vec, COMPAT_SYSCALL_DEFINE4()
1146 const struct compat_iovec __user *,vec, COMPAT_SYSCALL_DEFINE5()
1255 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) SYSCALL_DEFINE4()
1274 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) SYSCALL_DEFINE4()
1293 compat_off_t __user *, offset, compat_size_t, count) COMPAT_SYSCALL_DEFINE4()
1313 compat_loff_t __user *, offset, compat_size_t, count) COMPAT_SYSCALL_DEFINE4()
/linux-4.4.14/arch/nios2/include/asm/
H A Duaccess.h71 static inline unsigned long __must_check __clear_user(void __user *to, __clear_user()
90 static inline unsigned long __must_check clear_user(void __user *to, clear_user()
98 extern long __copy_from_user(void *to, const void __user *from,
100 extern long __copy_to_user(void __user *to, const void *from, unsigned long n);
102 static inline long copy_from_user(void *to, const void __user *from, copy_from_user()
110 static inline long copy_to_user(void __user *to, const void *from, copy_to_user()
118 extern long strncpy_from_user(char *__to, const char __user *__from,
120 extern long strnlen_user(const char __user *s, long n);
168 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
178 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
204 __typeof__(*(ptr)) __user *__pu_ptr = (ptr); \
/linux-4.4.14/arch/arm64/kernel/
H A Dperf_callchain.c24 struct frame_tail __user *fp;
32 static struct frame_tail __user * user_backtrace()
33 user_backtrace(struct frame_tail __user *tail, user_backtrace()
77 static struct compat_frame_tail __user * compat_user_backtrace()
78 compat_user_backtrace(struct compat_frame_tail __user *tail, compat_user_backtrace()
101 if (tail + 1 >= (struct compat_frame_tail __user *) compat_user_backtrace()
105 return (struct compat_frame_tail __user *)compat_ptr(buftail.fp) - 1; compat_user_backtrace()
121 struct frame_tail __user *tail; perf_callchain_user()
123 tail = (struct frame_tail __user *)regs->regs[29]; perf_callchain_user()
131 struct compat_frame_tail __user *tail; perf_callchain_user()
133 tail = (struct compat_frame_tail __user *)regs->compat_fp - 1; perf_callchain_user()
/linux-4.4.14/drivers/scsi/megaraid/
H A Dmegaraid_mm.h76 uint8_t __user *buffer;
80 uint8_t __user *buffer;
90 char __user *data; /* buffer <= 4096 for 0x80 commands */
94 char __user *data;
/linux-4.4.14/arch/sparc/lib/
H A Duser_fixup.c35 unsigned long copy_from_user_fixup(void *to, const void __user *from, unsigned long size) copy_from_user_fixup()
47 unsigned long copy_to_user_fixup(void __user *to, const void *from, unsigned long size) copy_to_user_fixup()
55 unsigned long copy_in_user_fixup(void __user *to, void __user *from, unsigned long size) copy_in_user_fixup()
/linux-4.4.14/arch/x86/lib/
H A Dusercopy_64.c15 unsigned long __clear_user(void __user *addr, unsigned long size) __clear_user()
49 unsigned long clear_user(void __user *to, unsigned long n) clear_user()
57 unsigned long copy_in_user(void __user *to, const void __user *from, unsigned len) copy_in_user()
H A Dusercopy_32.c71 clear_user(void __user *to, unsigned long n) clear_user()
92 __clear_user(void __user *to, unsigned long n) __clear_user()
101 __copy_user_intel(void __user *to, const void *from, unsigned long size) __copy_user_intel()
205 __copy_user_zeroing_intel(void *to, const void __user *from, unsigned long size) __copy_user_zeroing_intel()
302 const void __user *from, unsigned long size) __copy_user_zeroing_intel_nocache()
396 const void __user *from, unsigned long size) __copy_user_intel_nocache()
489 unsigned long __copy_user_zeroing_intel(void *to, const void __user *from,
491 unsigned long __copy_user_intel(void __user *to, const void *from,
494 const void __user *from, unsigned long size);
570 unsigned long __copy_to_user_ll(void __user *to, const void *from, __copy_to_user_ll()
583 unsigned long __copy_from_user_ll(void *to, const void __user *from, __copy_from_user_ll()
596 unsigned long __copy_from_user_ll_nozero(void *to, const void __user *from, __copy_from_user_ll_nozero()
603 n = __copy_user_intel((void __user *)to, __copy_from_user_ll_nozero()
610 unsigned long __copy_from_user_ll_nocache(void *to, const void __user *from, __copy_from_user_ll_nocache()
627 unsigned long __copy_from_user_ll_nocache_nozero(void *to, const void __user *from, __copy_from_user_ll_nocache_nozero()
658 unsigned long _copy_to_user(void __user *to, const void *from, unsigned n) _copy_to_user()
683 unsigned long _copy_from_user(void *to, const void __user *from, unsigned n) _copy_from_user()
/linux-4.4.14/arch/m68k/include/asm/
H A Duaccess_mm.h17 static inline int access_ok(int type, const void __user *addr, access_ok()
100 const void __user *__pu_ptr = (ptr); \
202 unsigned long __generic_copy_from_user(void *to, const void __user *from, unsigned long n);
203 unsigned long __generic_copy_to_user(void __user *to, const void *from, unsigned long n);
239 __constant_copy_from_user(void *to, const void __user *from, unsigned long n) __constant_copy_from_user()
245 __get_user_asm(res, *(u8 *)to, (u8 __user *)from, u8, b, d, 1); __constant_copy_from_user()
248 __get_user_asm(res, *(u16 *)to, (u16 __user *)from, u16, w, r, 2); __constant_copy_from_user()
254 __get_user_asm(res, *(u32 *)to, (u32 __user *)from, u32, l, r, 4); __constant_copy_from_user()
320 __constant_copy_to_user(void __user *to, const void *from, unsigned long n) __constant_copy_to_user()
326 __put_user_asm(res, *(u8 *)from, (u8 __user *)to, b, d, 1); __constant_copy_to_user()
329 __put_user_asm(res, *(u16 *)from, (u16 __user *)to, w, r, 2); __constant_copy_to_user()
335 __put_user_asm(res, *(u32 *)from, (u32 __user *)to, l, r, 4); __constant_copy_to_user()
385 extern long strncpy_from_user(char *dst, const char __user *src, long count);
386 extern __must_check long strlen_user(const char __user *str);
387 extern __must_check long strnlen_user(const char __user *str, long n);
389 unsigned long __clear_user(void __user *to, unsigned long n);
/linux-4.4.14/arch/metag/kernel/
H A Dperf_callchain.c30 static struct metag_frame __user * user_backtrace()
31 user_backtrace(struct metag_frame __user *user_frame, user_backtrace()
62 struct metag_frame __user *frame; perf_callchain_user()
64 frame = (struct metag_frame __user *)sp; perf_callchain_user()
H A Dptrace.c29 void *kbuf, void __user *ubuf) metag_gp_regs_copyout()
86 const void *kbuf, const void __user *ubuf) metag_gp_regs_copyin()
141 void *kbuf, void __user *ubuf) metag_gp_regs_get()
150 const void *kbuf, const void __user *ubuf) metag_gp_regs_set()
158 void *kbuf, void __user *ubuf) metag_cb_regs_copyout()
174 const void *kbuf, const void __user *ubuf) metag_cb_regs_copyin()
187 void *kbuf, void __user *ubuf) metag_cb_regs_get()
196 const void *kbuf, const void __user *ubuf) metag_cb_regs_set()
204 void *kbuf, void __user *ubuf) metag_rp_state_copyout()
241 const void *kbuf, const void __user *ubuf) metag_rp_state_copyin()
276 void *kbuf, void __user *ubuf) metag_rp_state_get()
285 const void *kbuf, const void __user *ubuf) metag_rp_state_set()
294 void *kbuf, void __user *ubuf) metag_tls_get()
296 void __user *tls = target->thread.tls_ptr; metag_tls_get()
303 const void *kbuf, const void __user *ubuf) metag_tls_set()
306 void __user *tls; metag_tls_set()
H A Dsignal.c46 struct sigcontext __user *sc) restore_sigcontext()
74 struct rt_sigframe __user *frame; sys_rt_sigreturn()
77 frame = (__force struct rt_sigframe __user *)(regs->REG_SP - sys_rt_sigreturn()
102 static int setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, setup_sigcontext()
143 static void __user *get_sigframe(struct ksignal *ksig, unsigned long sp) get_sigframe()
148 return (void __user *)sp; get_sigframe()
154 struct rt_sigframe __user *frame; setup_rt_frame()
166 err |= __put_user(0, (unsigned long __user *)&frame->uc.uc_link); setup_rt_frame()
179 err |= __put_user(code, (unsigned long __user *)(&frame->retcode[0])); setup_rt_frame()
183 err |= __put_user(code, (unsigned long __user *)(&frame->retcode[1])); setup_rt_frame()
/linux-4.4.14/arch/arm/nwfpe/
H A Dfpa11_cpdt.c31 static inline void loadSingle(const unsigned int Fn, const unsigned int __user *pMem) loadSingle()
38 static inline void loadDouble(const unsigned int Fn, const unsigned int __user *pMem) loadDouble()
54 static inline void loadExtended(const unsigned int Fn, const unsigned int __user *pMem) loadExtended()
71 static inline void loadMultiple(const unsigned int Fn, const unsigned int __user *pMem) loadMultiple()
103 static inline void storeSingle(struct roundingData *roundData, const unsigned int Fn, unsigned int __user *pMem) storeSingle()
129 static inline void storeDouble(struct roundingData *roundData, const unsigned int Fn, unsigned int __user *pMem) storeDouble()
162 static inline void storeExtended(const unsigned int Fn, unsigned int __user *pMem) storeExtended()
194 static inline void storeMultiple(const unsigned int Fn, unsigned int __user *pMem) storeMultiple()
226 unsigned int __user *pBase, *pAddress, *pFinal; PerformLDF()
229 pBase = (unsigned int __user *) readRegister(getRn(opcode)); PerformLDF()
269 unsigned int __user *pBase, *pAddress, *pFinal; PerformSTF()
277 pBase = (unsigned int __user *) readRegister(getRn(opcode)); PerformSTF()
320 unsigned int __user *pBase, *pAddress, *pFinal; PerformLFM()
323 pBase = (unsigned int __user *) readRegister(getRn(opcode)); PerformLFM()
356 unsigned int __user *pBase, *pAddress, *pFinal; PerformSFM()
359 pBase = (unsigned int __user *) readRegister(getRn(opcode)); PerformSFM()
/linux-4.4.14/arch/avr32/include/asm/
H A Dsyscalls.h19 asmlinkage int sys_cacheflush(int, void __user *, size_t);
/linux-4.4.14/arch/mips/math-emu/
H A Ddsemul.c36 struct emuframe __user *fr; mips_dsemul()
68 fr = (struct emuframe __user *) mips_dsemul()
76 err = __put_user(ir >> 16, (u16 __user *)(&fr->emul)); mips_dsemul()
77 err |= __put_user(ir & 0xffff, (u16 __user *)((long)(&fr->emul) + 2)); mips_dsemul()
78 err |= __put_user(BREAK_MATH >> 16, (u16 __user *)(&fr->badinst)); mips_dsemul()
79 err |= __put_user(BREAK_MATH & 0xffff, (u16 __user *)((long)(&fr->badinst) + 2)); mips_dsemul()
103 struct emuframe __user *fr; do_dsemulret()
109 fr = (struct emuframe __user *) do_dsemulret()
126 err = __get_user(instr[0], (u16 __user *)(&fr->badinst)); do_dsemulret()
127 err |= __get_user(instr[1], (u16 __user *)((long)(&fr->badinst) + 2)); do_dsemulret()
/linux-4.4.14/drivers/s390/char/
H A Dsclp_ctl.c44 static void __user *u64_to_uptr(u64 value) u64_to_uptr()
49 return (void __user *)(unsigned long)value; u64_to_uptr()
55 static int sclp_ctl_ioctl_sccb(void __user *user_area) sclp_ctl_ioctl_sccb()
94 void __user *argp; sclp_ctl_ioctl()
99 argp = (void __user *) arg; sclp_ctl_ioctl()
/linux-4.4.14/fs/proc/
H A Dpage.c28 static ssize_t kpagecount_read(struct file *file, char __user *buf, kpagecount_read()
31 u64 __user *out = (u64 __user *)buf; kpagecount_read()
65 *ppos += (char __user *)out - buf; kpagecount_read()
67 ret = (char __user *)out - buf; kpagecount_read()
196 static ssize_t kpageflags_read(struct file *file, char __user *buf, kpageflags_read()
199 u64 __user *out = (u64 __user *)buf; kpageflags_read()
228 *ppos += (char __user *)out - buf; kpageflags_read()
230 ret = (char __user *)out - buf; kpageflags_read()
240 static ssize_t kpagecgroup_read(struct file *file, char __user *buf, kpagecgroup_read()
243 u64 __user *out = (u64 __user *)buf; kpagecgroup_read()
278 *ppos += (char __user *)out - buf; kpagecgroup_read()
280 ret = (char __user *)out - buf; kpagecgroup_read()
/linux-4.4.14/arch/arm64/include/asm/
H A Duaccess.h177 __typeof__(*(ptr)) __user *__p = (ptr); \
243 __typeof__(*(ptr)) __user *__p = (ptr); \
250 extern unsigned long __must_check __copy_from_user(void *to, const void __user *from, unsigned long n);
251 extern unsigned long __must_check __copy_to_user(void __user *to, const void *from, unsigned long n);
252 extern unsigned long __must_check __copy_in_user(void __user *to, const void __user *from, unsigned long n);
253 extern unsigned long __must_check __clear_user(void __user *addr, unsigned long n);
255 static inline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
264 static inline unsigned long __must_check copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
271 static inline unsigned long __must_check copy_in_user(void __user *to, const void __user *from, unsigned long n) copy_in_user()
281 static inline unsigned long __must_check clear_user(void __user *to, unsigned long n) clear_user()
288 extern long strncpy_from_user(char *dest, const char __user *src, long count);
290 extern __must_check long strlen_user(const char __user *str);
291 extern __must_check long strnlen_user(const char __user *str, long n);
/linux-4.4.14/arch/powerpc/perf/
H A Dcallchain.c114 static int read_user_stack_slow(void __user *ptr, void *buf, int nb) read_user_stack_slow()
155 static int read_user_stack_64(unsigned long __user *ptr, unsigned long *ret) read_user_stack_64()
171 static int read_user_stack_32(unsigned int __user *ptr, unsigned int *ret) read_user_stack_32()
224 struct signal_frame_64 __user *sf; sane_signal_64_frame()
227 sf = (struct signal_frame_64 __user *) sp; sane_signal_64_frame()
228 if (read_user_stack_64((unsigned long __user *) &sf->pinfo, &pinfo) || sane_signal_64_frame()
229 read_user_stack_64((unsigned long __user *) &sf->puc, &puc)) sane_signal_64_frame()
242 struct signal_frame_64 __user *sigframe; perf_callchain_user_64()
243 unsigned long __user *fp, *uregs; perf_callchain_user_64()
251 fp = (unsigned long __user *) sp; perf_callchain_user_64()
270 sigframe = (struct signal_frame_64 __user *) sp; perf_callchain_user_64()
307 static int read_user_stack_32(unsigned int __user *ptr, unsigned int *ret) read_user_stack_32()
390 struct signal_frame_32 __user *sf; sane_signal_32_frame()
393 sf = (struct signal_frame_32 __user *) (unsigned long) sp; sane_signal_32_frame()
394 if (read_user_stack_32((unsigned int __user *) &sf->sctx.regs, &regs)) sane_signal_32_frame()
401 struct rt_signal_frame_32 __user *sf; sane_rt_signal_32_frame()
404 sf = (struct rt_signal_frame_32 __user *) (unsigned long) sp; sane_rt_signal_32_frame()
405 if (read_user_stack_32((unsigned int __user *) &sf->uc.uc_regs, &regs)) sane_rt_signal_32_frame()
410 static unsigned int __user *signal_frame_32_regs(unsigned int sp, signal_frame_32_regs()
413 struct mcontext32 __user *mctx = NULL; signal_frame_32_regs()
414 struct signal_frame_32 __user *sf; signal_frame_32_regs()
415 struct rt_signal_frame_32 __user *rt_sf; signal_frame_32_regs()
426 sf = (struct signal_frame_32 __user *) (unsigned long) sp; signal_frame_32_regs()
433 rt_sf = (struct rt_signal_frame_32 __user *) (unsigned long) sp; signal_frame_32_regs()
449 unsigned int __user *fp, *uregs; perf_callchain_user_32()
457 fp = (unsigned int __user *) (unsigned long) sp; perf_callchain_user_32()
/linux-4.4.14/arch/x86/kernel/fpu/
H A Dsignal.c20 static inline int check_for_xstate(struct fxregs_state __user *buf, check_for_xstate()
21 void __user *fpstate, check_for_xstate()
44 if (__get_user(magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size)) check_for_xstate()
54 static inline int save_fsave_header(struct task_struct *tsk, void __user *buf) save_fsave_header()
59 struct _fpstate_32 __user *fp = buf; save_fsave_header()
68 struct fregs_state __user *fp = buf; save_fsave_header()
77 static inline int save_xstate_epilog(void __user *buf, int ia32_frame) save_xstate_epilog()
79 struct xregs_state __user *x = buf; save_xstate_epilog()
117 static inline int copy_fpregs_to_sigframe(struct xregs_state __user *buf) copy_fpregs_to_sigframe()
124 err = copy_fxregs_to_user((struct fxregs_state __user *) buf); copy_fpregs_to_sigframe()
126 err = copy_fregs_to_user((struct fregs_state __user *) buf); copy_fpregs_to_sigframe()
153 int copy_fpstate_to_sigframe(void __user *buf, void __user *buf_fx, int size) copy_fpstate_to_sigframe()
168 (struct _fpstate_32 __user *) buf) ? -1 : 1; copy_fpstate_to_sigframe()
229 static inline int copy_user_to_fpregs_zeroing(void __user *buf, u64 xbv, int fx_only) copy_user_to_fpregs_zeroing()
248 static int __fpu__restore_sig(void __user *buf, void __user *buf_fx, int size) __fpu__restore_sig()
350 int fpu__restore_sig(void __user *buf, int ia32_frame) fpu__restore_sig()
352 void __user *buf_fx = buf; fpu__restore_sig()
/linux-4.4.14/arch/x86/kernel/
H A Dsignal.c64 int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) restore_sigcontext()
67 void __user *buf; restore_sigcontext()
112 buf = (void __user *)buf_val; restore_sigcontext()
122 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, setup_sigcontext()
130 put_user_ex(get_user_gs(regs), (unsigned int __user *)&sc->gs); setup_sigcontext()
131 put_user_ex(regs->fs, (unsigned int __user *)&sc->fs); setup_sigcontext()
132 put_user_ex(regs->es, (unsigned int __user *)&sc->es); setup_sigcontext()
133 put_user_ex(regs->ds, (unsigned int __user *)&sc->ds); setup_sigcontext()
159 put_user_ex(regs->cs, (unsigned int __user *)&sc->cs); setup_sigcontext()
162 put_user_ex(regs->ss, (unsigned int __user *)&sc->ss); setup_sigcontext()
201 static void __user * get_sigframe()
203 void __user **fpstate) get_sigframe()
233 *fpstate = (void __user *)sp; get_sigframe()
243 return (void __user *)-1L; get_sigframe()
247 copy_fpstate_to_sigframe(*fpstate, (void __user *)buf_fx, math_size) < 0) get_sigframe()
248 return (void __user *)-1L; get_sigframe()
250 return (void __user *)sp; get_sigframe()
280 struct sigframe __user *frame; __setup_frame()
281 void __user *restorer; __setup_frame()
283 void __user *fpstate = NULL; __setup_frame()
343 struct rt_sigframe __user *frame; __setup_rt_frame()
344 void __user *restorer; __setup_rt_frame()
346 void __user *fpstate = NULL; __setup_rt_frame()
409 struct rt_sigframe __user *frame; __setup_rt_frame()
410 void __user *fp = NULL; __setup_rt_frame()
475 struct rt_sigframe_x32 __user *frame; x32_setup_rt_frame()
476 void __user *restorer; x32_setup_rt_frame()
478 void __user *fpstate = NULL; x32_setup_rt_frame()
543 struct sigframe __user *frame; sys_sigreturn()
546 frame = (struct sigframe __user *)(regs->sp - 8); sys_sigreturn()
571 struct rt_sigframe __user *frame; sys_rt_sigreturn()
574 frame = (struct rt_sigframe __user *)(regs->sp - sizeof(long)); sys_rt_sigreturn()
743 void signal_fault(struct pt_regs *regs, void __user *frame, char *where) signal_fault()
764 struct rt_sigframe_x32 __user *frame; sys32_x32_rt_sigreturn()
767 frame = (struct rt_sigframe_x32 __user *)(regs->sp - 8); sys32_x32_rt_sigreturn()
/linux-4.4.14/drivers/gpu/drm/r128/
H A Dr128_ioc32.c66 drm_r128_init_t __user *init; compat_r128_init()
68 if (copy_from_user(&init32, (void __user *)arg, sizeof(init32))) compat_r128_init()
114 drm_r128_depth_t __user *depth; compat_r128_depth()
116 if (copy_from_user(&depth32, (void __user *)arg, sizeof(depth32))) compat_r128_depth()
123 || __put_user((int __user *)(unsigned long)depth32.x, &depth->x) compat_r128_depth()
124 || __put_user((int __user *)(unsigned long)depth32.y, &depth->y) compat_r128_depth()
125 || __put_user((unsigned int __user *)(unsigned long)depth32.buffer, compat_r128_depth()
127 || __put_user((unsigned char __user *)(unsigned long)depth32.mask, compat_r128_depth()
143 drm_r128_stipple_t __user *stipple; compat_r128_stipple()
145 if (copy_from_user(&stipple32, (void __user *)arg, sizeof(stipple32))) compat_r128_stipple()
150 || __put_user((unsigned int __user *)(unsigned long)stipple32.mask, compat_r128_stipple()
166 drm_r128_getparam_t __user *getparam; compat_r128_getparam()
168 if (copy_from_user(&getparam32, (void __user *)arg, sizeof(getparam32))) compat_r128_getparam()
174 || __put_user((void __user *)(unsigned long)getparam32.value, compat_r128_getparam()
/linux-4.4.14/drivers/input/
H A Dinput-compat.c17 int input_event_from_user(const char __user *buffer, input_event_from_user()
41 int input_event_to_user(char __user *buffer, input_event_to_user()
65 int input_ff_effect_from_user(const char __user *buffer, size_t size, input_ff_effect_from_user()
102 int input_event_from_user(const char __user *buffer, input_event_from_user()
111 int input_event_to_user(char __user *buffer, input_event_to_user()
120 int input_ff_effect_from_user(const char __user *buffer, size_t size, input_ff_effect_from_user()
H A Dinput-compat.h83 int input_event_from_user(const char __user *buffer,
86 int input_event_to_user(char __user *buffer,
89 int input_ff_effect_from_user(const char __user *buffer, size_t size,
/linux-4.4.14/drivers/char/
H A Dgeneric_nvram.c56 static ssize_t read_nvram(struct file *file, char __user *buf, read_nvram()
60 char __user *p = buf; read_nvram()
73 static ssize_t write_nvram(struct file *file, const char __user *buf, write_nvram()
77 const char __user *p = buf; write_nvram()
104 if (copy_from_user(&part, (void __user*)arg, sizeof(part)) != 0) nvram_ioctl()
109 if (copy_to_user((void __user*)arg, &offset, sizeof(offset)) != 0) nvram_ioctl()
H A Ddsp56k.c125 static int dsp56k_upload(u_char __user *bin, int len) dsp56k_upload()
181 static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count, dsp56k_read()
207 short __user *data; dsp56k_read()
210 data = (short __user *) buf; dsp56k_read()
226 long __user *data; dsp56k_read()
229 data = (long __user *) buf; dsp56k_read()
244 static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count, dsp56k_write()
269 const short __user *data; dsp56k_write()
272 data = (const short __user *)buf; dsp56k_write()
288 const long __user *data; dsp56k_write()
291 data = (const long __user *)buf; dsp56k_write()
310 void __user *argp = (void __user *)arg; dsp56k_ioctl()
319 char __user *bin; dsp56k_ioctl()
321 struct dsp56k_upload __user *binary = argp; dsp56k_ioctl()
360 struct dsp56k_host_flags __user *hf = argp; dsp56k_ioctl()
/linux-4.4.14/fs/efivarfs/
H A Dfile.c18 const char __user *userbuf, size_t count, loff_t *ppos) efivarfs_file_write()
67 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, efivarfs_file_read()
108 efivarfs_ioc_getxflags(struct file *file, void __user *arg) efivarfs_ioc_getxflags()
124 efivarfs_ioc_setxflags(struct file *file, void __user *arg) efivarfs_ioc_setxflags()
163 void __user *arg = (void __user *)p; efivarfs_file_ioctl()
/linux-4.4.14/fs/ext2/
H A Dioctl.c34 return put_user(flags, (int __user *) arg); ext2_ioctl()
47 if (get_user(flags, (int __user *) arg)) { ext2_ioctl()
91 return put_user(inode->i_generation, (int __user *) arg); ext2_ioctl()
100 if (get_user(generation, (int __user *) arg)) { ext2_ioctl()
120 return put_user(rsv_window_size, (int __user *)arg); ext2_ioctl()
131 if (get_user(rsv_window_size, (int __user *)arg)) ext2_ioctl()
/linux-4.4.14/arch/parisc/kernel/
H A Dsignal32.h37 int copy_siginfo_to_user32 (compat_siginfo_t __user *to, const siginfo_t *from);
38 int copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from);
84 long restore_sigcontext32(struct compat_sigcontext __user *sc,
85 struct compat_regfile __user *rf,
87 long setup_sigcontext32(struct compat_sigcontext __user *sc,
88 struct compat_regfile __user *rf,
/linux-4.4.14/sound/synth/emux/
H A Demux_hwdep.c34 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) snd_emux_hwdep_load_patch()
60 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) snd_emux_hwdep_misc_mode()
92 return put_user(SNDRV_EMUX_VERSION, (unsigned int __user *)arg); snd_emux_hwdep_ioctl()
94 return snd_emux_hwdep_load_patch(emu, (void __user *)arg); snd_emux_hwdep_ioctl()
104 return put_user(size, (unsigned int __user *)arg); snd_emux_hwdep_ioctl()
108 return snd_emux_hwdep_misc_mode(emu, (void __user *)arg); snd_emux_hwdep_ioctl()
/linux-4.4.14/arch/s390/include/asm/
H A Duaccess.h113 unsigned long __must_check __copy_from_user(void *to, const void __user *from,
131 unsigned long __must_check __copy_to_user(void __user *to, const void *from,
165 static inline int __put_user_fn(void *x, void __user *ptr, unsigned long size) __put_user_fn()
171 static inline int __get_user_fn(void *x, const void __user *ptr, unsigned long size) __get_user_fn()
278 copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
308 copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
321 __copy_in_user(void __user *to, const void __user *from, unsigned long n);
324 copy_in_user(void __user *to, const void __user *from, unsigned long n) copy_in_user()
334 long __strncpy_from_user(char *dst, const char __user *src, long count);
337 strncpy_from_user(char *dst, const char __user *src, long count) strncpy_from_user()
343 unsigned long __must_check __strnlen_user(const char __user *src, unsigned long count);
345 static inline unsigned long strnlen_user(const char __user *src, unsigned long n) strnlen_user()
371 unsigned long __must_check __clear_user(void __user *to, unsigned long size);
373 static inline unsigned long __must_check clear_user(void __user *to, unsigned long n) clear_user()
379 int copy_to_user_real(void __user *dest, void *src, unsigned long count);
/linux-4.4.14/arch/microblaze/include/asm/
H A Duaccess.h93 static inline int access_ok(int type, const void __user *addr, access_ok()
122 extern unsigned long __copy_tofrom_user(void __user *to,
123 const void __user *from, unsigned long size);
126 static inline unsigned long __must_check __clear_user(void __user *to, __clear_user()
145 static inline unsigned long __must_check clear_user(void __user *to, clear_user()
200 const typeof(*(ptr)) __user *__gu_addr = (ptr); \
312 typeof(*(ptr)) __user *__pu_addr = (ptr); \
368 __copy_tofrom_user((__force void __user *)(to), \
369 (void __user *)(from), (n))
374 const void __user *from, unsigned long n) copy_from_user()
383 __copy_tofrom_user((void __user *)(to), \
384 (__force const void __user *)(from), (n))
387 static inline long copy_to_user(void __user *to, copy_to_user()
399 extern int __strncpy_user(char *to, const char __user *from, int len);
404 strncpy_from_user(char *dst, const char __user *src, long count) strncpy_from_user()
416 extern int __strnlen_user(const char __user *sstr, int len);
418 static inline long strnlen_user(const char __user *src, long n) strnlen_user()
/linux-4.4.14/drivers/media/v4l2-core/
H A Dv4l2-compat-ioctl32.c48 static int get_v4l2_window32(struct v4l2_window *kp, struct v4l2_window32 __user *up) get_v4l2_window32()
59 struct v4l2_clip32 __user *uclips; get_v4l2_window32()
60 struct v4l2_clip __user *kclips; get_v4l2_window32()
82 static int put_v4l2_window32(struct v4l2_window *kp, struct v4l2_window32 __user *up) put_v4l2_window32()
92 static inline int get_v4l2_pix_format(struct v4l2_pix_format *kp, struct v4l2_pix_format __user *up) get_v4l2_pix_format()
100 struct v4l2_pix_format_mplane __user *up) get_v4l2_pix_format_mplane()
107 static inline int put_v4l2_pix_format(struct v4l2_pix_format *kp, struct v4l2_pix_format __user *up) put_v4l2_pix_format()
115 struct v4l2_pix_format_mplane __user *up) put_v4l2_pix_format_mplane()
122 static inline int get_v4l2_vbi_format(struct v4l2_vbi_format *kp, struct v4l2_vbi_format __user *up) get_v4l2_vbi_format()
129 static inline int put_v4l2_vbi_format(struct v4l2_vbi_format *kp, struct v4l2_vbi_format __user *up) put_v4l2_vbi_format()
136 static inline int get_v4l2_sliced_vbi_format(struct v4l2_sliced_vbi_format *kp, struct v4l2_sliced_vbi_format __user *up) get_v4l2_sliced_vbi_format()
143 static inline int put_v4l2_sliced_vbi_format(struct v4l2_sliced_vbi_format *kp, struct v4l2_sliced_vbi_format __user *up) put_v4l2_sliced_vbi_format()
150 static inline int get_v4l2_sdr_format(struct v4l2_sdr_format *kp, struct v4l2_sdr_format __user *up) get_v4l2_sdr_format()
157 static inline int put_v4l2_sdr_format(struct v4l2_sdr_format *kp, struct v4l2_sdr_format __user *up) put_v4l2_sdr_format()
194 static int __get_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user *up) __get_v4l2_format32()
226 static int get_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user *up) get_v4l2_format32()
233 static int get_v4l2_create32(struct v4l2_create_buffers *kp, struct v4l2_create_buffers32 __user *up) get_v4l2_create32()
241 static int __put_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user *up) __put_v4l2_format32()
273 static int put_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user *up) put_v4l2_format32()
280 static int put_v4l2_create32(struct v4l2_create_buffers *kp, struct v4l2_create_buffers32 __user *up) put_v4l2_create32()
298 static int get_v4l2_standard32(struct v4l2_standard *kp, struct v4l2_standard32 __user *up) get_v4l2_standard32()
307 static int put_v4l2_standard32(struct v4l2_standard *kp, struct v4l2_standard32 __user *up) put_v4l2_standard32()
355 static int get_v4l2_plane32(struct v4l2_plane __user *up, struct v4l2_plane32 __user *up32, get_v4l2_plane32()
358 void __user *up_pln; get_v4l2_plane32()
384 static int put_v4l2_plane32(struct v4l2_plane __user *up, struct v4l2_plane32 __user *up32, put_v4l2_plane32()
407 static int get_v4l2_buffer32(struct v4l2_buffer *kp, struct v4l2_buffer32 __user *up) get_v4l2_buffer32()
409 struct v4l2_plane32 __user *uplane32; get_v4l2_buffer32()
410 struct v4l2_plane __user *uplane; get_v4l2_buffer32()
491 static int put_v4l2_buffer32(struct v4l2_buffer *kp, struct v4l2_buffer32 __user *up) put_v4l2_buffer32()
493 struct v4l2_plane32 __user *uplane32; put_v4l2_buffer32()
494 struct v4l2_plane __user *uplane; put_v4l2_buffer32()
522 uplane = (__force struct v4l2_plane __user *)kp->m.planes; put_v4l2_buffer32()
574 static int get_v4l2_framebuffer32(struct v4l2_framebuffer *kp, struct v4l2_framebuffer32 __user *up) get_v4l2_framebuffer32()
588 static int put_v4l2_framebuffer32(struct v4l2_framebuffer *kp, struct v4l2_framebuffer32 __user *up) put_v4l2_framebuffer32()
614 static inline int get_v4l2_input32(struct v4l2_input *kp, struct v4l2_input32 __user *up) get_v4l2_input32()
621 static inline int put_v4l2_input32(struct v4l2_input *kp, struct v4l2_input32 __user *up) put_v4l2_input32()
664 static int get_v4l2_ext_controls32(struct v4l2_ext_controls *kp, struct v4l2_ext_controls32 __user *up) get_v4l2_ext_controls32()
666 struct v4l2_ext_control32 __user *ucontrols; get_v4l2_ext_controls32()
667 struct v4l2_ext_control __user *kcontrols; get_v4l2_ext_controls32()
699 void __user *s; get_v4l2_ext_controls32()
713 static int put_v4l2_ext_controls32(struct v4l2_ext_controls *kp, struct v4l2_ext_controls32 __user *up) put_v4l2_ext_controls32()
715 struct v4l2_ext_control32 __user *ucontrols; put_v4l2_ext_controls32()
716 struct v4l2_ext_control __user *kcontrols = put_v4l2_ext_controls32()
717 (__force struct v4l2_ext_control __user *)kp->controls; put_v4l2_ext_controls32()
769 static int put_v4l2_event32(struct v4l2_event *kp, struct v4l2_event32 __user *up) put_v4l2_event32()
791 static int get_v4l2_edid32(struct v4l2_edid *kp, struct v4l2_edid32 __user *up) get_v4l2_edid32()
806 static int put_v4l2_edid32(struct v4l2_edid *kp, struct v4l2_edid32 __user *up) put_v4l2_edid32()
863 void __user *up = compat_ptr(arg); do_video_ioctl()
902 err = get_user(karg.vi, (s32 __user *)up); do_video_ioctl()
998 err = put_user(((s32)karg.vi), (s32 __user *)up); do_video_ioctl()
/linux-4.4.14/arch/parisc/include/asm/
H A Duaccess.h33 static inline long access_ok(int type, const void __user * addr, access_ok()
211 extern unsigned long lcopy_to_user(void __user *, const void *, unsigned long);
212 extern unsigned long lcopy_from_user(void *, const void __user *, unsigned long);
213 extern unsigned long lcopy_in_user(void __user *, const void __user *, unsigned long);
214 extern long strncpy_from_user(char *, const char __user *, long);
215 extern unsigned lclear_user(void __user *, unsigned long);
216 extern long lstrnlen_user(const char __user *, long);
227 unsigned long copy_to_user(void __user *dst, const void *src, unsigned long len);
229 unsigned long __copy_from_user(void *dst, const void __user *src, unsigned long len);
230 unsigned long copy_in_user(void __user *dst, const void __user *src, unsigned long len);
244 const void __user *from, copy_from_user()
/linux-4.4.14/fs/ocfs2/
H A Dioctl.c35 copy_to_user((typeof(a) __user *)b, &(a), sizeof(a))
42 struct ocfs2_info_request __user *req) o2info_set_request_error()
45 (void)put_user(kreq->ir_flags, (__u32 __user *)&(req->ir_flags)); o2info_set_request_error()
146 struct ocfs2_info_request __user *req) ocfs2_info_handle_blocksize()
164 struct ocfs2_info_request __user *req) ocfs2_info_handle_clustersize()
183 struct ocfs2_info_request __user *req) ocfs2_info_handle_maxslots()
202 struct ocfs2_info_request __user *req) ocfs2_info_handle_label()
221 struct ocfs2_info_request __user *req) ocfs2_info_handle_uuid()
240 struct ocfs2_info_request __user *req) ocfs2_info_handle_fs_features()
261 struct ocfs2_info_request __user *req) ocfs2_info_handle_journal_size()
328 struct ocfs2_info_request __user *req) ocfs2_info_handle_freeinode()
618 struct ocfs2_info_request __user *req) ocfs2_info_handle_freefrag()
691 struct ocfs2_info_request __user *req) ocfs2_info_handle_unknown()
714 struct ocfs2_info_request __user *req) ocfs2_info_handle_request()
776 u64 __user *bp = NULL; ocfs2_get_request_ptr()
784 bp = (u64 __user *)(unsigned long)compat_ptr(info->oi_requests); ocfs2_get_request_ptr()
789 bp = (u64 __user *)(unsigned long)(info->oi_requests); ocfs2_get_request_ptr()
815 struct ocfs2_info_request __user *reqp; ocfs2_info_handle()
829 reqp = (struct ocfs2_info_request __user *)(unsigned long)req_addr; ocfs2_info_handle()
853 const char __user *old_path; ocfs2_ioctl()
854 const char __user *new_path; ocfs2_ioctl()
857 void __user *argp = (void __user *)arg; ocfs2_ioctl()
866 return put_user(flags, (int __user *) arg); ocfs2_ioctl()
868 if (get_user(flags, (int __user *) arg)) ocfs2_ioctl()
882 if (copy_from_user(&sr, (int __user *) arg, sizeof(sr))) ocfs2_ioctl()
890 if (get_user(new_clusters, (int __user *)arg)) ocfs2_ioctl()
904 if (copy_from_user(&input, (int __user *) arg, sizeof(input))) ocfs2_ioctl()
916 old_path = (const char __user *)(unsigned long)args.old_path; ocfs2_ioctl()
917 new_path = (const char __user *)(unsigned long)args.new_path; ocfs2_ioctl()
967 void __user *argp = (void __user *)arg; ocfs2_compat_ioctl()
/linux-4.4.14/arch/openrisc/include/asm/
H A Dsyscalls.h28 void __user *parent_tid, void __user *child_tid, int tls);
/linux-4.4.14/net/rds/
H A Dinfo.h23 int rds_info_getsockopt(struct socket *sock, int optname, char __user *optval,
24 int __user *optlen);
/linux-4.4.14/net/atm/
H A Daddr.h17 int atm_get_addr(struct atm_dev *dev, struct sockaddr_atmsvc __user *buf,
H A Dcommon.h23 char __user *optval, unsigned int optlen);
25 char __user *optval, int __user *optlen);
H A Dioctl.c57 void __user *argp = (void __user *)arg; do_vcc_ioctl()
68 (int __user *)argp) ? -EFAULT : 0; do_vcc_ioctl()
80 (int __user *)argp) ? -EFAULT : 0; do_vcc_ioctl()
138 error = get_user(backend, (atm_backend_t __user *)argp); do_vcc_ioctl()
248 struct atm_iobuf __user *iobuf; do_atm_iobuf()
249 struct compat_atm_iobuf __user *iobuf32; do_atm_iobuf()
251 void __user *datap; do_atm_iobuf()
279 struct atmif_sioc __user *sioc; do_atmif_sioc()
280 struct compat_atmif_sioc __user *sioc32; do_atmif_sioc()
282 void __user *datap; do_atmif_sioc()
/linux-4.4.14/arch/mips/include/uapi/asm/
H A Dsiginfo.h84 void __user *_addr; /* faulting insn/memory ref. */
90 void __user *_lower;
91 void __user *_upper;
103 void __user *_call_addr; /* calling user insn */
/linux-4.4.14/arch/frv/kernel/
H A Dsignal.c52 struct siginfo __user *pinfo;
53 void __user *puc;
59 static int restore_sigcontext(struct sigcontext __user *sc, int *_gr8) restore_sigcontext()
87 struct sigframe __user *frame = (struct sigframe __user *) __frame->sp; sys_sigreturn()
113 struct rt_sigframe __user *frame = (struct rt_sigframe __user *) __frame->sp; sys_rt_sigreturn()
140 static int setup_sigcontext(struct sigcontext __user *sc, unsigned long mask) setup_sigcontext()
161 static inline void __user *get_sigframe(struct ksignal *ksig, get_sigframe()
166 return (void __user *) ((sp - frame_size) & ~7UL); get_sigframe()
176 struct sigframe __user *frame; setup_frame()
218 struct fdpic_func_descriptor __user *funcptr = setup_frame()
219 (struct fdpic_func_descriptor __user *) ksig->ka.sa.sa_handler; setup_frame()
249 struct rt_sigframe __user *frame; setup_rt_frame()
299 struct fdpic_func_descriptor __user *funcptr = setup_rt_frame()
300 (struct fdpic_func_descriptor __user *) ksig->ka.sa.sa_handler; setup_rt_frame()
H A Duaccess.c20 long strncpy_from_user(char *dst, const char __user *src, long count) strncpy_from_user()
72 long strnlen_user(const char __user *src, long count) strnlen_user()
74 const char __user *p; strnlen_user()
/linux-4.4.14/drivers/net/wireless/libertas/
H A Ddebugfs.c24 static ssize_t write_file_dummy(struct file *file, const char __user *buf, write_file_dummy()
32 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, lbs_dev_info()
55 const char __user *user_buf, size_t count, lbs_sleepparams_write()
95 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, lbs_sleepparams_read()
124 const char __user *user_buf, size_t count, lbs_host_sleep_write()
169 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, lbs_host_sleep_read()
225 struct file *file, char __user *userbuf, lbs_threshold_read()
278 const char __user *userbuf, size_t count, lbs_threshold_write()
351 static ssize_t lbs_lowrssi_read(struct file *file, char __user *userbuf, lbs_lowrssi_read()
359 static ssize_t lbs_lowrssi_write(struct file *file, const char __user *userbuf, lbs_lowrssi_write()
367 static ssize_t lbs_lowsnr_read(struct file *file, char __user *userbuf, lbs_lowsnr_read()
375 static ssize_t lbs_lowsnr_write(struct file *file, const char __user *userbuf, lbs_lowsnr_write()
383 static ssize_t lbs_failcount_read(struct file *file, char __user *userbuf, lbs_failcount_read()
391 static ssize_t lbs_failcount_write(struct file *file, const char __user *userbuf, lbs_failcount_write()
399 static ssize_t lbs_highrssi_read(struct file *file, char __user *userbuf, lbs_highrssi_read()
407 static ssize_t lbs_highrssi_write(struct file *file, const char __user *userbuf, lbs_highrssi_write()
415 static ssize_t lbs_highsnr_read(struct file *file, char __user *userbuf, lbs_highsnr_read()
423 static ssize_t lbs_highsnr_write(struct file *file, const char __user *userbuf, lbs_highsnr_write()
430 static ssize_t lbs_bcnmiss_read(struct file *file, char __user *userbuf, lbs_bcnmiss_read()
438 static ssize_t lbs_bcnmiss_write(struct file *file, const char __user *userbuf, lbs_bcnmiss_write()
446 static ssize_t lbs_rdmac_read(struct file *file, char __user *userbuf, lbs_rdmac_read()
471 const char __user *userbuf, lbs_rdmac_write()
494 const char __user *userbuf, lbs_wrmac_write()
527 static ssize_t lbs_rdbbp_read(struct file *file, char __user *userbuf, lbs_rdbbp_read()
553 const char __user *userbuf, lbs_rdbbp_write()
576 const char __user *userbuf, lbs_wrbbp_write()
609 static ssize_t lbs_rdrf_read(struct file *file, char __user *userbuf, lbs_rdrf_read()
635 const char __user *userbuf, lbs_rdrf_write()
658 const char __user *userbuf, lbs_wrrf_write()
857 static ssize_t lbs_debugfs_read(struct file *file, char __user *userbuf, lbs_debugfs_read()
904 static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, lbs_debugfs_write()
/linux-4.4.14/drivers/staging/speakup/
H A Ddevsynth.c16 static ssize_t speakup_file_write(struct file *fp, const char __user *buffer, speakup_file_write()
20 const char __user *ptr = buffer; speakup_file_write()
40 static ssize_t speakup_file_read(struct file *fp, char __user *buf, speakup_file_read()
/linux-4.4.14/drivers/char/agp/
H A Dcompat_ioctl.c38 static int compat_agpioc_info_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_info_wrap()
61 static int compat_agpioc_reserve_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_reserve_wrap()
111 if (copy_from_user(usegment, (void __user *) ureserve.seg_list, compat_agpioc_reserve_wrap()
148 static int compat_agpioc_allocate_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_allocate_wrap()
172 static int compat_agpioc_bind_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_bind_wrap()
189 static int compat_agpioc_unbind_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_unbind_wrap()
239 ret_val = compat_agpioc_info_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl()
251 ret_val = agpioc_setup_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl()
255 ret_val = compat_agpioc_reserve_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl()
263 ret_val = compat_agpioc_allocate_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl()
271 ret_val = compat_agpioc_bind_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl()
275 ret_val = compat_agpioc_unbind_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl()
/linux-4.4.14/arch/c6x/include/asm/
H A Dsyscalls.h27 extern long sys_pread_c6x(unsigned int fd, char __user *buf,
29 extern long sys_pwrite_c6x(unsigned int fd, const char __user *buf,
31 extern long sys_truncate64_c6x(const char __user *path,
/linux-4.4.14/init/
H A Dnoinitramfs.c32 err = sys_mkdir((const char __user __force *) "/dev", 0755); default_rootfs()
36 err = sys_mknod((const char __user __force *) "/dev/console", default_rootfs()
42 err = sys_mkdir((const char __user __force *) "/root", 0700); default_rootfs()
/linux-4.4.14/arch/m68k/lib/
H A Duaccess.c10 unsigned long __generic_copy_from_user(void *to, const void __user *from, __generic_copy_from_user()
62 unsigned long __generic_copy_to_user(void __user *to, const void *from, __generic_copy_to_user()
110 unsigned long __clear_user(void __user *to, unsigned long n) __clear_user()
/linux-4.4.14/arch/metag/oprofile/
H A Dbacktrace.c16 static void user_backtrace_fp(unsigned long __user *fp, unsigned int depth) user_backtrace_fp()
20 unsigned long __user *fpnew; user_backtrace_fp()
54 user_backtrace_fp((unsigned long __user __force *)fp, depth); metag_backtrace()
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Dzcrypt.h48 char __user * inputdata;
50 char __user * outputdata;
52 char __user * b_key;
53 char __user * n_modulus;
71 char __user * inputdata;
73 char __user * outputdata;
75 char __user * bp_key;
76 char __user * bq_key;
77 char __user * np_prime;
78 char __user * nq_prime;
79 char __user * u_mult_inv;
144 char __user * request_control_blk_addr;
147 char __user * request_data_address;
150 char __user * reply_control_blk_addr;
153 char __user * reply_data_addr;
/linux-4.4.14/fs/hfsplus/
H A Dioctl.c26 static int hfsplus_ioctl_bless(struct file *file, int __user *user_flags) hfsplus_ioctl_bless()
59 static int hfsplus_ioctl_getflags(struct file *file, int __user *user_flags) hfsplus_ioctl_getflags()
75 static int hfsplus_ioctl_setflags(struct file *file, int __user *user_flags) hfsplus_ioctl_setflags()
138 void __user *argp = (void __user *)arg; hfsplus_ioctl()
/linux-4.4.14/sound/core/
H A Dcontrol_compat.c36 struct snd_ctl_elem_list32 __user *data32) snd_ctl_elem_list_compat()
38 struct snd_ctl_elem_list __user *data; snd_ctl_elem_list_compat()
95 struct snd_ctl_elem_info32 __user *data32) snd_ctl_elem_info_compat()
235 void __user *userdata, copy_ctl_value_from_user()
236 void __user *valuep, copy_ctl_value_from_user()
239 struct snd_ctl_elem_value32 __user *data32 = userdata; copy_ctl_value_from_user()
257 s32 __user *intp = valuep; copy_ctl_value_from_user()
279 static int copy_ctl_value_to_user(void __user *userdata, copy_ctl_value_to_user()
280 void __user *valuep, copy_ctl_value_to_user()
289 s32 __user *intp = valuep; copy_ctl_value_to_user()
304 void __user *userdata, void __user *valuep) ctl_elem_read_user()
332 void __user *userdata, void __user *valuep) ctl_elem_write_user()
361 struct snd_ctl_elem_value32 __user *data32) snd_ctl_elem_read_user_compat()
367 struct snd_ctl_elem_value32 __user *data32) snd_ctl_elem_write_user_compat()
374 struct snd_ctl_elem_value_x32 __user *data32) snd_ctl_elem_read_user_x32()
380 struct snd_ctl_elem_value_x32 __user *data32) snd_ctl_elem_write_user_x32()
388 struct snd_ctl_elem_info32 __user *data32, snd_ctl_elem_add_compat()
454 void __user *argp = compat_ptr(arg); snd_ctl_ioctl_compat()
/linux-4.4.14/include/linux/sched/
H A Dsysctl.h10 void __user *buffer,
63 void __user *buffer, size_t *length,
87 void __user *buffer, size_t *lenp,
91 void __user *buffer, size_t *lenp,
95 void __user *buffer, size_t *lenp,
/linux-4.4.14/arch/s390/hypfs/
H A Dhypfs_sprp.c69 static int __hypfs_sprp_ioctl(void __user *user_area) __hypfs_sprp_ioctl()
73 void __user *udata; __hypfs_sprp_ioctl()
86 udata = (void __user *)(unsigned long) diag304.data; __hypfs_sprp_ioctl()
112 void __user *argp; hypfs_sprp_ioctl()
119 argp = (void __user *) arg; hypfs_sprp_ioctl()
/linux-4.4.14/sound/pci/hda/
H A Dhda_hwdep.c34 struct hda_verb_ioctl __user *arg) verb_write_ioctl()
48 struct hda_verb_ioctl __user *arg) get_wcap_ioctl()
67 void __user *argp = (void __user *)arg; hda_hwdep_ioctl()
71 return put_user(HDA_HWDEP_VERSION, (int __user *)argp); hda_hwdep_ioctl()
/linux-4.4.14/sound/oss/dmasound/
H A Ddmasound.h46 do { int error = get_user(ret, (int __user *)(arg)); \
49 #define IOCTL_OUT(arg, ret) ioctl_return((int __user *)(arg), ret)
51 static inline int ioctl_return(int __user *addr, int value) ioctl_return()
150 ssize_t (*ct_ulaw)(const u_char __user *, size_t, u_char *, ssize_t *, ssize_t);
151 ssize_t (*ct_alaw)(const u_char __user *, size_t, u_char *, ssize_t *, ssize_t);
152 ssize_t (*ct_s8)(const u_char __user *, size_t, u_char *, ssize_t *, ssize_t);
153 ssize_t (*ct_u8)(const u_char __user *, size_t, u_char *, ssize_t *, ssize_t);
154 ssize_t (*ct_s16be)(const u_char __user *, size_t, u_char *, ssize_t *, ssize_t);
155 ssize_t (*ct_u16be)(const u_char __user *, size_t, u_char *, ssize_t *, ssize_t);
156 ssize_t (*ct_s16le)(const u_char __user *, size_t, u_char *, ssize_t *, ssize_t);
157 ssize_t (*ct_u16le)(const u_char __user *, size_t, u_char *, ssize_t *, ssize_t);
/linux-4.4.14/arch/tile/kernel/
H A Dsignal.c46 struct sigcontext __user *sc) restore_sigcontext()
70 void __user *frame, int sig) signal_fault()
80 struct rt_sigframe __user *frame = SYSCALL_DEFINE0()
81 (struct rt_sigframe __user *)(regs->sp); SYSCALL_DEFINE0()
108 int setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs) setup_sigcontext()
116 static inline void __user *get_sigframe(struct k_sigaction *ka, get_sigframe()
131 return (void __user __force *)-1UL; get_sigframe()
145 return (void __user *) sp; get_sigframe()
152 struct rt_sigframe __user *frame; setup_rt_frame()
326 static void dump_mem(void __user *address) dump_mem()
328 void __user *addr; dump_mem()
339 addr = (void __user *) dump_mem()
374 void __user *handler = trace_unhandled_signal()
401 dump_mem((void __user *)address); trace_unhandled_signal()
/linux-4.4.14/arch/cris/include/asm/
H A Duaccess.h193 extern unsigned long __copy_user(void __user *to, const void *from, unsigned long n);
194 extern unsigned long __copy_user_zeroing(void *to, const void __user *from, unsigned long n);
195 extern unsigned long __do_clear_user(void __user *to, unsigned long n);
198 __generic_copy_to_user(void __user *to, const void *from, unsigned long n) __generic_copy_to_user()
206 __generic_copy_from_user(void *to, const void __user *from, unsigned long n) __generic_copy_from_user()
214 __generic_clear_user(void __user *to, unsigned long n) __generic_clear_user()
222 __strncpy_from_user(char *dst, const char __user *src, long count) __strncpy_from_user()
228 strncpy_from_user(char *dst, const char __user *src, long count) strncpy_from_user()
242 __constant_copy_from_user(void *to, const void __user *from, unsigned long n) __constant_copy_from_user()
293 __constant_copy_to_user(void __user *to, const void *from, unsigned long n) __constant_copy_to_user()
344 __constant_clear_user(void __user *to, unsigned long n) __constant_clear_user()
395 __generic_copy_from_user_nocheck(void *to, const void __user *from, __generic_copy_from_user_nocheck()
402 __generic_copy_to_user_nocheck(void __user *to, const void *from, __generic_copy_to_user_nocheck()
409 __generic_clear_user_nocheck(void __user *to, unsigned long n) __generic_clear_user_nocheck()
/linux-4.4.14/drivers/staging/comedi/
H A Dcomedi_compat32.c102 struct comedi_chaninfo __user *chaninfo; compat_chaninfo()
103 struct comedi32_chaninfo_struct __user *chaninfo32; compat_chaninfo()
136 struct comedi_rangeinfo __user *rangeinfo; compat_rangeinfo()
137 struct comedi32_rangeinfo_struct __user *rangeinfo32; compat_rangeinfo()
165 static int get_compat_cmd(struct comedi_cmd __user *cmd, get_compat_cmd()
166 struct comedi32_cmd_struct __user *cmd32) get_compat_cmd()
217 static int put_compat_cmd(struct comedi32_cmd_struct __user *cmd32, put_compat_cmd()
218 struct comedi_cmd __user *cmd) put_compat_cmd()
270 struct comedi_cmd __user *cmd; compat_cmd()
271 struct comedi32_cmd_struct __user *cmd32; compat_cmd()
295 struct comedi_cmd __user *cmd; compat_cmdtest()
296 struct comedi32_cmd_struct __user *cmd32; compat_cmdtest()
318 static int get_compat_insn(struct comedi_insn __user *insn, get_compat_insn()
319 struct comedi32_insn_struct __user *insn32) get_compat_insn()
352 } __user *s; compat_insnlist()
353 struct comedi32_insnlist_struct __user *insnlist32; compat_insnlist()
354 struct comedi32_insn_struct __user *insn32; compat_insnlist()
399 struct comedi_insn __user *insn; compat_insn()
400 struct comedi32_insn_struct __user *insn32; compat_insn()
/linux-4.4.14/block/
H A Dioctl.c13 static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user *arg) blkpg_ioctl()
206 if (copy_from_user(range, (void __user *)arg, sizeof(range))) blk_ioctl_discard()
233 if (copy_from_user(range, (void __user *)arg, sizeof(range))) blk_ioctl_zeroout()
254 return put_user(val, (unsigned short __user *)arg); put_ushort()
259 return put_user(val, (int __user *)arg); put_int()
264 return put_user(val, (unsigned int __user *)arg); put_uint()
269 return put_user(val, (long __user *)arg); put_long()
274 return put_user(val, (unsigned long __user *)arg); put_ulong()
279 return put_user(val, (u64 __user *)arg); put_u64()
300 struct pr_registration __user *arg) blkdev_pr_register()
318 struct pr_reservation __user *arg) blkdev_pr_reserve()
336 struct pr_reservation __user *arg) blkdev_pr_release()
354 struct pr_preempt __user *arg, bool abort) blkdev_pr_preempt()
372 struct pr_clear __user *arg) blkdev_pr_clear()
436 if (get_user(n, (int __user *)arg)) blkdev_roset()
443 struct hd_geometry __user *argp) blkdev_getgeo()
470 int __user *argp) blkdev_bszset()
500 void __user *argp = (void __user *)arg; blkdev_ioctl()
/linux-4.4.14/drivers/usb/core/
H A Ddevio.c76 void __user *disccontext;
89 void __user *userbuffer;
90 void __user *userurb;
184 static ssize_t usbdev_read(struct file *file, char __user *buf, size_t nbytes, usbdev_read()
344 void __user *userurb) async_getpending()
358 void __user *userurb, int pipe, unsigned length, snoop_urb()
422 static int copy_urb_data_to_user(u8 __user *userbuffer, struct urb *urb) copy_urb_data_to_user()
783 struct usbdevfs_streams __user *streams, parse_usbdevfs_streams()
969 static int proc_control(struct usb_dev_state *ps, void __user *arg) proc_control()
1056 static int proc_bulk(struct usb_dev_state *ps, void __user *arg) proc_bulk()
1144 static int proc_resetep(struct usb_dev_state *ps, void __user *arg) proc_resetep()
1149 if (get_user(ep, (unsigned int __user *)arg)) proc_resetep()
1162 static int proc_clearhalt(struct usb_dev_state *ps, void __user *arg) proc_clearhalt()
1168 if (get_user(ep, (unsigned int __user *)arg)) proc_clearhalt()
1185 static int proc_getdriver(struct usb_dev_state *ps, void __user *arg) proc_getdriver()
1204 static int proc_connectinfo(struct usb_dev_state *ps, void __user *arg) proc_connectinfo()
1221 static int proc_setintf(struct usb_dev_state *ps, void __user *arg) proc_setintf()
1238 static int proc_setconfig(struct usb_dev_state *ps, void __user *arg) proc_setconfig()
1244 if (get_user(u, (int __user *)arg)) proc_setconfig()
1287 struct usbdevfs_iso_packet_desc __user *iso_frame_desc, proc_do_submiturb()
1288 void __user *arg) proc_do_submiturb()
1614 static int proc_submiturb(struct usb_dev_state *ps, void __user *arg) proc_submiturb()
1622 (((struct usbdevfs_urb __user *)arg)->iso_frame_desc), proc_submiturb()
1626 static int proc_unlinkurb(struct usb_dev_state *ps, void __user *arg) proc_unlinkurb()
1649 static int processcompl(struct async *as, void __user * __user *arg) processcompl()
1652 struct usbdevfs_urb __user *userurb = as->userurb; processcompl()
1653 void __user *addr = as->userurb; processcompl()
1678 if (put_user(addr, (void __user * __user *)arg)) processcompl()
1709 static int proc_reapurb(struct usb_dev_state *ps, void __user *arg) proc_reapurb()
1713 int retval = processcompl(as, (void __user * __user *)arg); proc_reapurb()
1722 static int proc_reapurbnonblock(struct usb_dev_state *ps, void __user *arg) proc_reapurbnonblock()
1729 retval = processcompl(as, (void __user * __user *)arg); proc_reapurbnonblock()
1739 struct usbdevfs_ctrltransfer32 __user *p32) proc_control_compat()
1741 struct usbdevfs_ctrltransfer __user *p; proc_control_compat()
1752 struct usbdevfs_bulktransfer32 __user *p32) proc_bulk_compat()
1754 struct usbdevfs_bulktransfer __user *p; proc_bulk_compat()
1768 static int proc_disconnectsignal_compat(struct usb_dev_state *ps, void __user *arg) proc_disconnectsignal_compat()
1780 struct usbdevfs_urb32 __user *uurb) get_urb32()
1806 static int proc_submiturb_compat(struct usb_dev_state *ps, void __user *arg) proc_submiturb_compat()
1810 if (get_urb32(&uurb, (struct usbdevfs_urb32 __user *)arg)) proc_submiturb_compat()
1814 ((struct usbdevfs_urb32 __user *)arg)->iso_frame_desc, proc_submiturb_compat()
1818 static int processcompl_compat(struct async *as, void __user * __user *arg) processcompl_compat()
1821 struct usbdevfs_urb32 __user *userurb = as->userurb; processcompl_compat()
1822 void __user *addr = as->userurb; processcompl_compat()
1847 if (put_user(ptr_to_compat(addr), (u32 __user *)arg)) processcompl_compat()
1852 static int proc_reapurb_compat(struct usb_dev_state *ps, void __user *arg) proc_reapurb_compat()
1856 int retval = processcompl_compat(as, (void __user * __user *)arg); proc_reapurb_compat()
1865 static int proc_reapurbnonblock_compat(struct usb_dev_state *ps, void __user *arg) proc_reapurbnonblock_compat()
1872 retval = processcompl_compat(as, (void __user * __user *)arg); proc_reapurbnonblock_compat()
1883 static int proc_disconnectsignal(struct usb_dev_state *ps, void __user *arg) proc_disconnectsignal()
1894 static int proc_claiminterface(struct usb_dev_state *ps, void __user *arg) proc_claiminterface()
1898 if (get_user(ifnum, (unsigned int __user *)arg)) proc_claiminterface()
1903 static int proc_releaseinterface(struct usb_dev_state *ps, void __user *arg) proc_releaseinterface()
1908 if (get_user(ifnum, (unsigned int __user *)arg)) proc_releaseinterface()
1994 static int proc_ioctl_default(struct usb_dev_state *ps, void __user *arg) proc_ioctl_default()
2006 struct usbdevfs_ioctl32 __user *uioc; proc_ioctl_compat()
2022 static int proc_claim_port(struct usb_dev_state *ps, void __user *arg) proc_claim_port()
2027 if (get_user(portnum, (unsigned __user *) arg)) proc_claim_port()
2036 static int proc_release_port(struct usb_dev_state *ps, void __user *arg) proc_release_port()
2040 if (get_user(portnum, (unsigned __user *) arg)) proc_release_port()
2045 static int proc_get_capabilities(struct usb_dev_state *ps, void __user *arg) proc_get_capabilities()
2056 if (put_user(caps, (__u32 __user *)arg)) proc_get_capabilities()
2062 static int proc_disconnect_claim(struct usb_dev_state *ps, void __user *arg) proc_disconnect_claim()
2094 static int proc_alloc_streams(struct usb_dev_state *ps, void __user *arg) proc_alloc_streams()
2114 static int proc_free_streams(struct usb_dev_state *ps, void __user *arg) proc_free_streams()
2139 void __user *p) usbdev_do_ioctl()
2335 ret = usbdev_do_ioctl(file, cmd, (void __user *)arg); usbdev_ioctl()
/linux-4.4.14/net/core/
H A Dethtool.c116 static int ethtool_get_features(struct net_device *dev, void __user *useraddr) ethtool_get_features()
123 u32 __user *sizeaddr; ethtool_get_features()
154 static int ethtool_set_features(struct net_device *dev, void __user *useraddr) ethtool_set_features()
263 char __user *useraddr, u32 ethcmd) ethtool_get_one_feature()
277 void __user *useraddr, u32 ethcmd) ethtool_set_one_feature()
368 static int ethtool_get_settings(struct net_device *dev, void __user *useraddr) ethtool_get_settings()
382 static int ethtool_set_settings(struct net_device *dev, void __user *useraddr) ethtool_set_settings()
396 void __user *useraddr) ethtool_get_drvinfo()
442 void __user *useraddr) ethtool_get_sset_info()
498 u32 cmd, void __user *useraddr) ethtool_set_rxnfc()
530 u32 cmd, void __user *useraddr) ethtool_get_rxnfc()
584 static int ethtool_copy_validate_indir(u32 *indir, void __user *useraddr, ethtool_copy_validate_indir()
612 void __user *useraddr) ethtool_get_rxfh_indir()
660 void __user *useraddr) ethtool_set_rxfh_indir()
714 void __user *useraddr) ethtool_get_rxfh()
786 void __user *useraddr) ethtool_set_rxfh()
872 static int ethtool_get_regs(struct net_device *dev, char __user *useraddr) ethtool_get_regs()
908 static int ethtool_reset(struct net_device *dev, char __user *useraddr) ethtool_reset()
928 static int ethtool_get_wol(struct net_device *dev, char __user *useraddr) ethtool_get_wol()
942 static int ethtool_set_wol(struct net_device *dev, char __user *useraddr) ethtool_set_wol()
955 static int ethtool_get_eee(struct net_device *dev, char __user *useraddr) ethtool_get_eee()
976 static int ethtool_set_eee(struct net_device *dev, char __user *useraddr) ethtool_set_eee()
997 static int ethtool_get_link(struct net_device *dev, char __user *useraddr) ethtool_get_link()
1011 static int ethtool_get_any_eeprom(struct net_device *dev, void __user *useraddr, ethtool_get_any_eeprom()
1017 void __user *userbuf = useraddr + sizeof(eeprom); ethtool_get_any_eeprom()
1062 static int ethtool_get_eeprom(struct net_device *dev, void __user *useraddr) ethtool_get_eeprom()
1074 static int ethtool_set_eeprom(struct net_device *dev, void __user *useraddr) ethtool_set_eeprom()
1078 void __user *userbuf = useraddr + sizeof(eeprom); ethtool_set_eeprom()
1123 void __user *useraddr) ethtool_get_coalesce()
1138 void __user *useraddr) ethtool_set_coalesce()
1151 static int ethtool_get_ringparam(struct net_device *dev, void __user *useraddr) ethtool_get_ringparam()
1165 static int ethtool_set_ringparam(struct net_device *dev, void __user *useraddr) ethtool_set_ringparam()
1179 void __user *useraddr) ethtool_get_channels()
1194 void __user *useraddr) ethtool_set_channels()
1207 static int ethtool_get_pauseparam(struct net_device *dev, void __user *useraddr) ethtool_get_pauseparam()
1221 static int ethtool_set_pauseparam(struct net_device *dev, void __user *useraddr) ethtool_set_pauseparam()
1234 static int ethtool_self_test(struct net_device *dev, char __user *useraddr) ethtool_self_test()
1272 static int ethtool_get_strings(struct net_device *dev, void __user *useraddr) ethtool_get_strings()
1306 static int ethtool_phys_id(struct net_device *dev, void __user *useraddr) ethtool_phys_id()
1366 static int ethtool_get_stats(struct net_device *dev, void __user *useraddr) ethtool_get_stats()
1404 static int ethtool_get_perm_addr(struct net_device *dev, void __user *useraddr) ethtool_get_perm_addr()
1423 static int ethtool_get_value(struct net_device *dev, char __user *useraddr, ethtool_get_value()
1438 static int ethtool_set_value_void(struct net_device *dev, char __user *useraddr, ethtool_set_value_void()
1453 static int ethtool_set_value(struct net_device *dev, char __user *useraddr, ethtool_set_value()
1468 char __user *useraddr) ethtool_flash_device()
1484 void __user *useraddr) ethtool_set_dump()
1498 void __user *useraddr) ethtool_get_dump_flag()
1520 void __user *useraddr) ethtool_get_dump_data()
1582 static int ethtool_get_ts_info(struct net_device *dev, void __user *useraddr) ethtool_get_ts_info()
1628 void __user *useraddr) ethtool_get_module_info()
1662 void __user *useraddr) ethtool_get_module_eeprom()
1692 static int ethtool_get_tunable(struct net_device *dev, void __user *useraddr) ethtool_get_tunable()
1723 static int ethtool_set_tunable(struct net_device *dev, void __user *useraddr) ethtool_set_tunable()
1756 void __user *useraddr = ifr->ifr_data; dev_ethtool()
/linux-4.4.14/arch/mips/kvm/
H A Dtrap_emul.c44 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_cop_unusable()
91 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_tlb_mod()
135 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_tlb_st_miss()
182 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_tlb_ld_miss()
236 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_addr_err_st()
266 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_addr_err_ld()
296 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_syscall()
314 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_res_inst()
332 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_break()
350 uint32_t __user *opc = (uint32_t __user *)vcpu->arch.pc; kvm_trap_emul_handle_trap()
368 uint32_t __user *opc = (uint32_t __user *)vcpu->arch.pc; kvm_trap_emul_handle_msa_fpe()
386 uint32_t __user *opc = (uint32_t __user *)vcpu->arch.pc; kvm_trap_emul_handle_fpe()
411 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; kvm_trap_emul_handle_msa_disabled()
/linux-4.4.14/arch/alpha/lib/
H A Dcsum_partial_copy.c102 csum_partial_cfu_aligned(const unsigned long __user *src, unsigned long *dst, csum_partial_cfu_aligned()
142 csum_partial_cfu_dest_aligned(const unsigned long __user *src, csum_partial_cfu_dest_aligned()
196 csum_partial_cfu_src_aligned(const unsigned long __user *src, csum_partial_cfu_src_aligned()
254 csum_partial_cfu_unaligned(const unsigned long __user * src, csum_partial_cfu_unaligned()
333 csum_partial_copy_from_user(const void __user *src, void *dst, int len, csum_partial_copy_from_user()
349 (const unsigned long __user *) src, csum_partial_copy_from_user()
354 (const unsigned long __user *) src, csum_partial_copy_from_user()
362 (const unsigned long __user *) src, csum_partial_copy_from_user()
368 (const unsigned long __user *) src, csum_partial_copy_from_user()
384 checksum = csum_partial_copy_from_user((__force const void __user *)src, csum_partial_copy_nocheck()
/linux-4.4.14/net/dccp/
H A Dccid.h83 u32 __user *optval,
84 int __user *optlen);
87 u32 __user *optval,
88 int __user *optlen);
112 char __user *, int __user *);
246 u32 __user *optval, int __user *optlen) ccid_hc_rx_getsockopt()
257 u32 __user *optval, int __user *optlen) ccid_hc_tx_getsockopt()
/linux-4.4.14/arch/m32r/kernel/
H A Dsignal.c37 struct siginfo __user *pinfo;
38 void __user *puc;
45 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, restore_sigcontext()
93 struct rt_sigframe __user *frame = (struct rt_sigframe __user *)regs->spu; sys_rt_sigreturn()
122 setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, setup_sigcontext()
164 static inline void __user * get_sigframe()
167 return (void __user *)((sigsp(sp, ksig) - frame_size) & -8ul); get_sigframe()
173 struct rt_sigframe __user *frame; setup_rt_frame()
222 if (get_user(inst, (u16 __user *)(regs->bpc - 2))) prev_insn()
/linux-4.4.14/arch/arm64/kvm/
H A Dguest.c59 __u32 __user *uaddr = (__u32 __user *)(unsigned long)reg->addr; get_core_reg()
78 __u32 __user *uaddr = (__u32 __user *)(unsigned long)reg->addr; set_core_reg()
156 static int copy_timer_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) copy_timer_indices()
172 void __user *uaddr = (void __user *)(long)reg->addr; set_timer_reg()
185 void __user *uaddr = (void __user *)(long)reg->addr; get_timer_reg()
208 int kvm_arm_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) kvm_arm_copy_reg_indices()
/linux-4.4.14/arch/blackfin/include/asm/
H A Duaccess.h75 typeof(*(p)) __user *_p = (p); \
94 __put_user_asm(_xl, ((__force long __user *)_p)+0, );\
95 __put_user_asm(_xh, ((__force long __user *)_p)+1, );\
133 const typeof(*(ptr)) __user *_p = (ptr); \
178 copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
188 copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
203 strncpy_from_user(char *dst, const char __user *src, long count) strncpy_from_user()
224 static inline long __must_check strnlen_user(const char __user *src, long n) strnlen_user()
231 static inline long __must_check strlen_user(const char __user *src) strlen_user()
243 __clear_user(void __user *to, unsigned long n) __clear_user()
/linux-4.4.14/arch/arm/kvm/
H A Dguest.c51 u32 __user *uaddr = (u32 __user *)(long)reg->addr; get_core_reg()
68 u32 __user *uaddr = (u32 __user *)(long)reg->addr; set_core_reg()
125 static int copy_timer_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) copy_timer_indices()
141 void __user *uaddr = (void __user *)(long)reg->addr; set_timer_reg()
154 void __user *uaddr = (void __user *)(long)reg->addr; get_timer_reg()
182 int kvm_arm_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) kvm_arm_copy_reg_indices()
/linux-4.4.14/drivers/atm/
H A Dsuni.c95 static int fetch_stats(struct atm_dev *dev,struct sonet_stats __user *arg,int zero) fetch_stats()
115 static int change_diag(struct atm_dev *dev,void __user *arg,int set) change_diag()
119 if (get_user(todo,(int __user *)arg)) return -EFAULT; change_diag()
128 return put_user(todo,(int __user *)arg) ? -EFAULT : 0; change_diag()
135 static int get_diag(struct atm_dev *dev,void __user *arg) get_diag()
148 return put_user(set,(int __user *)arg) ? -EFAULT : 0; get_diag()
224 static int get_framing(struct atm_dev *dev, void __user *arg) get_framing()
236 return put_user(framing, (int __user *) arg) ? -EFAULT : 0; get_framing()
239 static int set_framing(struct atm_dev *dev, void __user *arg) set_framing()
243 if (get_user(mode, (int __user *) arg)) set_framing()
255 static int suni_ioctl(struct atm_dev *dev,unsigned int cmd,void __user *arg) suni_ioctl()
280 return put_user(PRIV(dev)->loop_mode,(int __user *)arg) ? suni_ioctl()
284 (int __user *) arg) ? -EFAULT : 0; suni_ioctl()
/linux-4.4.14/drivers/misc/vmw_vmci/
H A Dvmci_host.c197 static int drv_cp_harray_to_user(void __user *user_buf_uva, drv_cp_harray_to_user()
239 if (!access_ok(VERIFY_WRITE, (void __user *)uva, sizeof(u8))) vmci_host_setup_notify()
261 unsigned int cmd, void __user *uptr) vmci_host_get_version()
264 int __user *vptr = uptr; vmci_host_get_version()
296 void __user *uptr) vmci_host_do_init_context()
358 void __user *uptr) vmci_host_do_send_datagram()
391 if (copy_from_user(dg, (void __user *)(uintptr_t)send_info.addr, vmci_host_do_send_datagram()
419 void __user *uptr) vmci_host_do_receive_datagram()
439 void __user *ubuf = (void __user *)(uintptr_t)recv_info.addr; vmci_host_do_receive_datagram()
451 void __user *uptr) vmci_host_do_alloc_queuepair()
455 int __user *retptr; vmci_host_do_alloc_queuepair()
467 struct vmci_qp_alloc_info_vmvm __user *info = uptr; vmci_host_do_alloc_queuepair()
488 struct vmci_qp_alloc_info __user *info = uptr; vmci_host_do_alloc_queuepair()
523 void __user *uptr) vmci_host_do_queuepair_setva()
526 struct vmci_qp_set_va_info __user *info = uptr; vmci_host_do_queuepair_setva()
564 void __user *uptr) vmci_host_do_queuepair_setpf()
567 struct vmci_qp_page_file_info __user *info = uptr; vmci_host_do_queuepair_setpf()
642 void __user *uptr) vmci_host_do_qp_detach()
645 struct vmci_qp_dtch_info __user *info = uptr; vmci_host_do_qp_detach()
668 void __user *uptr) vmci_host_do_ctx_add_notify()
671 struct vmci_ctx_info __user *info = uptr; vmci_host_do_ctx_add_notify()
691 void __user *uptr) vmci_host_do_ctx_remove_notify()
694 struct vmci_ctx_info __user *info = uptr; vmci_host_do_ctx_remove_notify()
715 void __user *uptr) vmci_host_do_ctx_get_cpt_state()
734 void __user *ubuf = (void __user *)(uintptr_t)get_info.cpt_buf; vmci_host_do_ctx_get_cpt_state()
747 void __user *uptr) vmci_host_do_ctx_set_cpt_state()
770 if (copy_from_user(cpt_buf, (void __user *)(uintptr_t)set_info.cpt_buf, vmci_host_do_ctx_set_cpt_state()
789 void __user *uptr) vmci_host_do_get_context_id()
791 u32 __user *u32ptr = uptr; vmci_host_do_get_context_id()
798 void __user *uptr) vmci_host_do_set_notify()
825 void __user *uptr) vmci_host_do_notify_resource()
875 void __user *uptr) vmci_host_do_recv_notifications()
880 void __user *ubuf; vmci_host_do_recv_notifications()
909 ubuf = (void __user *)(uintptr_t)info.db_handle_buf_uva; vmci_host_do_recv_notifications()
913 ubuf = (void __user *)(uintptr_t)info.qp_handle_buf_uva; vmci_host_do_recv_notifications()
939 void __user *uptr = (void __user *)ioarg; vmci_host_unlocked_ioctl()
/linux-4.4.14/arch/arm/include/asm/
H A Duaccess.h193 register const typeof(*(p)) __user *__p asm("r0") = (p);\
253 const typeof(*(p)) __user *__tmp_p = (p); \
255 register const typeof(*(p)) __user *__p asm("r0") = __tmp_p; \
494 arm_copy_from_user(void *to, const void __user *from, unsigned long n);
497 __copy_from_user(void *to, const void __user *from, unsigned long n) __copy_from_user()
506 arm_copy_to_user(void __user *to, const void *from, unsigned long n);
508 __copy_to_user_std(void __user *to, const void *from, unsigned long n);
511 __copy_to_user(void __user *to, const void *from, unsigned long n) __copy_to_user()
524 arm_clear_user(void __user *addr, unsigned long n);
526 __clear_user_std(void __user *addr, unsigned long n);
529 __clear_user(void __user *addr, unsigned long n) __clear_user()
543 static inline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n) copy_from_user()
552 static inline unsigned long __must_check copy_to_user(void __user *to, const void *from, unsigned long n) copy_to_user()
562 static inline unsigned long __must_check clear_user(void __user *to, unsigned long n) clear_user()
570 extern long strncpy_from_user(char *dest, const char __user *src, long count);
572 extern __must_check long strlen_user(const char __user *str);
573 extern __must_check long strnlen_user(const char __user *str, long n);

Completed in 5553 milliseconds

1234567891011>>