Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4354574pxb; Tue, 10 Nov 2020 14:26:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMoimEmf15S8xsmiYvYvO/H+zXqgULZt3ztw++lvxsfdu64lYNfeTYEyySoToSh1uiLPEm X-Received: by 2002:aa7:d9d3:: with SMTP id v19mr22600578eds.67.1605047186141; Tue, 10 Nov 2020 14:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605047186; cv=none; d=google.com; s=arc-20160816; b=Q8k2XZw69q+4ahp5+zZ1n5GoQAEoSjlaj3Mpu2xQR18tNAlu06g6teEQzjHeweGccr VYO7Rzt+T95CWOLjaf2u7lMA6Ej33jt2HWWHNQfPErHRV5Got54iOwErHiWKVrs4urla Swows/oQZmxuDw3ieeZkcs6PgRdoMbHFwgcLIelEIKNz56D8n6Fj7Ue529WOK6e+gQVW LO6lHSIQ6JnSWJQWZvFuUuuFKKJZAkM9DB7pyQ2OLKV5vbFekLgTifWIHWuA3pCmwf0j eF0fJ/c9Ce+SlONMO9AwTMu94m+9wxyfAyzENMyU/aHgFfdTKmWDmQijblp22MgLGvQd ui0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=MgiGs2FK0RQ4JNcJFnsxjsC4BWa7qeyNid6Uf5IWwBE=; b=qTTxJ3L/XP1J6Nug1s14+C5uoOdG6QDYFqqr8XuIL/aK6dGksnomK06YRZyPnWH2cP Y43CupaY7IymnLU3y5NI0/ZqxP4RRkVjLJjpOGkE0FgW3X1YdicqfkJE5RWdY02yrW2J FcJbC4OdC10vmUq0PIEpiw0JwG+r8YOzBo2648hAu8GRqA/3A6CZ3mgNSzTVG7rXt3vr ogiN6dfH3SALyEoSEk5WXUzNoSx//sQ2GecEy260hsTmuEddmMjcHHxn2uC+icr3JmFT CzXj8n6UGY7Q8g5di/503xf7O3oDXFw/iZF9SIBjlZh4bn4Co0noO9roOR41M9ySKjGC eyAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wL8k50M1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qo13si9672768ejb.650.2020.11.10.14.26.02; Tue, 10 Nov 2020 14:26:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wL8k50M1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732739AbgKJWVS (ORCPT + 99 others); Tue, 10 Nov 2020 17:21:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732645AbgKJWVM (ORCPT ); Tue, 10 Nov 2020 17:21:12 -0500 Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84CC0C0613D3 for ; Tue, 10 Nov 2020 14:21:11 -0800 (PST) Received: by mail-wm1-x349.google.com with SMTP id o81so1241526wma.0 for ; Tue, 10 Nov 2020 14:21:11 -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=UubvAGh325NkrJrLrbqlfD7hW0VA1C/9NWT1sxCwNSXenlcryIew1XQk+C/GwqHXDM KEM9k9EE4z6KGtU9au0FQXzgDYJFKVEdnizXGTI1P68EcwCM+giOJcD6QpZqub4r6Hzn +x3RvMyBpqU/95TIqBD+3964+/QfG7PTzE6TJZpXKu6Ir20MAX7hwbzT2fKPxAQKN4GA HsHfsczIt/piNI/CzJ2x8rwG9oOpJGChwk9Nv8CsxNdEbnVXAToNY8BKSQEeGtHBzaPk fduocGNsgad26ImzBbbCZPj5KzkWF30xBZ5dc7uajRujkoMs+SkCbpoJk5f3v6KmIvna IPWQ== X-Gm-Message-State: AOAM532hz6oac6QoqmEmEA0HHnXvDO/OzPl3HFqoxwF8fp+xFIPuxufY jm5AV4jX/hfDSvdY05vZe7DPK9IopjxXJoDo 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: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 Cc: Catalin Marinas , Will Deacon , Vincenzo Frascino , Evgenii Stepanov , Andrey Ryabinin , Branislav Rankov , Kevin Brodsky , Andrew Morton , 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 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 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(). */ } -- 2.29.2.222.g5d2a92d10f8-goog