/mm/kasan/ |
D | sw_tags.c | 73 u8 tag; in kasan_check_range() local 83 tag = get_tag((const void *)addr); in kasan_check_range() 102 if (tag == KASAN_TAG_KERNEL) in kasan_check_range() 113 if (*shadow != tag) { in kasan_check_range() 123 u8 tag = get_tag(addr); in kasan_byte_accessible() local 131 return tag == KASAN_TAG_KERNEL || tag == shadow_byte; in kasan_byte_accessible() 164 void __hwasan_tag_memory(unsigned long addr, u8 tag, unsigned long size) in __hwasan_tag_memory() argument 166 kasan_poison((void *)addr, size, tag, false); in __hwasan_tag_memory() 171 void *object, u8 tag) in kasan_set_free_info() argument 182 alloc_meta->free_pointer_tag[idx] = tag; in kasan_set_free_info() [all …]
|
D | kasan.h | 257 void kasan_set_free_info(struct kmem_cache *cache, void *object, u8 tag); 259 void *object, u8 tag); 273 static inline const void *arch_kasan_set_tag(const void *addr, u8 tag) in arch_kasan_set_tag() argument 282 #define set_tag(addr, tag) ((void *)arch_kasan_set_tag((addr), (tag))) argument 306 #define arch_set_mem_tag_range(addr, size, tag, init) ((void *)(addr)) argument 315 #define hw_set_mem_tag_range(addr, size, tag, init) \ argument 316 arch_set_mem_tag_range((addr), (size), (tag), (init)) 368 u8 tag = get_tag(addr); in kasan_unpoison() local 391 hw_set_mem_tag_range((void *)addr, size, tag, init); in kasan_unpoison() 521 void __hwasan_tag_memory(unsigned long addr, u8 tag, unsigned long size);
|
D | report.c | 164 const void *addr, u8 tag) in describe_object_stacks() argument 175 free_track = kasan_get_free_track(cache, object, tag); in describe_object_stacks() 198 const void *addr, u8 tag) in describe_object() argument 201 describe_object_stacks(cache, object, addr, tag); in describe_object() 221 static void print_address_description(void *addr, u8 tag) in print_address_description() argument 232 describe_object(cache, object, addr, tag); in print_address_description() 337 u8 tag = get_tag(object); in kasan_report_invalid_free() local 348 kasan_print_tags(tag, object); in kasan_report_invalid_free() 350 print_address_description(object, tag); in kasan_report_invalid_free()
|
D | report_sw_tags.c | 40 u8 tag; in kasan_get_bug_type() local 43 tag = get_tag(info->access_addr); in kasan_get_bug_type() 53 if (alloc_meta->free_pointer_tag[i] == tag) in kasan_get_bug_type() 77 u8 tag = get_tag(addr); in kasan_find_first_bad_addr() local 81 while (p < end && tag == *(u8 *)kasan_mem_to_shadow(p)) in kasan_find_first_bad_addr()
|
D | common.c | 102 u8 tag; in __kasan_unpoison_pages() local 108 tag = kasan_random_tag(); in __kasan_unpoison_pages() 110 page_kasan_tag_set(page + i, tag); in __kasan_unpoison_pages() 328 u8 tag; in ____kasan_slab_free() local 331 tag = get_tag(object); in ____kasan_slab_free() 360 kasan_set_free_info(cache, object, tag); in ____kasan_slab_free() 434 u8 tag; in __kasan_slab_alloc() local 450 tag = assign_tag(cache, object, false); in __kasan_slab_alloc() 451 tagged_object = set_tag(object, tag); in __kasan_slab_alloc()
|
D | hw_tags.c | 218 void *object, u8 tag) in kasan_set_free_info() argument 228 void *object, u8 tag) in kasan_get_free_track() argument
|
D | shadow.c | 111 u8 tag = get_tag(addr); in kasan_unpoison() local 132 kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false); in kasan_unpoison()
|
D | generic.c | 349 void *object, u8 tag) in kasan_set_free_info() argument 363 void *object, u8 tag) in kasan_get_free_track() argument
|
/mm/ |
D | swap.c | 1289 xa_mark_t tag) in pagevec_lookup_range_tag() argument 1291 pvec->nr = find_get_pages_range_tag(mapping, index, end, tag, in pagevec_lookup_range_tag() 1299 xa_mark_t tag, unsigned max_pages) in pagevec_lookup_range_nr_tag() argument 1301 pvec->nr = find_get_pages_range_tag(mapping, index, end, tag, in pagevec_lookup_range_nr_tag()
|
D | page-writeback.c | 2187 xa_mark_t tag; in write_cache_pages() local 2201 tag = PAGECACHE_TAG_TOWRITE; in write_cache_pages() 2203 tag = PAGECACHE_TAG_DIRTY; in write_cache_pages() 2210 tag); in write_cache_pages()
|
D | filemap.c | 2103 pgoff_t end, xa_mark_t tag, unsigned int nr_pages, in find_get_pages_range_tag() argument 2114 xas_for_each_marked(&xas, page, end, tag) { in find_get_pages_range_tag()
|
D | page_alloc.c | 1269 u8 tag = page_kasan_tag(page + i); in kernel_init_free_pages() local 1272 page_kasan_tag_set(page + i, tag); in kernel_init_free_pages()
|