Re: Debugging Slab Available

David S. Miller (davem@jenolan.rutgers.edu)
Thu, 29 May 1997 14:34:36 -0400


Date: Wed, 28 May 1997 21:51:45 +0100 (BST)
From: Mark Hemment <markhe@nextd.demon.co.uk>

I've made the red-zoning, and object poisioning, more reliable and
on by default for the general-size caches. This should help catch
any mis-uses of slab allocated memory.

Unfortunately, it will not say who is mis-behaving, but it is at
least a start. Look for warnings in your message log file.

Source is available from http://www.nextd.demon.co.uk It is a
simple drop-in replacement for mm/slab.c. Should work for kernels
2.1.38->2.1.41

Are there any other worthwhile changes in here Mark? If so I'd like
to merge it in, but of course with the debugging stuff disabled by
default instead.