Commit 2ebfcc95 authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Stephen Rothwell
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 memory.


Signed-off-by: default avatarAndrey Konovalov <>
Reviewed-by: default avatarDmitry Vyukov <>
Reviewed-by: default avatarMarco Elver <>
Tested-by: Vincenzo Frascino's avatarVincenzo Frascino <>
Cc: Alexander Potapenko <>
Cc: Andrey Ryabinin <>
Cc: Branislav Rankov <>
Cc: Catalin Marinas <>
Cc: Evgenii Stepanov <>
Cc: Kevin Brodsky <>
Cc: Vasily Gorbik <>
Cc: Will Deacon <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarStephen Rothwell <>
parent a3a81955
......@@ -453,5 +453,5 @@ void __kasan_kfree_large(void *ptr, unsigned long ip)
if (ptr != page_address(virt_to_head_page(ptr)))
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