/linux-6.6.21/arch/x86/kernel/ |
D | signal_32.c | 187 unsafe_put_user(get_user_seg(gs), (unsigned int __user *)&sc->gs, Efault); in __unsafe_setup_sigcontext32() 189 unsafe_put_user(get_user_seg(fs), (unsigned int __user *)&sc->fs, Efault); in __unsafe_setup_sigcontext32() 190 unsafe_put_user(get_user_seg(ds), (unsigned int __user *)&sc->ds, Efault); in __unsafe_setup_sigcontext32() 191 unsafe_put_user(get_user_seg(es), (unsigned int __user *)&sc->es, Efault); in __unsafe_setup_sigcontext32() 193 unsafe_put_user(regs->fs, (unsigned int __user *)&sc->fs, Efault); in __unsafe_setup_sigcontext32() 194 unsafe_put_user(regs->es, (unsigned int __user *)&sc->es, Efault); in __unsafe_setup_sigcontext32() 195 unsafe_put_user(regs->ds, (unsigned int __user *)&sc->ds, Efault); in __unsafe_setup_sigcontext32() 198 unsafe_put_user(regs->di, &sc->di, Efault); in __unsafe_setup_sigcontext32() 199 unsafe_put_user(regs->si, &sc->si, Efault); in __unsafe_setup_sigcontext32() 200 unsafe_put_user(regs->bp, &sc->bp, Efault); in __unsafe_setup_sigcontext32() [all …]
|
D | signal_64.c | 102 unsafe_put_user(regs->di, &sc->di, Efault); in __unsafe_setup_sigcontext() 103 unsafe_put_user(regs->si, &sc->si, Efault); in __unsafe_setup_sigcontext() 104 unsafe_put_user(regs->bp, &sc->bp, Efault); in __unsafe_setup_sigcontext() 105 unsafe_put_user(regs->sp, &sc->sp, Efault); in __unsafe_setup_sigcontext() 106 unsafe_put_user(regs->bx, &sc->bx, Efault); in __unsafe_setup_sigcontext() 107 unsafe_put_user(regs->dx, &sc->dx, Efault); in __unsafe_setup_sigcontext() 108 unsafe_put_user(regs->cx, &sc->cx, Efault); in __unsafe_setup_sigcontext() 109 unsafe_put_user(regs->ax, &sc->ax, Efault); in __unsafe_setup_sigcontext() 110 unsafe_put_user(regs->r8, &sc->r8, Efault); in __unsafe_setup_sigcontext() 111 unsafe_put_user(regs->r9, &sc->r9, Efault); in __unsafe_setup_sigcontext() [all …]
|
D | sys_ia32.c | 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() 142 unsafe_put_user(stat->ino, &ubuf->st_ino, Efault); in cp_stat64() 143 unsafe_put_user(stat->mode, &ubuf->st_mode, Efault); in cp_stat64() 144 unsafe_put_user(stat->nlink, &ubuf->st_nlink, Efault); in cp_stat64() 145 unsafe_put_user(uid, &ubuf->st_uid, Efault); in cp_stat64() 146 unsafe_put_user(gid, &ubuf->st_gid, Efault); in cp_stat64() 147 unsafe_put_user(huge_encode_dev(stat->rdev), &ubuf->st_rdev, Efault); in cp_stat64() 148 unsafe_put_user(stat->size, &ubuf->st_size, Efault); in cp_stat64() 149 unsafe_put_user(stat->atime.tv_sec, &ubuf->st_atime, Efault); in cp_stat64() [all …]
|
D | vm86_32.c | 119 unsafe_put_user(regs->pt.bx, &user->regs.ebx, Efault_end); in save_v86_state() 120 unsafe_put_user(regs->pt.cx, &user->regs.ecx, Efault_end); in save_v86_state() 121 unsafe_put_user(regs->pt.dx, &user->regs.edx, Efault_end); in save_v86_state() 122 unsafe_put_user(regs->pt.si, &user->regs.esi, Efault_end); in save_v86_state() 123 unsafe_put_user(regs->pt.di, &user->regs.edi, Efault_end); in save_v86_state() 124 unsafe_put_user(regs->pt.bp, &user->regs.ebp, Efault_end); in save_v86_state() 125 unsafe_put_user(regs->pt.ax, &user->regs.eax, Efault_end); in save_v86_state() 126 unsafe_put_user(regs->pt.ip, &user->regs.eip, Efault_end); in save_v86_state() 127 unsafe_put_user(regs->pt.cs, &user->regs.cs, Efault_end); in save_v86_state() 128 unsafe_put_user(regs->pt.flags, &user->regs.eflags, Efault_end); in save_v86_state() [all …]
|
/linux-6.6.21/fs/ |
D | readdir.c | 82 unsafe_put_user(0, dst+len, label); \ 203 unsafe_put_user(d_ino, &dirent->d_ino, efault_end); in fillonedir() 204 unsafe_put_user(offset, &dirent->d_offset, efault_end); in fillonedir() 205 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in fillonedir() 289 unsafe_put_user(offset, &prev->d_off, efault_end); in filldir() 290 unsafe_put_user(d_ino, &dirent->d_ino, efault_end); in filldir() 291 unsafe_put_user(reclen, &dirent->d_reclen, efault_end); in filldir() 292 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir() 371 unsafe_put_user(offset, &prev->d_off, efault_end); in filldir64() 372 unsafe_put_user(ino, &dirent->d_ino, efault_end); in filldir64() [all …]
|
D | select.c | 1026 unsafe_put_user(fds->revents, &ufds->revents, Efault); in do_sys_poll()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | signal_32.c | 104 unsafe_put_user(val, &frame->mc_gregs[i], failed); in __unsafe_save_general_regs() 293 unsafe_put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32], in __unsafe_save_user_regs() 327 unsafe_put_user(current->thread.spefscr, in __unsafe_save_user_regs() 331 unsafe_put_user(msr, &frame->mc_gregs[PT_MSR], failed); in __unsafe_save_user_regs() 337 unsafe_put_user(0, &tm_frame->mc_gregs[PT_MSR], failed); in __unsafe_save_user_regs() 382 unsafe_put_user((msr >> 32), &tm_frame->mc_gregs[PT_MSR], failed); in save_tm_user_regs_unsafe() 408 unsafe_put_user(current->thread.ckvrsave, in save_tm_user_regs_unsafe() 411 unsafe_put_user(current->thread.vrsave, in save_tm_user_regs_unsafe() 414 unsafe_put_user(current->thread.ckvrsave, in save_tm_user_regs_unsafe() 439 unsafe_put_user(msr, &frame->mc_gregs[PT_MSR], failed); in save_tm_user_regs_unsafe() [all …]
|
D | align.c | 260 unsafe_put_user(data.v[0], p++, Efault_write); in emulate_spe() 261 unsafe_put_user(data.v[1], p++, Efault_write); in emulate_spe() 262 unsafe_put_user(data.v[2], p++, Efault_write); in emulate_spe() 263 unsafe_put_user(data.v[3], p++, Efault_write); in emulate_spe() 266 unsafe_put_user(data.v[4], p++, Efault_write); in emulate_spe() 267 unsafe_put_user(data.v[5], p++, Efault_write); in emulate_spe() 270 unsafe_put_user(data.v[6], p++, Efault_write); in emulate_spe() 271 unsafe_put_user(data.v[7], p++, Efault_write); in emulate_spe()
|
D | signal.h | 57 unsafe_put_user(__t->thread.TS_FPR(i), &buf[i], label); \ 58 unsafe_put_user(__t->thread.fp_state.fpscr, &buf[i], label); \ 67 unsafe_put_user(__t->thread.fp_state.fpr[i][TS_VSRLOWOFFSET], \ 98 unsafe_put_user(__t->thread.TS_CKFPR(i), &buf[i], label);\ 99 unsafe_put_user(__t->thread.ckfp_state.fpscr, &buf[i], label); \ 108 unsafe_put_user(__t->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET], \
|
D | signal_64.c | 137 unsafe_put_user(v_regs, &sc->v_regs, efault_out); in __unsafe_setup_sigcontext() 152 unsafe_put_user(tsk->thread.vrsave, (u32 __user *)&v_regs[33], efault_out); in __unsafe_setup_sigcontext() 154 unsafe_put_user(0, &sc->v_regs, efault_out); in __unsafe_setup_sigcontext() 179 unsafe_put_user(&sc->gp_regs, &sc->regs, efault_out); in __unsafe_setup_sigcontext() 181 unsafe_put_user(msr, &sc->gp_regs[PT_MSR], efault_out); in __unsafe_setup_sigcontext() 182 unsafe_put_user(softe, &sc->gp_regs[PT_SOFTE], efault_out); in __unsafe_setup_sigcontext() 183 unsafe_put_user(signr, &sc->signal, efault_out); in __unsafe_setup_sigcontext() 184 unsafe_put_user(handler, &sc->handler, efault_out); in __unsafe_setup_sigcontext() 186 unsafe_put_user(set->sig[0], &sc->oldmask, efault_out); in __unsafe_setup_sigcontext() 879 unsafe_put_user(&frame->info, &frame->pinfo, badframe_block); in handle_rt_signal64() [all …]
|
/linux-6.6.21/kernel/ |
D | rseq.c | 98 unsafe_put_user(cpu_id, &rseq->cpu_id_start, efault_end); in rseq_update_cpu_node_id() 99 unsafe_put_user(cpu_id, &rseq->cpu_id, efault_end); in rseq_update_cpu_node_id() 100 unsafe_put_user(node_id, &rseq->node_id, efault_end); in rseq_update_cpu_node_id() 101 unsafe_put_user(mm_cid, &rseq->mm_cid, efault_end); in rseq_update_cpu_node_id()
|
D | compat.c | 236 unsafe_put_user((compat_ulong_t)m, umask++, Efault); in compat_put_bitmap() 237 unsafe_put_user(m >> BITS_PER_COMPAT_LONG, umask++, Efault); in compat_put_bitmap() 241 unsafe_put_user((compat_ulong_t)*mask, umask++, Efault); in compat_put_bitmap()
|
D | exit.c | 1729 unsafe_put_user(signo, &infop->si_signo, Efault); in SYSCALL_DEFINE5() 1730 unsafe_put_user(0, &infop->si_errno, Efault); in SYSCALL_DEFINE5() 1731 unsafe_put_user(info.cause, &infop->si_code, Efault); in SYSCALL_DEFINE5() 1732 unsafe_put_user(info.pid, &infop->si_pid, Efault); in SYSCALL_DEFINE5() 1733 unsafe_put_user(info.uid, &infop->si_uid, Efault); in SYSCALL_DEFINE5() 1734 unsafe_put_user(info.status, &infop->si_status, Efault); in SYSCALL_DEFINE5() 1872 unsafe_put_user(signo, &infop->si_signo, Efault); in COMPAT_SYSCALL_DEFINE5() 1873 unsafe_put_user(0, &infop->si_errno, Efault); in COMPAT_SYSCALL_DEFINE5() 1874 unsafe_put_user(info.cause, &infop->si_code, Efault); in COMPAT_SYSCALL_DEFINE5() 1875 unsafe_put_user(info.pid, &infop->si_pid, Efault); in COMPAT_SYSCALL_DEFINE5() [all …]
|
/linux-6.6.21/include/linux/ |
D | compat.h | 475 unsafe_put_user(__s->sig[3] >> 32, &__c->sig[7], label); \ 476 unsafe_put_user(__s->sig[3], &__c->sig[6], label); \ 479 unsafe_put_user(__s->sig[2] >> 32, &__c->sig[5], label); \ 480 unsafe_put_user(__s->sig[2], &__c->sig[4], label); \ 483 unsafe_put_user(__s->sig[1] >> 32, &__c->sig[3], label); \ 484 unsafe_put_user(__s->sig[1], &__c->sig[2], label); \ 487 unsafe_put_user(__s->sig[0] >> 32, &__c->sig[1], label); \ 488 unsafe_put_user(__s->sig[0], &__c->sig[0], label); \ 549 unsafe_put_user(ptr_to_compat((void __user *)t->sas_ss_sp), \ 551 unsafe_put_user(t->sas_ss_flags, &__uss->ss_flags, label); \ [all …]
|
D | signal.h | 462 unsafe_put_user((void __user *)t->sas_ss_sp, &__uss->ss_sp, label); \ 463 unsafe_put_user(t->sas_ss_flags, &__uss->ss_flags, label); \ 464 unsafe_put_user(t->sas_ss_size, &__uss->ss_size, label); \
|
D | uaccess.h | 424 #define unsafe_put_user(x,p,e) unsafe_op_wrap(__put_user(x,p),e) macro
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | uaccess.h | 440 #define unsafe_put_user(x, p, e) \ macro 472 unsafe_put_user(*(u64 *)(_src + _i), (u64 __user *)(_dst + _i), e); \ 474 unsafe_put_user(*(u32*)(_src + _i), (u32 __user *)(_dst + _i), e); \ 478 unsafe_put_user(*(u16*)(_src + _i), (u16 __user *)(_dst + _i), e); \ 482 unsafe_put_user(*(u8*)(_src + _i), (u8 __user *)(_dst + _i), e); \
|
/linux-6.6.21/net/core/ |
D | scm.c | 244 unsafe_put_user(cmlen, &cm->cmsg_len, efault_end); in put_cmsg() 245 unsafe_put_user(level, &cm->cmsg_level, efault_end); in put_cmsg() 246 unsafe_put_user(type, &cm->cmsg_type, efault_end); in put_cmsg()
|
/linux-6.6.21/arch/x86/include/asm/ |
D | uaccess.h | 532 #define unsafe_put_user(x, ptr, label) \ macro 604 unsafe_put_user(*(type *)(src),(type __user *)(dst),label); \
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | i915_query.c | 214 unsafe_put_user(i915_mmio_reg_offset(kernel_regs[r].addr), in copy_perf_config_registers_or_number() 216 unsafe_put_user(kernel_regs[r].value, p + 1, Efault); in copy_perf_config_registers_or_number()
|
/linux-6.6.21/arch/powerpc/lib/ |
D | sstep.c | 444 unsafe_put_user(val, (unsigned char __user *)ea, Efault); in __write_mem_aligned() 447 unsafe_put_user(val, (unsigned short __user *)ea, Efault); in __write_mem_aligned() 450 unsafe_put_user(val, (unsigned int __user *)ea, Efault); in __write_mem_aligned() 454 unsafe_put_user(val, (unsigned long __user *)ea, Efault); in __write_mem_aligned() 498 unsafe_put_user(*dest, (u8 __user *)ea, Efault); in __copy_mem_out() 501 unsafe_put_user(*(u16 *)dest, (u16 __user *)ea, Efault); in __copy_mem_out() 504 unsafe_put_user(*(u32 *)dest, (u32 __user *)ea, Efault); in __copy_mem_out() 508 unsafe_put_user(*(u64 *)dest, (u64 __user *)ea, Efault); in __copy_mem_out() 1062 unsafe_put_user(0, (unsigned long __user *)(ea + i), Efault); in __emulate_dcbz()
|
/linux-6.6.21/mm/ |
D | gup.c | 1867 unsafe_put_user(0, uaddr, out); in fault_in_writeable() 1874 unsafe_put_user(0, uaddr, out); in fault_in_writeable()
|
/linux-6.6.21/drivers/gpu/drm/i915/gem/ |
D | i915_gem_execbuffer.c | 1715 unsafe_put_user(-1, in eb_copy_relocations() 3640 unsafe_put_user(exec2_list[i].offset, in i915_gem_execbuffer2_ioctl()
|
/linux-6.6.21/arch/x86/kvm/ |
D | x86.c | 3589 unsafe_put_user(0, &st->preempted, out); in record_steal_time() 3598 unsafe_put_user(version, &st->version, out); in record_steal_time() 3606 unsafe_put_user(steal, &st->steal, out); in record_steal_time() 3609 unsafe_put_user(version, &st->version, out); in record_steal_time()
|