Re: [PATCH net v5] ipv6: addrconf: bail out of dad_failure when state is no longer POSTDAD
From: patchwork-bot+netdevbpf
Date: Fri May 15 2026 - 21:30:06 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 13 May 2026 10:55:09 +0800 you wrote:
> addrconf_dad_failure() transitions ifp->state from DAD to POSTDAD
> via addrconf_dad_end(), which drops ifp->lock on return. The lock
> is re-acquired after net_info_ratelimited(). A concurrent
> ipv6_del_addr() can take the lock in that window, set ifp->state
> to DEAD and run list_del_rcu(&ifp->if_list).
>
> addrconf_dad_failure() then overwrites DEAD with ERRDAD at errdad:
> and schedules a new dad_work. The work calls ipv6_del_addr()
> again, hitting the already-poisoned list entry:
>
> [...]
Here is the summary with links:
- [net,v5] ipv6: addrconf: bail out of dad_failure when state is no longer POSTDAD
https://git.kernel.org/netdev/net-next/c/627ac78f2741
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html