DragonFly BSD
DragonFly kernel List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: kernel: mfree: m->m_nextpkt != NULL


From: Jeroen Ruigrok/asmodai <asmodai@xxxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 11:09:47 +0200

-On [20050920 10:02], Dave Hayes (dave@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...



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]