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

    tcp: ipv4: initialize unicast_sock sk_pacing_rate

to the 3.10-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-ipv4-initialize-unicast_sock-sk_pacing_rate.patch
and it can be found in the queue-3.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From foo@baz Thu Feb 12 09:26:20 HKT 2015
From: Eric Dumazet <eduma...@google.com>
Date: Wed, 28 Jan 2015 05:47:11 -0800
Subject: tcp: ipv4: initialize unicast_sock sk_pacing_rate

From: Eric Dumazet <eduma...@google.com>

[ Upstream commit 811230cd853d62f09ed0addd0ce9a1b9b0e13fb5 ]

When I added sk_pacing_rate field, I forgot to initialize its value
in the per cpu unicast_sock used in ip_send_unicast_reply()

This means that for sch_fq users, RST packets, or ACK packets sent
on behalf of TIME_WAIT sockets might be sent to slowly or even dropped
once we reach the per flow limit.

Signed-off-by: Eric Dumazet <eduma...@google.com>
Fixes: 95bd09eb2750 ("tcp: TSO packets automatic sizing")
Signed-off-by: David S. Miller <da...@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
---
 net/ipv4/ip_output.c |    1 +
 1 file changed, 1 insertion(+)

--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1465,6 +1465,7 @@ static DEFINE_PER_CPU(struct inet_sock,
                .sk_wmem_alloc  = ATOMIC_INIT(1),
                .sk_allocation  = GFP_ATOMIC,
                .sk_flags       = (1UL << SOCK_USE_WRITE_QUEUE),
+               .sk_pacing_rate = ~0U,
        },
        .pmtudisc       = IP_PMTUDISC_WANT,
        .uc_ttl         = -1,


Patches currently in stable-queue which might be from eduma...@google.com are

queue-3.10/tcp-ipv4-initialize-unicast_sock-sk_pacing_rate.patch
queue-3.10/ip-zero-sockaddr-returned-on-error-queue.patch
queue-3.10/ping-fix-race-in-free-in-receive-path.patch
queue-3.10/net-rps-fix-cpu-unplug.patch
queue-3.10/netxen-fix-netxen_nic_poll-logic.patch
queue-3.10/ipv4-tcp-get-rid-of-ugly-unicast_sock.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to