Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3889956rdg; Wed, 18 Oct 2023 08:48:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFndN+u1EygJjfOBVM7c/j2cJMTfrm8rdpWYt0rJ3pbIl67rYuINXwrAptngUPShFKv0wIG X-Received: by 2002:a05:6830:310b:b0:6cd:9bc:b994 with SMTP id b11-20020a056830310b00b006cd09bcb994mr1621587ots.1.1697644096985; Wed, 18 Oct 2023 08:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697644096; cv=none; d=google.com; s=arc-20160816; b=xQ/Cix+51TgLQUMwmDYrJDkz9Sq1sEgSNYy1yNqzKq+PcwqoXUDusMo8JuyN1lEaHM UaluAhjXlqgdr5Ka/Kfs90aVnt0fP+HCuSI0JOMt/jG4UmcjFOSITV2aiNKSzhU4/8HX gddSH3rQpqEmZunjaLcDoIF/ZutjuWL1ext3tzn0/mK73CvQoQydaHRcMTPxOxHQUySr 7Ns0YhnlJtCpJrKPEN7+72VADlbqiaEe5cCB9jR3yLasXdwdHNk2FG55peD5abgedVUK c9R0axLSdRfUGruoq8/yBz0bodSVv+O3pHdA7UY3rmpuutQAp7fiT5KyQ4WQHhCivVjj k1pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=V5NbIBGT23EyXHwwK6xfr3d9qmNS4jz1Vuqtv5fT9AU=; fh=vJuql4DTq6KnxQZ/B563xy3AlrOr/OkDGOAqBtLkTrE=; b=whH+kOWqKbqY1D49vj0gZzCNRylTErpajAL2Ay/U41cYHukLgvVP05i8I7glq+AyYy 7iGEsw7eME0UZDrHpuDXt3jrZZhhn0TZJgtctdr+4IG7Xmc7LPgH2QQxZs90pYJ1YL0L PiFOxjHYs56acXxxoViH0KmBh3F6hIJ3oVxrj+inH2xEuPYRwapzKaxfgqMVBftMgW70 2qvcpaGrT6Wlzz6UCrlRSlWhBhvZmNodG+q9hybQjL9FDfxqcT9qZa865P75IaYw+fnJ ToJGstcaaslX/2VgINQXc8CAdMoRaprEFSLRv8BVss4gQBw5lc462Ou/SwhUZ6a+9vN/ +n0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a3-20020aa794a3000000b00690b80126b9si4100007pfl.142.2023.10.18.08.48.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:48:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8AE9880F7E40; Wed, 18 Oct 2023 08:48:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232001AbjJRPsH (ORCPT + 99 others); Wed, 18 Oct 2023 11:48:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231764AbjJRPsG (ORCPT ); Wed, 18 Oct 2023 11:48:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8FAD116 for ; Wed, 18 Oct 2023 08:48:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10BCAC433C8; Wed, 18 Oct 2023 15:48:03 +0000 (UTC) Date: Wed, 18 Oct 2023 16:48:00 +0100 From: Catalin Marinas To: Liu Shixin Cc: Patrick Wang , Andrew Morton , Kefeng Wang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 5/7] mm: kmemleak: use mem_pool_free() to free object Message-ID: References: <20231018102952.3339837-1-liushixin2@huawei.com> <20231018102952.3339837-6-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018102952.3339837-6-liushixin2@huawei.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 08:48:14 -0700 (PDT) On Wed, Oct 18, 2023 at 06:29:50PM +0800, Liu Shixin wrote: > The kmemleak object is allocated by mem_pool_alloc(), which > could be from slab or mem_pool[], so it's not suitable using > __kmem_cache_free() to free the object, use __mem_pool_free() > instead. > > Fixes: 0647398a8c7b ("mm: kmemleak: simple memory allocation pool for kmemleak objects") > Signed-off-by: Liu Shixin Could you please reorder this patch before the previous one? If you added a Fixes tag, we may want a cc stable as well (as for the other patches with a Fixes tag) and it makes more sense to backport it on its own without the __create_object() split. Otherwise: Reviewed-by: Catalin Marinas