From: Andrey Konovalov Date: Tue, 22 Dec 2020 20:03:24 +0000 (-0800) Subject: kasan: clarify comment in __kasan_kfree_large X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=3933c1757163e8fb471a2d306ba769a04a698900;p=kernel.git 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. Link: https://lkml.kernel.org/r/1c8380fe0332a3bcc720fe29f1e0bef2e2974416.1606162397.git.andreyknvl@google.com Link: https://linux-review.googlesource.com/id/I1334dffb69b87d7986fab88a1a039cc3ea764725 Signed-off-by: Andrey Konovalov Reviewed-by: Dmitry Vyukov Reviewed-by: Marco Elver Tested-by: Vincenzo 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: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/kasan/common.c b/mm/kasan/common.c index 17b22107f8eba..1a8ccaed09162 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/common.c @@ -446,5 +446,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(). */ }