diff options
| author | Alexandru Matei <[email protected]> | 2023-10-24 19:17:42 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-10-25 22:49:47 +0000 |
| commit | 53b08c4985158430fd6d035fb49443bada535210 (patch) | |
| tree | 1332eda9a284020639cdbe00b75d99bc5bb774bc /tools/net/ynl/generated/netdev-user.c | |
| parent | net: ipv6: fix typo in comments (diff) | |
| download | kernel-53b08c4985158430fd6d035fb49443bada535210.tar.gz kernel-53b08c4985158430fd6d035fb49443bada535210.zip | |
vsock/virtio: initialize the_virtio_vsock before using VQs
Once VQs are filled with empty buffers and we kick the host, it can send
connection requests. If the_virtio_vsock is not initialized before,
replies are silently dropped and do not reach the host.
virtio_transport_send_pkt() can queue packets once the_virtio_vsock is
set, but they won't be processed until vsock->tx_run is set to true. We
queue vsock->send_pkt_work when initialization finishes to send those
packets queued earlier.
Fixes: 0deab087b16a ("vsock/virtio: use RCU to avoid use-after-free on the_virtio_vsock")
Signed-off-by: Alexandru Matei <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/netdev-user.c')
0 files changed, 0 insertions, 0 deletions
