diff --git a/mm/kasan/report.c b/mm/kasan/report.c
index 3239fd8f87475e59f1a7ff2fda63985bd64f4ee0..1c955e1c98d509fc948e768282de693f1ce23a09 100644
--- a/mm/kasan/report.c
+++ b/mm/kasan/report.c
@@ -226,7 +226,7 @@ static void describe_object(struct kmem_cache *cache, void *object,
 
 static inline bool kernel_or_module_addr(const void *addr)
 {
-	if (addr >= (void *)_stext && addr < (void *)_end)
+	if (is_kernel((unsigned long)addr))
 		return true;
 	if (is_module_address((unsigned long)addr))
 		return true;