Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2000 00:00:03 -0700 (PDT)
From:      David Malone <dwmalone@maths.tcd.ie>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/18471: Checking freeing of mbufs. 
Message-ID:  <200005100700.AAA08664@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/18471; it has been noted by GNATS.

From: David Malone <dwmalone@maths.tcd.ie>
To: Jin Guojun (FTG staff) <jin@george.lbl.gov>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/18471: Checking freeing of mbufs. 
Date: Wed, 10 May 2000 07:54:54 +0100

 > > It would be better if the kernel paniced at the time of the second
 > > free, as opposed to some time later when the entry which has been
 > > freed twice gets reused while still in use!
 
 > I disagree to panic at this point. The better fixing is just printing
 > out some error message and do nothing for refreeing code. Whoever writes
 > such driver code will know what happens.
 
 That wouldn't really be consistant with the other reference counters
 in the kernel (vnode reference counters would be the main example
 in my mind). At the stage when this happens the kernel has definitely
 done something wrong - possibly having corrupted in data. So a
 panic seems apropriate.
 
 It isn't clear to me what useful message you could print to help
 diganose the problem. Neither the address, nor the contents of the
 mbuf would be that useful. A stack trace would probably be useful
 - but a kernel dump would definitely be. Maybe I've missed something,
 but...
 
 	David.
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005100700.AAA08664>