[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080528175110.GA6210@2ka.mipt.ru>
Date: Wed, 28 May 2008 21:51:10 +0400
From: Evgeniy Polyakov <johnpol@....mipt.ru>
To: Octavian Purdila <opurdila@...acom.com>
Cc: Ben Hutchings <bhutchings@...arflare.com>, netdev@...r.kernel.org,
davem@...emloft.net
Subject: Re: race in skb_splice_bits?
On Wed, May 28, 2008 at 08:08:01PM +0300, Octavian Purdila (opurdila@...acom.com) wrote:
> Hmm, might have found a problem with this approach: say we drop the lock,
> queue the data into the pipe, and at the same time tcp_collapse() is called
> which frees some of the skbs of which data we just queued in the pipe. Later,
> when we will read from the pipe, we will get random data instead of socket
> data...
We queue data under the lock and clone appropriate skb (and then grab it
multiple times), so even it will be dropped, its data will not freed, and
thus we will be able to read it. Or you are talking about different
skbs?
--
Evgeniy Polyakov
--
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