/arch/metag/kernel/ |
D | ptrace.c | 41 void *kbuf, void __user *ubuf) in metag_gp_regs_copyout() argument 48 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 53 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 62 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 67 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 72 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 78 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 83 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 88 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 96 const void *kbuf, const void __user *ubuf) in metag_gp_regs_copyin() argument [all …]
|
/arch/x86/ia32/ |
D | sys_ia32.c | 71 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) in cp_stat64() argument 73 typeof(ubuf->st_uid) uid = 0; in cp_stat64() 74 typeof(ubuf->st_gid) gid = 0; in cp_stat64() 77 if (!access_ok(VERIFY_WRITE, ubuf, sizeof(struct stat64)) || in cp_stat64() 78 __put_user(huge_encode_dev(stat->dev), &ubuf->st_dev) || in cp_stat64() 79 __put_user(stat->ino, &ubuf->__st_ino) || in cp_stat64() 80 __put_user(stat->ino, &ubuf->st_ino) || in cp_stat64() 81 __put_user(stat->mode, &ubuf->st_mode) || in cp_stat64() 82 __put_user(stat->nlink, &ubuf->st_nlink) || in cp_stat64() 83 __put_user(uid, &ubuf->st_uid) || in cp_stat64() [all …]
|
/arch/openrisc/kernel/ |
D | ptrace.c | 54 void *kbuf, void __user * ubuf) in genregs_get() argument 60 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_get() 63 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 66 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 69 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 72 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 84 const void *kbuf, const void __user * ubuf) in genregs_set() argument 90 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_set() 93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 97 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() [all …]
|
/arch/metag/include/asm/ |
D | ptrace.h | 38 void *kbuf, void __user *ubuf); 42 const void *kbuf, const void __user *ubuf); 46 void *kbuf, void __user *ubuf); 50 const void *kbuf, const void __user *ubuf); 54 void *kbuf, void __user *ubuf); 58 const void *kbuf, const void __user *ubuf);
|
/arch/mn10300/kernel/ |
D | ptrace.c | 85 void *kbuf, void __user *ubuf) in genregs_get() argument 91 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 96 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 102 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 112 const void *kbuf, const void __user *ubuf) in genregs_set() argument 119 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 124 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 132 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 144 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 151 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() [all …]
|
/arch/frv/kernel/ |
D | ptrace.c | 43 void *kbuf, void __user *ubuf) in genregs_get() argument 48 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 53 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 63 const void *kbuf, const void __user *ubuf) in genregs_set() argument 81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() 93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 98 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() 108 void *kbuf, void __user *ubuf) in fpmregs_get() argument 113 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpmregs_get() [all …]
|
/arch/powerpc/kernel/ |
D | ptrace.c | 318 void *kbuf, void __user *ubuf) in gpr_get() argument 331 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get() 336 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, in gpr_get() 346 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get() 351 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in gpr_get() 359 const void *kbuf, const void __user *ubuf) in gpr_set() argument 369 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 374 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set() 385 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 392 &pos, &count, &kbuf, &ubuf, in gpr_set() [all …]
|
D | sys_ppc32.c | 77 compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, in compat_sys_pread64() argument 80 return sys_pread64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); in compat_sys_pread64() 83 compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, in compat_sys_pwrite64() argument 86 return sys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); in compat_sys_pwrite64()
|
/arch/nios2/kernel/ |
D | ptrace.c | 25 void *kbuf, void __user *ubuf) in genregs_get() argument 33 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ in genregs_get() 38 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get() 43 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get() 59 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 71 const void *kbuf, const void __user *ubuf) in genregs_set() argument 79 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 84 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 89 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 105 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
|
/arch/x86/kernel/fpu/ |
D | regset.c | 35 void *kbuf, void __user *ubuf) in xfpregs_get() argument 45 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in xfpregs_get() 51 const void *kbuf, const void __user *ubuf) in xfpregs_set() argument 62 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in xfpregs_set() 82 void *kbuf, void __user *ubuf) in xstateregs_get() argument 99 ret = copy_xstate_to_user(ubuf, xsave, pos, count); in xstateregs_get() 112 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_get() 119 const void *kbuf, const void __user *ubuf) in xstateregs_set() argument 142 ret = copy_user_to_xstate(xsave, ubuf); in xstateregs_set() 144 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_set() [all …]
|
/arch/sparc/kernel/ |
D | ptrace_64.c | 250 void *kbuf, void __user *ubuf) in genregs64_get() argument 258 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 266 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 274 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 283 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 290 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs64_get() 300 const void *kbuf, const void __user *ubuf) in genregs64_set() argument 308 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 317 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 331 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() [all …]
|
D | ptrace_32.c | 52 void *kbuf, void __user *ubuf) in genregs32_get() argument 57 unsigned long __user *u = ubuf; in genregs32_get() 123 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs32_get() 130 const void *kbuf, const void __user *ubuf) in genregs32_set() argument 135 const unsigned long __user *u = ubuf; in genregs32_set() 207 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs32_set() 214 void *kbuf, void __user *ubuf) in fpregs32_get() argument 224 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpregs32_get() 229 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in fpregs32_get() 233 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpregs32_get() [all …]
|
/arch/sh/kernel/ |
D | ptrace_32.c | 142 void *kbuf, void __user *ubuf) in genregs_get() argument 147 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 152 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 157 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 166 const void *kbuf, const void __user *ubuf) in genregs_set() argument 171 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 175 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 180 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() 190 void *kbuf, void __user *ubuf) in fpregs_get() argument 199 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpregs_get() [all …]
|
D | ptrace_64.c | 152 void *kbuf, void __user *ubuf) in genregs_get() argument 158 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 164 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 170 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 176 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 185 const void *kbuf, const void __user *ubuf) in genregs_set() argument 191 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 197 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 204 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 210 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() [all …]
|
/arch/parisc/kernel/ |
D | ptrace.c | 400 void *kbuf, void __user *ubuf) in fpr_get() argument 404 __u64 __user *u = ubuf; in fpr_get() 419 ubuf = u; in fpr_get() 422 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in fpr_get() 429 const void *kbuf, const void __user *ubuf) in fpr_set() argument 433 const __u64 __user *u = ubuf; in fpr_set() 450 ubuf = u; in fpr_set() 453 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in fpr_set() 536 void *kbuf, void __user *ubuf) in gpr_get() argument 540 unsigned long __user *u = ubuf; in gpr_get() [all …]
|
/arch/hexagon/kernel/ |
D | ptrace.c | 54 void *kbuf, void __user *ubuf) in genregs_get() argument 70 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 75 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, \ in genregs_get() 102 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 110 const void *kbuf, const void __user *ubuf) in genregs_set() argument 119 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 124 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 153 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
|
/arch/arm64/kernel/ |
D | ptrace.c | 488 void *kbuf, void __user *ubuf) in hw_break_get() argument 500 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &info, 0, in hw_break_get() 507 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, offset, in hw_break_get() 519 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &addr, in hw_break_get() 528 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &ctrl, in hw_break_get() 534 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in hw_break_get() 549 const void *kbuf, const void __user *ubuf) in hw_break_set() argument 558 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); in hw_break_set() 567 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, in hw_break_set() 578 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, in hw_break_set() [all …]
|
/arch/powerpc/platforms/powernv/ |
D | opal-lpc.c | 188 static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf, in lpc_debug_read() argument 195 if (!access_ok(VERIFY_WRITE, ubuf, count)) in lpc_debug_read() 254 rc = __put_user((u32)data, (u32 __user *)ubuf); in lpc_debug_read() 260 rc = __put_user((u16)data, (u16 __user *)ubuf); in lpc_debug_read() 266 rc = __put_user((u8)data, (u8 __user *)ubuf); in lpc_debug_read() 272 ubuf += len; in lpc_debug_read() 279 static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf, in lpc_debug_write() argument 286 if (!access_ok(VERIFY_READ, ubuf, count)) in lpc_debug_write() 324 rc = __get_user(data, (u32 __user *)ubuf); in lpc_debug_write() 328 rc = __get_user(data, (u16 __user *)ubuf); in lpc_debug_write() [all …]
|
/arch/x86/kernel/cpu/mcheck/ |
D | dev-mcelog.c | 164 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei() argument 186 if (copy_to_user(*ubuf, &m, sizeof(struct mce))) in __mce_read_apei() 199 *ubuf += sizeof(struct mce); in __mce_read_apei() 204 static ssize_t mce_chrdev_read(struct file *filp, char __user *ubuf, in mce_chrdev_read() argument 207 char __user *buf = ubuf; in mce_chrdev_read() 215 if (err || buf != ubuf) in mce_chrdev_read() 243 return err ? err : buf - ubuf; in mce_chrdev_read() 295 static ssize_t mce_chrdev_write(struct file *filp, const char __user *ubuf, in mce_chrdev_write() argument 311 if (copy_from_user(&m, ubuf, usize)) in mce_chrdev_write()
|
/arch/s390/kernel/ |
D | ptrace.c | 893 void *kbuf, void __user *ubuf) in s390_regs_get() argument 906 unsigned long __user *u = ubuf; in s390_regs_get() 920 const void *kbuf, const void __user *ubuf) in s390_regs_set() argument 935 const unsigned long __user *u = ubuf; in s390_regs_set() 955 unsigned int count, void *kbuf, void __user *ubuf) in s390_fpregs_get() argument 965 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in s390_fpregs_get() 972 const void __user *ubuf) in s390_fpregs_set() argument 988 rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ufpc, in s390_fpregs_set() 998 rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in s390_fpregs_set() 1014 void *kbuf, void __user *ubuf) in s390_last_break_get() argument [all …]
|
/arch/mips/kernel/ |
D | ptrace.c | 294 void *kbuf, void __user *ubuf) in gpr32_get() argument 300 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, in gpr32_get() 307 const void *kbuf, const void __user *ubuf) in gpr32_set() argument 320 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, in gpr32_set() 358 void *kbuf, void __user *ubuf) in gpr64_get() argument 364 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, in gpr64_get() 371 const void *kbuf, const void __user *ubuf) in gpr64_set() argument 384 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, in gpr64_set() 420 void **kbuf, void __user **ubuf) in fpr_get_fpa() argument 422 return user_regset_copyout(pos, count, kbuf, ubuf, in fpr_get_fpa() [all …]
|
/arch/tile/kernel/ |
D | compat.c | 54 COMPAT_SYSCALL_DEFINE6(pread64, unsigned int, fd, char __user *, ubuf, in COMPAT_SYSCALL_DEFINE6() argument 57 return sys_pread64(fd, ubuf, count, in COMPAT_SYSCALL_DEFINE6() 61 COMPAT_SYSCALL_DEFINE6(pwrite64, unsigned int, fd, char __user *, ubuf, in COMPAT_SYSCALL_DEFINE6() argument 64 return sys_pwrite64(fd, ubuf, count, in COMPAT_SYSCALL_DEFINE6()
|
/arch/arc/kernel/ |
D | ptrace.c | 25 void *kbuf, void __user *ubuf) in genregs_get() argument 34 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get() 40 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get() 46 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ in genregs_get() 111 const void *kbuf, const void __user *ubuf) in genregs_set() argument 119 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 126 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 133 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 191 void *kbuf, void __user *ubuf) in arcv2regs_get() argument 205 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ®s->r30, in arcv2regs_get() [all …]
|
/arch/arm/kernel/ |
D | ptrace.c | 589 void *kbuf, void __user *ubuf) in gpr_get() argument 593 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get() 601 const void *kbuf, const void __user *ubuf) in gpr_set() argument 606 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 622 void *kbuf, void __user *ubuf) in fpa_get() argument 624 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpa_get() 632 const void *kbuf, const void __user *ubuf) in fpa_set() argument 638 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpa_set() 669 void *kbuf, void __user *ubuf) in vfp_get() argument 679 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in vfp_get() [all …]
|
/arch/score/kernel/ |
D | ptrace.c | 41 void *kbuf, void __user *ubuf) in genregs_get() argument 47 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 51 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 57 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 69 const void *kbuf, const void __user *ubuf) in genregs_set() argument 75 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() 79 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 85 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
|