Octavian Purdila 293ad60401 tcp: Fix for race due to temporary drop of the socket lock in skb_splice_bits.
skb_splice_bits temporary drops the socket lock while iterating over
the socket queue in order to break a reverse locking condition which
happens with sendfile. This, however, opens a window of opportunity
for tcp_collapse() to aggregate skbs and thus potentially free the
current skb used in skb_splice_bits and tcp_read_sock.

This patch fixes the problem by (re-)getting the same "logical skb"
after the lock has been temporary dropped.

Based on idea and initial patch from Evgeniy Polyakov.

Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-06-04 15:45:58 -07:00
..
2008-05-21 17:47:54 -07:00
2008-05-21 17:47:54 -07:00
2008-03-06 16:22:02 -08:00
2008-06-04 15:16:12 -07:00
2008-05-01 08:03:58 -07:00
2008-06-05 04:02:38 +09:00
2008-03-26 16:51:09 -07:00
2008-03-26 16:51:09 -07:00