Home
last modified time | relevance | path

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

/linux-4.19.296/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.c154 unsigned long user_addr; in lkdtm_EXEC_USERSPACE() local
156 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_EXEC_USERSPACE()
159 if (user_addr >= TASK_SIZE) { in lkdtm_EXEC_USERSPACE()
163 execute_user_location((void *)user_addr); in lkdtm_EXEC_USERSPACE()
164 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_EXEC_USERSPACE()
174 unsigned long user_addr, tmp = 0; in lkdtm_ACCESS_USERSPACE() local
177 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_ACCESS_USERSPACE()
180 if (user_addr >= TASK_SIZE) { in lkdtm_ACCESS_USERSPACE()
185 if (copy_to_user((void __user *)user_addr, &tmp, sizeof(tmp))) { in lkdtm_ACCESS_USERSPACE()
187 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_ACCESS_USERSPACE()
[all …]
/linux-4.19.296/lib/
Dtest_user_copy.c56 unsigned long user_addr; in test_user_copy_init() local
68 user_addr = vm_mmap(NULL, 0, PAGE_SIZE * 2, in test_user_copy_init()
71 if (user_addr >= (unsigned long)(TASK_SIZE)) { in test_user_copy_init()
77 usermem = (char __user *)user_addr; in test_user_copy_init()
78 bad_usermem = (char *)user_addr; in test_user_copy_init()
175 vm_munmap(user_addr, PAGE_SIZE * 2); in test_user_copy_init()
/linux-4.19.296/drivers/misc/genwqe/
Dcard_utils.c299 void __user *user_addr, size_t user_size, int write) in genwqe_alloc_sync_sgl() argument
304 sgl->fpage_offs = offset_in_page((unsigned long)user_addr); in genwqe_alloc_sync_sgl()
310 __func__, user_addr, user_size, sgl->nr_pages, in genwqe_alloc_sync_sgl()
313 sgl->user_addr = user_addr; in genwqe_alloc_sync_sgl()
341 user_addr, sgl->fpage_size)) { in genwqe_alloc_sync_sgl()
353 if (copy_from_user(sgl->lpage, user_addr + user_size - in genwqe_alloc_sync_sgl()
487 res = copy_to_user(sgl->user_addr, in genwqe_free_sync_sgl()
504 res = copy_to_user(sgl->user_addr + offset, sgl->lpage, in genwqe_free_sync_sgl()
Dcard_base.h359 void __user *user_addr; /* user-space base-address */ member
377 void __user *user_addr, size_t user_size, int write);
/linux-4.19.296/include/uapi/linux/
Dfpga-dfl.h130 __u64 user_addr; /* Process virtual address */ member
Dkvm.h1211 __u64 user_addr; member
/linux-4.19.296/include/net/
Dnetrom.h68 ax25_address user_addr, source_addr, dest_addr; member
/linux-4.19.296/fs/fuse/
Dfile.c1295 unsigned long user_addr = fuse_get_user_addr(ii); in fuse_get_user_pages() local
1299 req->in.args[1].value = (void *) user_addr; in fuse_get_user_pages()
1301 req->out.args[0].value = (void *) user_addr; in fuse_get_user_pages()