diff --git a/include/linux/kasan.h b/include/linux/kasan.h index a77e516c0d4c3..fdbc0a9f26eb0 100644 --- a/include/linux/kasan.h +++ b/include/linux/kasan.h @@ -344,6 +344,13 @@ static inline void *kasan_reset_tag(const void *addr) return (void *)arch_kasan_reset_tag(addr); } +/** + * kasan_report - print a report about a bad memory access detected by KASAN + * @addr: address of the bad access + * @size: size of the bad access + * @is_write: whether the bad access is a write or a read + * @ip: instruction pointer for the accessibility check or the bad access itself + */ bool kasan_report(unsigned long addr, size_t size, bool is_write, unsigned long ip);