[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071018.051647.23015283.davem@davemloft.net>
Date: Thu, 18 Oct 2007 05:16:47 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: xemul@...nvz.org
Cc: netdev@...r.kernel.org, devel@...nvz.org
Subject: Re: [PATCH 2/3] Lost locking in fl6_sock_lookup
From: Pavel Emelyanov <xemul@...nvz.org>
Date: Thu, 18 Oct 2007 15:53:52 +0400
> This routine scans the ipv6_fl_list whose update is
> protected with the socket lock and the ip6_sk_fl_lock.
>
> Since the socket lock is not taken in the lookup, use
> the other one.
>
> Signed-off-by: Pavel Emelyanov <xemul@...nvz.org>
Applied.
But I notice that I was wrong in my email, we don't
hold the socket lock here.
What prevents an unlink from the socket's list
and thus a reference count of zero occurring for
a brief moment?
-
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