Skip to content

kmod-setup: load vsock_loopback alongside vsock#101

Draft
val4oss wants to merge 1 commit intoopenSUSE:SUSE/v259from
val4oss:suse-v259-vsock
Draft

kmod-setup: load vsock_loopback alongside vsock#101
val4oss wants to merge 1 commit intoopenSUSE:SUSE/v259from
val4oss:suse-v259-vsock

Conversation

@val4oss
Copy link
Copy Markdown
Contributor

@val4oss val4oss commented Mar 23, 2026

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 381c78d

(cherry picked from commit 7c1075f)

[vlefebvre: fixes bsc#1259145]

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 381c78d

(cherry picked from commit 7c1075f)

[vlefebvre: fixes bsc#1259145]
@val4oss val4oss marked this pull request as draft March 23, 2026 11:59
@val4oss
Copy link
Copy Markdown
Contributor Author

val4oss commented Mar 23, 2026

Put in Draft, upstream will merge it soon in v259-stable, cherry-pick will then comes from another SHA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant