Lines Matching +defs:test +defs:suite
62 static int kasan_suite_init(struct kunit_suite *suite) in kasan_suite_init()
83 static void kasan_suite_exit(struct kunit_suite *suite) in kasan_suite_exit()
91 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
121 #define KUNIT_EXPECT_KASAN_RESULT(test, expr, expr_str, fail) \ argument
158 #define KUNIT_EXPECT_KASAN_FAIL(test, expr) \ argument
175 #define KUNIT_EXPECT_KASAN_FAIL_READ(test, expr) \ argument
179 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do { \ argument
184 #define KASAN_TEST_NEEDS_CONFIG_OFF(test, config) do { \ argument
189 #define KASAN_TEST_NEEDS_CHECKED_MEMINTRINSICS(test) do { \ argument
198 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right()
227 static void kmalloc_oob_left(struct kunit *test) in kmalloc_oob_left()
240 static void kmalloc_node_oob_right(struct kunit *test) in kmalloc_node_oob_right()
253 static void kmalloc_track_caller_oob_right(struct kunit *test) in kmalloc_track_caller_oob_right()
287 static void kmalloc_big_oob_right(struct kunit *test) in kmalloc_big_oob_right()
306 static void kmalloc_large_oob_right(struct kunit *test) in kmalloc_large_oob_right()
320 static void kmalloc_large_uaf(struct kunit *test) in kmalloc_large_uaf()
332 static void kmalloc_large_invalid_free(struct kunit *test) in kmalloc_large_invalid_free()
343 static void page_alloc_oob_right(struct kunit *test) in page_alloc_oob_right()
365 static void page_alloc_uaf(struct kunit *test) in page_alloc_uaf()
379 static void krealloc_more_oob_helper(struct kunit *test, in krealloc_more_oob_helper()
414 static void krealloc_less_oob_helper(struct kunit *test, in krealloc_less_oob_helper()
458 static void krealloc_more_oob(struct kunit *test) in krealloc_more_oob()
463 static void krealloc_less_oob(struct kunit *test) in krealloc_less_oob()
468 static void krealloc_large_more_oob(struct kunit *test) in krealloc_large_more_oob()
474 static void krealloc_large_less_oob(struct kunit *test) in krealloc_large_less_oob()
484 static void krealloc_uaf(struct kunit *test) in krealloc_uaf()
499 static void kmalloc_oob_16(struct kunit *test) in kmalloc_oob_16()
524 static void kmalloc_uaf_16(struct kunit *test) in kmalloc_uaf_16()
549 static void kmalloc_oob_memset_2(struct kunit *test) in kmalloc_oob_memset_2()
567 static void kmalloc_oob_memset_4(struct kunit *test) in kmalloc_oob_memset_4()
585 static void kmalloc_oob_memset_8(struct kunit *test) in kmalloc_oob_memset_8()
603 static void kmalloc_oob_memset_16(struct kunit *test) in kmalloc_oob_memset_16()
621 static void kmalloc_oob_in_memset(struct kunit *test) in kmalloc_oob_in_memset()
638 static void kmalloc_memmove_negative_size(struct kunit *test) in kmalloc_memmove_negative_size()
664 static void kmalloc_memmove_invalid_size(struct kunit *test) in kmalloc_memmove_invalid_size()
683 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
695 static void kmalloc_uaf_memset(struct kunit *test) in kmalloc_uaf_memset()
715 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
749 static void kmalloc_uaf3(struct kunit *test) in kmalloc_uaf3()
768 static void kasan_atomics_helper(struct kunit *test, void *unsafe, void *safe) in kasan_atomics_helper()
852 static void kasan_atomics(struct kunit *test) in kasan_atomics()
872 static void kmalloc_double_kzfree(struct kunit *test) in kmalloc_double_kzfree()
885 static void ksize_unpoisons_memory(struct kunit *test) in ksize_unpoisons_memory()
916 static void ksize_uaf(struct kunit *test) in ksize_uaf()
953 static void rcu_uaf(struct kunit *test) in rcu_uaf()
973 static void workqueue_uaf(struct kunit *test) in workqueue_uaf()
992 static void kfree_via_page(struct kunit *test) in kfree_via_page()
1007 static void kfree_via_phys(struct kunit *test) in kfree_via_phys()
1020 static void kmem_cache_oob(struct kunit *test) in kmem_cache_oob()
1042 static void kmem_cache_double_free(struct kunit *test) in kmem_cache_double_free()
1063 static void kmem_cache_invalid_free(struct kunit *test) in kmem_cache_invalid_free()
1092 static void kmem_cache_rcu_uaf(struct kunit *test) in kmem_cache_rcu_uaf()
1143 static void kmem_cache_rcu_reuse(struct kunit *test) in kmem_cache_rcu_reuse()
1176 static void kmem_cache_double_destroy(struct kunit *test) in kmem_cache_double_destroy()
1186 static void kmem_cache_accounted(struct kunit *test) in kmem_cache_accounted()
1213 static void kmem_cache_bulk(struct kunit *test) in kmem_cache_bulk()
1238 static void *mempool_prepare_kmalloc(struct kunit *test, mempool_t *pool, size_t size) in mempool_prepare_kmalloc()
1260 static struct kmem_cache *mempool_prepare_slab(struct kunit *test, mempool_t *pool, size_t size) in mempool_prepare_slab()
1281 static void *mempool_prepare_page(struct kunit *test, mempool_t *pool, int order) in mempool_prepare_page()
1297 static void mempool_oob_right_helper(struct kunit *test, mempool_t *pool, size_t size) in mempool_oob_right_helper()
1316 static void mempool_kmalloc_oob_right(struct kunit *test) in mempool_kmalloc_oob_right()
1330 static void mempool_kmalloc_large_oob_right(struct kunit *test) in mempool_kmalloc_large_oob_right()
1344 static void mempool_slab_oob_right(struct kunit *test) in mempool_slab_oob_right()
1366 static void mempool_uaf_helper(struct kunit *test, mempool_t *pool, bool page) in mempool_uaf_helper()
1379 static void mempool_kmalloc_uaf(struct kunit *test) in mempool_kmalloc_uaf()
1393 static void mempool_kmalloc_large_uaf(struct kunit *test) in mempool_kmalloc_large_uaf()
1407 static void mempool_slab_uaf(struct kunit *test) in mempool_slab_uaf()
1421 static void mempool_page_alloc_uaf(struct kunit *test) in mempool_page_alloc_uaf()
1435 static void mempool_double_free_helper(struct kunit *test, mempool_t *pool) in mempool_double_free_helper()
1447 static void mempool_kmalloc_double_free(struct kunit *test) in mempool_kmalloc_double_free()
1461 static void mempool_kmalloc_large_double_free(struct kunit *test) in mempool_kmalloc_large_double_free()
1475 static void mempool_page_alloc_double_free(struct kunit *test) in mempool_page_alloc_double_free()
1489 static void mempool_kmalloc_invalid_free_helper(struct kunit *test, mempool_t *pool) in mempool_kmalloc_invalid_free_helper()
1501 static void mempool_kmalloc_invalid_free(struct kunit *test) in mempool_kmalloc_invalid_free()
1515 static void mempool_kmalloc_large_invalid_free(struct kunit *test) in mempool_kmalloc_large_invalid_free()
1537 static void kasan_global_oob_right(struct kunit *test) in kasan_global_oob_right()
1560 static void kasan_global_oob_left(struct kunit *test) in kasan_global_oob_left()
1574 static void kasan_stack_oob(struct kunit *test) in kasan_stack_oob()
1586 static void kasan_alloca_oob_left(struct kunit *test) in kasan_alloca_oob_left()
1601 static void kasan_alloca_oob_right(struct kunit *test) in kasan_alloca_oob_right()
1616 static void kasan_memchr(struct kunit *test) in kasan_memchr()
1641 static void kasan_memcmp(struct kunit *test) in kasan_memcmp()
1667 static void kasan_strings(struct kunit *test) in kasan_strings()
1725 static void kasan_bitops_modify(struct kunit *test, int nr, void *addr) in kasan_bitops_modify()
1737 static void kasan_bitops_test_and_modify(struct kunit *test, int nr, void *addr) in kasan_bitops_test_and_modify()
1758 static void kasan_bitops_generic(struct kunit *test) in kasan_bitops_generic()
1787 static void kasan_bitops_tags(struct kunit *test) in kasan_bitops_tags()
1805 static void vmalloc_helpers_tags(struct kunit *test) in vmalloc_helpers_tags()
1843 static void vmalloc_oob(struct kunit *test) in vmalloc_oob()
1894 static void vmap_tags(struct kunit *test) in vmap_tags()
1940 static void vm_map_ram_tags(struct kunit *test) in vm_map_ram_tags()
1975 static void match_all_not_assigned(struct kunit *test) in match_all_not_assigned()
2016 static void match_all_ptr_tag(struct kunit *test) in match_all_ptr_tag()
2042 static void match_all_mem_tag(struct kunit *test) in match_all_mem_tag()
2082 static void rust_uaf(struct kunit *test) in rust_uaf()
2093 static void copy_to_kernel_nofault_oob(struct kunit *test) in copy_to_kernel_nofault_oob()
2129 static void copy_user_test_oob(struct kunit *test) in copy_user_test_oob()