Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: drop NetBSD kernel bug sysmon workaround fixed in NetBSD 9.2 #46495

prattmic opened this issue Jun 1, 2021 · 3 comments

runtime: drop NetBSD kernel bug sysmon workaround fixed in NetBSD 9.2 #46495

prattmic opened this issue Jun 1, 2021 · 3 comments


Copy link

@prattmic prattmic commented Jun 1, 2021

#42515 identified a NetBSD kernel bug (kern/50094) affecting the Go runtime. introduced a (rather subpar) workaround for this issue.

@jdolecek-zz notes that the fix for this bug is included in NetBSD 9.2, making the workaround unnecessary.

Ideally we just drop, but this depends on our support policy for NetBSD. states that we currently support NetBSD 7+, but not what the official policy is. (OTOH, e.g., OpenBSD is explicitly supported only for the two most recent releases:

Based on my reading of, my interpretation would be that Go should support NetBSD 8 and 9 (and presumably drop 8 when 10 is released?). Do others agree? If so, we should probably add a version check to the workaround and keep it until NetBSD 9 is dropped.

cc @bsiegert @dmitshur @mknyszek

Copy link

@dmitshur dmitshur commented Jun 1, 2021

I agree we should find a support policy that automatically drops support for old NetBSD releases when new ones are made, similar to how OpenBSD has one.

CC @golang/release.

Copy link

@tklauser tklauser commented Jun 3, 2021

Another option to already disable the workaround for NetBSD 9.2 while still retaining compatibility with older NetBSD versions would be to check sysctlInt([]uint32{_CTL_KERN, _KERN_OSREV}) in runtime.osinit and disable the fix if that value is >= 902000000.

I've sent implementing that.

Copy link

@gopherbot gopherbot commented Jun 3, 2021

Change mentions this issue: runtime: skip sysmon workaround on NetBSD >= 9.2

@cherrymui cherrymui added this to the Backlog milestone Jun 7, 2021
gopherbot pushed a commit that referenced this issue Aug 16, 2021
Detect the NetBSD version in osinit and only enable the workaround for
the kernel bug identified in #42515 for NetBSD versions older than 9.2.

For #42515
For #46495

Change-Id: I808846c7f8e47e5f7cc0a2f869246f4bd90d8e22
Trust: Tobias Klauser <>
Trust: Benny Siegert <>
Run-TryBot: Tobias Klauser <>
Reviewed-by: Michael Pratt <>
Reviewed-by: Ian Lance Taylor <>
TryBot-Result: Go Bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants