Home
last modified time | relevance | path

Searched refs:shadow_start (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.1/mm/kasan/
Dshadow.c74 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()
[all …]
Dinit.c226 int __ref kasan_populate_early_shadow(const void *shadow_start, in kasan_populate_early_shadow() argument
229 unsigned long addr = (unsigned long)shadow_start; in kasan_populate_early_shadow()
478 void *shadow_start, *shadow_end; in kasan_add_zero_shadow() local
480 shadow_start = kasan_mem_to_shadow(start); in kasan_add_zero_shadow()
481 shadow_end = shadow_start + (size >> KASAN_SHADOW_SCALE_SHIFT); in kasan_add_zero_shadow()
487 ret = kasan_populate_early_shadow(shadow_start, shadow_end); in kasan_add_zero_shadow()
/Linux-v6.1/mm/kmsan/
Dshadow.c223 unsigned long shadow_start, origin_start, shadow_end, origin_end; in kmsan_vmap_pages_range_noflush() local
230 shadow_start = vmalloc_meta((void *)start, KMSAN_META_SHADOW); in kmsan_vmap_pages_range_noflush()
232 if (!shadow_start) in kmsan_vmap_pages_range_noflush()
250 mapped = __vmap_pages_range_noflush(shadow_start, shadow_end, prot, in kmsan_vmap_pages_range_noflush()
257 flush_tlb_kernel_range(shadow_start, shadow_end); in kmsan_vmap_pages_range_noflush()
259 flush_cache_vmap(shadow_start, shadow_end); in kmsan_vmap_pages_range_noflush()
Dcore.c261 void *shadow_start; in kmsan_internal_set_shadow_origin() local
266 shadow_start = kmsan_get_metadata(addr, KMSAN_META_SHADOW); in kmsan_internal_set_shadow_origin()
267 if (!shadow_start) { in kmsan_internal_set_shadow_origin()
279 __memset(shadow_start, b, size); in kmsan_internal_set_shadow_origin()
/Linux-v6.1/arch/arm/mm/
Dkasan_init.c192 void *shadow_start, *shadow_end; in create_mapping() local
194 shadow_start = kasan_mem_to_shadow(start); in create_mapping()
198 start, end, shadow_start, shadow_end); in create_mapping()
200 kasan_pgd_populate((unsigned long)shadow_start & PAGE_MASK, in create_mapping()
/Linux-v6.1/arch/arm64/mm/
Dkasan_init.c294 unsigned long shadow_start, shadow_end; in kasan_populate_early_vm_area_shadow() local
299 shadow_start = (unsigned long)kasan_mem_to_shadow(start); in kasan_populate_early_vm_area_shadow()
300 shadow_start = ALIGN_DOWN(shadow_start, PAGE_SIZE); in kasan_populate_early_vm_area_shadow()
303 kasan_map_populate(shadow_start, shadow_end, NUMA_NO_NODE); in kasan_populate_early_vm_area_shadow()
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/acr/
Dgp102.c125 acr->shadow_start = nvkm_memory_addr(acr->wpr); in gp102_acr_wpr_alloc()
126 acr->wpr_start = acr->shadow_start + (nvkm_memory_size(acr->wpr) >> 1); in gp102_acr_wpr_alloc()
208 acr->shadow_start >> 8; in gp102_acr_load_load()
Dbase.c296 acr->wpr_start, acr->wpr_end, acr->shadow_start); in nvkm_acr_oneinit()
/Linux-v6.1/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dacr.h47 u64 shadow_start; member
/Linux-v6.1/include/linux/
Dkasan.h54 int kasan_populate_early_shadow(const void *shadow_start,