Lines Matching refs:addr
300 static __always_inline bool addr_has_metadata(const void *addr) in addr_has_metadata() argument
302 return (kasan_reset_tag(addr) >= in addr_has_metadata()
314 bool kasan_check_range(unsigned long addr, size_t size, bool write,
319 static __always_inline bool addr_has_metadata(const void *addr) in addr_has_metadata() argument
321 return (is_vmalloc_addr(addr) || virt_addr_valid(addr)); in addr_has_metadata()
326 void *kasan_find_first_bad_addr(void *addr, size_t size);
332 void kasan_print_tags(u8 addr_tag, const void *addr);
334 static inline void kasan_print_tags(u8 addr_tag, const void *addr) { } in kasan_print_tags() argument
338 void kasan_print_address_stack_frame(const void *addr);
340 static inline void kasan_print_address_stack_frame(const void *addr) { } in kasan_print_address_stack_frame() argument
349 bool kasan_report(unsigned long addr, size_t size,
353 struct slab *kasan_addr_to_slab(const void *addr);
384 static inline const void *arch_kasan_set_tag(const void *addr, u8 tag) in arch_kasan_set_tag() argument
386 return addr; in arch_kasan_set_tag()
390 #define arch_kasan_get_tag(addr) 0 argument
393 #define set_tag(addr, tag) ((void *)arch_kasan_set_tag((addr), (tag))) argument
394 #define get_tag(addr) arch_kasan_get_tag(addr) argument
414 #define arch_get_mem_tag(addr) (0xFF) argument
417 #define arch_set_mem_tag_range(addr, size, tag, init) ((void *)(addr)) argument
425 #define hw_get_mem_tag(addr) arch_get_mem_tag(addr) argument
426 #define hw_set_mem_tag_range(addr, size, tag, init) \ argument
427 arch_set_mem_tag_range((addr), (size), (tag), (init))
465 static inline void kasan_poison(const void *addr, size_t size, u8 value, bool init) in kasan_poison() argument
467 addr = kasan_reset_tag(addr); in kasan_poison()
470 if (is_kfence_address(addr)) in kasan_poison()
473 if (WARN_ON((unsigned long)addr & KASAN_GRANULE_MASK)) in kasan_poison()
478 hw_set_mem_tag_range((void *)addr, size, value, init); in kasan_poison()
481 static inline void kasan_unpoison(const void *addr, size_t size, bool init) in kasan_unpoison() argument
483 u8 tag = get_tag(addr); in kasan_unpoison()
485 addr = kasan_reset_tag(addr); in kasan_unpoison()
488 if (is_kfence_address(addr)) in kasan_unpoison()
491 if (WARN_ON((unsigned long)addr & KASAN_GRANULE_MASK)) in kasan_unpoison()
503 memzero_explicit((void *)addr, size); in kasan_unpoison()
507 hw_set_mem_tag_range((void *)addr, size, tag, init); in kasan_unpoison()
510 static inline bool kasan_byte_accessible(const void *addr) in kasan_byte_accessible() argument
512 u8 ptr_tag = get_tag(addr); in kasan_byte_accessible()
513 u8 mem_tag = hw_get_mem_tag((void *)addr); in kasan_byte_accessible()
529 void kasan_poison(const void *addr, size_t size, u8 value, bool init);
542 void kasan_unpoison(const void *addr, size_t size, bool init);
544 bool kasan_byte_accessible(const void *addr);
601 void __asan_alloca_poison(unsigned long addr, size_t size);
604 void __asan_load1(unsigned long addr);
605 void __asan_store1(unsigned long addr);
606 void __asan_load2(unsigned long addr);
607 void __asan_store2(unsigned long addr);
608 void __asan_load4(unsigned long addr);
609 void __asan_store4(unsigned long addr);
610 void __asan_load8(unsigned long addr);
611 void __asan_store8(unsigned long addr);
612 void __asan_load16(unsigned long addr);
613 void __asan_store16(unsigned long addr);
614 void __asan_loadN(unsigned long addr, size_t size);
615 void __asan_storeN(unsigned long addr, size_t size);
617 void __asan_load1_noabort(unsigned long addr);
618 void __asan_store1_noabort(unsigned long addr);
619 void __asan_load2_noabort(unsigned long addr);
620 void __asan_store2_noabort(unsigned long addr);
621 void __asan_load4_noabort(unsigned long addr);
622 void __asan_store4_noabort(unsigned long addr);
623 void __asan_load8_noabort(unsigned long addr);
624 void __asan_store8_noabort(unsigned long addr);
625 void __asan_load16_noabort(unsigned long addr);
626 void __asan_store16_noabort(unsigned long addr);
627 void __asan_loadN_noabort(unsigned long addr, size_t size);
628 void __asan_storeN_noabort(unsigned long addr, size_t size);
630 void __asan_report_load1_noabort(unsigned long addr);
631 void __asan_report_store1_noabort(unsigned long addr);
632 void __asan_report_load2_noabort(unsigned long addr);
633 void __asan_report_store2_noabort(unsigned long addr);
634 void __asan_report_load4_noabort(unsigned long addr);
635 void __asan_report_store4_noabort(unsigned long addr);
636 void __asan_report_load8_noabort(unsigned long addr);
637 void __asan_report_store8_noabort(unsigned long addr);
638 void __asan_report_load16_noabort(unsigned long addr);
639 void __asan_report_store16_noabort(unsigned long addr);
640 void __asan_report_load_n_noabort(unsigned long addr, size_t size);
641 void __asan_report_store_n_noabort(unsigned long addr, size_t size);
643 void __asan_set_shadow_00(const void *addr, size_t size);
644 void __asan_set_shadow_f1(const void *addr, size_t size);
645 void __asan_set_shadow_f2(const void *addr, size_t size);
646 void __asan_set_shadow_f3(const void *addr, size_t size);
647 void __asan_set_shadow_f5(const void *addr, size_t size);
648 void __asan_set_shadow_f8(const void *addr, size_t size);
650 void *__asan_memset(void *addr, int c, size_t len);
654 void __hwasan_load1_noabort(unsigned long addr);
655 void __hwasan_store1_noabort(unsigned long addr);
656 void __hwasan_load2_noabort(unsigned long addr);
657 void __hwasan_store2_noabort(unsigned long addr);
658 void __hwasan_load4_noabort(unsigned long addr);
659 void __hwasan_store4_noabort(unsigned long addr);
660 void __hwasan_load8_noabort(unsigned long addr);
661 void __hwasan_store8_noabort(unsigned long addr);
662 void __hwasan_load16_noabort(unsigned long addr);
663 void __hwasan_store16_noabort(unsigned long addr);
664 void __hwasan_loadN_noabort(unsigned long addr, size_t size);
665 void __hwasan_storeN_noabort(unsigned long addr, size_t size);
667 void __hwasan_tag_memory(unsigned long addr, u8 tag, unsigned long size);
669 void *__hwasan_memset(void *addr, int c, size_t len);