Home
last modified time | relevance | path

Searched refs:user_addr (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.6.21/drivers/misc/lkdtm/
Dusercopy.c57 unsigned long user_addr; in do_usercopy_stack() local
81 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_stack()
84 if (user_addr >= TASK_SIZE) { in do_usercopy_stack()
91 if (copy_to_user((void __user *)user_addr, good_stack, in do_usercopy_stack()
98 if (copy_to_user((void __user *)user_addr, bad_stack, in do_usercopy_stack()
112 if (copy_from_user(good_stack, (void __user *)user_addr, in do_usercopy_stack()
119 if (copy_from_user(bad_stack, (void __user *)user_addr, in do_usercopy_stack()
127 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_stack()
136 unsigned long user_addr; in do_usercopy_slab_size() local
149 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_slab_size()
[all …]
Dperms.c202 unsigned long user_addr; in lkdtm_EXEC_USERSPACE() local
204 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_EXEC_USERSPACE()
207 if (user_addr >= TASK_SIZE) { in lkdtm_EXEC_USERSPACE()
211 execute_user_location((void *)user_addr); in lkdtm_EXEC_USERSPACE()
212 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_EXEC_USERSPACE()
222 unsigned long user_addr, tmp = 0; in lkdtm_ACCESS_USERSPACE() local
225 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_ACCESS_USERSPACE()
228 if (user_addr >= TASK_SIZE) { in lkdtm_ACCESS_USERSPACE()
233 if (copy_to_user((void __user *)user_addr, &tmp, sizeof(tmp))) { in lkdtm_ACCESS_USERSPACE()
235 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_ACCESS_USERSPACE()
[all …]
/linux-6.6.21/drivers/fpga/
Ddfl-afu-dma-region.c51 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()
Ddfl-afu.h54 u64 user_addr; member
99 u64 user_addr, u64 length, u64 *iova);
/linux-6.6.21/lib/
Dtest_user_copy.c186 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-6.6.21/arch/ia64/include/asm/
Dcacheflush.h31 #define flush_icache_user_page(vma, page, user_addr, len) \ argument
33 unsigned long _addr = (unsigned long) page_address(page) + ((user_addr) & ~PAGE_MASK); \
/linux-6.6.21/mm/
Dgup_test.c290 __u64 user_addr; in pin_longterm_test_read() local
296 if (copy_from_user(&user_addr, (void __user *)arg, sizeof(user_addr))) in pin_longterm_test_read()
303 ret = copy_to_user((void __user *)(unsigned long)user_addr, addr, in pin_longterm_test_read()
308 user_addr += PAGE_SIZE; in pin_longterm_test_read()
/linux-6.6.21/mm/kmsan/
Dreport.c149 int off_first, int off_last, const void *user_addr, in kmsan_report() argument
208 if (user_addr && reason == REASON_COPY_TO_USER) in kmsan_report()
209 pr_err("Data copied to user address %px\n", user_addr); in kmsan_report()
Dcore.c312 void kmsan_internal_check_memory(void *addr, size_t size, const void *user_addr, in kmsan_internal_check_memory() argument
339 cur_off_start, pos - 1, user_addr, in kmsan_internal_check_memory()
358 user_addr, reason); in kmsan_internal_check_memory()
378 user_addr, reason); in kmsan_internal_check_memory()
391 user_addr, reason); in kmsan_internal_check_memory()
Dkmsan.h99 int off_first, int off_last, const void *user_addr,
189 void kmsan_internal_check_memory(void *addr, size_t size, const void *user_addr,
/linux-6.6.21/drivers/misc/genwqe/
Dcard_utils.c292 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()
Dcard_base.h351 void __user *user_addr; /* user-space base-address */ member
369 void __user *user_addr, size_t user_size, int write);
/linux-6.6.21/arch/arm/include/asm/
Dcacheflush.h235 unsigned long user_addr, unsigned long pfn, unsigned int nr) in vivt_flush_cache_pages() argument
240 unsigned long addr = user_addr & PAGE_MASK; in vivt_flush_cache_pages()
256 void flush_cache_pages(struct vm_area_struct *vma, unsigned long user_addr,
/linux-6.6.21/arch/arm/mm/
Dflush.c98 void flush_cache_pages(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn, unsi… in flush_cache_pages() argument
101 vivt_flush_cache_pages(vma, user_addr, pfn, nr); in flush_cache_pages()
106 flush_pfn_alias(pfn, user_addr); in flush_cache_pages()
/linux-6.6.21/net/netrom/
Daf_netrom.c409 memset(&nr_sk(sk)->user_addr, 0, AX25_ADDR_LEN); in nr_listen()
604 nr->user_addr = addr->fsa_digipeater[0]; in nr_bind()
611 nr->user_addr = user->call; in nr_bind()
619 nr->user_addr = *source; in nr_bind()
690 nr->user_addr = user->call; in nr_connect()
698 nr->user_addr = *source; in nr_connect()
856 sax->fsa_ax25.sax25_call = nr->user_addr; in nr_getname()
989 nr_make->user_addr = *user; in nr_rx_frame()
1305 seq_printf(seq, "%-9s ", ax2asc(buf, &nr->user_addr)); in nr_info_show()
Dnr_subr.c164 memcpy(dptr, &nr->user_addr, AX25_ADDR_LEN); in nr_write_internal()
/linux-6.6.21/arch/um/drivers/
Dvhost_user.h98 u64 user_addr; member
/linux-6.6.21/include/uapi/linux/
Dfpga-dfl.h130 __u64 user_addr; /* Process virtual address */ member
Dio_uring.h432 __u64 user_addr; member
451 __u64 user_addr; member
/linux-6.6.21/arch/arc/include/asm/
Dcacheflush.h61 unsigned long user_addr, unsigned long page);
/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_mr.c666 struct ib_udata *udata, unsigned long user_addr) in mtr_alloc_bufs() argument
675 mtr->umem = ib_umem_get(ibdev, user_addr, total_size, in mtr_alloc_bufs()
995 unsigned long user_addr) in hns_roce_mtr_create() argument
1004 udata ? user_addr & ~PAGE_MASK : 0); in hns_roce_mtr_create()
1026 ret = mtr_alloc_bufs(hr_dev, mtr, buf_attr, udata, user_addr); in hns_roce_mtr_create()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c997 static int init_user_pages(struct kgd_mem *mem, uint64_t user_addr, in init_user_pages() argument
1008 ret = amdgpu_ttm_tt_set_userptr(&bo->tbo, user_addr, 0); in init_user_pages()
1014 ret = amdgpu_hmm_register(bo, user_addr); in init_user_pages()
1640 uint64_t user_addr = 0; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local
1677 user_addr = untagged_addr(*offset); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1747 if (user_addr) in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1755 add_kgd_mem_to_kfd_bo_list(*mem, avm->process_info, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1757 if (user_addr) { in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1758 pr_debug("creating userptr BO for user_addr = %llx\n", user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1759 ret = init_user_pages(*mem, user_addr, criu_resume); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
Damdgpu_ttm.h195 uint64_t *user_addr);
/linux-6.6.21/include/net/
Dnetrom.h69 ax25_address user_addr, source_addr, dest_addr; member
/linux-6.6.21/net/rds/
Drdma.c154 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()

12