Skip to content

Conversation

@mp2720
Copy link

@mp2720 mp2720 commented Dec 20, 2025

Ensure the IP slice is properly sized before copying address bytes when reusing objects from the udpAddrPool. Previously, copying before resizing could truncate IPv6 addresses and leave leftover bytes from previous uses, causing datagrams to be sent to incorrect addresses.

The bug is easily reproducible in a configuration where both v6 and v4 endpoints are used.

This change also fixes the "not too sticky" test (but others from tests/netns.sh still seem to be broken).

Ensure the IP slice is properly sized before copying address bytes when reusing
objects from the udpAddrPool. Previously, copying before resizing could
truncate IPv6 addresses and leave leftover bytes from previous uses, causing
datagrams to be sent to incorrect addresses.

Signed-off-by: Salomakhin Timur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant