From: Keir Fraser Subject: Re: bug: slab corruption (net backend?) Date: Thu, 7 Jul 2005 13:05:46 +0100 Message-ID: References: <20050707094132.GA29339@bytesex> <20050707113514.GA30556@bytesex> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050707113514.GA30556@bytesex> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gerd Knorr Cc: xen-devel@lists.xensource.com, Steven Hand List-Id: xen-devel@lists.xenproject.org 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