From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752611AbXCHRq5 (ORCPT ); Thu, 8 Mar 2007 12:46:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752612AbXCHRq5 (ORCPT ); Thu, 8 Mar 2007 12:46:57 -0500 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:46334 "EHLO netops-testserver-4.corp.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752611AbXCHRq4 (ORCPT ); Thu, 8 Mar 2007 12:46:56 -0500 Date: Thu, 8 Mar 2007 09:46:53 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Mel Gorman cc: akpm@osdl.org, Marcelo Tosatti , linux-kernel@vger.kernel.org, linux-mm@kvack.org, mpm@selenic.com, Manfred Spraul Subject: Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4 In-Reply-To: Message-ID: References: <20070307023502.19658.39217.sendpatchset@schroedinger.engr.sgi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Mar 2007, Mel Gorman wrote: > Brought up 4 CPUs > Node 0 CPUs: 0-3 > mm/memory.c:111: bad pud c0000000050e4480. Lower bits must be clear right? Looks like the pud was released and then reused for a 64 byte cache or so. This is likely a freelist pointer that slub put there after allocating the page for the 64 byte cache. Then we tried to use the pud. > migration_cost=0,1000 > *** SLUB: Redzone Inactive check fails in kmalloc-64@c0000000050de0f0 Slab > c000000000756090 > offset=240 flags=5000000000c7 inuse=3 freelist=c0000000050de0f0 > Bytes b4 c0000000050de0e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > ................ > Object c0000000050de0f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > ................ > Object c0000000050de100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > ................ > Object c0000000050de110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > ................ > Object c0000000050de120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > ................ > Redzone c0000000050de130: 00 00 00 00 00 00 00 00 > ........ FreePointer c0000000050de138: 0000000000000000 Data overwritten after free or after slab was allocated. So this may be the same issue. pud was zapped after it was freed destroying the poison of another object in the 64 byte cache. Hmmm.. Maybe I should put the pad checks before the object checks. That way we detect that the whole slab was corrupted and do not flag just a single object.