google / google/gvisor

ICMP bind errors do not match Linux

Open
#6,021 5 comments 0 reactions 0 assignees View on GitHub
area: networking revived type: bug
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.