Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1725949pxb; Wed, 20 Oct 2021 10:30:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5J3JiXOmqrrD5xAYeEHiUO8rebbFgg88dmu75ANS+8Iudj7b8nfUEaDDSm2cY1RR2+40W X-Received: by 2002:a05:6a00:8c4:b0:44c:9827:16cc with SMTP id s4-20020a056a0008c400b0044c982716ccmr308290pfu.7.1634751013773; Wed, 20 Oct 2021 10:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634751013; cv=none; d=google.com; s=arc-20160816; b=Ww6A4miwwxYnzMkRpytikAoDB2HVExtTmXW+zLJbvGtp6jpE992yGDS2z90OhYBWjU NmWYa9XYB1K+2PeErGW6zB7fSC1XVo31OD1MVw38J9v00emsPXusozsfo2vNjNw94VfL dU+8V4FcPh240zbdk6SfX8QKVXtNsqQG4jg5cw2M2m3GvjKj5vK7xp8QN2s0cDwjdvpJ cq0Pj9Ai43dmb8XHyFhTK4Fh1g1fLarH8JmUdPa1g+SYpkyUBEMfLgW+CyZE+M88Lu3J bcEde6UERX5GM94OePS1fZn0/bCVhreZwBbtmynfHdYgsWk3BvV4330D9ayjpi/WS1en 65gQ== 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:dkim-signature; bh=6iR1y/JL3F5bSNnhveF9tZ47D84ZakNWdr4w2O9FyR0=; b=xf7dxJCUYP4jPoxWPo4OB2bD3S1jlzdi0FhV0NhLiIkm+g+8ELEmxb6Z1aXy5kdCDy d5LjmM4Gcb0z06tDNqVsFNzW/KgVsMWMdSmb5W/buswcV3iBUYyjl5IavPVsS2ESk76+ crJT97ZlJBxL2g0DQ8QcYLAXasYbRHwqVJNdr9vN+GK120pRS/bCc0LBVpXSEfTXEZEA UHDGvaII31erqVD88TZdB8AZ3FGXG58joSTcdXq1LBwj0rF88X8aKtdJ/BCjqpmgD9Uo LCNbnOXsLbKMh4ovXUQpbX+EclymvWDQr88LcschiZl5td3CK6vEHjc7NoJLFzv1zBkm Vtkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=puC+JrAj; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oo11si11417214pjb.9.2021.10.20.10.30.00; Wed, 20 Oct 2021 10:30:13 -0700 (PDT) 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=@suse.com header.s=susede1 header.b=puC+JrAj; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbhJTRbA (ORCPT + 99 others); Wed, 20 Oct 2021 13:31:00 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:41318 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhJTRa5 (ORCPT ); Wed, 20 Oct 2021 13:30:57 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3CE511F770; Wed, 20 Oct 2021 17:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1634750922; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6iR1y/JL3F5bSNnhveF9tZ47D84ZakNWdr4w2O9FyR0=; b=puC+JrAjKBLfJWIbDTKsG+jqaPcCcX5u7U5/ZJPdJv9ua4KfXtLpGNpcZ6nDxuFX4QPk29 tH5H30S6wh9+68I/f9eYApstnc7SF0fwjjwxQUWfmJo/sr8fbVEoANJKKaYLy1XOrjurZr 3bFQZWUJbGW4YVvD6mjDX9KxSO3oXew= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D480113BBD; Wed, 20 Oct 2021 17:28:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id yleGMslRcGE4awAAMHmgww (envelope-from ); Wed, 20 Oct 2021 17:28:41 +0000 Date: Wed, 20 Oct 2021 19:28:40 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Quanyang Wang Cc: Ming Lei , Tejun Heo , Zefan Li , Johannes Weiner , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Jens Axboe , Roman Gushchin , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [V2][PATCH] cgroup: fix memory leak caused by missing cgroup_bpf_offline Message-ID: References: <20211018075623.26884-1-quanyang.wang@windriver.com> <8fdcaded-474e-139b-a9bc-5ab6f91fbd4f@windriver.com> <7a21a20d-eb12-e491-4e69-4e043b3b6d8d@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7a21a20d-eb12-e491-4e69-4e043b3b6d8d@windriver.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 01:22:06PM +0800, Quanyang Wang wrote: > > If only precpu_ref data is leaked, it is fine to add "Fixes: 2b0d3d3e4fcf", > > I thought cgroup_bpf_release() needs to release more for root cgroup, but > > looks not true. > For now, I can only observe that precpu_ref data is leaked when running ltp > testsuite. I assume you refer to ref->data. I considered the ref->percpu_count_ptr allocated with __alloc_percpu_gfp(). Could it be that kmemleak won't detect leaked percpu allocations? (The patch you sent resolves this as well, I'm just curious.) Michal