tun + bpf = busted

From: Tim Robbins <tjr_at_freebsd.org>
Date: Tue, 11 Nov 2003 20:27:13 +1100
With INVARIANTS enabled, I get a kernel panic when I run tcpdump on a
"tun" interface. The message is "tunoutput: attempted use of a free mbuf!".
This occurs because tun creates temporary mbufs on the stack and does
not initialize m_flags, so it may or may not have the M_FREELIST bit set
depending on what junk is on the stack. This seems to affect a whole
bunch of other network drivers too.


Tim
Received on Tue Nov 11 2003 - 00:27:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:28 UTC