Fix addrconf race conditions
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ipv6: Replace inet6_ifaddr->dead with stateinclude/ net/ | +16 | 2 replies | |
| 2/4 | ipv6: Use state_lock to protect ifa statenet/ | +21 | 0 replies | |
| 3/4 | ipv6: Use POSTDAD statenet/ | +24 | 0 replies | |
| 4/4 | ipv6: Never schedule DAD timer on dead addressnet/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [0/4] Fix addrconf race conditions
Quoted 8 lines · Herbert Xu
This stuff is more broken than I thought. For example, we perform a number of actions when DAD succeeds, e.g., joining an anycast group. However, this is not synchronised with respect to address deletion at all, so if DAD succeeds just as someone deletes the address, you can easily get stuck on that anycast group.
I will try to untangle this mess tomorrow.
Tomorrow took a while to arrive :)
Here is a first batch of patches. Note that this is by no means a comprehensive fix for all the ndisc/addrconf race conditions. It is just a first step in trying to address the problems.
The patchset revolves around a new lock, ifp->state_lock. I added it instead of trying to reuse the existing ifp->lock because the latter has serious nesting issues that prevent it from easily being used. My long term plan is to restructure the locking and eventually phase out ifp->lock in favour of ifp->state_lock.
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt