Lines Matching defs:test

89 static void kasan_test_exit(struct kunit *test)  in kasan_test_exit()
116 #define KUNIT_EXPECT_KASAN_FAIL(test, expression) do { \ argument
142 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do { \ argument
147 #define KASAN_TEST_NEEDS_CONFIG_OFF(test, config) do { \ argument
152 #define KASAN_TEST_NEEDS_CHECKED_MEMINTRINSICS(test) do { \ argument
161 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right()
190 static void kmalloc_oob_left(struct kunit *test) in kmalloc_oob_left()
203 static void kmalloc_node_oob_right(struct kunit *test) in kmalloc_node_oob_right()
220 static void kmalloc_big_oob_right(struct kunit *test) in kmalloc_big_oob_right()
239 static void kmalloc_large_oob_right(struct kunit *test) in kmalloc_large_oob_right()
253 static void kmalloc_large_uaf(struct kunit *test) in kmalloc_large_uaf()
265 static void kmalloc_large_invalid_free(struct kunit *test) in kmalloc_large_invalid_free()
276 static void page_alloc_oob_right(struct kunit *test) in page_alloc_oob_right()
298 static void page_alloc_uaf(struct kunit *test) in page_alloc_uaf()
312 static void krealloc_more_oob_helper(struct kunit *test, in krealloc_more_oob_helper()
347 static void krealloc_less_oob_helper(struct kunit *test, in krealloc_less_oob_helper()
391 static void krealloc_more_oob(struct kunit *test) in krealloc_more_oob()
396 static void krealloc_less_oob(struct kunit *test) in krealloc_less_oob()
401 static void krealloc_large_more_oob(struct kunit *test) in krealloc_large_more_oob()
407 static void krealloc_large_less_oob(struct kunit *test) in krealloc_large_less_oob()
417 static void krealloc_uaf(struct kunit *test) in krealloc_uaf()
432 static void kmalloc_oob_16(struct kunit *test) in kmalloc_oob_16()
456 static void kmalloc_uaf_16(struct kunit *test) in kmalloc_uaf_16()
481 static void kmalloc_oob_memset_2(struct kunit *test) in kmalloc_oob_memset_2()
499 static void kmalloc_oob_memset_4(struct kunit *test) in kmalloc_oob_memset_4()
517 static void kmalloc_oob_memset_8(struct kunit *test) in kmalloc_oob_memset_8()
535 static void kmalloc_oob_memset_16(struct kunit *test) in kmalloc_oob_memset_16()
553 static void kmalloc_oob_in_memset(struct kunit *test) in kmalloc_oob_in_memset()
570 static void kmalloc_memmove_negative_size(struct kunit *test) in kmalloc_memmove_negative_size()
596 static void kmalloc_memmove_invalid_size(struct kunit *test) in kmalloc_memmove_invalid_size()
615 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
627 static void kmalloc_uaf_memset(struct kunit *test) in kmalloc_uaf_memset()
647 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
681 static void kmalloc_uaf3(struct kunit *test) in kmalloc_uaf3()
700 static void kmalloc_double_kzfree(struct kunit *test) in kmalloc_double_kzfree()
713 static void ksize_unpoisons_memory(struct kunit *test) in ksize_unpoisons_memory()
744 static void ksize_uaf(struct kunit *test) in ksize_uaf()
781 static void rcu_uaf(struct kunit *test) in rcu_uaf()
801 static void workqueue_uaf(struct kunit *test) in workqueue_uaf()
820 static void kfree_via_page(struct kunit *test) in kfree_via_page()
835 static void kfree_via_phys(struct kunit *test) in kfree_via_phys()
848 static void kmem_cache_oob(struct kunit *test) in kmem_cache_oob()
870 static void kmem_cache_double_free(struct kunit *test) in kmem_cache_double_free()
891 static void kmem_cache_invalid_free(struct kunit *test) in kmem_cache_invalid_free()
922 static void kmem_cache_double_destroy(struct kunit *test) in kmem_cache_double_destroy()
933 static void kmem_cache_accounted(struct kunit *test) in kmem_cache_accounted()
960 static void kmem_cache_bulk(struct kunit *test) in kmem_cache_bulk()
985 static void *mempool_prepare_kmalloc(struct kunit *test, mempool_t *pool, size_t size) in mempool_prepare_kmalloc()
1007 static struct kmem_cache *mempool_prepare_slab(struct kunit *test, mempool_t *pool, size_t size) in mempool_prepare_slab()
1028 static void *mempool_prepare_page(struct kunit *test, mempool_t *pool, int order) in mempool_prepare_page()
1044 static void mempool_oob_right_helper(struct kunit *test, mempool_t *pool, size_t size) in mempool_oob_right_helper()
1063 static void mempool_kmalloc_oob_right(struct kunit *test) in mempool_kmalloc_oob_right()
1077 static void mempool_kmalloc_large_oob_right(struct kunit *test) in mempool_kmalloc_large_oob_right()
1091 static void mempool_slab_oob_right(struct kunit *test) in mempool_slab_oob_right()
1113 static void mempool_uaf_helper(struct kunit *test, mempool_t *pool, bool page) in mempool_uaf_helper()
1126 static void mempool_kmalloc_uaf(struct kunit *test) in mempool_kmalloc_uaf()
1140 static void mempool_kmalloc_large_uaf(struct kunit *test) in mempool_kmalloc_large_uaf()
1154 static void mempool_slab_uaf(struct kunit *test) in mempool_slab_uaf()
1168 static void mempool_page_alloc_uaf(struct kunit *test) in mempool_page_alloc_uaf()
1182 static void mempool_double_free_helper(struct kunit *test, mempool_t *pool) in mempool_double_free_helper()
1194 static void mempool_kmalloc_double_free(struct kunit *test) in mempool_kmalloc_double_free()
1208 static void mempool_kmalloc_large_double_free(struct kunit *test) in mempool_kmalloc_large_double_free()
1222 static void mempool_page_alloc_double_free(struct kunit *test) in mempool_page_alloc_double_free()
1236 static void mempool_kmalloc_invalid_free_helper(struct kunit *test, mempool_t *pool) in mempool_kmalloc_invalid_free_helper()
1248 static void mempool_kmalloc_invalid_free(struct kunit *test) in mempool_kmalloc_invalid_free()
1262 static void mempool_kmalloc_large_invalid_free(struct kunit *test) in mempool_kmalloc_large_invalid_free()
1284 static void kasan_global_oob_right(struct kunit *test) in kasan_global_oob_right()
1307 static void kasan_global_oob_left(struct kunit *test) in kasan_global_oob_left()
1321 static void kasan_stack_oob(struct kunit *test) in kasan_stack_oob()
1333 static void kasan_alloca_oob_left(struct kunit *test) in kasan_alloca_oob_left()
1348 static void kasan_alloca_oob_right(struct kunit *test) in kasan_alloca_oob_right()
1363 static void kasan_memchr(struct kunit *test) in kasan_memchr()
1388 static void kasan_memcmp(struct kunit *test) in kasan_memcmp()
1414 static void kasan_strings(struct kunit *test) in kasan_strings()
1450 static void kasan_bitops_modify(struct kunit *test, int nr, void *addr) in kasan_bitops_modify()
1462 static void kasan_bitops_test_and_modify(struct kunit *test, int nr, void *addr) in kasan_bitops_test_and_modify()
1477 static void kasan_bitops_generic(struct kunit *test) in kasan_bitops_generic()
1506 static void kasan_bitops_tags(struct kunit *test) in kasan_bitops_tags()
1524 static void vmalloc_helpers_tags(struct kunit *test) in vmalloc_helpers_tags()
1562 static void vmalloc_oob(struct kunit *test) in vmalloc_oob()
1613 static void vmap_tags(struct kunit *test) in vmap_tags()
1659 static void vm_map_ram_tags(struct kunit *test) in vm_map_ram_tags()
1689 static void vmalloc_percpu(struct kunit *test) in vmalloc_percpu()
1720 static void match_all_not_assigned(struct kunit *test) in match_all_not_assigned()
1761 static void match_all_ptr_tag(struct kunit *test) in match_all_ptr_tag()
1787 static void match_all_mem_tag(struct kunit *test) in match_all_mem_tag()