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()
457 static void kmalloc_uaf_16(struct kunit *test) in kmalloc_uaf_16()
482 static void kmalloc_oob_memset_2(struct kunit *test) in kmalloc_oob_memset_2()
500 static void kmalloc_oob_memset_4(struct kunit *test) in kmalloc_oob_memset_4()
518 static void kmalloc_oob_memset_8(struct kunit *test) in kmalloc_oob_memset_8()
536 static void kmalloc_oob_memset_16(struct kunit *test) in kmalloc_oob_memset_16()
554 static void kmalloc_oob_in_memset(struct kunit *test) in kmalloc_oob_in_memset()
571 static void kmalloc_memmove_negative_size(struct kunit *test) in kmalloc_memmove_negative_size()
597 static void kmalloc_memmove_invalid_size(struct kunit *test) in kmalloc_memmove_invalid_size()
616 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
628 static void kmalloc_uaf_memset(struct kunit *test) in kmalloc_uaf_memset()
648 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
682 static void kmalloc_uaf3(struct kunit *test) in kmalloc_uaf3()
701 static void kasan_atomics_helper(struct kunit *test, void *unsafe, void *safe) in kasan_atomics_helper()
759 static void kasan_atomics(struct kunit *test) in kasan_atomics()
779 static void kmalloc_double_kzfree(struct kunit *test) in kmalloc_double_kzfree()
792 static void ksize_unpoisons_memory(struct kunit *test) in ksize_unpoisons_memory()
823 static void ksize_uaf(struct kunit *test) in ksize_uaf()
860 static void rcu_uaf(struct kunit *test) in rcu_uaf()
880 static void workqueue_uaf(struct kunit *test) in workqueue_uaf()
899 static void kfree_via_page(struct kunit *test) in kfree_via_page()
914 static void kfree_via_phys(struct kunit *test) in kfree_via_phys()
927 static void kmem_cache_oob(struct kunit *test) in kmem_cache_oob()
949 static void kmem_cache_double_free(struct kunit *test) in kmem_cache_double_free()
970 static void kmem_cache_invalid_free(struct kunit *test) in kmem_cache_invalid_free()
999 static void kmem_cache_rcu_uaf(struct kunit *test) in kmem_cache_rcu_uaf()
1046 static void kmem_cache_double_destroy(struct kunit *test) in kmem_cache_double_destroy()
1057 static void kmem_cache_accounted(struct kunit *test) in kmem_cache_accounted()
1084 static void kmem_cache_bulk(struct kunit *test) in kmem_cache_bulk()
1109 static void *mempool_prepare_kmalloc(struct kunit *test, mempool_t *pool, size_t size) in mempool_prepare_kmalloc()
1131 static struct kmem_cache *mempool_prepare_slab(struct kunit *test, mempool_t *pool, size_t size) in mempool_prepare_slab()
1152 static void *mempool_prepare_page(struct kunit *test, mempool_t *pool, int order) in mempool_prepare_page()
1168 static void mempool_oob_right_helper(struct kunit *test, mempool_t *pool, size_t size) in mempool_oob_right_helper()
1187 static void mempool_kmalloc_oob_right(struct kunit *test) in mempool_kmalloc_oob_right()
1201 static void mempool_kmalloc_large_oob_right(struct kunit *test) in mempool_kmalloc_large_oob_right()
1215 static void mempool_slab_oob_right(struct kunit *test) in mempool_slab_oob_right()
1237 static void mempool_uaf_helper(struct kunit *test, mempool_t *pool, bool page) in mempool_uaf_helper()
1250 static void mempool_kmalloc_uaf(struct kunit *test) in mempool_kmalloc_uaf()
1264 static void mempool_kmalloc_large_uaf(struct kunit *test) in mempool_kmalloc_large_uaf()
1278 static void mempool_slab_uaf(struct kunit *test) in mempool_slab_uaf()
1292 static void mempool_page_alloc_uaf(struct kunit *test) in mempool_page_alloc_uaf()
1306 static void mempool_double_free_helper(struct kunit *test, mempool_t *pool) in mempool_double_free_helper()
1318 static void mempool_kmalloc_double_free(struct kunit *test) in mempool_kmalloc_double_free()
1332 static void mempool_kmalloc_large_double_free(struct kunit *test) in mempool_kmalloc_large_double_free()
1346 static void mempool_page_alloc_double_free(struct kunit *test) in mempool_page_alloc_double_free()
1360 static void mempool_kmalloc_invalid_free_helper(struct kunit *test, mempool_t *pool) in mempool_kmalloc_invalid_free_helper()
1372 static void mempool_kmalloc_invalid_free(struct kunit *test) in mempool_kmalloc_invalid_free()
1386 static void mempool_kmalloc_large_invalid_free(struct kunit *test) in mempool_kmalloc_large_invalid_free()
1408 static void kasan_global_oob_right(struct kunit *test) in kasan_global_oob_right()
1431 static void kasan_global_oob_left(struct kunit *test) in kasan_global_oob_left()
1445 static void kasan_stack_oob(struct kunit *test) in kasan_stack_oob()
1457 static void kasan_alloca_oob_left(struct kunit *test) in kasan_alloca_oob_left()
1472 static void kasan_alloca_oob_right(struct kunit *test) in kasan_alloca_oob_right()
1487 static void kasan_memchr(struct kunit *test) in kasan_memchr()
1512 static void kasan_memcmp(struct kunit *test) in kasan_memcmp()
1538 static void kasan_strings(struct kunit *test) in kasan_strings()
1574 static void kasan_bitops_modify(struct kunit *test, int nr, void *addr) in kasan_bitops_modify()
1586 static void kasan_bitops_test_and_modify(struct kunit *test, int nr, void *addr) in kasan_bitops_test_and_modify()
1601 static void kasan_bitops_generic(struct kunit *test) in kasan_bitops_generic()
1630 static void kasan_bitops_tags(struct kunit *test) in kasan_bitops_tags()
1648 static void vmalloc_helpers_tags(struct kunit *test) in vmalloc_helpers_tags()
1686 static void vmalloc_oob(struct kunit *test) in vmalloc_oob()
1737 static void vmap_tags(struct kunit *test) in vmap_tags()
1783 static void vm_map_ram_tags(struct kunit *test) in vm_map_ram_tags()
1818 static void match_all_not_assigned(struct kunit *test) in match_all_not_assigned()
1859 static void match_all_ptr_tag(struct kunit *test) in match_all_ptr_tag()
1885 static void match_all_mem_tag(struct kunit *test) in match_all_mem_tag()
1925 static void rust_uaf(struct kunit *test) in rust_uaf()