From patchwork Tue Nov 10 22:20:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11895733 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 EFE5EC4742C for ; Tue, 10 Nov 2020 22:37:38 +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 6769C2068D for ; Tue, 10 Nov 2020 22:37:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QgdO4A8N"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="wL8k50M1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6769C2068D 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=YOerkGaWfQsULtsxXgnEixy89I8IEuAC5cA5Pe0zTeo=; b=QgdO4A8NL93cXz6UE7mYV/2Oz L4j+3RpjFbcA9lq1a3B15bnBUzQ4hYnLXHy40zAKSHgNQgRVk8DnMhJCy2Y5srYU/0TeGQ87mILoA zm5MlHlBZ8oSOmISW2W9dgTLG8PHiFx11YOGOhRiMMf1ep/upzrf+/lmiEnqhNFKWWZOrzxLNU1fK 7MHbZixPXGHitQrFRT8B4kA3XgNfnt0vqk0Jzw0feT5WhFA6+tw+w6GobTvpDMJQ3U50f9A4Ejj+X QTFdQ8DQkUPBTx1xzCmYmhmGNrHwbyu8ZCHSFhLCG/2HfO+/S4jTkBGfswX2nK45eRhOyCQF2AerO jhCExwdig==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kccG3-0007To-EA; Tue, 10 Nov 2020 22:36:59 +0000 Received: from mail-wr1-x449.google.com ([2a00:1450:4864:20::449]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcc0s-0000Va-Rz for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2020 22:21:41 +0000 Received: by mail-wr1-x449.google.com with SMTP id y2so3571898wrl.3 for ; Tue, 10 Nov 2020 14:21:12 -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=MgiGs2FK0RQ4JNcJFnsxjsC4BWa7qeyNid6Uf5IWwBE=; b=wL8k50M1AQHx0VbQL3xi2XuIKzEGXDqvuUVrYzcIQ94olxXzgz0KX0q6k1f4qHRqNr llatx03+5CGH/foSZCzS8+mbo9AsyH1v/WHAAFQvSGtKVFIsW7M2JVSL/RY77Ni7+UKv FEqOLEs61nCxCIKEpESSzhVsL4LPWnOcrnfbp/V6bK7D8N8vSYSVH1Vn1WBuBPKz1Xto AJ3cdtZ2Uum98aAUASzeWGCdAOuYczsaP5Ke24OgbosVmgCMZ6eufONNfo/5pI4knmaW 5ez6cUJOUeYVfi5WRIAL3JvIxyUF+UP4ZCh+C3+BgUUsOc/4Liwv6fER/rLna14Yiuni 6Jfw== 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=MgiGs2FK0RQ4JNcJFnsxjsC4BWa7qeyNid6Uf5IWwBE=; b=AnMqy3beGdOISJhX0xjPgcd2V7bBrowDwySu4k00KeK5Rjy52FRVkdSdCGzfaqH0gE 2dDYqGaSLRyaUalvVA7CefQNxAvi829z2XuX9ZkpMHZVl2W8iCnFkzGa3jzEuq8CNp7d g7p4xwCuJL5c62lL8S9ndGH0+JiHwHnLVHCSB5sO8uThDgUmwtuutR0+5xrmeERBm1kf ekb9Hgh5WvBr7YsXo6wmdVPzgD64Wa+E6eeAwcYOS1YRRAV/R0jgMiQroyCoistwF5zq avc8t3MifXGos5acehfDSvgBNJEVE96+xTm5DwKiGswtzjyI2/oBmvwO9mbmuPymXR+q UQiw== X-Gm-Message-State: AOAM5300Xu0Ml+7aIqtdxIsOJK51a/kau7ZJppDHXkvi+x9L1L6MBwZ3 orA11Npopo9Kk7yhQJzh0rkOIkF1pcvAk94j X-Google-Smtp-Source: ABdhPJz8cb5hUXqbVxJ0PZ94Oo4nqDbSIaKQRp5eSLyEzi5Tgzn73vxMVKemqTEYC3dSSCt7/YBWoWzIAj4/5hyP X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a05:600c:210a:: with SMTP id u10mr304573wml.98.1605046870141; Tue, 10 Nov 2020 14:21:10 -0800 (PST) Date: Tue, 10 Nov 2020 23:20:21 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.222.g5d2a92d10f8-goog Subject: [PATCH v2 17/20] kasan: clarify comment in __kasan_kfree_large From: Andrey Konovalov To: Dmitry Vyukov , Alexander Potapenko , Marco Elver X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201110_172119_074982_7E96CDB5 X-CRM114-Status: GOOD ( 13.42 ) 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: Branislav Rankov , Catalin Marinas , Kevin Brodsky , Will Deacon , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Andrey Konovalov , Andrey Ryabinin , Andrew Morton , Vincenzo Frascino , Evgenii Stepanov 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 Link: https://linux-review.googlesource.com/id/I1334dffb69b87d7986fab88a1a039cc3ea764725 Reviewed-by: Marco Elver --- 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 40ff3ce07a76..4360292ad7f3 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/common.c @@ -436,5 +436,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(). */ }