Lines Matching defs:test

91 static void kasan_test_exit(struct kunit *test)  in kasan_test_exit()
118 #define KUNIT_EXPECT_KASAN_FAIL(test, expression) do { \ argument
144 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do { \ argument
149 #define KASAN_TEST_NEEDS_CONFIG_OFF(test, config) do { \ argument
154 #define KASAN_TEST_NEEDS_CHECKED_MEMINTRINSICS(test) do { \ argument
163 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right()
192 static void kmalloc_oob_left(struct kunit *test) in kmalloc_oob_left()
205 static void kmalloc_node_oob_right(struct kunit *test) in kmalloc_node_oob_right()
218 static void kmalloc_track_caller_oob_right(struct kunit *test) in kmalloc_track_caller_oob_right()
252 static void kmalloc_big_oob_right(struct kunit *test) in kmalloc_big_oob_right()
271 static void kmalloc_large_oob_right(struct kunit *test) in kmalloc_large_oob_right()
285 static void kmalloc_large_uaf(struct kunit *test) in kmalloc_large_uaf()
297 static void kmalloc_large_invalid_free(struct kunit *test) in kmalloc_large_invalid_free()
308 static void page_alloc_oob_right(struct kunit *test) in page_alloc_oob_right()
330 static void page_alloc_uaf(struct kunit *test) in page_alloc_uaf()
344 static void krealloc_more_oob_helper(struct kunit *test, in krealloc_more_oob_helper()
379 static void krealloc_less_oob_helper(struct kunit *test, in krealloc_less_oob_helper()
423 static void krealloc_more_oob(struct kunit *test) in krealloc_more_oob()
428 static void krealloc_less_oob(struct kunit *test) in krealloc_less_oob()
433 static void krealloc_large_more_oob(struct kunit *test) in krealloc_large_more_oob()
439 static void krealloc_large_less_oob(struct kunit *test) in krealloc_large_less_oob()
449 static void krealloc_uaf(struct kunit *test) in krealloc_uaf()
464 static void kmalloc_oob_16(struct kunit *test) in kmalloc_oob_16()
489 static void kmalloc_uaf_16(struct kunit *test) in kmalloc_uaf_16()
514 static void kmalloc_oob_memset_2(struct kunit *test) in kmalloc_oob_memset_2()
532 static void kmalloc_oob_memset_4(struct kunit *test) in kmalloc_oob_memset_4()
550 static void kmalloc_oob_memset_8(struct kunit *test) in kmalloc_oob_memset_8()
568 static void kmalloc_oob_memset_16(struct kunit *test) in kmalloc_oob_memset_16()
586 static void kmalloc_oob_in_memset(struct kunit *test) in kmalloc_oob_in_memset()
603 static void kmalloc_memmove_negative_size(struct kunit *test) in kmalloc_memmove_negative_size()
629 static void kmalloc_memmove_invalid_size(struct kunit *test) in kmalloc_memmove_invalid_size()
648 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
660 static void kmalloc_uaf_memset(struct kunit *test) in kmalloc_uaf_memset()
680 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
714 static void kmalloc_uaf3(struct kunit *test) in kmalloc_uaf3()
733 static void kasan_atomics_helper(struct kunit *test, void *unsafe, void *safe) in kasan_atomics_helper()
791 static void kasan_atomics(struct kunit *test) in kasan_atomics()
811 static void kmalloc_double_kzfree(struct kunit *test) in kmalloc_double_kzfree()
824 static void ksize_unpoisons_memory(struct kunit *test) in ksize_unpoisons_memory()
855 static void ksize_uaf(struct kunit *test) in ksize_uaf()
892 static void rcu_uaf(struct kunit *test) in rcu_uaf()
912 static void workqueue_uaf(struct kunit *test) in workqueue_uaf()
931 static void kfree_via_page(struct kunit *test) in kfree_via_page()
946 static void kfree_via_phys(struct kunit *test) in kfree_via_phys()
959 static void kmem_cache_oob(struct kunit *test) in kmem_cache_oob()
981 static void kmem_cache_double_free(struct kunit *test) in kmem_cache_double_free()
1002 static void kmem_cache_invalid_free(struct kunit *test) in kmem_cache_invalid_free()
1031 static void kmem_cache_rcu_uaf(struct kunit *test) in kmem_cache_rcu_uaf()
1078 static void kmem_cache_double_destroy(struct kunit *test) in kmem_cache_double_destroy()
1089 static void kmem_cache_accounted(struct kunit *test) in kmem_cache_accounted()
1116 static void kmem_cache_bulk(struct kunit *test) in kmem_cache_bulk()
1141 static void *mempool_prepare_kmalloc(struct kunit *test, mempool_t *pool, size_t size) in mempool_prepare_kmalloc()
1163 static struct kmem_cache *mempool_prepare_slab(struct kunit *test, mempool_t *pool, size_t size) in mempool_prepare_slab()
1184 static void *mempool_prepare_page(struct kunit *test, mempool_t *pool, int order) in mempool_prepare_page()
1200 static void mempool_oob_right_helper(struct kunit *test, mempool_t *pool, size_t size) in mempool_oob_right_helper()
1219 static void mempool_kmalloc_oob_right(struct kunit *test) in mempool_kmalloc_oob_right()
1233 static void mempool_kmalloc_large_oob_right(struct kunit *test) in mempool_kmalloc_large_oob_right()
1247 static void mempool_slab_oob_right(struct kunit *test) in mempool_slab_oob_right()
1269 static void mempool_uaf_helper(struct kunit *test, mempool_t *pool, bool page) in mempool_uaf_helper()
1282 static void mempool_kmalloc_uaf(struct kunit *test) in mempool_kmalloc_uaf()
1296 static void mempool_kmalloc_large_uaf(struct kunit *test) in mempool_kmalloc_large_uaf()
1310 static void mempool_slab_uaf(struct kunit *test) in mempool_slab_uaf()
1324 static void mempool_page_alloc_uaf(struct kunit *test) in mempool_page_alloc_uaf()
1338 static void mempool_double_free_helper(struct kunit *test, mempool_t *pool) in mempool_double_free_helper()
1350 static void mempool_kmalloc_double_free(struct kunit *test) in mempool_kmalloc_double_free()
1364 static void mempool_kmalloc_large_double_free(struct kunit *test) in mempool_kmalloc_large_double_free()
1378 static void mempool_page_alloc_double_free(struct kunit *test) in mempool_page_alloc_double_free()
1392 static void mempool_kmalloc_invalid_free_helper(struct kunit *test, mempool_t *pool) in mempool_kmalloc_invalid_free_helper()
1404 static void mempool_kmalloc_invalid_free(struct kunit *test) in mempool_kmalloc_invalid_free()
1418 static void mempool_kmalloc_large_invalid_free(struct kunit *test) in mempool_kmalloc_large_invalid_free()
1440 static void kasan_global_oob_right(struct kunit *test) in kasan_global_oob_right()
1463 static void kasan_global_oob_left(struct kunit *test) in kasan_global_oob_left()
1477 static void kasan_stack_oob(struct kunit *test) in kasan_stack_oob()
1489 static void kasan_alloca_oob_left(struct kunit *test) in kasan_alloca_oob_left()
1504 static void kasan_alloca_oob_right(struct kunit *test) in kasan_alloca_oob_right()
1519 static void kasan_memchr(struct kunit *test) in kasan_memchr()
1544 static void kasan_memcmp(struct kunit *test) in kasan_memcmp()
1570 static void kasan_strings(struct kunit *test) in kasan_strings()
1606 static void kasan_bitops_modify(struct kunit *test, int nr, void *addr) in kasan_bitops_modify()
1618 static void kasan_bitops_test_and_modify(struct kunit *test, int nr, void *addr) in kasan_bitops_test_and_modify()
1633 static void kasan_bitops_generic(struct kunit *test) in kasan_bitops_generic()
1662 static void kasan_bitops_tags(struct kunit *test) in kasan_bitops_tags()
1680 static void vmalloc_helpers_tags(struct kunit *test) in vmalloc_helpers_tags()
1718 static void vmalloc_oob(struct kunit *test) in vmalloc_oob()
1769 static void vmap_tags(struct kunit *test) in vmap_tags()
1815 static void vm_map_ram_tags(struct kunit *test) in vm_map_ram_tags()
1850 static void match_all_not_assigned(struct kunit *test) in match_all_not_assigned()
1891 static void match_all_ptr_tag(struct kunit *test) in match_all_ptr_tag()
1917 static void match_all_mem_tag(struct kunit *test) in match_all_mem_tag()
1957 static void rust_uaf(struct kunit *test) in rust_uaf()
1963 static void copy_to_kernel_nofault_oob(struct kunit *test) in copy_to_kernel_nofault_oob()
1998 static void copy_user_test_oob(struct kunit *test) in copy_user_test_oob()