diff options
author | Eric Dumazet <edumazet@google.com> | 2012-09-17 08:51:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-18 16:26:27 -0400 |
commit | 1d57f19539c074105791da6384a8ad674bba8037 (patch) | |
tree | c23d0bb80809e6e01d01e7aa5642597cc8295bbe /net | |
parent | 0e698bf6624c469cd4f3f391247b142963ca9c4e (diff) |
tcp: fix regression in urgent data handling
Stephan Springl found that commit 1402d366019fed "tcp: introduce
tcp_try_coalesce" introduced a regression for rlogin
It turns out problem comes from TCP urgent data handling and
a change in behavior in input path.
rlogin sends two one-byte packets with URG ptr set, and when next data
frame is coalesced, we lack sk_data_ready() calls to wakeup consumer.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Stephan Springl <springl-k@lar.bfw.de>
Cc: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_input.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 6e38c6c23caa..d377f4854cb8 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -4661,7 +4661,7 @@ queue_and_out: | |||
4661 | 4661 | ||
4662 | if (eaten > 0) | 4662 | if (eaten > 0) |
4663 | kfree_skb_partial(skb, fragstolen); | 4663 | kfree_skb_partial(skb, fragstolen); |
4664 | else if (!sock_flag(sk, SOCK_DEAD)) | 4664 | if (!sock_flag(sk, SOCK_DEAD)) |
4665 | sk->sk_data_ready(sk, 0); | 4665 | sk->sk_data_ready(sk, 0); |
4666 | return; | 4666 | return; |
4667 | } | 4667 | } |
@@ -5556,8 +5556,7 @@ no_ack: | |||
5556 | #endif | 5556 | #endif |
5557 | if (eaten) | 5557 | if (eaten) |
5558 | kfree_skb_partial(skb, fragstolen); | 5558 | kfree_skb_partial(skb, fragstolen); |
5559 | else | 5559 | sk->sk_data_ready(sk, 0); |
5560 | sk->sk_data_ready(sk, 0); | ||
5561 | return 0; | 5560 | return 0; |
5562 | } | 5561 | } |
5563 | } | 5562 | } |