Commit f8e919ca authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Vincenzo Frascino
Browse files

kasan: clarify comment in __kasan_kfree_large

Currently it says that the memory gets poisoned by page_alloc code.
Clarify this by mentioning the specific callback that poisons the
Signed-off-by: Vincenzo Frascino's avatarVincenzo Frascino <>
Signed-off-by: default avatarAndrey Konovalov <>
parent f7697d69
...@@ -445,5 +445,5 @@ void __kasan_kfree_large(void *ptr, unsigned long ip) ...@@ -445,5 +445,5 @@ void __kasan_kfree_large(void *ptr, unsigned long ip)
{ {
if (ptr != page_address(virt_to_head_page(ptr))) if (ptr != page_address(virt_to_head_page(ptr)))
kasan_report_invalid_free(ptr, ip); kasan_report_invalid_free(ptr, ip);
/* The object will be poisoned by page_alloc. */ /* The object will be poisoned by kasan_free_pages(). */
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment