Message ID | 1422453433.29618.58.camel@edumazet-glaptop2.roam.corp.google.com |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
On Wed, 2015-01-28 at 05:57 -0800, Eric Dumazet wrote: > From: Eric Dumazet <edumazet@google.com> > > RST packets and ACK packets sent on behalf of TIME_WAIT sockets > do not have a socket owner currently. ... > > Signed-off-by: Eric Dumazet <edumazet@google.com> > --- Please do not apply. I forgot about commit 3a7c384ffd57ef5fbd95f48edaa2ca4eb3d9f2ee ("ipv4: tcp: unicast_sock should not land outside of TCP stack") I need to do this in another way. Thanks -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, 2015-01-29 at 13:18 -0800, Eric Dumazet wrote: > On Wed, 2015-01-28 at 05:57 -0800, Eric Dumazet wrote: > > From: Eric Dumazet <edumazet@google.com> > > > > RST packets and ACK packets sent on behalf of TIME_WAIT sockets > > do not have a socket owner currently. > ... > > > > Signed-off-by: Eric Dumazet <edumazet@google.com> > > --- > > Please do not apply. > > I forgot about commit 3a7c384ffd57ef5fbd95f48edaa2ca4eb3d9f2ee > ("ipv4: tcp: unicast_sock should not land outside of TCP stack") > > I need to do this in another way. Well, no, patch was fine, sorry for the noise. I have to addresss ipv4 side. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Eric Dumazet <eric.dumazet@gmail.com> Date: Thu, 29 Jan 2015 13:18:59 -0800 > On Wed, 2015-01-28 at 05:57 -0800, Eric Dumazet wrote: >> From: Eric Dumazet <edumazet@google.com> >> >> RST packets and ACK packets sent on behalf of TIME_WAIT sockets >> do not have a socket owner currently. > ... >> >> Signed-off-by: Eric Dumazet <edumazet@google.com> >> --- > > Please do not apply. Ok. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 5d46832c6f72b89a278a3326918a3c8bff9afed4..cd4f7be3ecdd3628b07eb76bd2d4204753da23a6 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -809,12 +809,11 @@ static void tcp_v6_send_response(struct sock *sk, struct sk_buff *skb, u32 seq, tot_len += TCPOLEN_MD5SIG_ALIGNED; #endif - buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + tot_len, - GFP_ATOMIC); - if (buff == NULL) + buff = sock_wmalloc(ctl_sk, MAX_TCP_HEADER, 1, GFP_ATOMIC); + if (!buff) return; - skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); + skb_reserve(buff, MAX_TCP_HEADER); t1 = (struct tcphdr *) skb_push(buff, tot_len); skb_reset_transport_header(buff);