Home
last modified time | relevance | path

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

/mm/kasan/
Dreport_generic.c38 p += KASAN_GRANULE_SIZE; in kasan_find_first_bad_addr()
53 if (*shadow_addr > 0 && *shadow_addr <= KASAN_GRANULE_SIZE - 1) in get_shadow_bug_type()
57 case 0 ... KASAN_GRANULE_SIZE - 1: in get_shadow_bug_type()
235 mem_ptr = round_down(aligned_addr, KASAN_GRANULE_SIZE); in get_address_stack_frame_info()
241 mem_ptr -= KASAN_GRANULE_SIZE; in get_address_stack_frame_info()
246 mem_ptr -= KASAN_GRANULE_SIZE; in get_address_stack_frame_info()
252 frame = (const unsigned long *)(mem_ptr + KASAN_GRANULE_SIZE); in get_address_stack_frame_info()
Dkasan.h45 #define KASAN_GRANULE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT) macro
48 #define KASAN_GRANULE_SIZE MTE_GRANULE_SIZE macro
51 #define KASAN_GRANULE_MASK (KASAN_GRANULE_SIZE - 1)
53 #define KASAN_MEMORY_PER_SHADOW_PAGE (KASAN_GRANULE_SIZE << PAGE_SHIFT)
103 #define META_MEM_BYTES_PER_ROW (META_BYTES_PER_ROW * KASAN_GRANULE_SIZE)
389 size = round_up(size, KASAN_GRANULE_SIZE); in kasan_unpoison()
Dgeneric.c75 if (unlikely(!IS_ALIGNED(addr, KASAN_GRANULE_SIZE))) in memory_is_poisoned_16()
193 return shadow_byte >= 0 && shadow_byte < KASAN_GRANULE_SIZE; in kasan_byte_accessible()
209 size_t aligned_size = round_up(global->size, KASAN_GRANULE_SIZE); in register_global()
283 size_t rounded_up_size = round_up(size, KASAN_GRANULE_SIZE); in __asan_alloca_poison()
286 size_t rounded_down_size = round_down(size, KASAN_GRANULE_SIZE); in __asan_alloca_poison()
Dcommon.c264 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_object_data()
353 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in ____kasan_slab_free()
496 KASAN_GRANULE_SIZE); in ____kasan_kmalloc()
498 KASAN_GRANULE_SIZE); in ____kasan_kmalloc()
547 KASAN_GRANULE_SIZE); in __kasan_kmalloc_large()
Dshadow.c132 kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false); in kasan_unpoison()
187 if (WARN_ON(mem_data->nr_pages % KASAN_GRANULE_SIZE) || in kasan_mem_notifier()
346 size = round_up(size, KASAN_GRANULE_SIZE); in kasan_poison_vmalloc()
498 scaled_size = (size + KASAN_GRANULE_SIZE - 1) >> in kasan_module_alloc()
Dreport_hw_tags.c33 buffer[i] = hw_get_mem_tag(row + i * KASAN_GRANULE_SIZE); in kasan_metadata_fetch_row()
Dreport.c266 (addr - row) / KASAN_GRANULE_SIZE * 3 + 1; in meta_pointer_offset()
473 orig_addr, orig_addr + KASAN_GRANULE_SIZE - 1); in kasan_non_canonical_hook()
Dreport_sw_tags.c82 p += KASAN_GRANULE_SIZE; in kasan_find_first_bad_addr()