Re: [PATCH net v2] tipc: read le->link under the node lock in tipc_node_link_down()
From: patchwork-bot+netdevbpf
Date: Tue Aug 11 2026 - 10:12:59 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Mon, 10 Aug 2026 18:21:38 +0800 you wrote:
> From: Jun Yang <junvyyang@xxxxxxxxxxx>
>
> tipc_node_link_down() caches the link pointer before taking n->lock:
>
> struct tipc_link *l = le->link; /* unlocked */
>
> if (!l)
> return;
> tipc_node_write_lock(n);
> if (!tipc_link_is_establishing(l)) { /* deref l */
> ...
> tipc_link_reset(l); /* write into l */
> if (delete) {
> kfree(l);
> le->link = NULL;
>
> [...]
Here is the summary with links:
- [net,v2] tipc: read le->link under the node lock in tipc_node_link_down()
https://git.kernel.org/netdev/net/c/cba9ccb47e9f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html