cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c

Andre Oppermann andre at freebsd.org
Mon Aug 29 20:18:47 GMT 2005


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


More information about the cvs-src mailing list