From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-108-mta137.mxroute.com (mail-108-mta137.mxroute.com [136.175.108.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5FF21E32A2 for ; Mon, 29 Sep 2025 14:50:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.137 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759157410; cv=none; b=dXoqGBCwV709pB3grq42u/9ybilyTJvbL40+QuaRyXjnJ0wX7fSqvk4Lhmkcrt6Pokx3LgjYXHViPQ+NfF5t0cOCUuJ5mCEmICHGS576g91tAaqd9MMHxxxWASuooltDSNlwEduPspZvwJl/0ng0lIVQqp2VtfmCFbr9YpJMcho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759157410; c=relaxed/simple; bh=hO5a1/vkd7Dni4yGzOpI0f6LLe0jkbH2EodzjvCuRYo=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=K7sE7+ZSYaP5hYkZv9f11anEQmYMHkFIPr74WzIQAOeTShE5p1MH20ZMVY4f2inbIIQ9hvbKN7jwkq+AroY0qRZkiMUAQRenhn0p7T4poSJ0nTW7XuxhIA/8sb5fyIg1KonG6vTiTta2D5lv8nlaW3uryv4S9e1p7PzP/Dsm+R0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mboxify.com; spf=pass smtp.mailfrom=mboxify.com; dkim=pass (2048-bit key) header.d=mboxify.com header.i=@mboxify.com header.b=ji2BGdh4; arc=none smtp.client-ip=136.175.108.137 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mboxify.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mboxify.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mboxify.com header.i=@mboxify.com header.b="ji2BGdh4" Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta137.mxroute.com (ZoneMTA) with ESMTPSA id 19995f3a484000c244.006 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 29 Sep 2025 14:49:56 +0000 X-Zone-Loop: d45e3b8129add231e973025061d775f346137f1f7079 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mboxify.com ; s=x; h=Content-Transfer-Encoding:Content-Type:References:In-Reply-To: Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AljqcaWaZXtvzNqWDvXUhVw0YtH+OrsswYByjzLE7UA=; b=ji2BGdh47RoDoRdWlUN94tHRhF l7/Vdfo34LJ/0bBumXuNxsT31oBFHnQyA3cHU2s0FQLmckFhbB3+RvXfUcX4ikNxB9eeAkVmcnUlG Z9YZGF3Q8C7CkHKaahbGBlLvgTTUH6gCBd+0qBs25/Ol5fn3YwXgZtbo7aV5Du9ZVWto10fmuVVQk qFl/Dm1VdAP1yIpwHhkHsaeeq2bVKw89CPTBWIZTUKEnpMIXQBoIF4ZxDXZ2zFpUxAmWK7Ht88QHp GPO8FiYiQoBK/fHXp+6GVALFAYETQtD7Itu+MDbvbcX0IEWnKlYZAu7wKFoOP+oUEcWaTkncrgpEH h0RWRaCA==; Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Mon, 29 Sep 2025 22:49:54 +0800 From: Bo Sun To: Simon Horman Cc: sgoutham@marvell.com, gakula@marvell.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] octeontx2-vf: fix bitmap leak In-Reply-To: References: <20250927071505.915905-1-bo@mboxify.com> <20250927071505.915905-2-bo@mboxify.com> Message-ID: <0bb6cec0e6bcf22a43bfff4b0813b201@mboxify.com> X-Sender: bo@mboxify.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated-Id: bo@mboxify.com On 2025-09-29 18:11, Simon Horman wrote: > On Sat, Sep 27, 2025 at 03:15:04PM +0800, Bo Sun wrote: >> The bitmap allocated with bitmap_zalloc() in otx2vf_probe() was not >> released in otx2vf_remove(). Unbinding and rebinding the driver >> therefore >> triggers a kmemleak warning: >> >> unreferenced object (size 8): >> backtrace: >> bitmap_zalloc >> otx2vf_probe >> >> Call bitmap_free() in the remove path to fix the leak. >> >> Fixes: efabce290151 ("octeontx2-pf: AF_XDP zero copy receive support") >> Cc: stable@vger.kernel.org >> Signed-off-by: Bo Sun > > Reviewed-by: Simon Horman > > For reference, as a fix for code present in net, this series > should be targeted at net, like this: > > Subject: [PATCH net 1/2] ... > > See: https://docs.kernel.org/process/maintainer-netdev.html Thanks for pointing this out. I’ll resend v2 for the net tree with the correct subject prefix. Best regards, Bo