Searched refs:OOB_TAG_OFF (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/lib/ |
D | test_kasan_module.c | 18 #define OOB_TAG_OFF (IS_ENABLED(CONFIG_KASAN_GENERIC) ? 0 : KASAN_SHADOW_SCALE_SIZE) macro 41 unused = copy_from_user(kmem, usermem, size + 1 + OOB_TAG_OFF); in copy_user_test() 44 unused = copy_to_user(usermem, kmem, size + 1 + OOB_TAG_OFF); in copy_user_test() 47 unused = __copy_from_user(kmem, usermem, size + 1 + OOB_TAG_OFF); in copy_user_test() 50 unused = __copy_to_user(usermem, kmem, size + 1 + OOB_TAG_OFF); in copy_user_test() 53 unused = __copy_from_user_inatomic(kmem, usermem, size + 1 + OOB_TAG_OFF); in copy_user_test() 56 unused = __copy_to_user_inatomic(usermem, kmem, size + 1 + OOB_TAG_OFF); in copy_user_test() 59 unused = strncpy_from_user(kmem, usermem, size + 1 + OOB_TAG_OFF); in copy_user_test()
|
D | test_kasan.c | 28 #define OOB_TAG_OFF (IS_ENABLED(CONFIG_KASAN_GENERIC) ? 0 : KASAN_SHADOW_SCALE_SIZE) macro 86 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size + OOB_TAG_OFF] = 'x'); in kmalloc_oob_right() 130 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size + OOB_TAG_OFF] = 0); in kmalloc_pagealloc_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() 261 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr + 7 + OOB_TAG_OFF, 0, 2)); in kmalloc_oob_memset_2() 273 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr + 5 + OOB_TAG_OFF, 0, 4)); in kmalloc_oob_memset_4() 286 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr + 1 + OOB_TAG_OFF, 0, 8)); in kmalloc_oob_memset_8() 298 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr + 1 + OOB_TAG_OFF, 0, 16)); in kmalloc_oob_memset_16() 310 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr, 0, size + 5 + OOB_TAG_OFF)); in kmalloc_oob_in_memset() [all …]
|