Home
last modified time | relevance | path

Searched refs:is_origin (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/mm/kmsan/
Dshadow.c55 static unsigned long vmalloc_meta(void *addr, bool is_origin) in vmalloc_meta() argument
59 KMSAN_WARN_ON(is_origin && !IS_ALIGNED(addr64, KMSAN_ORIGIN_SIZE)); in vmalloc_meta()
62 return off + (is_origin ? KMSAN_VMALLOC_ORIGIN_START : in vmalloc_meta()
67 return off + (is_origin ? KMSAN_MODULES_ORIGIN_START : in vmalloc_meta()
124 void *kmsan_get_metadata(void *address, bool is_origin) in kmsan_get_metadata() argument
130 if (is_origin && !IS_ALIGNED(addr, KMSAN_ORIGIN_SIZE)) { in kmsan_get_metadata()
137 return (void *)vmalloc_meta(address, is_origin); in kmsan_get_metadata()
139 ret = arch_kmsan_get_meta_or_null(address, is_origin); in kmsan_get_metadata()
150 return (is_origin ? origin_ptr_for(page) : shadow_ptr_for(page)) + off; in kmsan_get_metadata()
Dkmsan.h69 void *kmsan_get_metadata(void *addr, bool is_origin);
/Linux-v6.1/arch/x86/include/asm/
Dkmsan.h30 static inline void *arch_kmsan_get_meta_or_null(void *addr, bool is_origin) in arch_kmsan_get_meta_or_null() argument
44 metadata_array = is_origin ? cpu_entry_area_origin : in arch_kmsan_get_meta_or_null()