aboutsummaryrefslogtreecommitdiffstats
path: root/fs/Kconfig
diff options
context:
space:
mode:
authorNeal Cardwell <ncardwell@google.com>2012-01-28 17:29:46 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-03 09:19:04 -0800
commit8b4bb350e120fe0b32a0b1b8d227e65af03e3993 (patch)
treeda0f48a820eaa413f7b30d93468f8d386d1a2d16 /fs/Kconfig
parentf217c4711d71aa6811b6e71d219b9efafa5d55a6 (diff)
downloadkernel_samsung_crespo-8b4bb350e120fe0b32a0b1b8d227e65af03e3993.zip
kernel_samsung_crespo-8b4bb350e120fe0b32a0b1b8d227e65af03e3993.tar.gz
kernel_samsung_crespo-8b4bb350e120fe0b32a0b1b8d227e65af03e3993.tar.bz2
tcp: fix tcp_trim_head() to adjust segment count with skb MSS
[ Upstream commit 5b35e1e6e9ca651e6b291c96d1106043c9af314a ] This commit fixes tcp_trim_head() to recalculate the number of segments in the skb with the skb's existing MSS, so trimming the head causes the skb segment count to be monotonically non-increasing - it should stay the same or go down, but not increase. Previously tcp_trim_head() used the current MSS of the connection. But if there was a decrease in MSS between original transmission and ACK (e.g. due to PMTUD), this could cause tcp_trim_head() to counter-intuitively increase the segment count when trimming bytes off the head of an skb. This violated assumptions in tcp_tso_acked() that tcp_trim_head() only decreases the packet count, so that packets_acked in tcp_tso_acked() could underflow, leading tcp_clean_rtx_queue() to pass u32 pkts_acked values as large as 0xffffffff to ca_ops->pkts_acked(). As an aside, if tcp_trim_head() had really wanted the skb to reflect the current MSS, it should have called tcp_set_skb_tso_segs() unconditionally, since a decrease in MSS would mean that a single-packet skb should now be sliced into multiple segments. Signed-off-by: Neal Cardwell <ncardwell@google.com> Acked-by: Nandita Dukkipati <nanditad@google.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/Kconfig')
0 files changed, 0 insertions, 0 deletions