Home
last modified time | relevance | path

Searched refs:KASAN_SHADOW_SCALE_SIZE (Results 1 – 3 of 3) sorted by relevance

/mm/kasan/
Dkasan.c157 if (unlikely(!IS_ALIGNED(addr, KASAN_SHADOW_SCALE_SIZE))) in memory_is_poisoned_16()
411 round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE), in kasan_poison_object_data()
495 unsigned long rounded_up_size = round_up(size, KASAN_SHADOW_SCALE_SIZE); in kasan_poison_slab_free()
513 if (shadow_byte < 0 || shadow_byte >= KASAN_SHADOW_SCALE_SIZE) { in kasan_slab_free()
542 KASAN_SHADOW_SCALE_SIZE); in kasan_kmalloc()
544 KASAN_SHADOW_SCALE_SIZE); in kasan_kmalloc()
569 KASAN_SHADOW_SCALE_SIZE); in kasan_kmalloc_large()
650 size_t aligned_size = round_up(global->size, KASAN_SHADOW_SCALE_SIZE); in register_global()
728 kasan_poison_shadow(addr, round_up(size, KASAN_SHADOW_SCALE_SIZE), in __asan_poison_stack_memory()
788 if (WARN_ON(mem_data->nr_pages % KASAN_SHADOW_SCALE_SIZE) || in kasan_mem_notifier()
[all …]
Dkasan.h8 #define KASAN_SHADOW_SCALE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT) macro
9 #define KASAN_SHADOW_MASK (KASAN_SHADOW_SCALE_SIZE - 1)
Dreport.c48 first_bad_addr += KASAN_SHADOW_SCALE_SIZE; in find_first_bad_addr()
74 if (*shadow_addr > 0 && *shadow_addr <= KASAN_SHADOW_SCALE_SIZE - 1) in get_shadow_bug_type()
78 case 0 ... KASAN_SHADOW_SCALE_SIZE - 1: in get_shadow_bug_type()