/arch/x86/kernel/ |
D | sys_ia32.c | 68 SYSCALL_DEFINE5(ia32_pread64, unsigned int, fd, char __user *, ubuf, in SYSCALL_DEFINE5() argument 71 return ksys_pread64(fd, ubuf, count, in SYSCALL_DEFINE5() 75 SYSCALL_DEFINE5(ia32_pwrite64, unsigned int, fd, const char __user *, ubuf, in SYSCALL_DEFINE5() argument 78 return ksys_pwrite64(fd, ubuf, count, in SYSCALL_DEFINE5() 132 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) in cp_stat64() argument 134 typeof(ubuf->st_uid) uid = 0; in cp_stat64() 135 typeof(ubuf->st_gid) gid = 0; in cp_stat64() 138 if (!user_write_access_begin(ubuf, sizeof(struct stat64))) in cp_stat64() 140 unsafe_put_user(huge_encode_dev(stat->dev), &ubuf->st_dev, Efault); in cp_stat64() 141 unsafe_put_user(stat->ino, &ubuf->__st_ino, Efault); in cp_stat64() [all …]
|
/arch/powerpc/kernel/ptrace/ |
D | ptrace-decl.h | 69 const void *kbuf, const void __user *ubuf); 77 const void *kbuf, const void __user *ubuf); 85 const void *kbuf, const void __user *ubuf); 93 const void *kbuf, const void __user *ubuf); 104 const void *kbuf, const void __user *ubuf, 119 const void *kbuf, const void __user *ubuf); 124 const void *kbuf, const void __user *ubuf); 129 const void *kbuf, const void __user *ubuf); 134 const void *kbuf, const void __user *ubuf); 139 const void *kbuf, const void __user *ubuf); [all …]
|
D | ptrace-tm.c | 135 const void *kbuf, const void __user *ubuf) in tm_cgpr_set() argument 150 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 155 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set() 166 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 172 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 177 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set() 185 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 274 const void *kbuf, const void __user *ubuf) in tm_cfpr_set() argument 294 i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); in tm_cfpr_set() 394 const void *kbuf, const void __user *ubuf) in tm_cvmx_set() argument [all …]
|
D | ptrace-view.c | 246 const void __user *ubuf) in gpr_set() argument 256 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 261 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set() 272 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 278 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set() 283 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set() 291 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set() 309 const void __user *ubuf) in ppr_set() argument 314 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in ppr_set() 325 const void __user *ubuf) in dscr_set() argument [all …]
|
D | ptrace-spe.c | 41 const void *kbuf, const void __user *ubuf) in evr_set() argument 47 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in evr_set() 55 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in evr_set()
|
D | ptrace-vsx.c | 51 const void *kbuf, const void __user *ubuf) in fpr_set() argument 63 i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); in fpr_set() 128 const void *kbuf, const void __user *ubuf) in vsr_set() argument 141 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in vsr_set()
|
D | ptrace-altivec.c | 81 const void *kbuf, const void __user *ubuf) in vr_set() argument 90 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in vr_set() 108 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave, in vr_set()
|
D | ptrace-novsx.c | 47 const void *kbuf, const void __user *ubuf) in fpr_set() argument 54 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpr_set()
|
/arch/sparc/kernel/ |
D | ptrace_32.c | 110 const void *kbuf, const void __user *ubuf) in genregs32_set() argument 120 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 128 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 138 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 147 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 152 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 157 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 162 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs32_set() 185 const void *kbuf, const void __user *ubuf) in fpregs32_set() argument 194 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs32_set() [all …]
|
D | ptrace_64.c | 271 const void *kbuf, const void __user *ubuf) in genregs64_set() argument 279 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 288 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 302 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 318 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 327 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 336 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs64_set() 375 const void *kbuf, const void __user *ubuf) in fpregs64_set() argument 384 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs64_set() 388 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs64_set() [all …]
|
/arch/powerpc/platforms/powernv/ |
D | opal-lpc.c | 184 static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf, in lpc_debug_read() argument 191 if (!access_ok(ubuf, count)) in lpc_debug_read() 250 rc = __put_user((u32)data, (u32 __user *)ubuf); in lpc_debug_read() 256 rc = __put_user((u16)data, (u16 __user *)ubuf); in lpc_debug_read() 262 rc = __put_user((u8)data, (u8 __user *)ubuf); in lpc_debug_read() 268 ubuf += len; in lpc_debug_read() 275 static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf, in lpc_debug_write() argument 282 if (!access_ok(ubuf, count)) in lpc_debug_write() 320 rc = __get_user(data, (u32 __user *)ubuf); in lpc_debug_write() 324 rc = __get_user(data, (u16 __user *)ubuf); in lpc_debug_write() [all …]
|
D | opal-xscom.c | 87 static ssize_t scom_debug_read(struct file *filp, char __user *ubuf, in scom_debug_read() argument 91 u64 __user *ubuf64 = (u64 __user *)ubuf; in scom_debug_read() 118 static ssize_t scom_debug_write(struct file *filp, const char __user *ubuf, in scom_debug_write() argument 122 u64 __user *ubuf64 = (u64 __user *)ubuf; in scom_debug_write()
|
/arch/openrisc/kernel/ |
D | ptrace.c | 64 const void *kbuf, const void __user * ubuf) in genregs_set() argument 70 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_set() 73 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 77 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 84 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
|
/arch/x86/kernel/cpu/mce/ |
D | dev-mcelog.c | 163 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei() argument 185 if (copy_to_user(*ubuf, &m, sizeof(struct mce))) in __mce_read_apei() 198 *ubuf += sizeof(struct mce); in __mce_read_apei() 203 static ssize_t mce_chrdev_read(struct file *filp, char __user *ubuf, in mce_chrdev_read() argument 206 char __user *buf = ubuf; in mce_chrdev_read() 214 if (err || buf != ubuf) in mce_chrdev_read() 242 return err ? err : buf - ubuf; in mce_chrdev_read() 294 static ssize_t mce_chrdev_write(struct file *filp, const char __user *ubuf, in mce_chrdev_write() argument 310 if (copy_from_user(&m, ubuf, usize)) in mce_chrdev_write()
|
/arch/riscv/kernel/ |
D | ptrace.c | 43 const void *kbuf, const void __user *ubuf) in riscv_gpr_set() argument 49 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1); in riscv_gpr_set() 71 const void *kbuf, const void __user *ubuf) in riscv_fpr_set() argument 76 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, in riscv_fpr_set() 79 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, in riscv_fpr_set()
|
/arch/powerpc/kernel/ |
D | sys_ppc32.c | 64 compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, in compat_sys_pread64() argument 67 return ksys_pread64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); in compat_sys_pread64() 70 compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, in compat_sys_pwrite64() argument 73 return ksys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); in compat_sys_pwrite64()
|
/arch/nios2/kernel/ |
D | ptrace.c | 50 const void *kbuf, const void __user *ubuf) in genregs_set() argument 58 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 63 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 68 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 84 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
|
/arch/arm64/kernel/ |
D | ptrace.c | 508 const void *kbuf, const void __user *ubuf) in hw_break_set() argument 517 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); in hw_break_set() 526 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, in hw_break_set() 537 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, in hw_break_set() 546 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in hw_break_set() 569 const void *kbuf, const void __user *ubuf) in gpr_set() argument 574 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); in gpr_set() 623 const void *kbuf, const void __user *ubuf, in __fpr_set() argument 637 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, in __fpr_set() 649 const void *kbuf, const void __user *ubuf) in fpr_set() argument [all …]
|
/arch/x86/kernel/fpu/ |
D | regset.c | 45 const void *kbuf, const void __user *ubuf) in xfpregs_set() argument 56 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in xfpregs_set() 108 const void *kbuf, const void __user *ubuf) in xstateregs_set() argument 131 ret = copy_user_to_xstate(xsave, ubuf); in xstateregs_set() 133 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_set() 317 const void *kbuf, const void __user *ubuf) in fpregs_set() argument 327 return fpregs_soft_set(target, regset, pos, count, kbuf, ubuf); in fpregs_set() 330 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs_set() 337 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &env, 0, -1); in fpregs_set()
|
/arch/sh/kernel/ |
D | ptrace_32.c | 147 const void *kbuf, const void __user *ubuf) in genregs_set() argument 152 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 156 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 161 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() 185 const void *kbuf, const void __user *ubuf) in fpregs_set() argument 196 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs_set() 199 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs_set() 224 const void *kbuf, const void __user *ubuf) in dspregs_set() argument 230 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, in dspregs_set() 233 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in dspregs_set()
|
/arch/mips/kernel/ |
D | ptrace.c | 225 const void *kbuf, const void __user *ubuf) in gpr32_set() argument 238 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, in gpr32_set() 290 const void *kbuf, const void __user *ubuf) in gpr64_set() argument 303 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, in gpr64_set() 455 const void **kbuf, const void __user **ubuf) in fpr_set_fpa() argument 457 return user_regset_copyin(pos, count, kbuf, ubuf, in fpr_set_fpa() 470 const void **kbuf, const void __user **ubuf) in fpr_set_msa() argument 478 err = user_regset_copyin(pos, count, kbuf, ubuf, in fpr_set_msa() 504 const void *kbuf, const void __user *ubuf) in fpr_set() argument 519 err = fpr_set_fpa(target, &pos, &count, &kbuf, &ubuf); in fpr_set() [all …]
|
/arch/hexagon/kernel/ |
D | ptrace.c | 75 const void *kbuf, const void __user *ubuf) in genregs_set() argument 84 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 89 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 118 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
|
/arch/parisc/kernel/ |
D | ptrace.c | 415 const void *kbuf, const void __user *ubuf) in fpr_set() argument 419 const __u64 __user *u = ubuf; in fpr_set() 436 ubuf = u; in fpr_set() 439 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in fpr_set() 534 const void *kbuf, const void __user *ubuf) in gpr_set() argument 538 const unsigned long __user *u = ubuf; in gpr_set() 555 ubuf = u; in gpr_set() 558 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set() 599 const void *kbuf, const void __user *ubuf) in gpr32_set() argument 603 const compat_ulong_t __user *u = ubuf; in gpr32_set() [all …]
|
/arch/s390/kernel/ |
D | compat_linux.c | 80 COMPAT_SYSCALL_DEFINE5(s390_pread64, unsigned int, fd, char __user *, ubuf, in COMPAT_SYSCALL_DEFINE5() argument 85 return ksys_pread64(fd, ubuf, count, (unsigned long)high << 32 | low); in COMPAT_SYSCALL_DEFINE5() 88 COMPAT_SYSCALL_DEFINE5(s390_pwrite64, unsigned int, fd, const char __user *, ubuf, in COMPAT_SYSCALL_DEFINE5() argument 93 return ksys_pwrite64(fd, ubuf, count, (unsigned long)high << 32 | low); in COMPAT_SYSCALL_DEFINE5() 126 static int cp_stat64(struct stat64_emu31 __user *ubuf, struct kstat *stat) in cp_stat64() argument 147 return copy_to_user(ubuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_stat64()
|
/arch/arc/kernel/ |
D | ptrace.c | 81 const void *kbuf, const void __user *ubuf) in genregs_set() argument 89 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 96 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 103 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 179 const void *kbuf, const void __user *ubuf) in arcv2regs_set() argument 189 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, (void *)®s->r30, in arcv2regs_set()
|