Files
systemd/src
vlefebvre 7c1075fb8f kmod-setup: load vsock_loopback alongside vsock
Loading vmw_vsock_virtio_transport early at boot causes vsock to be
resident before any application opens an AF_VSOCK socket. Because the
kernel skips autoloading when the vsock module is already present,
vsock_loopback never gets loaded automatically, and any subsequent
bind() to VMADDR_CID_LOCAL fails with EADDRNOTAVAIL.

Fix this by explicitly loading vsock_loopback on virtio or VMWare
machines via the new may_have_vsock_looopback() helper, wich covers both
vmw_vsock_virtio_transport and vmware_vsock_vmci_transport case.
vsock_loopback is the only module that registers a transport for
VMADDR_CID_LOCAL (CID 1) and has no hard dependency from any of the
vsock transport modules.

Fixes: #41100
Follow-up for 381c78db491a7c5fad8697543dd36ebe9b848718
2026-03-20 19:25:55 +00:00
..
2026-03-20 17:10:10 +01:00
…
…
2026-03-11 03:23:53 +09:00
…
2026-02-20 16:56:16 +01:00
2026-03-12 00:24:01 +00:00
…
2026-03-10 12:03:17 +01:00
2026-03-18 10:28:47 +00:00
2026-03-18 14:58:43 +01:00