Home
last modified time | relevance | path

Searched refs:kasan_mem_to_shadow (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.4/arch/x86/mm/
Dkasan_init_64.c165 start = (unsigned long)kasan_mem_to_shadow(pfn_to_kaddr(range->start)); in map_range()
166 end = (unsigned long)kasan_mem_to_shadow(pfn_to_kaddr(range->end)); in map_range()
335 kasan_mem_to_shadow((void *)PAGE_OFFSET)); in kasan_init()
345 shadow_cpu_entry_begin = kasan_mem_to_shadow(shadow_cpu_entry_begin); in kasan_init()
351 shadow_cpu_entry_end = kasan_mem_to_shadow(shadow_cpu_entry_end); in kasan_init()
356 kasan_mem_to_shadow((void *)PAGE_OFFSET + MAXMEM), in kasan_init()
363 kasan_mem_to_shadow((void *)__START_KERNEL_map)); in kasan_init()
365 kasan_populate_shadow((unsigned long)kasan_mem_to_shadow(_stext), in kasan_init()
366 (unsigned long)kasan_mem_to_shadow(_end), in kasan_init()
369 kasan_populate_early_shadow(kasan_mem_to_shadow((void *)MODULES_END), in kasan_init()
/Linux-v5.4/arch/arm64/mm/
Dkasan_init.c207 kimg_shadow_start = (u64)kasan_mem_to_shadow(_text) & PAGE_MASK; in kasan_init()
208 kimg_shadow_end = PAGE_ALIGN((u64)kasan_mem_to_shadow(_end)); in kasan_init()
210 mod_shadow_start = (u64)kasan_mem_to_shadow((void *)MODULES_VADDR); in kasan_init()
211 mod_shadow_end = (u64)kasan_mem_to_shadow((void *)MODULES_END); in kasan_init()
229 kasan_populate_early_shadow(kasan_mem_to_shadow((void *)PAGE_END), in kasan_init()
245 kasan_map_populate((unsigned long)kasan_mem_to_shadow(start), in kasan_init()
246 (unsigned long)kasan_mem_to_shadow(end), in kasan_init()
/Linux-v5.4/mm/kasan/
Dgeneric.c52 s8 shadow_value = *(s8 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_1()
65 u8 *shadow_addr = (u8 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_2_4_8()
79 u16 *shadow_addr = (u16 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_16()
135 ret = memory_is_nonzero(kasan_mem_to_shadow((void *)addr), in memory_is_poisoned_n()
136 kasan_mem_to_shadow((void *)addr + size - 1) + 1); in memory_is_poisoned_n()
140 s8 *last_shadow = (s8 *)kasan_mem_to_shadow((void *)last_byte); in memory_is_poisoned_n()
Dtags_report.c72 while (p < end && tag == *(u8 *)kasan_mem_to_shadow(p)) in find_first_bad_addr()
79 u8 *shadow = (u8 *)kasan_mem_to_shadow(addr); in print_tags()
Dgeneric_report.c41 while (p < addr + size && !(*(u8 *)kasan_mem_to_shadow(p))) in find_first_bad_addr()
51 shadow_addr = (u8 *)kasan_mem_to_shadow(info->first_bad_addr); in get_shadow_bug_type()
Dcommon.c143 shadow_start = kasan_mem_to_shadow(address); in kasan_poison_shadow()
144 shadow_end = kasan_mem_to_shadow(address + size); in kasan_poison_shadow()
163 u8 *shadow = (u8 *)kasan_mem_to_shadow(address + size); in kasan_unpoison_shadow()
458 shadow_byte = READ_ONCE(*(s8 *)kasan_mem_to_shadow(object)); in __kasan_slab_free()
600 shadow_start = (unsigned long)kasan_mem_to_shadow(addr); in kasan_module_alloc()
626 vfree(kasan_mem_to_shadow(vm->addr)); in kasan_free_shadow()
682 shadow_start = (unsigned long)kasan_mem_to_shadow((void *)start_kaddr); in kasan_mem_notifier()
Dtags.c117 shadow_first = kasan_mem_to_shadow(untagged_addr); in check_memory_region()
118 shadow_last = kasan_mem_to_shadow(untagged_addr + size - 1); in check_memory_region()
Dreport.c312 shadow_ptr = kasan_mem_to_shadow((void *)aligned_addr); in get_address_stack_frame_info()
313 shadow_bottom = kasan_mem_to_shadow(end_of_stack(current)); in get_address_stack_frame_info()
414 const void *shadow = kasan_mem_to_shadow(addr); in print_shadow_for_address()
Dinit.c457 addr = (unsigned long)kasan_mem_to_shadow(start); in kasan_remove_zero_shadow()
492 shadow_start = kasan_mem_to_shadow(start); in kasan_add_zero_shadow()
/Linux-v5.4/arch/xtensa/mm/
Dkasan_init.c87 populate(kasan_mem_to_shadow((void *)VMALLOC_START), in kasan_init()
88 kasan_mem_to_shadow((void *)XCHAL_KSEG_BYPASS_VADDR)); in kasan_init()
/Linux-v5.4/arch/powerpc/mm/kasan/
Dkasan_init_32.c83 unsigned long k_start = (unsigned long)kasan_mem_to_shadow(start); in kasan_init_region()
84 unsigned long k_end = (unsigned long)kasan_mem_to_shadow(start + size); in kasan_init_region()
/Linux-v5.4/include/linux/
Dkasan.h26 static inline void *kasan_mem_to_shadow(const void *addr) in kasan_mem_to_shadow() function
/Linux-v5.4/arch/s390/mm/
Dkasan_init.c23 #define __sha(x) ((unsigned long)kasan_mem_to_shadow((void *)x))
/Linux-v5.4/Documentation/dev-tools/
Dkasan.rst178 static inline void *kasan_mem_to_shadow(const void *addr)