[go] net: treat EPERM/EACCES in IPv6 probe as supported

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Mar 3, 2026, 7:23:43 PM (2 days ago) Mar 3
to Ravi Sastry Kadali, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Damien Neil, Nicholas Husin, Nicholas Husin, Dmitri Shuralyov, Michael Pratt, Ian Lance Taylor, golang-co...@googlegroups.com

Gopher Robot submitted the change

Unreviewed changes

8 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
net: treat EPERM/EACCES in IPv6 probe as supported

When a BPF/seccomp filter denies the bind in the IPv6 capability
probe with EPERM or EACCES, the probe incorrectly reports IPv6 as
unsupported even though socket creation and setsockopt succeeded.
This causes Listen on [::] to silently fall back to IPv4-only.

Treat EPERM/EACCES from the probe bind as "supported" since the
successful socket and setsockopt already confirm kernel capability.

Fixes #77430
Change-Id: Ie1164a3e835521dc441387af1c485a3d15e2e2d9
Auto-Submit: Damien Neil <dn...@google.com>
Reviewed-by: Damien Neil <dn...@google.com>
Reviewed-by: Ravi Sastry Kadali <ravis...@gmail.com>
Reviewed-by: Nicholas Husin <n...@golang.org>
Reviewed-by: Nicholas Husin <hu...@google.com>
Files:
  • M src/net/ipsock_posix.go
  • M src/net/ipsock_test.go
Change size: S
Delta: 2 files changed, 28 insertions(+), 1 deletion(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Ravi Sastry Kadali, +2 by Nicholas Husin, +1 by Damien Neil, +1 by Nicholas Husin
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Ie1164a3e835521dc441387af1c485a3d15e2e2d9
Gerrit-Change-Number: 743080
Gerrit-PatchSet: 11
Gerrit-Owner: Ravi Sastry Kadali <ravis...@gmail.com>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
Gerrit-Reviewer: Ravi Sastry Kadali <ravis...@gmail.com>
Gerrit-Reviewer: Sean Liao <se...@liao.dev>
Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
Gerrit-CC: Michael Pratt <mpr...@google.com>
Gerrit-CC: Richlan Chavis <richlan...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages