linux-stable/net
Alexandru Matei 53b08c4985 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: 0deab087b1 ("vsock/virtio: use RCU to avoid use-after-free on the_virtio_vsock")
Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20231024191742.14259-1-alexandru.matei@uipath.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-10-25 15:49:47 -07:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth
bpf
bpfilter
bridge
caif
can
ceph
core neighbour: fix various data-races 2023-10-20 17:41:29 -07:00
dcb
dccp
devlink
dns_resolver
dsa
ethernet
ethtool Revert "ethtool: Fix mod state of verbose no_mask bitset" 2023-10-19 09:27:12 -07:00
handshake net/handshake: fix file ref count in handshake_nl_accept_doit() 2023-10-23 10:19:33 -07:00
hsr
ieee802154
ife
ipv4 net: ipv4: fix typo in comments 2023-10-25 10:38:07 +01:00
ipv6 net: ipv6: fix typo in comments 2023-10-25 10:38:07 +01:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211 wifi: mac80211: don't drop all unprotected public action frames 2023-10-23 13:25:30 +02:00
mac802154
mctp
mpls
mptcp mptcp: avoid sending RST when closing the initial subflow 2023-10-19 09:10:00 -07:00
ncsi
netfilter netfilter: nf_tables: revert do not remove elements if set backend implements .abort 2023-10-18 13:47:32 +02:00
netlabel
netlink
netrom
nfc
nsh
openvswitch
packet
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched net/sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner curve 2023-10-18 18:08:28 -07:00
sctp
smc
strparser
sunrpc
switchdev
tipc
tls
unix
vmw_vsock vsock/virtio: initialize the_virtio_vsock before using VQs 2023-10-25 15:49:47 -07:00
wireless wifi: cfg80211: fix assoc response warning on failed links 2023-10-23 13:25:30 +02:00
x25
xdp
xfrm
compat.c
devres.c
Kconfig
Kconfig.debug
Makefile
socket.c
sysctl_net.c