Home
last modified time | relevance | path

Searched refs:usermem (Results 1 – 2 of 2) sorted by relevance

/lib/
Dtest_user_copy.c184 char __user *usermem; in test_user_copy_init() local
207 usermem = (char __user *)user_addr; in test_user_copy_init()
214 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init()
217 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), in test_user_copy_init()
225 ret |= test(put_user(val_##size, (size __user *)usermem), \ in test_user_copy_init()
228 ret |= test(get_user(val_##size, (size __user *)usermem), \ in test_user_copy_init()
248 ret |= test_check_nonzero_user(kmem, usermem, 2 * PAGE_SIZE); in test_user_copy_init()
250 ret |= test_copy_struct_from_user(kmem, usermem, 2 * PAGE_SIZE); in test_user_copy_init()
Dtest_kasan.c477 char __user *usermem; in copy_user_test() local
485 usermem = (char __user *)vm_mmap(NULL, 0, PAGE_SIZE, in copy_user_test()
488 if (IS_ERR(usermem)) { in copy_user_test()
495 unused = copy_from_user(kmem, usermem, size + 1); in copy_user_test()
498 unused = copy_to_user(usermem, kmem, size + 1); in copy_user_test()
501 unused = __copy_from_user(kmem, usermem, size + 1); in copy_user_test()
504 unused = __copy_to_user(usermem, kmem, size + 1); in copy_user_test()
507 unused = __copy_from_user_inatomic(kmem, usermem, size + 1); in copy_user_test()
510 unused = __copy_to_user_inatomic(usermem, kmem, size + 1); in copy_user_test()
513 unused = strncpy_from_user(kmem, usermem, size + 1); in copy_user_test()
[all …]