summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2018-02-07 05:50:23 +0100
committerDavid S. Miller <davem@davemloft.net>2018-02-08 04:00:42 +0100
commit5c487bb9adddbc1d23433e09d2548759375c2b52 (patch)
tree83ff74b2e6d19b9a60b67872f718f9fa630319ed /firmware
parentsch_netem: Bug fixing in calculating Netem interval (diff)
downloadlinux-5c487bb9adddbc1d23433e09d2548759375c2b52.tar.xz
linux-5c487bb9adddbc1d23433e09d2548759375c2b52.zip
tcp: tracepoint: only call trace_tcp_send_reset with full socket
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 patch checks the socket with sk_fullsock() before calling trace_tcp_send_reset(). Fixes: c24b14c46bb8 ("tcp: add tracepoint trace_tcp_send_reset") Signed-off-by: Song Liu <songliubraving@fb.com> Reviewed-by: Lawrence Brakmo <brakmo@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions