/linux/drivers/misc/lkdtm/ |
A D | usercopy.c | 51 unsigned long user_addr; in do_usercopy_stack() local 69 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_stack() 72 if (user_addr >= TASK_SIZE) { in do_usercopy_stack() 115 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_stack() 124 unsigned long user_addr; in do_usercopy_heap_size() local 140 if (user_addr >= TASK_SIZE) { in do_usercopy_heap_size() 180 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_heap_size() 194 unsigned char __user *user_addr; in do_usercopy_heap_whitelist() local 301 unsigned long user_addr; in lkdtm_USERCOPY_KERNEL() local 306 if (user_addr >= TASK_SIZE) { in lkdtm_USERCOPY_KERNEL() [all …]
|
A D | perms.c | 159 unsigned long user_addr; in lkdtm_EXEC_USERSPACE() local 161 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_EXEC_USERSPACE() 164 if (user_addr >= TASK_SIZE) { in lkdtm_EXEC_USERSPACE() 168 execute_user_location((void *)user_addr); in lkdtm_EXEC_USERSPACE() 169 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_EXEC_USERSPACE() 179 unsigned long user_addr, tmp = 0; in lkdtm_ACCESS_USERSPACE() local 182 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_ACCESS_USERSPACE() 185 if (user_addr >= TASK_SIZE) { in lkdtm_ACCESS_USERSPACE() 192 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_ACCESS_USERSPACE() 196 ptr = (unsigned long *)user_addr; in lkdtm_ACCESS_USERSPACE() [all …]
|
/linux/drivers/fpga/ |
A D | dfl-afu-dma-region.c | 51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE, in afu_dma_pin_pages() 302 u64 user_addr, u64 length, u64 *iova) in afu_dma_map_region() argument 311 if (!PAGE_ALIGNED(user_addr) || !PAGE_ALIGNED(length) || !length) in afu_dma_map_region() 315 if (user_addr + length < user_addr) in afu_dma_map_region() 322 region->user_addr = user_addr; in afu_dma_map_region()
|
A D | dfl-afu.h | 54 u64 user_addr; member 99 u64 user_addr, u64 length, u64 *iova);
|
A D | dfl-afu-main.c | 723 ret = afu_dma_map_region(pdata, map.user_addr, map.length, &map.iova); in afu_ioctl_dma_map() 733 (unsigned long long)map.user_addr, in afu_ioctl_dma_map()
|
/linux/lib/ |
A D | test_user_copy.c | 186 unsigned long user_addr; in test_user_copy_init() local 198 user_addr = vm_mmap(NULL, 0, PAGE_SIZE * 2, in test_user_copy_init() 201 if (user_addr >= (unsigned long)(TASK_SIZE)) { in test_user_copy_init() 207 usermem = (char __user *)user_addr; in test_user_copy_init() 208 bad_usermem = (char *)user_addr; in test_user_copy_init() 310 vm_munmap(user_addr, PAGE_SIZE * 2); in test_user_copy_init()
|
/linux/arch/ia64/include/asm/ |
A D | cacheflush.h | 25 #define flush_icache_user_page(vma, page, user_addr, len) \ argument 27 unsigned long _addr = (unsigned long) page_address(page) + ((user_addr) & ~PAGE_MASK); \
|
/linux/drivers/misc/genwqe/ |
A D | card_utils.c | 292 void __user *user_addr, size_t user_size, int write) in genwqe_alloc_sync_sgl() argument 297 sgl->fpage_offs = offset_in_page((unsigned long)user_addr); in genwqe_alloc_sync_sgl() 303 __func__, user_addr, user_size, sgl->nr_pages, in genwqe_alloc_sync_sgl() 306 sgl->user_addr = user_addr; in genwqe_alloc_sync_sgl() 334 user_addr, sgl->fpage_size)) { in genwqe_alloc_sync_sgl() 346 if (copy_from_user(sgl->lpage, user_addr + user_size - in genwqe_alloc_sync_sgl() 482 res = copy_to_user(sgl->user_addr, in genwqe_free_sync_sgl() 499 res = copy_to_user(sgl->user_addr + offset, sgl->lpage, in genwqe_free_sync_sgl()
|
A D | card_base.h | 351 void __user *user_addr; /* user-space base-address */ member 369 void __user *user_addr, size_t user_size, int write);
|
/linux/arch/arm/include/asm/ |
A D | cacheflush.h | 235 vivt_flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) in vivt_flush_cache_page() argument 240 unsigned long addr = user_addr & PAGE_MASK; in vivt_flush_cache_page() 255 extern void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn…
|
/linux/arch/arm/mm/ |
A D | flush.c | 98 void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) in flush_cache_page() argument 101 vivt_flush_cache_page(vma, user_addr, pfn); in flush_cache_page() 106 flush_pfn_alias(pfn, user_addr); in flush_cache_page()
|
/linux/net/netrom/ |
A D | af_netrom.c | 404 memset(&nr_sk(sk)->user_addr, 0, AX25_ADDR_LEN); in nr_listen() 599 nr->user_addr = addr->fsa_digipeater[0]; in nr_bind() 606 nr->user_addr = user->call; in nr_bind() 614 nr->user_addr = *source; in nr_bind() 680 nr->user_addr = user->call; in nr_connect() 688 nr->user_addr = *source; in nr_connect() 846 sax->fsa_ax25.sax25_call = nr->user_addr; in nr_getname() 979 nr_make->user_addr = *user; in nr_rx_frame() 1294 seq_printf(seq, "%-9s ", ax2asc(buf, &nr->user_addr)); in nr_info_show()
|
A D | nr_subr.c | 163 memcpy(dptr, &nr->user_addr, AX25_ADDR_LEN); in nr_write_internal()
|
/linux/arch/um/drivers/ |
A D | vhost_user.h | 98 u64 user_addr; member
|
A D | virtio_uml.c | 593 region_out->user_addr = addr; in vhost_user_init_mem_region()
|
/linux/arch/arc/include/asm/ |
A D | cacheflush.h | 66 unsigned long user_addr, unsigned long page);
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_mr.c | 692 struct ib_udata *udata, unsigned long user_addr) in mtr_alloc_bufs() argument 701 mtr->umem = ib_umem_get(ibdev, user_addr, total_size, in mtr_alloc_bufs() 982 unsigned long user_addr) in hns_roce_mtr_create() argument 991 udata ? user_addr & ~PAGE_MASK : 0); in hns_roce_mtr_create() 1013 ret = mtr_alloc_bufs(hr_dev, mtr, buf_attr, udata, user_addr); in hns_roce_mtr_create()
|
A D | hns_roce_device.h | 1165 unsigned long user_addr);
|
/linux/include/uapi/linux/ |
A D | fpga-dfl.h | 130 __u64 user_addr; /* Process virtual address */ member
|
A D | kvm.h | 1402 __u64 user_addr; member
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_amdkfd_gpuvm.c | 826 static int init_user_pages(struct kgd_mem *mem, uint64_t user_addr) in init_user_pages() argument 835 ret = amdgpu_ttm_tt_set_userptr(&bo->tbo, user_addr, 0); in init_user_pages() 841 ret = amdgpu_mn_register(bo, user_addr); in init_user_pages() 1397 uint64_t user_addr = 0; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local 1421 user_addr = untagged_addr(*offset); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1485 if (user_addr) in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1492 add_kgd_mem_to_kfd_bo_list(*mem, avm->process_info, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1494 if (user_addr) { in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1495 ret = init_user_pages(*mem, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
|
/linux/include/net/ |
A D | netrom.h | 68 ax25_address user_addr, source_addr, dest_addr; member
|
/linux/net/rds/ |
A D | rdma.c | 154 static int rds_pin_pages(unsigned long user_addr, unsigned int nr_pages, in rds_pin_pages() argument 163 ret = pin_user_pages_fast(user_addr, nr_pages, gup_flags, pages); in rds_pin_pages()
|
/linux/fs/fuse/ |
A D | file.c | 1379 unsigned long user_addr = fuse_get_user_addr(ii); in fuse_get_user_pages() local 1383 ap->args.in_args[1].value = (void *) user_addr; in fuse_get_user_pages() 1385 ap->args.out_args[0].value = (void *) user_addr; in fuse_get_user_pages()
|
/linux/tools/include/uapi/linux/ |
A D | kvm.h | 1402 __u64 user_addr; member
|