Re: [PATCH net] ipv6: release fib6_null_entry on subtree failure

From: patchwork-bot+netdevbpf

Date: Wed Jul 29 2026 - 20:09:25 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Mon, 27 Jul 2026 14:53:39 -0400 you wrote:
> When adding a source-specific route creates a new subtree, fib6_add()
> installs fib6_null_entry as the temporary leaf of the new subtree root
> and takes a fib6_info reference for that holder.
>
> If adding the first source leaf fails, the code frees the just allocated
> subtree root but leaves that hold behind. fib6_null_entry is a per-netns
> sentinel and is freed directly at netns teardown, so this does not keep
> the object alive. However, it leaves its visible refcount permanently
> elevated and can eventually saturate the refcount on repeated failures.
>
> [...]

Here is the summary with links:
- [net] ipv6: release fib6_null_entry on subtree failure
https://git.kernel.org/netdev/net/c/93cad1f6bd1e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html