From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Knorr Subject: Re: bug: slab corruption (net backend?) Date: Thu, 7 Jul 2005 14:22:42 +0200 Message-ID: <20050707122242.GA31229@bytesex> References: <20050707094132.GA29339@bytesex> <20050707113514.GA30556@bytesex> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, Steven Hand List-Id: xen-devel@lists.xenproject.org > >Looks like xen allocates via kmem_cache_alloc() and releases via > >kfree(), which is illegal according to a comment in mm/slab.c Actually this isn't in arch/xen code, so native linux probably does the same. > I think this works because kfree calls kmem_cache_free after finding > the cache pointer it has squirreled away. Hmm, maybe the comment is outdated then ... Gerd -- panic("it works"); /* avoid being flooded with debug messages */