Searched refs:user_addr (Results 1 – 5 of 5) sorted by relevance
/drivers/misc/ |
D | lkdtm_usercopy.c | 49 unsigned long user_addr; in do_usercopy_stack() local 67 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_stack() 70 if (user_addr >= TASK_SIZE) { in do_usercopy_stack() 77 if (copy_to_user((void __user *)user_addr, good_stack, in do_usercopy_stack() 84 if (copy_to_user((void __user *)user_addr, bad_stack, in do_usercopy_stack() 98 if (copy_from_user(good_stack, (void __user *)user_addr, in do_usercopy_stack() 105 if (copy_from_user(bad_stack, (void __user *)user_addr, in do_usercopy_stack() 113 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_stack() 118 unsigned long user_addr; in do_usercopy_heap_size() local 129 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_heap_size() [all …]
|
D | lkdtm_perms.c | 150 unsigned long user_addr; in lkdtm_EXEC_USERSPACE() local 152 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_EXEC_USERSPACE() 155 if (user_addr >= TASK_SIZE) { in lkdtm_EXEC_USERSPACE() 159 execute_user_location((void *)user_addr); in lkdtm_EXEC_USERSPACE() 160 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_EXEC_USERSPACE() 165 unsigned long user_addr, tmp = 0; in lkdtm_ACCESS_USERSPACE() local 168 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_ACCESS_USERSPACE() 171 if (user_addr >= TASK_SIZE) { in lkdtm_ACCESS_USERSPACE() 176 if (copy_to_user((void __user *)user_addr, &tmp, sizeof(tmp))) { in lkdtm_ACCESS_USERSPACE() 178 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_ACCESS_USERSPACE() [all …]
|
/drivers/misc/genwqe/ |
D | card_utils.c | 299 void __user *user_addr, size_t user_size) 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() 340 user_addr, sgl->fpage_size)) { in genwqe_alloc_sync_sgl() 352 if (copy_from_user(sgl->lpage, user_addr + user_size - in genwqe_alloc_sync_sgl() 482 if (copy_to_user(sgl->user_addr, sgl->fpage + sgl->fpage_offs, in genwqe_free_sync_sgl() 494 if (copy_to_user(sgl->user_addr + sgl->user_size - in genwqe_free_sync_sgl()
|
D | card_base.h | 357 void __user *user_addr; /* user-space base-address */ member 373 void __user *user_addr, size_t user_size);
|
/drivers/staging/lustre/lustre/llite/ |
D | rw26.c | 164 static inline int ll_get_user_pages(int rw, unsigned long user_addr, in ll_get_user_pages() argument 176 *max_pages = (user_addr + size + PAGE_SIZE - 1) >> PAGE_SHIFT; in ll_get_user_pages() 177 *max_pages -= user_addr >> PAGE_SHIFT; in ll_get_user_pages() 181 result = get_user_pages_fast(user_addr, *max_pages, in ll_get_user_pages()
|