Searched refs:KASAN_GRANULE_SIZE (Results 1 – 13 of 13) sorted by relevance
/openbmc/linux/mm/kasan/ |
H A D | report_generic.c | 41 p += KASAN_GRANULE_SIZE; in kasan_find_first_bad_addr() 63 size += KASAN_GRANULE_SIZE; in kasan_get_alloc_size() 64 else if (*shadow >= 1 && *shadow <= KASAN_GRANULE_SIZE - 1) in kasan_get_alloc_size() 85 if (*shadow_addr > 0 && *shadow_addr <= KASAN_GRANULE_SIZE - 1) in get_shadow_bug_type() 89 case 0 ... KASAN_GRANULE_SIZE - 1: in get_shadow_bug_type() 307 mem_ptr = round_down(aligned_addr, KASAN_GRANULE_SIZE); in get_address_stack_frame_info() 313 mem_ptr -= KASAN_GRANULE_SIZE; in get_address_stack_frame_info() 318 mem_ptr -= KASAN_GRANULE_SIZE; in get_address_stack_frame_info() 324 frame = (const unsigned long *)(mem_ptr + KASAN_GRANULE_SIZE); in get_address_stack_frame_info()
|
H A D | report_hw_tags.c | 46 memory_tag = hw_get_mem_tag(object + i * KASAN_GRANULE_SIZE); in kasan_get_alloc_size() 48 size += KASAN_GRANULE_SIZE; in kasan_get_alloc_size() 62 buffer[i] = hw_get_mem_tag(row + i * KASAN_GRANULE_SIZE); in kasan_metadata_fetch_row()
|
H A D | kasan_test.c | 33 #define OOB_TAG_OFF (IS_ENABLED(CONFIG_KASAN_GENERIC) ? 0 : KASAN_GRANULE_SIZE) 162 size_t size = 128 - KASAN_GRANULE_SIZE - 5; in kmalloc_oob_right() 183 ptr[size + KASAN_GRANULE_SIZE + 5]); in kmalloc_oob_right() 346 ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x'); in krealloc_more_oob_helper() 378 ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x'); in krealloc_less_oob_helper() 384 KUNIT_EXPECT_LE(test, round_up(size2, KASAN_GRANULE_SIZE), in krealloc_less_oob_helper() 385 round_down(middle, KASAN_GRANULE_SIZE)); in krealloc_less_oob_helper() 386 KUNIT_EXPECT_LE(test, round_up(middle, KASAN_GRANULE_SIZE), in krealloc_less_oob_helper() 387 round_down(size1, KASAN_GRANULE_SIZE)); in krealloc_less_oob_helper() 495 size_t size = 128 - KASAN_GRANULE_SIZE; in kmalloc_oob_memset_2() [all …]
|
H A 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() 363 KASAN_GRANULE_SIZE); in ____kasan_kmalloc() 365 KASAN_GRANULE_SIZE); in ____kasan_kmalloc() 414 KASAN_GRANULE_SIZE); in __kasan_kmalloc_large()
|
H A D | kasan.h | 126 #define KASAN_GRANULE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT) macro 129 #define KASAN_GRANULE_SIZE MTE_GRANULE_SIZE macro 132 #define KASAN_GRANULE_MASK (KASAN_GRANULE_SIZE - 1) 134 #define KASAN_MEMORY_PER_SHADOW_PAGE (KASAN_GRANULE_SIZE << PAGE_SHIFT) 182 #define META_MEM_BYTES_PER_ROW (META_BYTES_PER_ROW * KASAN_GRANULE_SIZE) 473 size = round_up(size, KASAN_GRANULE_SIZE); in kasan_unpoison()
|
H A D | report_sw_tags.c | 43 p += KASAN_GRANULE_SIZE; in kasan_find_first_bad_addr() 65 size += KASAN_GRANULE_SIZE; in kasan_get_alloc_size()
|
H A D | generic.c | 75 if (unlikely(!IS_ALIGNED((unsigned long)addr, KASAN_GRANULE_SIZE))) in memory_is_poisoned_16() 199 return shadow_byte >= 0 && shadow_byte < KASAN_GRANULE_SIZE; in kasan_byte_accessible() 215 size_t aligned_size = round_up(global->size, KASAN_GRANULE_SIZE); in register_global() 290 size_t rounded_up_size = round_up(size, KASAN_GRANULE_SIZE); in __asan_alloca_poison() 293 size_t rounded_down_size = round_down(size, KASAN_GRANULE_SIZE); in __asan_alloca_poison()
|
H A D | shadow.c | 190 kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false); in kasan_unpoison() 245 if (WARN_ON(mem_data->nr_pages % KASAN_GRANULE_SIZE) || in kasan_mem_notifier() 594 size = round_up(size, KASAN_GRANULE_SIZE); in __kasan_poison_vmalloc() 608 scaled_size = (size + KASAN_GRANULE_SIZE - 1) >> in kasan_alloc_module_shadow()
|
H A D | kasan_test_module.c | 22 size_t size = 128 - KASAN_GRANULE_SIZE; in copy_user_test()
|
H A D | report.c | 426 (addr - row) / KASAN_GRANULE_SIZE * 3 + 1; in meta_pointer_offset() 660 orig_addr, orig_addr + KASAN_GRANULE_SIZE - 1); in kasan_non_canonical_hook()
|
H A D | hw_tags.c | 351 KASAN_GRANULE_SIZE); in __kasan_unpoison_vmalloc()
|
/openbmc/linux/Documentation/translations/zh_CN/dev-tools/ |
H A D | kasan.rst | 352 页面,映射必须与 ``KASAN_GRANULE_SIZE * PAGE_SIZE`` 对齐。
|
/openbmc/linux/Documentation/dev-tools/ |
H A D | kasan.rst | 422 ``KASAN_GRANULE_SIZE * PAGE_SIZE``.
|