diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-11-20 02:24:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-20 02:24:09 -0500 |
commit | 6e42141009ff18297fe19d19296738b742f861db (patch) | |
tree | 6bbe19922e9b24d0ce4df6effc45abcf0aa2af51 /net/ipv4 | |
parent | 1f8170b0ecd8363847792b3b1f269e9d8e10391a (diff) |
[TCP] MTUprobe: fix potential sk_send_head corruption
When the abstraction functions got added, conversion here was
made incorrectly. As a result, the skb may end up pointing
to skb which got included to the probe skb and then was freed.
For it to trigger, however, skb_transmit must fail sending as
well.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_output.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 324b4207254a..e48e28e7d539 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1352,7 +1352,6 @@ static int tcp_mtu_probe(struct sock *sk) | |||
1352 | 1352 | ||
1353 | skb = tcp_send_head(sk); | 1353 | skb = tcp_send_head(sk); |
1354 | tcp_insert_write_queue_before(nskb, skb, sk); | 1354 | tcp_insert_write_queue_before(nskb, skb, sk); |
1355 | tcp_advance_send_head(sk, skb); | ||
1356 | 1355 | ||
1357 | TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(skb)->seq; | 1356 | TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(skb)->seq; |
1358 | TCP_SKB_CB(nskb)->end_seq = TCP_SKB_CB(skb)->seq + probe_size; | 1357 | TCP_SKB_CB(nskb)->end_seq = TCP_SKB_CB(skb)->seq + probe_size; |