/kernel/linux/linux-5.10/drivers/misc/vmw_vmci/ |
D | vmci_host.c | 256 unsigned int cmd, void __user *uptr) in vmci_host_get_version() argument 259 int __user *vptr = uptr; in vmci_host_get_version() 291 void __user *uptr) in vmci_host_do_init_context() argument 297 if (copy_from_user(&init_block, uptr, sizeof(init_block))) { in vmci_host_do_init_context() 333 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context() 355 void __user *uptr) in vmci_host_do_send_datagram() argument 366 if (copy_from_user(&send_info, uptr, sizeof(send_info))) in vmci_host_do_send_datagram() 405 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram() 410 void __user *uptr) in vmci_host_do_receive_datagram() argument 422 if (copy_from_user(&recv_info, uptr, sizeof(recv_info))) in vmci_host_do_receive_datagram() [all …]
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | uprobes.c | 274 void *uptr; in handle_insn_ril() local 279 uptr = (void *)(regs->psw.addr + (insn->disp * 2)); in handle_insn_ril() 286 rx->u64 = (unsigned long)uptr; in handle_insn_ril() 293 rc = emu_load_ril((u16 __user *)uptr, &rx->u32[1]); in handle_insn_ril() 296 rc = emu_load_ril((s16 __user *)uptr, &rx->u64); in handle_insn_ril() 299 rc = emu_load_ril((s16 __user *)uptr, &rx->u32[1]); in handle_insn_ril() 302 rc = emu_load_ril((u16 __user *)uptr, &rx->u64); in handle_insn_ril() 305 rc = emu_load_ril((u64 __user *)uptr, &rx->u64); in handle_insn_ril() 308 rc = emu_load_ril((s32 __user *)uptr, &rx->u64); in handle_insn_ril() 311 rc = emu_load_ril((u32 __user *)uptr, &rx->u32[1]); in handle_insn_ril() [all …]
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | compat.h | 174 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 176 return (void __user *)(unsigned long)(uptr & 0x7fffffffUL); in compat_ptr() 178 #define compat_ptr(uptr) compat_ptr(uptr) argument
|
/kernel/linux/linux-5.10/arch/s390/pci/ |
D | pci_clp.c | 553 void __user *uptr; in clp_normal_command() local 566 uptr = (void __force __user *)(unsigned long) req->data_p; in clp_normal_command() 567 if (copy_from_user(lpcb, uptr, PAGE_SIZE) != 0) in clp_normal_command() 586 if (copy_to_user(uptr, lpcb, PAGE_SIZE) != 0) in clp_normal_command() 599 void __user *uptr; in clp_immediate_command() local 606 uptr = (void __force __user *)(unsigned long) req->data_p; in clp_immediate_command() 610 return put_user(exists, (int __user *) uptr); in clp_immediate_command() 613 return put_user(ilp, (unsigned long __user *) uptr); in clp_immediate_command()
|
/kernel/linux/linux-5.10/ipc/ |
D | syscall.c | 161 void __user *uptr = compat_ptr(ptr); in compat_ksys_ipc() local 168 if (!uptr) in compat_ksys_ipc() 170 if (copy_from_user(&ipck, uptr, sizeof(ipck))) in compat_ksys_ipc()
|
D | msg.c | 726 static long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr, int version) in compat_ksys_msgctl() argument 744 if (copy_to_user(uptr, &msginfo, sizeof(struct msginfo))) in compat_ksys_msgctl() 754 if (copy_compat_msqid_to_user(uptr, &msqid64, version)) in compat_ksys_msgctl() 758 if (copy_compat_msqid_from_user(&msqid64, uptr, version)) in compat_ksys_msgctl() 768 COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument 770 return compat_ksys_msgctl(msqid, cmd, uptr, IPC_64); in COMPAT_SYSCALL_DEFINE3() 774 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr) in compat_ksys_old_msgctl() argument 778 return compat_ksys_msgctl(msqid, cmd, uptr, version); in compat_ksys_old_msgctl() 781 COMPAT_SYSCALL_DEFINE3(old_msgctl, int, msqid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument 783 return compat_ksys_old_msgctl(msqid, cmd, uptr); in COMPAT_SYSCALL_DEFINE3()
|
D | shm.c | 1430 static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version) in compat_ksys_shmctl() argument 1447 if (copy_compat_shminfo_to_user(uptr, &shminfo, version)) in compat_ksys_shmctl() 1456 if (put_compat_shm_info(&shm_info, uptr)) in compat_ksys_shmctl() 1466 if (copy_compat_shmid_to_user(uptr, &sem64, version)) in compat_ksys_shmctl() 1471 if (copy_compat_shmid_from_user(&sem64, uptr, version)) in compat_ksys_shmctl() 1485 COMPAT_SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument 1487 return compat_ksys_shmctl(shmid, cmd, uptr, IPC_64); in COMPAT_SYSCALL_DEFINE3() 1491 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr) in compat_ksys_old_shmctl() argument 1495 return compat_ksys_shmctl(shmid, cmd, uptr, version); in compat_ksys_old_shmctl() 1498 COMPAT_SYSCALL_DEFINE3(old_shmctl, int, shmid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument [all …]
|
D | util.h | 281 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr); 286 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_bo_list.c | 226 const void __user *uptr = u64_to_user_ptr(in->bo_info_ptr); in amdgpu_bo_create_list_entry_array() local 241 if (copy_from_user(info, uptr, bytes)) in amdgpu_bo_create_list_entry_array() 250 if (copy_from_user(&info[i], uptr, bytes)) in amdgpu_bo_create_list_entry_array() 253 uptr += in->bo_info_size; in amdgpu_bo_create_list_entry_array()
|
/kernel/linux/linux-5.10/drivers/usb/mon/ |
D | mon_bin.c | 1083 struct mon_bin_mfetch __user *uptr; in mon_bin_ioctl() local 1085 uptr = (struct mon_bin_mfetch __user *)arg; in mon_bin_ioctl() 1087 if (copy_from_user(&mfetch, uptr, sizeof(mfetch))) in mon_bin_ioctl() 1094 if (put_user(ret, &uptr->nflush)) in mon_bin_ioctl() 1100 if (put_user(ret, &uptr->nfetch)) in mon_bin_ioctl() 1162 struct mon_bin_mfetch32 __user *uptr; in mon_bin_compat_ioctl() local 1164 uptr = (struct mon_bin_mfetch32 __user *) compat_ptr(arg); in mon_bin_compat_ioctl() 1166 if (copy_from_user(&mfetch, uptr, sizeof(mfetch))) in mon_bin_compat_ioctl() 1173 if (put_user(ret, &uptr->nflush32)) in mon_bin_compat_ioctl() 1180 if (put_user(ret, &uptr->nfetch32)) in mon_bin_compat_ioctl()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | vas-api.c | 74 void __user *uptr = (void __user *)arg; in coproc_ioc_tx_win_open() local 89 rc = copy_from_user(&uattr, uptr, sizeof(uattr)); in coproc_ioc_tx_win_open()
|
/kernel/linux/linux-5.10/include/linux/ |
D | compat.h | 703 asmlinkage long compat_sys_msgctl(int first, int second, void __user *uptr); 713 asmlinkage long compat_sys_shmctl(int first, int second, void __user *uptr); 923 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 925 return (void __user *)(unsigned long)uptr; in compat_ptr() 929 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument 931 return (u32)(unsigned long)uptr; in ptr_to_compat()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/ |
D | guest.c | 444 char __user *uptr = (char __user *)reg->addr; in get_sve_reg() local 458 if (copy_to_user(uptr, vcpu->arch.sve_state + region.koffset, in get_sve_reg() 460 clear_user(uptr + region.klen, region.upad)) in get_sve_reg() 470 const char __user *uptr = (const char __user *)reg->addr; in set_sve_reg() local 484 if (copy_from_user(vcpu->arch.sve_state + region.koffset, uptr, in set_sve_reg()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/xen/ |
D | privcmd.h | 42 void __user *uptr; member
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | tvlv.h | 33 int (*uptr)(struct batadv_priv *bat_priv,
|
D | tvlv.c | 518 int (*uptr)(struct batadv_priv *bat_priv, in batadv_tvlv_handler_register() 542 tvlv_handler->unicast_handler = uptr; in batadv_tvlv_handler_register()
|
/kernel/linux/linux-5.10/include/uapi/xen/ |
D | privcmd.h | 82 void __user *uptr; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/xen/ |
D | privcmd.h | 54 void __user * uptr; member
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | privcmd.c | 591 offset_in_page(kbufs[i].uptr) + kbufs[i].size, in lock_pages() 597 (unsigned long)kbufs[i].uptr + off * PAGE_SIZE, in lock_pages() 659 if (!access_ok(kbufs[i].uptr, in privcmd_ioctl_dm_op() 666 offset_in_page(kbufs[i].uptr) + kbufs[i].size, in privcmd_ioctl_dm_op() 687 set_xen_guest_handle(xbufs[i].h, kbufs[i].uptr); in privcmd_ioctl_dm_op()
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
D | arp_tables.c | 845 static int get_entries(struct net *net, struct arpt_get_entries __user *uptr, in get_entries() argument 854 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in get_entries() 867 t, uptr->entrytable); in get_entries() 1365 struct compat_arpt_get_entries __user *uptr, in compat_get_entries() argument 1374 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in compat_get_entries() 1390 t, uptr->entrytable); in compat_get_entries()
|
D | ip_tables.c | 1004 get_entries(struct net *net, struct ipt_get_entries __user *uptr, in get_entries() argument 1013 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in get_entries() 1024 t, uptr->entrytable); in get_entries() 1573 compat_get_entries(struct net *net, struct compat_ipt_get_entries __user *uptr, in compat_get_entries() argument 1583 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in compat_get_entries() 1599 t, uptr->entrytable); in compat_get_entries()
|
/kernel/linux/linux-5.10/lib/ |
D | test_hmm.c | 869 char __user *uptr; in dmirror_snapshot() local 889 uptr = u64_to_user_ptr(cmd->ptr); in dmirror_snapshot() 902 if (copy_to_user(uptr, perm, n)) { in dmirror_snapshot() 908 uptr += n; in dmirror_snapshot()
|
/kernel/linux/linux-5.10/drivers/android/ |
D | binder_alloc.c | 132 void __user *uptr; in binder_alloc_prepare_to_free_locked() local 134 uptr = (void __user *)user_ptr; in binder_alloc_prepare_to_free_locked() 140 if (uptr < buffer->user_data) in binder_alloc_prepare_to_free_locked() 142 else if (uptr > buffer->user_data) in binder_alloc_prepare_to_free_locked()
|
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
D | ip6_tables.c | 1021 get_entries(struct net *net, struct ip6t_get_entries __user *uptr, in get_entries() argument 1030 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in get_entries() 1042 t, uptr->entrytable); in get_entries() 1583 compat_get_entries(struct net *net, struct compat_ip6t_get_entries __user *uptr, in compat_get_entries() argument 1593 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in compat_get_entries() 1609 t, uptr->entrytable); in compat_get_entries()
|
/kernel/linux/linux-5.10/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_arm.c | 1056 compat_uptr_t __user *uptr = ubuf; in vchiq_get_user_ptr() local 1057 ret = get_user(ptr32, uptr + index); in vchiq_get_user_ptr() 1060 uintptr_t ptr, __user *uptr = ubuf; in vchiq_get_user_ptr() local 1061 ret = get_user(ptr, uptr + index); in vchiq_get_user_ptr()
|