gvisor icon indicating copy to clipboard operation
gvisor copied to clipboard

Binding to IPv6 multicast from ICMPv6 sockets returns EADDRNOTAVAIL

Open puradox opened this issue 4 years ago • 2 comments

Description

While writing a PacketImpact test for ICMP sockets, I found a discrepancy with Linux.

When binding to the following IPv6 multicast addresses,

  • ff01::1
  • ff02::1
  • ff02::2

Linux returns the EINVAL error code, but gVisor returns the EADDRNOTAVAIL error code.

Steps to reproduce

  1. Run test //third_party/gvisor/test/packetimpact/tests:icmp_bind_native_test
  2. Observe success from native Linux
  3. Run test //third_party/gvisor/test/packetimpact/tests:icmp_bind_netstack_test
  4. Observe the following failures from gVisor:
--- FAIL: TestICMPSocketBind/IPv6MulticastInterfaceLocalAllNodes (0.00s)
    third_party/gvisor/test/packetimpact/tests/icmp_bind_test.go:127: got dut.BindWithErrno(_, _, 9, ff01::1) = (_, cannot assign requested address), want (_, invalid argument)
--- FAIL: TestICMPSocketBind/IPv6MulticastLinkLocalAllRouters (0.00s)
    third_party/gvisor/test/packetimpact/tests/icmp_bind_test.go:127: got dut.BindWithErrno(_, _, 10, ff02::2) = (_, cannot assign requested address), want (_, invalid argument)
--- FAIL: TestICMPSocketBind/IPv6MulticastLinkLocalAllNodes (0.00s)
    third_party/gvisor/test/packetimpact/tests/icmp_bind_test.go:127: got dut.BindWithErrno(_, _, 13, ff02::1) = (_, cannot assign requested address), want (_, invalid argument)

puradox avatar May 07 '21 18:05 puradox

A friendly reminder that this issue had no activity for 120 days.

github-actions[bot] avatar Sep 14 '23 00:09 github-actions[bot]

Hi @puradox can I look into it ? I would love to work on in this !. Thanks

PriyanshGodhani22 avatar Apr 20 '25 07:04 PriyanshGodhani22

Hello! We (me and @nicolasgarza) are students at UT Austin working on issues for our virtualization class. Could we get this ticket assigned to us? Thank you!

uzairnawaz avatar Nov 10 '25 23:11 uzairnawaz

PRs are welcome! I don't think anyone is working on this either since there has been no movement in months.

ayushr2 avatar Nov 11 '25 00:11 ayushr2