From: Greg Kroah-Hartman Date: Fri, 27 Jul 2018 10:56:16 +0000 (+0200) Subject: fixup the tcp patch X-Git-Tag: v3.18.117~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0b3534bef3a366451e88fe86798242000193853;p=thirdparty%2Fkernel%2Fstable-queue.git fixup the tcp patch --- diff --git a/queue-3.18/tcp-detect-malicious-patterns-in-tcp_collapse_ofo_queue.patch b/queue-3.18/tcp-detect-malicious-patterns-in-tcp_collapse_ofo_queue.patch index 8012acf57bb..bcc3bbe943b 100644 --- a/queue-3.18/tcp-detect-malicious-patterns-in-tcp_collapse_ofo_queue.patch +++ b/queue-3.18/tcp-detect-malicious-patterns-in-tcp_collapse_ofo_queue.patch @@ -26,8 +26,8 @@ Acked-by: Soheil Hassas Yeganeh Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- - net/ipv4/tcp_input.c | 15 +++++++++++++-- - 1 file changed, 13 insertions(+), 2 deletions(-) + net/ipv4/tcp_input.c | 16 ++++++++++++++-- + 1 file changed, 14 insertions(+), 2 deletions(-) --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -47,7 +47,7 @@ Signed-off-by: Greg Kroah-Hartman head = skb; for (;;) { -@@ -4675,8 +4677,17 @@ static void tcp_collapse_ofo_queue(struc +@@ -4675,14 +4677,24 @@ static void tcp_collapse_ofo_queue(struc if (!skb || after(TCP_SKB_CB(skb)->seq, end) || before(TCP_SKB_CB(skb)->end_seq, start)) { @@ -67,3 +67,10 @@ Signed-off-by: Greg Kroah-Hartman head = skb; if (!skb) break; + /* Start new segment */ + start = TCP_SKB_CB(skb)->seq; + end = TCP_SKB_CB(skb)->end_seq; ++ range_truesize = skb->truesize; + } else { + if (before(TCP_SKB_CB(skb)->seq, start)) + start = TCP_SKB_CB(skb)->seq; diff --git a/queue-4.4/tcp-detect-malicious-patterns-in-tcp_collapse_ofo_queue.patch b/queue-4.4/tcp-detect-malicious-patterns-in-tcp_collapse_ofo_queue.patch index f669daa88ce..6a46040be3f 100644 --- a/queue-4.4/tcp-detect-malicious-patterns-in-tcp_collapse_ofo_queue.patch +++ b/queue-4.4/tcp-detect-malicious-patterns-in-tcp_collapse_ofo_queue.patch @@ -26,8 +26,8 @@ Acked-by: Soheil Hassas Yeganeh Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- - net/ipv4/tcp_input.c | 15 +++++++++++++-- - 1 file changed, 13 insertions(+), 2 deletions(-) + net/ipv4/tcp_input.c | 16 ++++++++++++++-- + 1 file changed, 14 insertions(+), 2 deletions(-) --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -47,7 +47,7 @@ Signed-off-by: Greg Kroah-Hartman head = skb; for (;;) { -@@ -4812,8 +4814,17 @@ static void tcp_collapse_ofo_queue(struc +@@ -4812,14 +4814,24 @@ static void tcp_collapse_ofo_queue(struc if (!skb || after(TCP_SKB_CB(skb)->seq, end) || before(TCP_SKB_CB(skb)->end_seq, start)) { @@ -67,3 +67,10 @@ Signed-off-by: Greg Kroah-Hartman head = skb; if (!skb) break; + /* Start new segment */ + start = TCP_SKB_CB(skb)->seq; + end = TCP_SKB_CB(skb)->end_seq; ++ range_truesize = skb->truesize; + } else { + if (before(TCP_SKB_CB(skb)->seq, start)) + start = TCP_SKB_CB(skb)->seq;