Message ID | 1587819277-38974-1-git-send-email-xiyuyang19@fudan.edu.cn |
---|---|
State | New |
Headers | show |
Series | net/tls: Fix sk_psock refcnt leak in bpf_exec_tx_verdict() | expand |
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index 7d3bf86e6cbf..5fad144edaa3 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -800,6 +800,8 @@ static int bpf_exec_tx_verdict(struct sk_msg *msg, struct sock *sk, *copied -= sk_msg_free(sk, msg); tls_free_open_rec(sk); } + if (psock) + sk_psock_put(sk, psock); return err; } more_data: