Lines Matching refs:shadow_start

74 	void *shadow_start, *shadow_end;  in kasan_poison()  local
95 shadow_start = kasan_mem_to_shadow(addr); in kasan_poison()
98 __memset(shadow_start, value, shadow_end - shadow_start); in kasan_poison()
184 unsigned long nr_shadow_pages, start_kaddr, shadow_start; in kasan_mem_notifier() local
189 shadow_start = (unsigned long)kasan_mem_to_shadow((void *)start_kaddr); in kasan_mem_notifier()
191 shadow_end = shadow_start + shadow_size; in kasan_mem_notifier()
206 if (shadow_mapped(shadow_start)) in kasan_mem_notifier()
209 ret = __vmalloc_node_range(shadow_size, PAGE_SIZE, shadow_start, in kasan_mem_notifier()
236 vm = find_vm_area((void *)shadow_start); in kasan_mem_notifier()
238 vfree((void *)shadow_start); in kasan_mem_notifier()
291 unsigned long shadow_start, shadow_end; in kasan_populate_vmalloc() local
297 shadow_start = (unsigned long)kasan_mem_to_shadow((void *)addr); in kasan_populate_vmalloc()
298 shadow_start = ALIGN_DOWN(shadow_start, PAGE_SIZE); in kasan_populate_vmalloc()
302 ret = apply_to_page_range(&init_mm, shadow_start, in kasan_populate_vmalloc()
303 shadow_end - shadow_start, in kasan_populate_vmalloc()
308 flush_cache_vmap(shadow_start, shadow_end); in kasan_populate_vmalloc()
445 void *shadow_start, *shadow_end; in kasan_release_vmalloc() local
464 shadow_start = kasan_mem_to_shadow((void *)region_start); in kasan_release_vmalloc()
467 if (shadow_end > shadow_start) { in kasan_release_vmalloc()
468 size = shadow_end - shadow_start; in kasan_release_vmalloc()
470 (unsigned long)shadow_start, in kasan_release_vmalloc()
473 flush_tlb_kernel_range((unsigned long)shadow_start, in kasan_release_vmalloc()
524 unsigned long shadow_start; in kasan_alloc_module_shadow() local
526 shadow_start = (unsigned long)kasan_mem_to_shadow(addr); in kasan_alloc_module_shadow()
531 if (WARN_ON(!PAGE_ALIGNED(shadow_start))) in kasan_alloc_module_shadow()
534 ret = __vmalloc_node_range(shadow_size, 1, shadow_start, in kasan_alloc_module_shadow()
535 shadow_start + shadow_size, in kasan_alloc_module_shadow()