diff options
author | Bobby Eshleman <[email protected]> | 2023-03-29 16:51:58 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-03-31 08:58:13 +0100 |
commit | f9d2b1e146e0f82f3d04629afd92698522058361 (patch) | |
tree | 888c3af527b7ce0888705db09ba6a029fd9f94b6 /scripts/gdb/linux/timerlist.py | |
parent | 6b36d68cc9bb1fc85bbe54ebe2eb6b2c3beec73d (diff) |
virtio/vsock: fix leaks due to missing skb owner
This patch sets the skb owner in the recv and send path for virtio.
For the send path, this solves the leak caused when
virtio_transport_purge_skbs() finds skb->sk is always NULL and therefore
never matches it with the current socket. Setting the owner upon
allocation fixes this.
For the recv path, this ensures correctness of accounting and also
correct transfer of ownership in vsock_loopback (when skbs are sent from
one socket and received by another).
Fixes: 71dc9ec9ac7d ("virtio/vsock: replace virtio_vsock_pkt with sk_buff")
Signed-off-by: Bobby Eshleman <[email protected]>
Reported-by: Cong Wang <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Reviewed-by: Stefano Garzarella <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions