From owner-cvs-all@FreeBSD.ORG Mon Aug 29 20:18:47 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B176D16A420 for ; Mon, 29 Aug 2005 20:18:47 +0000 (GMT) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E79F43D77 for ; Mon, 29 Aug 2005 20:18:42 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 88805 invoked from network); 29 Aug 2005 19:56:49 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 29 Aug 2005 19:56:49 -0000 Message-ID: <43136DAC.4318A183@freebsd.org> Date: Mon, 29 Aug 2005 22:18:52 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200508291958.j7TJwvd0093355@repoman.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 20:18:47 -0000 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