⬢ DragonFlyBSD Kernel Audit
DF-3406 / run.log
← back to finding ↓ download raw
DF-3406 baseline -- stock INVARIANTS kernel #0 (unit tap0, run as root)

$ netstat -m | head -5
7/146632 mbufs in use (current/max):
256/33296 mbuf clusters in use (current/max)
0/8260 mbuf jumbo clusters in use (current/max)
	263 mbufs and mbuf clusters allocated to data
515 Kbytes allocated to network (0% of mb_map in use)

$ /root/tapleak 100000
writes: ok=0 efault=100000 (each EFAULT leaked one m_get mbuf)

$ netstat -m | head -5
100007/146632 mbufs in use (current/max):
256/33296 mbuf clusters in use (current/max)
0/8260 mbuf jumbo clusters in use (current/max)
	100263 mbufs and mbuf clusters allocated to data
50515 Kbytes allocated to network (36% of mb_map in use)

linearity + persistence:
$ /root/tapleak 1        (one more EFAULT write)
writes: ok=0 efault=1
$ netstat -m | head -2
100008/146632 mbufs in use (current/max):
(after 30s idle: 100008 -- leaked mbufs never return)