Article View: linux.kernel.netdev
Article #8058Re: [PATCH net] devlink: region: fix snapshot id leak on kernel-allocated ids
From: patchwork-bot+netdevbpf
Date: Tue, 27 Oct 2026 22:50
Date: Tue, 27 Oct 2026 22:50
29 lines
9004 bytes
9004 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 26 Oct 2026 18:44:03 +0100 you wrote:
> When DEVLINK_CMD_REGION_NEW is issued without a snapshot id, the kernel
> allocates one with __devlink_region_snapshot_id_get(). That helper counts
> the caller as a user of the id, and the caller must release this hold
> once it is done.
>
> devlink_nl_region_new_doit() never drops it. The refcount of the id goes
> 1 (allocation) -> 2 (snapshot created) and stays at 2. When the snapshot
> is deleted the count only drops to 1, so the id is never erased from
> the snapshot_ids xarray. The id then stays in use for the lifetime of
> the devlink instance: requesting a snapshot with that explicit id fails
> with -EEXIST, and there is no snapshot left to delete to clean it up.
>
> [...]
Here is the summary with links:
- [net] devlink: region: fix snapshot id leak on kernel-allocated ids
https://git.kernel.org/netdev/net/c/ef8f0a1d888e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179314140532.375317.5828428376782331028.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352647-linux-kernel-netdev=dewy.ruReferences:
<20261026174403.512-1-fmancera@suse.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352647-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] devlink: region: fix snapshot id leak on kernel-allocated ids Date: Tue, 27 Oct 2026 22:50:05 +0000 Organization: Usenet Network Message-ID: <179314140532.375317.5828428376782331028.git-patchwork-notify@kernel.org> References: <20261026174403.512-1-fmancera@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1651792"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:JOVVsjUWJ9YY1sCpEHs6x0HAi9o= sha256:tWFtJePSYKxFw7jFx4zKJOt7TR/L9oGdBUqXBIIAPYA= sha1:ptCNtFuSkym2yjvCYmMRdWJEbIQ= sha256:WVBvjIlVmEIeegqC9q/EAEtLcIp6+DWxhvmXbV5wXZY= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 2B9E8125C2A; Wed, 28 Oct 2026 01:54:59 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WTA2w5GjdF0d; Wed, 28 Oct 2026 01:54:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352647-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id A9DE8125C1D; Wed, 28 Oct 2026 01:54:43 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 944CF2C2B8; Tue, 27 Oct 2026 22:50:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793141408; b=jx5IOuTRz7dGqSYkFRn3DkFV0Gwg1qcXnFwRwKn2Bczy3H1xYXcRFCToWpkT6bp3lM8j xg+lSKBAQtFMf0WVXSqM5h/FLhijcPQGRvPkE/5O3JFqdY7LJdqz9M3bwemGEYDY2Iyum M5f82hA80j/j1gOHSomTtUKmdv/IGW0IhHuoiejNzxsspqWDy1pTBPdhGHD3vR5QD18CW cTfFcNs8l7B9ROqCPHu8dgP+PPNPamQIQDQ4j2woRJzi+3032isFdAQUZlToHOO9pHors 0FHAFJ8zoZdPvJR2dtiCjxa1DHLFqufCFh66d1zIc5m/vG4zSmdXl9zy0WYICRZmNcg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793141408; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=vfEYE56m4j+K4mKjUOuJqPuq7r+1taq0gnqr57A9Ye4=; b=Zc1RZC6/RVd3zQb1iOjyOidaHpWaqjKD+6zO8ASP9MbTXe0oK+l0gIxCYqInrjFB5/Ha 0RMbzcJuwzhuTwtAZtlRWnR/QapIBxQkFxeZm+pcGJ4Xjr/PV6Uaef1Yy8hU0i9ZMmuVW tCbEG3so8Lxzhtkuek9T1yIr1oJqtnkVh3EsTjgfBRp1FPjmcmgdXmRXkvWMls7cMHv7X Gk85mzcl9jLBByIJwemXGFdmHFT8/hgKS5e0xuqhQpnwXGCbCzQ5PC/r8HIxwl8bHtxTg 3o+uA1DnmU48ClPq6GNRMICOAfEVRAGYISFMoFZu1FCDTDWS7+eRyT5OoHfsrUReLVQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A6nxfHMI; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2839A606A322; Tue, 27 Oct 2026 22:50:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A6nxfHMI X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793141407; b=Zis7lIrAqY+K1GqewGk5mMAOd0SFRWj2e3ugpAFQkpv7ZIX628hOfeTFiNozpbRzDZOH /vG+O6okAq5PF4BOXpZ6lV/KYOdWxAcrvIBZ/EkQDVNsPyL0vJCscMilBxxd1Wg3+1t7N HjXXqAoboPBEUPtD49YMVJ5AIz9GgnVSj5s8Coi8wNUPamGFDkqlUmUgghey+57RL1OxZ yhLYuhLMuyRo5CRgbzaZkWU8thbhopjeg/McWkCCuXyufImR82tyjzLs1bM4H3z6sLOLp W07PA50OT83zyb6ryRcB6Gn+itApPDBH90Uuvr7mV3CyOEMZ+qDN3Uj8aE1fSAptKTQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793141407; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=vfEYE56m4j+K4mKjUOuJqPuq7r+1taq0gnqr57A9Ye4=; b=duhs4oXhxmT3rchsjZv4/7p4KAa/ecOr2OqjZqTqZzUbh0eTANd0AJOw4WegMxfGZg8L 1TRJIzR6mYTC6Izs3yr4MgMbb+LHGnU2cWrJqMW8y2CVSMxkKnw1JrToqDkGaW5D8JILd Nwk6kRJfRZWnAGiKlRIYcf8VONAZcyLZVZPkDnLank5dzvUHOKU69Z0Lnnf47SFDP7V4a 8VPb93c58dzH7oUFOpxGonBUcoqVIR5sB0DHg+9Sa6xPLdsdNDSscKwu+zoIKsQ0q/pN0 91vECzCfsHdsvFslUzYV7pCdDV9NHdQohWvtWByVSnEUKnls9pc44ioLdMGcMWpQqGw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A6nxfHMI; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 049F6606A31A for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 22:50:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CDF31F01828; Tue, 27 Oct 2026 22:50:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793141406; bh=vfEYE56m4j+K4mKjUOuJqPuq7r+1taq0gnqr57A9Ye4=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=A6nxfHMI9yGC/T5F5tRk9M/N4gFwAL8AlZIbZumpANxeJ4qQNGefJoElVsxj89+tD 0FZ65vZR7RvYeYnDSQ9m/ts87pASUeT9KYPS4dd39F5tzt8E+lwgV41n5TgfFw9ucI Jz9OwyCKJ5rUVCreb3Rzdnb5WvnGbjQEXsmdSZj22B/2PwpSK2IL3D0Xc1wcgvRQyu rBPUXvqShhUQ2PHb9fU6Ma8u30uOPgjumYXmGWFdRPF8WvHx5sdh95HkXz+Ng9+wiN U8/nUoEh79jkANMQtQPyWKgtdj43/D5hwgip0mv6g/ZeLC7ia2WR/dP0cU5tebCWM+ rkU2pygjMMVtg== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 814ED3AA940D; Tue, 27 Oct 2026 22:50:06 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261026174403.512-1-fmancera@suse.de> X-Cc: netdev@vger.kernel.org, jacob.e.keller@intel.com, horms@kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@kernel.org, davem@davemloft.net, jiri@resnulli.us, yangguikun19@qq.com