/Linux-v6.1/arch/x86/mm/ |
D | kasan_init_64.c | 162 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-v6.1/arch/arm64/mm/ |
D | kasan_init.c | 222 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-v6.1/mm/kasan/ |
D | shadow.c | 95 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() 298 shadow_end = (unsigned long)kasan_mem_to_shadow((void *)addr + size); in kasan_populate_vmalloc() 477 shadow_start = kasan_mem_to_shadow((void *)region_start); in kasan_release_vmalloc() 478 shadow_end = kasan_mem_to_shadow((void *)region_end); in kasan_release_vmalloc() 543 shadow_start = (unsigned long)kasan_mem_to_shadow(addr); in kasan_alloc_module_shadow() 583 vfree(kasan_mem_to_shadow(vm->addr)); in kasan_free_module_shadow()
|
D | report_sw_tags.c | 42 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()
|
D | report_generic.c | 40 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() 146 if (*(u8 *)kasan_mem_to_shadow(info->object) == KASAN_SLAB_FREETRACK) { in kasan_complete_mode_report_info() 156 memcpy(buffer, kasan_mem_to_shadow(row), META_BYTES_PER_ROW); in kasan_metadata_fetch_row() 278 shadow_ptr = kasan_mem_to_shadow((void *)aligned_addr); in get_address_stack_frame_info() 279 shadow_bottom = kasan_mem_to_shadow(end_of_stack(current)); in get_address_stack_frame_info()
|
D | generic.c | 45 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() 513 *(u8 *)kasan_mem_to_shadow(object) = KASAN_SLAB_FREETRACK; in kasan_save_free_info()
|
D | sw_tags.c | 113 shadow_first = kasan_mem_to_shadow(untagged_addr); in kasan_check_range() 114 shadow_last = kasan_mem_to_shadow(untagged_addr + size - 1); in kasan_check_range() 133 shadow_byte = READ_ONCE(*(u8 *)kasan_mem_to_shadow(untagged_addr)); in kasan_byte_accessible()
|
D | init.c | 445 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()
|
D | quarantine.c | 166 *(u8 *)kasan_mem_to_shadow(object) = KASAN_SLAB_FREE; in qlink_free()
|
/Linux-v6.1/arch/powerpc/mm/kasan/ |
D | init_32.c | 57 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()
|
D | init_book3s_64.c | 32 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()
|
D | book3s_32.c | 11 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()
|
D | 8xx.c | 37 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()
|
D | init_book3e_64.c | 74 k_start = ALIGN_DOWN((unsigned long)kasan_mem_to_shadow(start), PAGE_SIZE); in kasan_init_phys_region() 75 k_end = ALIGN((unsigned long)kasan_mem_to_shadow(end), PAGE_SIZE); in kasan_init_phys_region()
|
/Linux-v6.1/arch/arm/mm/ |
D | kasan_init.c | 194 shadow_start = kasan_mem_to_shadow(start); in create_mapping() 195 shadow_end = kasan_mem_to_shadow(end); in create_mapping() 240 kasan_populate_early_shadow(kasan_mem_to_shadow((void *)VMALLOC_START), in kasan_init() 241 kasan_mem_to_shadow((void *)VMALLOC_END)); in kasan_init() 243 kasan_populate_early_shadow(kasan_mem_to_shadow((void *)VMALLOC_END), in kasan_init() 244 kasan_mem_to_shadow((void *)-1UL) + 1); in kasan_init()
|
/Linux-v6.1/arch/riscv/mm/ |
D | kasan_init.c | 448 (void *)kasan_mem_to_shadow((void *)VMALLOC_START), in kasan_init() 449 (void *)kasan_mem_to_shadow((void *)VMALLOC_END)); in kasan_init() 459 kasan_populate(kasan_mem_to_shadow(start), kasan_mem_to_shadow(end)); in kasan_init() 463 kasan_populate(kasan_mem_to_shadow((const void *)MODULES_VADDR), in kasan_init() 464 kasan_mem_to_shadow((const void *)MODULES_VADDR + SZ_2G)); in kasan_init()
|
/Linux-v6.1/arch/xtensa/mm/ |
D | kasan_init.c | 87 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-v6.1/arch/s390/mm/ |
D | kasan_init.c | 24 #define __sha(x) ((unsigned long)kasan_mem_to_shadow((void *)x))
|
/Linux-v6.1/include/linux/ |
D | kasan.h | 57 static inline void *kasan_mem_to_shadow(const void *addr) in kasan_mem_to_shadow() function
|
/Linux-v6.1/Documentation/translations/zh_CN/dev-tools/ |
D | kasan.rst | 244 static inline void *kasan_mem_to_shadow(const void *addr)
|
/Linux-v6.1/Documentation/dev-tools/ |
D | kasan.rst | 274 static inline void *kasan_mem_to_shadow(const void *addr)
|