Skip to content

[release/1.2] cherry-picks #3750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 20, 2025
Merged

Conversation

stek29 and others added 4 commits July 18, 2025 19:35
The UDP port forwarder previously used a single gRPC stream for all
clients, which could cause responses from the guest to be sent to the
wrong client on the host.

This occurred because the stream was created before client connections
were demultiplexed by `gvisor-tap-vsock`'s `UDPProxy`.

The root cause is the interaction with `gvisor-tap-vsock`'s `UDPProxy`,
which handles client demultiplexing internally based on the source
address of incoming datagrams. It expects its `dialer` function to
return a new `net.Conn` for each new client it detects.

This commit moves the gRPC stream creation into the `UDPProxy` dialer
function. This ensures a new, dedicated stream is created for each new
client, fixing the incorrect response routing.

Signed-off-by: Viktor Oreshkin <[email protected]>
(cherry picked from commit a04f244)
Signed-off-by: Akihiro Suda <[email protected]>
Fix issue 3720

Thanks to pavelanni for providing the fix generated by Claude

Co-authored-by: Oleksandr Redko <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
(cherry picked from commit 2b8bb39)
Signed-off-by: Akihiro Suda <[email protected]>
```
Error: pkg\instance\start.go:274:65: SA4023: this comparison is always true (staticcheck)
  		if err := syscall.Exec(limactl, haCmd.Args, haCmd.Environ()); err != nil {
```

Signed-off-by: Akihiro Suda <[email protected]>
(cherry picked from commit bdf7c7f)
> Conflicts:
>	pkg/instance/start.go
Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Anders F Björklund <[email protected]>
(cherry picked from commit 86b4495)
Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda AkihiroSuda added this to the v1.2.1 milestone Jul 18, 2025
@AkihiroSuda AkihiroSuda linked an issue Jul 18, 2025 that may be closed by this pull request
@jandubois jandubois merged commit dfecd3e into lima-vm:release/1.2 Jul 20, 2025
54 of 55 checks passed
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.

v1.2.1 planning
5 participants