[Bug 244584] netstat -sz clears igmp version in kernel memory. Subsequent netstat -s reports igmp version error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 3 22:05:45 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244584

            Bug ID: 244584
           Summary: netstat -sz clears igmp version in kernel memory.
                    Subsequent netstat -s reports igmp version error
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: ghuckriede at blackberry.com

Overview:
When netstat clears the socket stats it causes the igmp version to be cleared
also.  This causes the display of the igmp stats to display an error.


Steps to Reproduce:
# netstat -sz
# netstat -sp igmp


Actual Results:
After running netstat with "-sz" any subsequent display of the igmp protocol
will result in the following error messages being displayed
netstat: igmp_stats: version mismatch (0 != 3)


Expected Results:
No error message after clearing stats


Build Date & Hardware:
12.0
FreeBSD FreeBSD_12.0_ghuckriede 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC
 amd64

HEAD
uname -a
FreeBSD FreeBSD_head_ghuckriede 13.0-CURRENT FreeBSD 13.0-CURRENT #2 r358592:
Tue Mar  3 15:38:05 EST 2020    
ghuckriede at FreeBSD_head_ghuckriede:/usr/obj/usr/src/amd64.amd64/sys/GENERIC 
amd64


Additional Information:
Using a debugger shows that the entire igmpstat structure is getting cleared
after the netstat -sz command.

The define for igmpstat is here
https://svnweb.freebsd.org/base/head/sys/netinet/igmp.c?revision=358013&view=markup&pathrev=358013#l234

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list