Home
last modified time | relevance | path

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

/mm/kasan/
Dgeneric_report.c49 u8 *shadow_addr; in get_shadow_bug_type() local
51 shadow_addr = (u8 *)kasan_mem_to_shadow(info->first_bad_addr); in get_shadow_bug_type()
57 if (*shadow_addr > 0 && *shadow_addr <= KASAN_SHADOW_SCALE_SIZE - 1) in get_shadow_bug_type()
58 shadow_addr++; in get_shadow_bug_type()
60 switch (*shadow_addr) { in get_shadow_bug_type()
Dgeneric.c65 u8 *shadow_addr = (u8 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_2_4_8() local
72 return *shadow_addr || memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
79 u16 *shadow_addr = (u16 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_16() local
83 return *shadow_addr || memory_is_poisoned_1(addr + 15); in memory_is_poisoned_16()
85 return *shadow_addr; in memory_is_poisoned_16()
Dkasan.h128 static inline const void *kasan_shadow_to_mem(const void *shadow_addr) in kasan_shadow_to_mem() argument
130 return (void *)(((unsigned long)shadow_addr - KASAN_SHADOW_OFFSET) in kasan_shadow_to_mem()