Searched refs:KASAN_GRANULE_SIZE (Results 1 – 13 of 13) sorted by relevance
/linux-6.1.9/mm/kasan/ |
D | report_generic.c | 41 p += KASAN_GRANULE_SIZE; in kasan_find_first_bad_addr() 57 if (*shadow_addr > 0 && *shadow_addr <= KASAN_GRANULE_SIZE - 1) in get_shadow_bug_type() 61 case 0 ... KASAN_GRANULE_SIZE - 1: in get_shadow_bug_type() 277 mem_ptr = round_down(aligned_addr, KASAN_GRANULE_SIZE); in get_address_stack_frame_info() 283 mem_ptr -= KASAN_GRANULE_SIZE; in get_address_stack_frame_info() 288 mem_ptr -= KASAN_GRANULE_SIZE; in get_address_stack_frame_info() 294 frame = (const unsigned long *)(mem_ptr + KASAN_GRANULE_SIZE); in get_address_stack_frame_info()
|
D | kasan_test.c | 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() 313 ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x'); in krealloc_more_oob_helper() 345 ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x'); in krealloc_less_oob_helper() 351 KUNIT_EXPECT_LE(test, round_up(size2, KASAN_GRANULE_SIZE), in krealloc_less_oob_helper() 352 round_down(middle, KASAN_GRANULE_SIZE)); in krealloc_less_oob_helper() 353 KUNIT_EXPECT_LE(test, round_up(middle, KASAN_GRANULE_SIZE), in krealloc_less_oob_helper() 354 round_down(size1, KASAN_GRANULE_SIZE)); in krealloc_less_oob_helper() 457 size_t size = 128 - KASAN_GRANULE_SIZE; in kmalloc_oob_memset_2() [all …]
|
D | common.c | 143 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_object_data() 229 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in ____kasan_slab_free() 360 KASAN_GRANULE_SIZE); in ____kasan_kmalloc() 362 KASAN_GRANULE_SIZE); in ____kasan_kmalloc() 411 KASAN_GRANULE_SIZE); in __kasan_kmalloc_large()
|
D | kasan.h | 99 #define KASAN_GRANULE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT) macro 102 #define KASAN_GRANULE_SIZE MTE_GRANULE_SIZE macro 105 #define KASAN_GRANULE_MASK (KASAN_GRANULE_SIZE - 1) 107 #define KASAN_MEMORY_PER_SHADOW_PAGE (KASAN_GRANULE_SIZE << PAGE_SHIFT) 155 #define META_MEM_BYTES_PER_ROW (META_BYTES_PER_ROW * KASAN_GRANULE_SIZE) 484 size = round_up(size, KASAN_GRANULE_SIZE); in kasan_unpoison()
|
D | generic.c | 75 if (unlikely(!IS_ALIGNED(addr, KASAN_GRANULE_SIZE))) in memory_is_poisoned_16() 196 return shadow_byte >= 0 && shadow_byte < KASAN_GRANULE_SIZE; in kasan_byte_accessible() 212 size_t aligned_size = round_up(global->size, KASAN_GRANULE_SIZE); in register_global() 286 size_t rounded_up_size = round_up(size, KASAN_GRANULE_SIZE); in __asan_alloca_poison() 289 size_t rounded_down_size = round_down(size, KASAN_GRANULE_SIZE); in __asan_alloca_poison()
|
D | shadow.c | 138 kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false); in kasan_unpoison() 193 if (WARN_ON(mem_data->nr_pages % KASAN_GRANULE_SIZE) || in kasan_mem_notifier() 530 size = round_up(size, KASAN_GRANULE_SIZE); in __kasan_poison_vmalloc() 544 scaled_size = (size + KASAN_GRANULE_SIZE - 1) >> in kasan_alloc_module_shadow()
|
D | report_hw_tags.c | 29 buffer[i] = hw_get_mem_tag(row + i * KASAN_GRANULE_SIZE); in kasan_metadata_fetch_row()
|
D | report_sw_tags.c | 43 p += KASAN_GRANULE_SIZE; in kasan_find_first_bad_addr()
|
D | kasan_test_module.c | 22 size_t size = 128 - KASAN_GRANULE_SIZE; in copy_user_test()
|
D | report.c | 346 (addr - row) / KASAN_GRANULE_SIZE * 3 + 1; in meta_pointer_offset() 562 orig_addr, orig_addr + KASAN_GRANULE_SIZE - 1); in kasan_non_canonical_hook()
|
D | hw_tags.c | 291 KASAN_GRANULE_SIZE); in __kasan_unpoison_vmalloc()
|
/linux-6.1.9/Documentation/translations/zh_CN/dev-tools/ |
D | kasan.rst | 344 页面,映射必须与 ``KASAN_GRANULE_SIZE * PAGE_SIZE`` 对齐。
|
/linux-6.1.9/Documentation/dev-tools/ |
D | kasan.rst | 402 ``KASAN_GRANULE_SIZE * PAGE_SIZE``.
|