Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/misc/lkdtm/
Dusercopy.c56 unsigned long user_addr; in do_usercopy_stack() local
80 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_stack()
83 if (user_addr >= TASK_SIZE) { in do_usercopy_stack()
90 if (copy_to_user((void __user *)user_addr, good_stack, in do_usercopy_stack()
97 if (copy_to_user((void __user *)user_addr, bad_stack, in do_usercopy_stack()
111 if (copy_from_user(good_stack, (void __user *)user_addr, in do_usercopy_stack()
118 if (copy_from_user(bad_stack, (void __user *)user_addr, in do_usercopy_stack()
126 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_stack()
135 unsigned long user_addr; in do_usercopy_heap_size() local
148 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_heap_size()
[all …]
Dperms.c159 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()
190 if (copy_to_user((void __user *)user_addr, &tmp, sizeof(tmp))) { in lkdtm_ACCESS_USERSPACE()
192 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_ACCESS_USERSPACE()
[all …]
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Dcacheflush.h25 #define flush_icache_user_page(vma, page, user_addr, len) \ argument
27 unsigned long _addr = (unsigned long) page_address(page) + ((user_addr) & ~PAGE_MASK); \
/kernel/linux/common_modules/tzdriver/core/
Dagent.c784 unsigned long user_addr; in agent_buffer_map() local
795 user_addr = liblinux_pal_usermap_prepare(user_addr, size, PROT_READ | PROT_WRITE, in agent_buffer_map()
797 if (IS_ERR_OR_NULL((const void *)user_addr)) { in agent_buffer_map()
799 return user_addr; in agent_buffer_map()
803 ret = remap_pfn_range(NULL, user_addr, buffer >> PAGE_SHIFT, size, pro); in agent_buffer_map()
809 return user_addr; in agent_buffer_map()
811 if (vm_munmap(user_addr, size)) in agent_buffer_map()
819 unsigned long user_addr; in agent_buffer_map() local
822 user_addr = vm_mmap(NULL, 0, size, PROT_READ | PROT_WRITE, in agent_buffer_map()
824 if (IS_ERR_VALUE((uintptr_t)user_addr)) { in agent_buffer_map()
[all …]
Dmem.c60 sh->user_addr = INVALID_MAP_ADDR; in init_shared_mem()
Dtc_client_driver.c548 if (shared_mem->user_addr == in shared_vma_close()
550 shared_mem->user_addr = INVALID_MAP_ADDR; in shared_vma_close()
558 if ((shared_mem->user_addr == INVALID_MAP_ADDR) && in shared_vma_close()
697 shared_mem->user_addr = (void *)(uintptr_t)vma->vm_start; in tc_client_mmap()
/kernel/linux/linux-5.10/arch/s390/pci/
Dpci_mmio.c122 static long get_pfn(unsigned long user_addr, unsigned long access, in get_pfn() argument
130 vma = find_vma(current->mm, user_addr); in get_pfn()
131 if (!vma || user_addr < vma->vm_start) in get_pfn()
136 ret = follow_pfn(vma, user_addr, pfn); in get_pfn()
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dcacheflush.h235 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…
/kernel/linux/linux-5.10/arch/arm/mm/
Dflush.c98 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()
/kernel/linux/linux-5.10/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()
685 nr->user_addr = user->call; in nr_connect()
693 nr->user_addr = *source; in nr_connect()
851 sax->fsa_ax25.sax25_call = nr->user_addr; in nr_getname()
984 nr_make->user_addr = *user; in nr_rx_frame()
1299 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()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dfpga-dfl.h49 __u64 user_addr; member
/kernel/linux/linux-5.10/arch/arc/include/asm/
Dcacheflush.h66 unsigned long user_addr, unsigned long page);
/kernel/linux/linux-5.10/arch/um/drivers/
Dvhost_user.h98 u64 user_addr; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dfpga-dfl.h55 __u64 user_addr; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dfpga-dfl.h130 __u64 user_addr; /* Process virtual address */ member
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c547 static int init_user_pages(struct kgd_mem *mem, uint64_t user_addr) in init_user_pages() argument
556 ret = amdgpu_ttm_tt_set_userptr(&bo->tbo, user_addr, 0); in init_user_pages()
562 ret = amdgpu_mn_register(bo, user_addr); in init_user_pages()
1145 uint64_t user_addr = 0; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local
1170 user_addr = untagged_addr(*offset); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1234 if (user_addr) in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1241 add_kgd_mem_to_kfd_bo_list(*mem, avm->process_info, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1243 if (user_addr) { in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1244 ret = init_user_pages(*mem, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
/kernel/linux/common_modules/tzdriver/
Dteek_ns_client.h79 void *user_addr; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_mr.c741 struct ib_udata *udata, unsigned long user_addr) in mtr_alloc_bufs() argument
761 mtr->umem = ib_umem_get(ibdev, user_addr, total_size, in mtr_alloc_bufs()
774 user_addr); in mtr_alloc_bufs()
1014 unsigned long user_addr) in hns_roce_mtr_create() argument
1036 udata, user_addr); in hns_roce_mtr_create()
/kernel/linux/linux-5.10/include/net/
Dnetrom.h68 ax25_address user_addr, source_addr, dest_addr; member

12