Lines Matching refs:KASAN_GRANULE_SIZE
30 #define OOB_TAG_OFF (IS_ENABLED(CONFIG_KASAN_GENERIC) ? 0 : KASAN_GRANULE_SIZE)
129 size_t size = 128 - KASAN_GRANULE_SIZE - 5; in kmalloc_oob_right()
150 ptr[size + KASAN_GRANULE_SIZE + 5]); in kmalloc_oob_right()
310 ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x'); in krealloc_more_oob_helper()
339 ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x'); in krealloc_less_oob_helper()
345 KUNIT_EXPECT_LE(test, round_up(size2, KASAN_GRANULE_SIZE), in krealloc_less_oob_helper()
346 round_down(middle, KASAN_GRANULE_SIZE)); in krealloc_less_oob_helper()
347 KUNIT_EXPECT_LE(test, round_up(middle, KASAN_GRANULE_SIZE), in krealloc_less_oob_helper()
348 round_down(size1, KASAN_GRANULE_SIZE)); in krealloc_less_oob_helper()
451 size_t size = 128 - KASAN_GRANULE_SIZE; in kmalloc_oob_memset_2()
464 size_t size = 128 - KASAN_GRANULE_SIZE; in kmalloc_oob_memset_4()
477 size_t size = 128 - KASAN_GRANULE_SIZE; in kmalloc_oob_memset_8()
490 size_t size = 128 - KASAN_GRANULE_SIZE; in kmalloc_oob_memset_16()
503 size_t size = 128 - KASAN_GRANULE_SIZE; in kmalloc_oob_in_memset()
511 memset(ptr, 0, size + KASAN_GRANULE_SIZE)); in kmalloc_oob_in_memset()
784 int size = 128 - KASAN_GRANULE_SIZE; in ksize_uaf()
1115 size_t size = PAGE_SIZE / 2 - KASAN_GRANULE_SIZE - 5; in vmalloc_oob()
1347 kasan_poison(ptr, KASAN_GRANULE_SIZE, (u8)tag, false); in match_all_mem_tag()
1354 kasan_poison(ptr, KASAN_GRANULE_SIZE, get_tag(ptr), false); in match_all_mem_tag()