kernel: mfree: m->m_nextpkt != NULL

Jeroen Ruigrok/asmodai asmodai at in-nomine.org
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:

src/sys/kern/uipc_socket2.c

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)wxs.nl> / asmodai / kita no mono
Free Tibet! http://www.savetibet.org/ | http://www.andf.info/
http://www.tendra.org/   | http://www.in-nomine.org/
Losing your life is not the only way to die...





More information about the Kernel mailing list