UMA mbuf allocator use after free detection

From: Mike Silbersack <silby_at_silby.com>
Date: Wed, 15 Jun 2005 02:49:08 -0500 (CDT)
The attached patch uses the trash ctor/dtor routines from uma_dbg to help 
detect use after free conditions for mbufs, and mbuf clusters.  It doesn't 
seem to cause any unexpected problems with xl, ath, or wi, but it does 
cause issues with iwi.  That is good, because iwi has some problems that 
need to be resolved.

I'd appreciate it if people could apply the patch and see if it causes any 
panics or unexpected behavior on their systems.  If all mbuf usage is 
correct, there should be no visible effect.

This code is of course only active when you have INVARIANTS compiled in so 
that it does not slow down performance otherwise.

Thanks,

Mike "Silby" Silbersack
Received on Wed Jun 15 2005 - 05:49:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:36 UTC