kernel: mfree: m->m_nextpkt != NULL

Jeroen Ruigrok/asmodai asmodai at
Tue Sep 20 02:15:08 PDT 2005

-On [20050920 10:02], Dave Hayes (dave at xxxxxxxxxxx) wrote:
>What does this Subject mean? 

I am by no means a network stack guru, but it seems mfree was trying to free
a mbuf cluster, but it still has a next packet/cluster pointer, meaning that
it has a child and thus it is unacceptable to free it.

I think it comes from:


one of the two KKASSERT(m->m_nextpkt == NULL);

Meaning it tripped either in sbappendstream() or sbappendaddr().

So that means there's still a code path somewhere that comes to either of
these functions with a chained mbuf.

But that's my reading of it.

Jeroen Ruigrok van der Werven <asmodai(at)> / asmodai / kita no mono
Free Tibet! |   |
Losing your life is not the only way to die...

More information about the Kernel mailing list