[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aNpbcfxWnWQK3nNC@horms.kernel.org>
Date: Mon, 29 Sep 2025 11:12:01 +0100
From: Simon Horman <horms@...nel.org>
To: Bo Sun <bo@...xify.com>
Cc: sgoutham@...vell.com, gakula@...vell.com, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH 2/2] octeontx2-pf: fix bitmap leak
On Sat, Sep 27, 2025 at 03:15:05PM +0800, Bo Sun wrote:
> The bitmap allocated with bitmap_zalloc() in otx2_probe() was not
> released in otx2_remove(). Unbinding and rebinding the driver therefore
> triggers a kmemleak warning:
>
> unreferenced object (size 8):
> backtrace:
> bitmap_zalloc
> otx2_probe
>
> Call bitmap_free() in the remove path to fix the leak.
>
> Fixes: efabce290151 ("octeontx2-pf: AF_XDP zero copy receive support")
> Cc: stable@...r.kernel.org
> Signed-off-by: Bo Sun <bo@...xify.com>
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists