Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/lib/
Dtest_kasan.c64 #define KUNIT_EXPECT_KASAN_FAIL(test, condition) do { \ macro
86 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size + OOB_TAG_OFF] = 'x'); in kmalloc_oob_right()
98 KUNIT_EXPECT_KASAN_FAIL(test, *ptr = *(ptr - 1)); in kmalloc_oob_left()
110 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size] = 0); in kmalloc_node_oob_right()
130 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size + OOB_TAG_OFF] = 0); in kmalloc_pagealloc_oob_right()
148 KUNIT_EXPECT_KASAN_FAIL(test, ptr[0] = 0); in kmalloc_pagealloc_uaf()
164 KUNIT_EXPECT_KASAN_FAIL(test, kfree(ptr + 1)); in kmalloc_pagealloc_invalid_free()
177 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size] = 0); in kmalloc_large_oob_right()
193 KUNIT_EXPECT_KASAN_FAIL(test, ptr2[size2 + OOB_TAG_OFF] = 'x'); in kmalloc_oob_krealloc_more()
209 KUNIT_EXPECT_KASAN_FAIL(test, ptr2[size2 + OOB_TAG_OFF] = 'x'); in kmalloc_oob_krealloc_less()
[all …]