Kldunload panics in uma_zfree()
Joseph Koshy
jkoshy at FreeBSD.ORG
Fri Jun 10 17:08:02 GMT 2005
I've been seeing this for a few days on a recent -current:
# kldload MODULE # hwpmc. vkbd, etc.
# kldunload MODULE
leads to a panic on the lines of:
"uma: Freed item 0xc1af0260 did not belong to zone mt_zone\n"
The enclosed patch appears to fix the panic. Could someone
review?
Index: kern_malloc.c
===================================================================
RCS file: /cvs/FreeBSD/src/sys/kern/kern_malloc.c,v
retrieving revision 1.140
diff -u -r1.140 kern_malloc.c
--- kern_malloc.c 29 May 2005 13:38:07 -0000 1.140
+++ kern_malloc.c 10 Jun 2005 16:45:51 -0000
@@ -616,7 +616,7 @@
} else
kmemstatistics = mtp->ks_next;
mtx_unlock(&malloc_mtx);
- uma_zfree(mt_zone, mtp);
+ uma_zfree(mt_zone, mtip);
}
static int
Regards,
Koshy
<jkoshy at freebsd.org>
More information about the freebsd-current
mailing list