Lines Matching refs:user_addr
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()
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()
196 ptr = (unsigned long *)user_addr; in lkdtm_ACCESS_USERSPACE()
207 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_ACCESS_USERSPACE()