[Bug 199891] 'vmstat -i' output is wrong on RPi
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun May 3 16:21:01 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199891
Bug ID: 199891
Summary: 'vmstat -i' output is wrong on RPi
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: jiashiun at gmail.com
Created attachment 156288
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=156288&action=edit
original 'vmstat -i' output on RPi
'vmstat -i' output is wrong on RPi. (See attached file)
The cause is in sufficient check for end of intrnames in dointr(). It only
looks for zero-length string as end of buffer. But on every architecture
FreeBSD supports, intrnames are all initialized to array of strings of 19
spaces plus NUL in kernel. The check will always make intrname run over the end
of buffer.
x86 does not see this probably due to implementation of memory allocator. On
arch like RPi, vmstat did not encounter immediate consecutive \0s to be
intepreted as zero-length string. Thus it treated data after the buffer as long
interrupt names.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list