Re: [PATCH net] ipv4: fib: free fib_alias with kfree_rcu() on insert error path

From: patchwork-bot+netdevbpf

Date: Fri Jul 10 2026 - 10:23:23 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Sat, 4 Jul 2026 10:14:21 -0700 you wrote:
> fib_table_insert() publishes new_fa into the leaf's fa_list with
> fib_insert_alias() before calling the fib entry notifiers. When a
> notifier fails, the error path removes new_fa with fib_remove_alias()
> (hlist_del_rcu) and frees it right away with kmem_cache_free().
>
> fib_table_lookup() walks that list under rcu_read_lock() only, so a
> concurrent lookup that already reached new_fa keeps reading it after the
> free:
>
> [...]

Here is the summary with links:
- [net] ipv4: fib: free fib_alias with kfree_rcu() on insert error path
https://git.kernel.org/netdev/net/c/f2f152e94a67

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