diff options
| author | Cong Wang <[email protected]> | 2021-06-15 02:13:38 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-06-21 14:48:29 +0000 |
| commit | 30b9c54a707db4155735cf71f4600241c1b7b6ff (patch) | |
| tree | 4b806faa13566c1becbb29ea20c3153a7b172813 /drivers/usb/cdns3/cdns3-trace.c | |
| parent | udp: Fix a memory leak in udp_read_sock() (diff) | |
| download | kernel-30b9c54a707db4155735cf71f4600241c1b7b6ff.tar.gz kernel-30b9c54a707db4155735cf71f4600241c1b7b6ff.zip | |
skmsg: Clear skb redirect pointer before dropping it
When we drop skb inside sk_psock_skb_redirect(), we have to clear
its skb->_sk_redir pointer too, otherwise kfree_skb() would
misinterpret it as a valid skb->_skb_refdst and dst_release()
would eventually complain.
Fixes: e3526bb92a20 ("skmsg: Move sk_redir from TCP_SKB_CB to skb")
Reported-by: Jiang Wang <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Jakub Sitnicki <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions
