From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50C8B18AE6; Wed, 3 Jan 2024 10:04:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ezfsyjac" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4416EC433C8; Wed, 3 Jan 2024 10:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1704276254; bh=gkAJAzHpXHjjnP+UYtPYRGzvuYoAkdmc8AHS8+XgCGg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ezfsyjaccl1AwOTLRDUpL9+1yR86XPdLCGSGPzauo8gbo9DnyZg2fbL/Ma1o2km6X BL+XDpyh+bGNLfgyAuIeMWXyRkMIC9V1vPmRY9S1/WtRFwWT7WP2H09G2sXUTA9N8I HTaEUAqLdnzT2WMF2hVoxd3tLqiGm0L7O1RQC1CE= Date: Wed, 3 Jan 2024 11:04:11 +0100 From: Greg Kroah-Hartman To: Andy Gospodarek Cc: stable@vger.kernel.org, patches@lists.linux.dev, Somnath Kotur , Michael Chan , David Wei , Jakub Kicinski , Sasha Levin Subject: Re: [PATCH 6.6 055/156] bnxt_en: do not map packet buffers twice Message-ID: <2024010348-headroom-plating-1e2a@gregkh> References: <20231230115812.333117904@linuxfoundation.org> <20231230115814.135415743@linuxfoundation.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Jan 02, 2024 at 10:22:02AM -0500, Andy Gospodarek wrote: > On Sat, Dec 30, 2023 at 11:58:29AM +0000, Greg Kroah-Hartman wrote: > > 6.6-stable review patch. If anyone has any objections, please let me know. > > > > No objections from me. > > For reference I do have an implementation of this functionality to v6.1 > if/when it should be added. It is different as the bnxt_en driver did > not use the page pool to manage DMA mapping until v6.6. > > The minimally disruptive patch to prevent this memory leak is below: > > >From dc82f8b57e2692ec987628b53e6446ab9f4fa615 Mon Sep 17 00:00:00 2001 > From: Andy Gospodarek > Date: Thu, 7 Dec 2023 16:23:21 -0500 > Subject: [PATCH] bnxt_en: unmap frag buffers before returning page to pool > > If pages are not unmapped before calling page_pool_recycle_direct they > will not be freed back to the pool. This will lead to a memory leak and > messages like the following in dmesg: > > [ 8229.436920] page_pool_release_retry() stalled pool shutdown 340 inflight 5437 sec > > Fixes: a7559bc8c17c ("bnxt: support transmit and free of aggregation buffers") > Signed-off-by: Andy Gospodarek > --- > drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 7 +++++++ > 1 file changed, 7 insertions(+) I do not understand, what is this patch for? Why not submit it for normal inclusion first? confused, greg k-h