This is a note to let you know that I've just added the patch titled

    [PATCH 26/28] tcp: fix TCP_MAXSEG for established IPv6 passive sockets

to the 3.3-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tcp-fix-tcp_maxseg-for-established-ipv6-passive-sockets.patch
and it can be found in the queue-3.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 8207f2ec3703b3582992a8eeda95bd486f8a45bf Mon Sep 17 00:00:00 2001
From: Neal Cardwell <[email protected]>
Date: Sun, 22 Apr 2012 09:45:47 +0000
Subject: [PATCH 26/28] tcp: fix TCP_MAXSEG for established IPv6 passive sockets


From: Neal Cardwell <[email protected]>

[ Upstream commit d135c522f1234f62e81be29cebdf59e9955139ad ]

Commit f5fff5d forgot to fix TCP_MAXSEG behavior IPv6 sockets, so IPv6
TCP server sockets that used TCP_MAXSEG would find that the advmss of
child sockets would be incorrect. This commit mirrors the advmss logic
from tcp_v4_syn_recv_sock in tcp_v6_syn_recv_sock. Eventually this
logic should probably be shared between IPv4 and IPv6, but this at
least fixes this issue.

Signed-off-by: Neal Cardwell <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 net/ipv6/tcp_ipv6.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1493,6 +1493,10 @@ static struct sock * tcp_v6_syn_recv_soc
        tcp_mtup_init(newsk);
        tcp_sync_mss(newsk, dst_mtu(dst));
        newtp->advmss = dst_metric_advmss(dst);
+       if (tcp_sk(sk)->rx_opt.user_mss &&
+           tcp_sk(sk)->rx_opt.user_mss < newtp->advmss)
+               newtp->advmss = tcp_sk(sk)->rx_opt.user_mss;
+
        tcp_initialize_rcv_mss(newsk);
        if (tcp_rsk(req)->snt_synack)
                tcp_valid_rtt_meas(newsk,


Patches currently in stable-queue which might be from [email protected] are

queue-3.3/tcp-fix-tcp_maxseg-for-established-ipv6-passive-sockets.patch
queue-3.3/tcp-allow-splice-to-build-full-tso-packets.patch
queue-3.3/tcp-fix-tcp_grow_window-for-large-incoming-frames.patch
queue-3.3/tcp-fix-tcp_rcv_rtt_update-use-of-an-unscaled-rtt-sample.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to