From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0968FC55ABD for ; Fri, 13 Nov 2020 22:21:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C7F3122255 for ; Fri, 13 Nov 2020 22:21:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="JaBlZxu7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726150AbgKMWVz (ORCPT ); Fri, 13 Nov 2020 17:21:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbgKMWU4 (ORCPT ); Fri, 13 Nov 2020 17:20:56 -0500 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90EA0C0617A6 for ; Fri, 13 Nov 2020 14:20:54 -0800 (PST) Received: by mail-qv1-xf4a.google.com with SMTP id t11so7019451qvp.7 for ; Fri, 13 Nov 2020 14:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=Yi0H/DT0iolgmo7NG/qMiO64up+Qc265jwkA+xu3tVM=; b=JaBlZxu7lA5jybjquVXOefu6xeeFogoBoXU1MliVu8hO4i5YwE0yAHxz10jpwLhOUG QZIoujH6ck0jbRoIZBq4jaoY1p7aSmkbWN63j+ihIJcWjrgLqYFrcHgb8SaxZ9IpWSsG VOoGkItovexEkREiFcSvUf6iTwO1D2zvHAHwp3Tn21E/jemeZR9ein17hD8X3olghKqF hV9KNqoNkDz0dNidKD/eBsaEhqtf0c7RYIgON5+4XvohOM1GeltX35tQ5aOnIAzpDebT Ly75REWb81h6l041aTpotOhJ5bbwNpW7TLTJdhFtMH+9I3OoDEcW4pgjVVfxTFyFlDin Raxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Yi0H/DT0iolgmo7NG/qMiO64up+Qc265jwkA+xu3tVM=; b=IJbqLxEkP5TbhxJBCL8m594J+QvAkBcGYwJbSGS2WF6ULFzYSlGcfDFDmf3WFjC6Z8 zVQqvwuAeg8niOpsHokFYw3+YfLgk57hoCQ3s6YWQV6q3w8UFDQ2gF4XS8untaWAoZlq JNQotiuF/SkJPNI2Wgy1JjlwgH9iqE4s9xLwhvW6TrV1eUVs1RheekruJNnGL7z2ZN2Q j7cKfr1kI0XV9XVkr0WtfO7GeLPr8OrYajfOd26rVyWZaxAMziExm0bU5RSAvAKK/TB8 zIG4PtBBV3LC74r6Mwt02FWL3qWN3Gc5kbevz3TD3q3jYACB9/uhYnQuTy3KWK37qc3a d5sQ== X-Gm-Message-State: AOAM533w4G5Hy5wEw5sGUM3pTDv3xaJSLqX+JF3JKQTCzdC+CSneYPly lKvQdKmezWhpXmVcOe/zMo6vh9IrYDTFIlph X-Google-Smtp-Source: ABdhPJy0Q043vk8cHOStNvQydNlkW0VoeWxy1kyCkq36QgHv0e9VO0VOgQiCfIHAjZb++EoHTDq0EEdvZhMlArtL Sender: "andreyknvl via sendgmr" X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a0c:fdcb:: with SMTP id g11mr4476840qvs.58.1605306053723; Fri, 13 Nov 2020 14:20:53 -0800 (PST) Date: Fri, 13 Nov 2020 23:20:06 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.299.gdc1121823c-goog Subject: [PATCH mm v3 16/19] kasan: clarify comment in __kasan_kfree_large From: Andrey Konovalov To: Andrew Morton Cc: Catalin Marinas , Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Andrey Konovalov Reviewed-by: Dmitry Vyukov Reviewed-by: Marco Elver Link: https://linux-review.googlesource.com/id/I1334dffb69b87d7986fab88a1a039cc3ea764725 --- mm/kasan/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/common.c b/mm/kasan/common.c index 821678a58ac6..42ba64fce8a3 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/common.c @@ -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(). */ } -- 2.29.2.299.gdc1121823c-goog