Message ID | 20210205023249.Y8UAdjnLD%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/18] mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page | expand |
--- a/include/linux/kasan.h~kasan-add-explicit-preconditions-to-kasan_report +++ a/include/linux/kasan.h @@ -333,6 +333,13 @@ static inline void *kasan_reset_tag(cons 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);