Summary: | netstat -g IPv4 Virtual Interface Table data wrong | ||
---|---|---|---|
Product: | Base System | Reporter: | Ozkan KIRIK <ozkan.kirik> |
Component: | kern | Assignee: | Bjoern A. Zeeb <bz> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | bz |
Priority: | --- | Keywords: | regression |
Version: | 12.1-STABLE | Flags: | bz:
mfc-stable12?
bz: mfc-stable11- |
Hardware: | Any | ||
OS: | Any | ||
See Also: |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246629 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206583 |
Description
Ozkan KIRIK
2020-05-21 10:21:45 UTC
There is no problem FreeBSD 12.1-p5 Latest SVN base/stable/12 kernel produces this problem. Problem started after this commit: https://svnweb.freebsd.org/base?view=revision&revision=356621 Notify committer of r356621. problem still exists on FreeBSD stable/12, even on 12.2 Sorry, the apparent Cc: on a bug report never reached my personal attention. Confirmed it. Not sure it'll make 12.2 anymore; really sorry about it. I'll have a look and fix this; I guess quickly switching this to SYSCTL_PROC will do; need to test stuff again with mrouting however as well. A commit references this bug: Author: bz Date: Sun Oct 11 00:01:00 UTC 2020 New revision: 366623 URL: https://svnweb.freebsd.org/changeset/base/366623 Log: ip_mroute: fix the viftable export sysctl It seems that in r354857 I got more than one thing wrong. Convert the SYSCTL_OPAQUE to a SYSCTL_PROC to properly export the these days allocated and not longer static per-vnet viftable array. This fixes a problem with netstat -g which would show bogus information for the IPv4 Virtual Interface Table. PR: 246626 Reported by: Ozkan KIRIK (ozkan.kirik gmail.com) MFC after: 3 days Changes: head/sys/netinet/ip_mroute.c A commit references this bug: Author: bz Date: Thu Nov 5 13:43:07 UTC 2020 New revision: 367381 URL: https://svnweb.freebsd.org/changeset/base/367381 Log: MFC r366623: ip_mroute: fix the viftable export sysctl It seems that in r354857 I got more than one thing wrong. Convert the SYSCTL_OPAQUE to a SYSCTL_PROC to properly export the these days allocated and not longer static per-vnet viftable array. This fixes a problem with netstat -g which would show bogus information for the IPv4 Virtual Interface Table. PR: 246626 Changes: _U stable/12/ stable/12/sys/netinet/ip_mroute.c Thanks a lot for reporting and tracking the commit down! Sorry that the fix was delayed. Thank you |