From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison overwritten Date: Fri, 18 Jul 2008 09:48:21 -0500 Message-ID: <4880AD35.6080506@linux-foundation.org> References: <20080717214222.GA29449@elte.hu> <20080718054626.GA3338@2ka.mipt.ru> <84144f020807180202l6c703234ic3a2b57e73a1d89a@mail.gmail.com> <20080718101624.GA7107@2ka.mipt.ru> <84144f020807180744w40677f6dm790d2caee3ca0d15@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Evgeniy Polyakov , Ingo Molnar , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Vegard Nossum , "Rafael J. Wysocki" To: Pekka Enberg Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:38168 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111AbYGROtC (ORCPT ); Fri, 18 Jul 2008 10:49:02 -0400 In-Reply-To: <84144f020807180744w40677f6dm790d2caee3ca0d15@mail.gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: Pekka Enberg wrote: > Yeah. See the free_debug_processing() function in mm/slub.c for > details (the on_freelist() part). However, if you look at slab_free() > you can see that in the SLUB fast-path we don't do any of these > debugging checks. So you can end up with slab corruption without a > nice error message. The slub fastpath is not used when debugging is enabled. Without debugging on double frees will typically corrupt the freepointer. So you get an invalid pointer reference in __slab_free.