WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] bug: slab corruption (net backend?)


On 7 Jul 2005, at 12:35, Gerd Knorr wrote:

Looks like xen allocates via kmem_cache_alloc() and releases via
kfree(), which is illegal according to a comment in mm/slab.c

Seems to work nevertheless, but maybe it's pure luck and we'll
hit a bug sooner or later.  I'll try fix this and see if the
problem goes away then ...

I think this works because kfree calls kmem_cache_free after finding the cache pointer it has squirreled away. Where do we do this in XenLinux? Maybe there was a reason I did it that way. :-)

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel