Re: [PATCH net] tcp: tracepoint: only call trace_tcp_send_reset with full socket

2018-02-07 Thread David Miller
From: Song Liu Date: Tue, 6 Feb 2018 20:50:23 -0800 > tracepoint tcp_send_reset requires a full socket to work. However, it > may be called when in TCP_TIME_WAIT: > > case TCP_TW_RST: > tcp_v6_send_reset(sk, skb); > inet_twsk_deschedule_put(inet_twsk(sk));

[PATCH net] tcp: tracepoint: only call trace_tcp_send_reset with full socket

2018-02-06 Thread Song Liu
tracepoint tcp_send_reset requires a full socket to work. However, it may be called when in TCP_TIME_WAIT: case TCP_TW_RST: tcp_v6_send_reset(sk, skb); inet_twsk_deschedule_put(inet_twsk(sk)); goto discard_it; To avoid this problem, this pat