Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764298AbXFRRic (ORCPT ); Mon, 18 Jun 2007 13:38:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759391AbXFRRiY (ORCPT ); Mon, 18 Jun 2007 13:38:24 -0400 Received: from wa-out-1112.google.com ([209.85.146.180]:51896 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759091AbXFRRiX (ORCPT ); Mon, 18 Jun 2007 13:38:23 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qKf9VHzeymwixpK8OvvetcgYmfdP4O2z4VZcrsW790vJlTooYXsRgggqtikc4xM6VySgYTLrnduFDt/n7A9t4V+BD/jfd3xA6pgnmJ08EAD5rkzReQAQhx2GiAK4lvQpo1+IcQI3aHZI4KBK0clJSM1zkJrfP79nXdLBQmrQbwE= Message-ID: <6bffcb0e0706181038j107e2357o89c525261cf671a@mail.gmail.com> Date: Mon, 18 Jun 2007 19:38:22 +0200 From: "Michal Piotrowski" To: "Christoph Lameter" Subject: Re: [patch 00/26] Current slab allocator / SLUB patch queue Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Pekka Enberg" , suresh.b.siddha@intel.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070618095838.238615343@sgi.com> <46767346.2040108@googlemail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2123 Lines: 56 On 18/06/07, Christoph Lameter wrote: > On Mon, 18 Jun 2007, Michal Piotrowski wrote: > > > Result: > > > > [ 212.247759] WARNING: at lib/vsprintf.c:280 vsnprintf() > > [ 212.253263] [] dump_trace+0x63/0x1eb > > [ 212.259042] [] show_trace_log_lvl+0x1a/0x2f > > [ 212.266672] [] show_trace+0x12/0x14 > > [ 212.271622] [] dump_stack+0x16/0x18 > > [ 212.276663] [] vsnprintf+0x6b/0x48c > > [ 212.281325] [] scnprintf+0x20/0x2d > > [ 212.286707] [] bitmap_scnlistprintf+0xa8/0xec > > [ 212.292508] [] list_locations+0x24c/0x2a2 > > [ 212.298241] [] alloc_calls_show+0x1f/0x26 > > [ 212.303459] [] slab_attr_show+0x1c/0x20 > > [ 212.309469] [] sysfs_read_file+0x94/0x105 > > [ 212.315519] [] vfs_read+0xcf/0x158 > > [ 212.320215] [] sys_read+0x3d/0x72 > > [ 212.327539] [] syscall_call+0x7/0xb > > [ 212.332203] [] 0xb7f74410 > > [ 212.336229] ======================= > > > > Unfortunately, I don't know which file was cat'ed > > The dump shows that it was alloc_calls. But the issue is not related to > this patchset. > > Looks like we overflowed the buffer available for /sys output. The calls > in list_location to format cpulist and node lists attempt to allow very > long lists by trying to calculate how many bytes are remaining in the > page. If we are beyond the space left over by them then we may pass a > negative size to the scn_printf functions. > > So we need to check first if there are enough bytes remaining before > doing the calculation of how many remaining bytes can be used to > format these lists. > > Does this patch fix the issue? > Unfortunately no. AFAIR I didn't see it in 2.6.22-rc4-mm2 Regards, Michal -- LOG http://www.stardust.webpages.pl/log/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/