gvisor icon indicating copy to clipboard operation
gvisor copied to clipboard

ICMP bind errors do not match Linux

Open puradox opened this issue 4 years ago • 5 comments

Description

While creating a syscall test for ICMP socket binding, I found a discrepancy with Linux.

When binding an ICMP socket with an IPv6 address, bind() returns EINVAL whereas Linux returns EAFNOSUPPORT.

Steps to reproduce

Run test //third_party/gvisor/test/syscalls:ping_socket_test_runsc_kvm_vfs2 with the if statement linked to this bug removed.

puradox avatar May 18 '21 22:05 puradox

We also return EADDRNOTAVAIL instead of EINVAL when binding to multicast addresses

ghananigans avatar Sep 15 '21 16:09 ghananigans

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

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

This issue has been closed due to lack of activity.

github-actions[bot] avatar Dec 13 '23 00:12 github-actions[bot]

There are TODOs still referencing this issue:

  1. test/syscalls/linux/ping_socket.cc:549: Remove want_gvisor from all the

Search TODO

github-actions[bot] avatar Dec 14 '23 00:12 github-actions[bot]

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

github-actions[bot] avatar Apr 13 '24 00:04 github-actions[bot]