Home
last modified time | relevance | path

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

/linux-5.19.10/arch/x86/mm/
Dkasan_init_64.c162 start = (unsigned long)kasan_mem_to_shadow(pfn_to_kaddr(range->start)); in map_range()
163 end = (unsigned long)kasan_mem_to_shadow(pfn_to_kaddr(range->end)); in map_range()
354 kasan_mem_to_shadow((void *)PAGE_OFFSET)); in kasan_init()
364 shadow_cpu_entry_begin = kasan_mem_to_shadow(shadow_cpu_entry_begin); in kasan_init()
370 shadow_cpu_entry_end = kasan_mem_to_shadow(shadow_cpu_entry_end); in kasan_init()
375 kasan_mem_to_shadow((void *)PAGE_OFFSET + MAXMEM), in kasan_init()
376 kasan_mem_to_shadow((void *)VMALLOC_START)); in kasan_init()
385 kasan_mem_to_shadow((void *)VMALLOC_START), in kasan_init()
386 kasan_mem_to_shadow((void *)VMALLOC_END)); in kasan_init()
389 kasan_mem_to_shadow((void *)VMALLOC_START), in kasan_init()
[all …]
/linux-5.19.10/mm/kasan/
Dshadow.c95 shadow_start = kasan_mem_to_shadow(addr); in kasan_poison()
96 shadow_end = kasan_mem_to_shadow(addr + size); in kasan_poison()
109 u8 *shadow = (u8 *)kasan_mem_to_shadow(addr + size); in kasan_poison_last_granule()
189 shadow_start = (unsigned long)kasan_mem_to_shadow((void *)start_kaddr); in kasan_mem_notifier()
297 shadow_start = (unsigned long)kasan_mem_to_shadow((void *)addr); in kasan_populate_vmalloc()
299 shadow_end = (unsigned long)kasan_mem_to_shadow((void *)addr + size); in kasan_populate_vmalloc()
464 shadow_start = kasan_mem_to_shadow((void *)region_start); in kasan_release_vmalloc()
465 shadow_end = kasan_mem_to_shadow((void *)region_end); in kasan_release_vmalloc()
526 shadow_start = (unsigned long)kasan_mem_to_shadow(addr); in kasan_alloc_module_shadow()
558 vfree(kasan_mem_to_shadow(vm->addr)); in kasan_free_module_shadow()
Dgeneric.c45 s8 shadow_value = *(s8 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_1()
58 u8 *shadow_addr = (u8 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_2_4_8()
72 u16 *shadow_addr = (u16 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_16()
128 ret = memory_is_nonzero(kasan_mem_to_shadow((void *)addr), in memory_is_poisoned_n()
129 kasan_mem_to_shadow((void *)addr + size - 1) + 1); in memory_is_poisoned_n()
133 s8 *last_shadow = (s8 *)kasan_mem_to_shadow((void *)last_byte); in memory_is_poisoned_n()
194 s8 shadow_byte = READ_ONCE(*(s8 *)kasan_mem_to_shadow(addr)); in kasan_byte_accessible()
372 *(u8 *)kasan_mem_to_shadow(object) = KASAN_SLAB_FREETRACK; in kasan_set_free_info()
378 if (*(u8 *)kasan_mem_to_shadow(object) != KASAN_SLAB_FREETRACK) in kasan_get_free_track()
Dreport_sw_tags.c42 while (p < end && tag == *(u8 *)kasan_mem_to_shadow(p)) in kasan_find_first_bad_addr()
50 memcpy(buffer, kasan_mem_to_shadow(row), META_BYTES_PER_ROW); in kasan_metadata_fetch_row()
55 u8 *shadow = (u8 *)kasan_mem_to_shadow(addr); in kasan_print_tags()
Dreport_generic.c40 while (p < addr + size && !(*(u8 *)kasan_mem_to_shadow(p))) in kasan_find_first_bad_addr()
51 shadow_addr = (u8 *)kasan_mem_to_shadow(info->first_bad_addr); in get_shadow_bug_type()
132 memcpy(buffer, kasan_mem_to_shadow(row), META_BYTES_PER_ROW); in kasan_metadata_fetch_row()
234 shadow_ptr = kasan_mem_to_shadow((void *)aligned_addr); in get_address_stack_frame_info()
235 shadow_bottom = kasan_mem_to_shadow(end_of_stack(current)); in get_address_stack_frame_info()
Dsw_tags.c110 shadow_first = kasan_mem_to_shadow(untagged_addr); in kasan_check_range()
111 shadow_last = kasan_mem_to_shadow(untagged_addr + size - 1); in kasan_check_range()
130 shadow_byte = READ_ONCE(*(u8 *)kasan_mem_to_shadow(untagged_addr)); in kasan_byte_accessible()
Dinit.c445 addr = (unsigned long)kasan_mem_to_shadow(start); in kasan_remove_zero_shadow()
480 shadow_start = kasan_mem_to_shadow(start); in kasan_add_zero_shadow()
Dquarantine.c166 *(u8 *)kasan_mem_to_shadow(object) = KASAN_SLAB_FREE; in qlink_free()
/linux-5.19.10/arch/arm64/mm/
Dkasan_init.c222 kimg_shadow_start = (u64)kasan_mem_to_shadow(KERNEL_START) & PAGE_MASK; in kasan_init_shadow()
223 kimg_shadow_end = PAGE_ALIGN((u64)kasan_mem_to_shadow(KERNEL_END)); in kasan_init_shadow()
225 mod_shadow_start = (u64)kasan_mem_to_shadow((void *)MODULES_VADDR); in kasan_init_shadow()
226 mod_shadow_end = (u64)kasan_mem_to_shadow((void *)MODULES_END); in kasan_init_shadow()
228 vmalloc_shadow_end = (u64)kasan_mem_to_shadow((void *)VMALLOC_END); in kasan_init_shadow()
246 kasan_populate_early_shadow(kasan_mem_to_shadow((void *)PAGE_END), in kasan_init_shadow()
268 kasan_map_populate((unsigned long)kasan_mem_to_shadow(start), in kasan_init_shadow()
269 (unsigned long)kasan_mem_to_shadow(end), in kasan_init_shadow()
299 shadow_start = (unsigned long)kasan_mem_to_shadow(start); in kasan_populate_early_vm_area_shadow()
301 shadow_end = (unsigned long)kasan_mem_to_shadow(start + size); in kasan_populate_early_vm_area_shadow()
/linux-5.19.10/arch/powerpc/mm/kasan/
Dinit_32.c57 unsigned long k_start = (unsigned long)kasan_mem_to_shadow(start); in kasan_init_region()
58 unsigned long k_end = (unsigned long)kasan_mem_to_shadow(start + size); in kasan_init_region()
113 unsigned long k_start = (unsigned long)kasan_mem_to_shadow((void *)VMALLOC_START); in kasan_unmap_early_shadow_vmalloc()
114 unsigned long k_end = (unsigned long)kasan_mem_to_shadow((void *)VMALLOC_END); in kasan_unmap_early_shadow_vmalloc()
119 k_start = (unsigned long)kasan_mem_to_shadow((void *)MODULES_VADDR); in kasan_unmap_early_shadow_vmalloc()
120 k_end = (unsigned long)kasan_mem_to_shadow((void *)MODULES_END); in kasan_unmap_early_shadow_vmalloc()
Dinit_book3s_64.c32 k_start = ALIGN_DOWN((unsigned long)kasan_mem_to_shadow(start), PAGE_SIZE); in kasan_init_phys_region()
33 k_end = ALIGN((unsigned long)kasan_mem_to_shadow(end), PAGE_SIZE); in kasan_init_phys_region()
53 void *k_start = kasan_mem_to_shadow((void *)RADIX_VMALLOC_END); in kasan_init()
54 void *k_end = kasan_mem_to_shadow((void *)RADIX_VMEMMAP_END); in kasan_init()
Dbook3s_32.c11 unsigned long k_start = (unsigned long)kasan_mem_to_shadow(start); in kasan_init_region()
12 unsigned long k_end = (unsigned long)kasan_mem_to_shadow(start + size); in kasan_init_region()
57 memset(kasan_mem_to_shadow(start), 0, k_end - k_start); in kasan_init_region()
D8xx.c37 unsigned long k_start = (unsigned long)kasan_mem_to_shadow(start); in kasan_init_region()
38 unsigned long k_end = (unsigned long)kasan_mem_to_shadow(start + size); in kasan_init_region()
/linux-5.19.10/arch/arm/mm/
Dkasan_init.c194 shadow_start = kasan_mem_to_shadow(start); in create_mapping()
195 shadow_end = kasan_mem_to_shadow(end); in create_mapping()
239 kasan_populate_early_shadow(kasan_mem_to_shadow((void *)VMALLOC_START), in kasan_init()
240 kasan_mem_to_shadow((void *)-1UL) + 1); in kasan_init()
/linux-5.19.10/arch/riscv/mm/
Dkasan_init.c443 (void *)kasan_mem_to_shadow((void *)VMALLOC_START), in kasan_init()
444 (void *)kasan_mem_to_shadow((void *)VMALLOC_END)); in kasan_init()
454 kasan_populate(kasan_mem_to_shadow(start), kasan_mem_to_shadow(end)); in kasan_init()
458 kasan_populate(kasan_mem_to_shadow((const void *)MODULES_VADDR), in kasan_init()
459 kasan_mem_to_shadow((const void *)MODULES_VADDR + SZ_2G)); in kasan_init()
/linux-5.19.10/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-5.19.10/arch/s390/mm/
Dkasan_init.c24 #define __sha(x) ((unsigned long)kasan_mem_to_shadow((void *)x))
/linux-5.19.10/include/linux/
Dkasan.h57 static inline void *kasan_mem_to_shadow(const void *addr) in kasan_mem_to_shadow() function
/linux-5.19.10/Documentation/translations/zh_CN/dev-tools/
Dkasan.rst205 static inline void *kasan_mem_to_shadow(const void *addr)
/linux-5.19.10/Documentation/dev-tools/
Dkasan.rst269 static inline void *kasan_mem_to_shadow(const void *addr)