[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100518102550.65ad3fdd@nehalam>
Date: Tue, 18 May 2010 10:25:50 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: David Miller <davem@...emloft.net>, jbohac@...e.cz,
yoshfuji@...ux-ipv6.org, netdev@...r.kernel.org
Subject: Re: [0/4] Fix addrconf race conditions
On Tue, 18 May 2010 21:02:43 +1000
Herbert Xu <herbert@...dor.apana.org.au> wrote:
> On Fri, Apr 23, 2010 at 11:05:40PM +0800, Herbert Xu wrote:
> >
> > 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.
I wonder if so many fine grained locks are really necessary at
all. Everything but timers looks like it is under RTNL mutex
already.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists