Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp602656pxb; Wed, 11 Nov 2020 11:22:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJztxM+jnRbcYxU3qnTd1MfB/86mVFXCot9GbhFkphEX7dqdEURztYW7CXZ6f2UwvQsUL3GD X-Received: by 2002:a17:906:9459:: with SMTP id z25mr27459083ejx.88.1605122528211; Wed, 11 Nov 2020 11:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605122528; cv=none; d=google.com; s=arc-20160816; b=eoqF0G543PQ4aaNagi4MmtBOEs5T/UdQwzySCKabbw238aF7HkX8uYABcTTYTomHGU 6En5vRH3ayHFBM02vsHe/p3QlD60fx3P5cD7N8WJyq2pf/phZPLSAKqLAiWDXMuvobhS n8ryx280Eib2UnMUWQqAAHRv8AmY90NsTKy1o1Z3QVGwmic1gNzp4hsNMVBHAXenGhwl Cbhmqp7P7I+R9WTWukcQTEsuenkFu7apeISMf/CwuS2Fin61Fj7VmLxa9ZK0/iAjIBoR UqAtWWSxtcg1aGC8/Y41o2DR3kSEb88NJSSVDpAOeci6MzuCZImshF+P0waWlfoxmoe7 /x0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OKGISrzawD1j8o64KuvlnCYWWA4Vpka6a0oknsEcZJw=; b=u3Xjl1n4kutLopXMbyG2A1d25sCGkMS3aLZqcLqdPvuoyegCluTx97gDkPpalhgB83 tkF3lWFnwjjZcM1dURmXNh0WJG/POp28A7fdW2sq7ZqYu+yHRasLAP92xol9N4Trl5kp 1ODDkiRcJsrfAOcR2vtBsrdbkdr1xOCwH1RVP4WYvnuuNdBvFjiMmx9Vqh/ML9R/KUmK RDZ4Ez0/gesiHGCoMFD2JCxi/4GgiI1K1436frj5FafUGJ//RL5jMHP0FoEf3wSes+yN covUJ3GbkFjurdoZ/hncHc0QQ0NcurWVEIn1J2CrTzuKrK4ZJqh8ApSd95AXTEJVi0gq wGNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QIq5tT27; 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 s9si2217251edu.457.2020.11.11.11.21.44; Wed, 11 Nov 2020 11:22:08 -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=QIq5tT27; 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 S1727655AbgKKTSv (ORCPT + 99 others); Wed, 11 Nov 2020 14:18:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbgKKTSv (ORCPT ); Wed, 11 Nov 2020 14:18:51 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EA90C0613D1 for ; Wed, 11 Nov 2020 11:18:49 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id o15so3629832wru.6 for ; Wed, 11 Nov 2020 11:18:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OKGISrzawD1j8o64KuvlnCYWWA4Vpka6a0oknsEcZJw=; b=QIq5tT271m/1hqoWebW5vn4gjE/Uwv/AdBTyMmJwHN2JQe6QEGa0ZyGDwW6pU2iNaT 5SWCsDGxemAKPn6UMPHGqapWwXqzT/tOgSvb7qjVq3EmSur3oge2ITFmLWRO1weKQ99e IqxOfQIYjxxcx97KM1S+pB8TwWWjVAxxOd1lpoLpAQqdar/u4S1v5lopqNcn8oPupLJ4 JUItXv4lAOfU9oUFxlzWSjpn5+1KdyCLApwweGeHB7g+t8KKTWYHMLFDAXdnKEe7rK5g DA0SDqguVeNm3rnLi/KgQK19t/068ksnmR/iirxFZo/9cE4HHAYkwQzXde0T+p3RAkgQ p4yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OKGISrzawD1j8o64KuvlnCYWWA4Vpka6a0oknsEcZJw=; b=IMKAUWyDHunOx0CyVa1PaiyjLtWI7QSf2BvixzeD7Qb6hZiEZDzb2aPAIvjC0ohjhT MvULaElIDZgnPBFy7rKMRjU2nKpq5u5I1JEUT46tQzSOO75ePSLz+DJx7FVK4V87V4T3 NjJ58dz0FryXU788AqLTtGeA6g47PhuMyLagK08XgMRNuAXFURrDHd1XkqbJWKmlfv4l 9BiCLso1AcDaoYbzsgDiTUfbnBrmwPBLHa71Mq8D1OPXSRoCRQvbGkZP8IZ4iOiu4Qx6 PV55GtfQZp/3cK4DyTyoh58DdxyrPS9EgmmwLNmrEh+pCGMDHEwdHieQCUMWB+YaXQzY XCvA== X-Gm-Message-State: AOAM533EUdG+nJ+VAQ6Z3rHwGKoo9fhGVjVlPSxecdSCSWjZ0o0OBwct txFpWTiNSAgCBeCfn+E59CuyWw== X-Received: by 2002:adf:f644:: with SMTP id x4mr32047323wrp.5.1605122327874; Wed, 11 Nov 2020 11:18:47 -0800 (PST) Received: from elver.google.com ([2a00:79e0:15:13:f693:9fff:fef4:2449]) by smtp.gmail.com with ESMTPSA id c6sm3806761wrh.74.2020.11.11.11.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 11:18:47 -0800 (PST) Date: Wed, 11 Nov 2020 20:18:41 +0100 From: Marco Elver To: Andrey Konovalov Cc: Dmitry Vyukov , Alexander Potapenko , 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 Subject: Re: [PATCH v2 17/20] kasan: clarify comment in __kasan_kfree_large Message-ID: <20201111191841.GS517454@elver.google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.14.6 (2020-07-11) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 11:20PM +0100, Andrey Konovalov wrote: > 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(-) Reviewed-by: Marco Elver > 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 >