Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2005 22:18:52 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c
Message-ID:  <43136DAC.4318A183@freebsd.org>
References:  <200508291958.j7TJwvd0093355@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Andre Oppermann wrote:
> 
> andre       2005-08-29 19:58:56 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/sys              mbuf.h
>     sys/kern             uipc_mbuf.c
>   Log:
>   Add m_sanity(struct mbuf *m, int sanitize) to do some heavy sanity
>   checking on mbuf's and mbuf chains.  Set sanitize to 1 to garble
>   illegal things and have them blow up later when used/accessed.
> 
>   m_sanity()'s main purpose is for KASSERT()'s and debugging of non-
>   kosher mbuf manipulation (of which we have a number of).

A kernel with m_santiy() as the first thing in ip_output() doesn't
survive the first outgoing TCP connection.

There are a lot of strange and sometimes right out incorrect mbuf
(ab)uses in the kernel.

-- 
Andre



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43136DAC.4318A183>