Home
last modified time | relevance | path

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

/linux-6.6.21/mm/kasan/
Dshadow.c126 void *shadow_start, *shadow_end; in kasan_poison() local
147 shadow_start = kasan_mem_to_shadow(addr); in kasan_poison()
150 __memset(shadow_start, value, shadow_end - shadow_start); in kasan_poison()
236 unsigned long nr_shadow_pages, start_kaddr, shadow_start; in kasan_mem_notifier() local
241 shadow_start = (unsigned long)kasan_mem_to_shadow((void *)start_kaddr); in kasan_mem_notifier()
243 shadow_end = shadow_start + shadow_size; in kasan_mem_notifier()
258 if (shadow_mapped(shadow_start)) in kasan_mem_notifier()
261 ret = __vmalloc_node_range(shadow_size, PAGE_SIZE, shadow_start, in kasan_mem_notifier()
288 vm = find_vm_area((void *)shadow_start); in kasan_mem_notifier()
290 vfree((void *)shadow_start); in kasan_mem_notifier()
[all …]
Dinit.c236 int __ref kasan_populate_early_shadow(const void *shadow_start, in kasan_populate_early_shadow() argument
239 unsigned long addr = (unsigned long)shadow_start; in kasan_populate_early_shadow()
491 void *shadow_start, *shadow_end; in kasan_add_zero_shadow() local
493 shadow_start = kasan_mem_to_shadow(start); in kasan_add_zero_shadow()
494 shadow_end = shadow_start + (size >> KASAN_SHADOW_SCALE_SHIFT); in kasan_add_zero_shadow()
500 ret = kasan_populate_early_shadow(shadow_start, shadow_end); in kasan_add_zero_shadow()
/linux-6.6.21/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()
252 mapped = __vmap_pages_range_noflush(shadow_start, shadow_end, prot, in kmsan_vmap_pages_range_noflush()
265 flush_tlb_kernel_range(shadow_start, shadow_end); in kmsan_vmap_pages_range_noflush()
267 flush_cache_vmap(shadow_start, shadow_end); in kmsan_vmap_pages_range_noflush()
Dcore.c265 void *shadow_start; in kmsan_internal_set_shadow_origin() local
270 shadow_start = kmsan_get_metadata(addr, KMSAN_META_SHADOW); in kmsan_internal_set_shadow_origin()
271 if (!shadow_start) { in kmsan_internal_set_shadow_origin()
283 __memset(shadow_start, b, size); in kmsan_internal_set_shadow_origin()
/linux-6.6.21/arch/arm/mm/
Dkasan_init.c191 void *shadow_start, *shadow_end; in create_mapping() local
193 shadow_start = kasan_mem_to_shadow(start); in create_mapping()
197 start, end, shadow_start, shadow_end); in create_mapping()
199 kasan_pgd_populate((unsigned long)shadow_start & PAGE_MASK, in create_mapping()
/linux-6.6.21/arch/arm64/mm/
Dkasan_init.c285 unsigned long shadow_start, shadow_end; in kasan_populate_early_vm_area_shadow() local
290 shadow_start = (unsigned long)kasan_mem_to_shadow(start); in kasan_populate_early_vm_area_shadow()
291 shadow_start = ALIGN_DOWN(shadow_start, PAGE_SIZE); in kasan_populate_early_vm_area_shadow()
294 kasan_map_populate(shadow_start, shadow_end, NUMA_NO_NODE); in kasan_populate_early_vm_area_shadow()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/acr/
Dgp102.c127 acr->shadow_start = nvkm_memory_addr(acr->wpr); in gp102_acr_wpr_alloc()
128 acr->wpr_start = acr->shadow_start + (nvkm_memory_size(acr->wpr) >> 1); in gp102_acr_wpr_alloc()
210 desc->regions.region_props[0].shadow_mem_start_addr = acr->shadow_start >> 8; in gp102_acr_load_setup()
Dbase.c297 acr->wpr_start, acr->wpr_end, acr->shadow_start); in nvkm_acr_oneinit()
/linux-6.6.21/arch/x86/mm/
Dkasan_init_64.c335 unsigned long shadow_start, shadow_end; in kasan_populate_shadow_for_vaddr() local
337 shadow_start = kasan_mem_to_shadow_align_down((unsigned long)va); in kasan_populate_shadow_for_vaddr()
339 kasan_populate_shadow(shadow_start, shadow_end, nid); in kasan_populate_shadow_for_vaddr()
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dacr.h47 u64 shadow_start; member
/linux-6.6.21/include/linux/
Dkasan.h54 int kasan_populate_early_shadow(const void *shadow_start,