]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up networking commit in 4.20 and 4.19 queue
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Feb 2019 07:25:26 +0000 (08:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Feb 2019 07:25:26 +0000 (08:25 +0100)
queue-4.19/net-do-not-allocate-page-fragments-that-are-not-skb-.patch
queue-4.19/tcp-tcp_v4_err-should-be-more-careful.patch
queue-4.20/tcp-tcp_v4_err-should-be-more-careful.patch

index 327e6f1848a90b96dbcec9f119e95fc706de490e..7a2de8b9d5e61b6027e36ceb4212bc7484451c74 100644 (file)
@@ -17,15 +17,14 @@ Reported-by: Jann Horn <jannh@google.com>
 Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
 Signed-off-by: David S. Miller <davem@davemloft.net>
 Signed-off-by: Sasha Levin <sashal@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- net/core/skbuff.c | 4 ++++
+ net/core/skbuff.c |    4 ++++
  1 file changed, 4 insertions(+)
 
-diff --git a/net/core/skbuff.c b/net/core/skbuff.c
-index 589ec5b9ec5f5..8656b1e20d35a 100644
 --- a/net/core/skbuff.c
 +++ b/net/core/skbuff.c
-@@ -353,6 +353,8 @@ static void *__netdev_alloc_frag(unsigned int fragsz, gfp_t gfp_mask)
+@@ -353,6 +353,8 @@ static void *__netdev_alloc_frag(unsigne
   */
  void *netdev_alloc_frag(unsigned int fragsz)
  {
@@ -34,7 +33,7 @@ index 589ec5b9ec5f5..8656b1e20d35a 100644
        return __netdev_alloc_frag(fragsz, GFP_ATOMIC);
  }
  EXPORT_SYMBOL(netdev_alloc_frag);
-@@ -366,6 +368,8 @@ static void *__napi_alloc_frag(unsigned int fragsz, gfp_t gfp_mask)
+@@ -366,6 +368,8 @@ static void *__napi_alloc_frag(unsigned
  
  void *napi_alloc_frag(unsigned int fragsz)
  {
@@ -43,6 +42,3 @@ index 589ec5b9ec5f5..8656b1e20d35a 100644
        return __napi_alloc_frag(fragsz, GFP_ATOMIC);
  }
  EXPORT_SYMBOL(napi_alloc_frag);
--- 
-2.19.1
-
index 93a067eb033f0f879a2305f9c094b9b2e66fd876..eef3ebb77084c18d0bbe8ad00dddc6281e5b5d88 100644 (file)
@@ -18,15 +18,14 @@ Acked-by: Neal Cardwell <ncardwell@google.com>
 Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
 Signed-off-by: David S. Miller <davem@davemloft.net>
 Signed-off-by: Sasha Levin <sashal@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- net/ipv4/tcp_ipv4.c | 4 ++++
- 1 file changed, 4 insertions(+)
+ net/ipv4/tcp_ipv4.c |    7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
 
-diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
-index cd426313a2981..4370ef1d547e1 100644
 --- a/net/ipv4/tcp_ipv4.c
 +++ b/net/ipv4/tcp_ipv4.c
-@@ -535,6 +535,10 @@ void tcp_v4_err(struct sk_buff *icmp_skb, u32 info)
+@@ -535,14 +535,15 @@ void tcp_v4_err(struct sk_buff *icmp_skb
                if (sock_owned_by_user(sk))
                        break;
  
@@ -37,6 +36,11 @@ index cd426313a2981..4370ef1d547e1 100644
                icsk->icsk_backoff--;
                icsk->icsk_rto = tp->srtt_us ? __tcp_set_rto(tp) :
                                               TCP_TIMEOUT_INIT;
--- 
-2.19.1
-
+               icsk->icsk_rto = inet_csk_rto_backoff(icsk, TCP_RTO_MAX);
+-              skb = tcp_rtx_queue_head(sk);
+-              BUG_ON(!skb);
+-
+               tcp_mstamp_refresh(tp);
+               delta_us = (u32)(tp->tcp_mstamp - skb->skb_mstamp);
+               remaining = icsk->icsk_rto -
index 01f2db11c220200bb80261524efab9733ed9d310..3e172c66de6c95331f8f2bbe1537068c6637accd 100644 (file)
@@ -18,15 +18,14 @@ Acked-by: Neal Cardwell <ncardwell@google.com>
 Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
 Signed-off-by: David S. Miller <davem@davemloft.net>
 Signed-off-by: Sasha Levin <sashal@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- net/ipv4/tcp_ipv4.c | 4 ++++
- 1 file changed, 4 insertions(+)
+ net/ipv4/tcp_ipv4.c |    7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
 
-diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
-index de47038afdf02..daedd75bb7459 100644
 --- a/net/ipv4/tcp_ipv4.c
 +++ b/net/ipv4/tcp_ipv4.c
-@@ -535,6 +535,10 @@ void tcp_v4_err(struct sk_buff *icmp_skb, u32 info)
+@@ -535,14 +535,15 @@ void tcp_v4_err(struct sk_buff *icmp_skb
                if (sock_owned_by_user(sk))
                        break;
  
@@ -37,6 +36,11 @@ index de47038afdf02..daedd75bb7459 100644
                icsk->icsk_backoff--;
                icsk->icsk_rto = tp->srtt_us ? __tcp_set_rto(tp) :
                                               TCP_TIMEOUT_INIT;
--- 
-2.19.1
-
+               icsk->icsk_rto = inet_csk_rto_backoff(icsk, TCP_RTO_MAX);
+-              skb = tcp_rtx_queue_head(sk);
+-              BUG_ON(!skb);
+-
+               tcp_mstamp_refresh(tp);
+               delta_us = (u32)(tp->tcp_mstamp - tcp_skb_timestamp_us(skb));
+               remaining = icsk->icsk_rto -