From patchwork Fri Nov 13 22:20:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11905095 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=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 50C16C4742C for ; Fri, 13 Nov 2020 22:44:16 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D12B122252 for ; Fri, 13 Nov 2020 22:44:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HpRi7T9r"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="JaBlZxu7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D12B122252 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1BY4tdk0TMXn1a+CLAG07z/7vPJqE4N5N0LrZvFyATA=; b=HpRi7T9rK0XoQC++uDjZeRkt7 g1FWp8IMk0ImK/AbO6JUBOWjIAbJYCU9X2cQCf/tKv4lcX17u+723j2e3TUM6jbR7XGr/Ss5JnWr2 0Fwo1TJapI57WjIjpg4mxyl46pPLxjssB58sYVMU6uckBxtzyRTX2BOFOYjcJ8qEyu/1w29eUOv/I hfbRLMPdVqzXcmlhTNAYBLJzaabcswnqFM3Sc8gAckbeOywa8QrF0LwVouhS2/3Ua/MhEtWsBsnL0 HqwPelrz/bS0cKwzFJ4qWGQp4U+DDJGAt+JPeCwr5Mra2OH3QjCsFZMePcz/Q7n3xD5ajJmCtsc1Z QLxLmZaLg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdhm4-0003IQ-Sv; Fri, 13 Nov 2020 22:42:32 +0000 Received: from mail-qk1-x749.google.com ([2607:f8b0:4864:20::749]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdhRH-0001ji-04 for linux-arm-kernel@lists.infradead.org; Fri, 13 Nov 2020 22:21:07 +0000 Received: by mail-qk1-x749.google.com with SMTP id x2so7552788qkd.23 for ; Fri, 13 Nov 2020 14:20:56 -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=Nm2Ydl9vXidUD/McQXvQ7ICnuqCsZ8HYUU33QbkPzArFAjb82QMbsQoQFHMX5fd0wJ 0pqqN9lWKEJxIQL8D+r70LdMKll6/YIeo3Chw0lnYoy/7y8hnWWGTyN9h2xdzBYloQhq plqIS6c4/KfCqAWFWWpGOAB0Vo6YQ79roi/1EAp43XmNSBuWOodQxwWWdIBha/r+cjoL ZSJPQ1QeF0bZlisZmzvEHvhC7/oy36NSQ04M1dyui0bn/OOr28mDGvXGIXVRS/nP2Z1G /dJXtYSPSIfhRxwDztU6ETkVug1tUgBWi+qSoANktdR88Geus+bZg03tYPDu+9Eb46lh goxw== X-Gm-Message-State: AOAM533zZ956WstNOl/jcdJEdk9vImANDHfiTEmiBYXkzVe/QBR/nYWx nG1nUv+b7qgIDOXfUIMFI55jL9Aamy4RxQOF X-Google-Smtp-Source: ABdhPJy0Q043vk8cHOStNvQydNlkW0VoeWxy1kyCkq36QgHv0e9VO0VOgQiCfIHAjZb++EoHTDq0EEdvZhMlArtL 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201113_172103_289146_FAF5BDF0 X-CRM114-Status: GOOD ( 13.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Marco Elver , Catalin Marinas , Kevin Brodsky , Will Deacon , Branislav Rankov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexander Potapenko , Evgenii Stepanov , Andrey Konovalov , Andrey Ryabinin , Vincenzo Frascino , Dmitry Vyukov Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(). */ }