From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from m3.gw.fujitsu.co.jp ([10.0.50.73]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id m9L9QIxD000790 for (envelope-from kamezawa.hiroyu@jp.fujitsu.com); Tue, 21 Oct 2008 18:26:18 +0900 Received: from smail (m3 [127.0.0.1]) by outgoing.m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 3F02B2AC02E for ; Tue, 21 Oct 2008 18:26:18 +0900 (JST) Received: from s7.gw.fujitsu.co.jp (s7.gw.fujitsu.co.jp [10.0.50.97]) by m3.gw.fujitsu.co.jp (Postfix) with ESMTP id E05C912C049 for ; Tue, 21 Oct 2008 18:26:17 +0900 (JST) Received: from s7.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s7.gw.fujitsu.co.jp (Postfix) with ESMTP id C97B61DB8043 for ; Tue, 21 Oct 2008 18:26:17 +0900 (JST) Received: from ml13.s.css.fujitsu.com (ml13.s.css.fujitsu.com [10.249.87.103]) by s7.gw.fujitsu.co.jp (Postfix) with ESMTP id 892961DB803F for ; Tue, 21 Oct 2008 18:26:17 +0900 (JST) Date: Tue, 21 Oct 2008 18:25:51 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [memcg BUG] unable to handle kernel NULL pointer derefence at 00000000 Message-Id: <20081021182551.0158a47b.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <48FD9D30.2030500@cn.fujitsu.com> References: <20081017194804.fce28258.nishimura@mxp.nes.nec.co.jp> <20081017195601.0b9abda1.nishimura@mxp.nes.nec.co.jp> <6599ad830810201253u3bca41d4rabe48eb1ec1d529f@mail.gmail.com> <20081021101430.d2629a81.kamezawa.hiroyu@jp.fujitsu.com> <48FD6901.6050301@linux.vnet.ibm.com> <20081021143955.eeb86d49.kamezawa.hiroyu@jp.fujitsu.com> <48FD74AB.9010307@cn.fujitsu.com> <20081021155454.db6888e4.kamezawa.hiroyu@jp.fujitsu.com> <48FD7EEF.3070803@cn.fujitsu.com> <20081021161621.bb51af90.kamezawa.hiroyu@jp.fujitsu.com> <48FD82E3.9050502@cn.fujitsu.com> <20081021171801.4c16c295.kamezawa.hiroyu@jp.fujitsu.com> <48FD943D.5090709@cn.fujitsu.com> <20081021175735.0c3d3534.kamezawa.hiroyu@jp.fujitsu.com> <48FD9D30.2030500@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Li Zefan Cc: balbir@linux.vnet.ibm.com, Paul Menage , Daisuke Nishimura , linux-mm@kvack.org, mel@csn.ul.ie List-ID: On Tue, 21 Oct 2008 17:13:20 +0800 Li Zefan wrote: > KAMEZAWA Hiroyuki wrote: > > On Tue, 21 Oct 2008 16:35:09 +0800 > > Li Zefan wrote: > > > >> KAMEZAWA Hiroyuki wrote: > >>> On Tue, 21 Oct 2008 15:21:07 +0800 > >>> Li Zefan wrote: > >>>> dmesg is attached. > >>>> > >>> Thanks....I think I caught some. (added Mel Gorman to CC:) > >>> > >>> NODE_DATA(nid)->spanned_pages just means sum of zone->spanned_pages in node. > >>> > >>> So, If there is a hole between zone, node->spanned_pages doesn't mean > >>> length of node's memmap....(then, some hole can be skipped.) > >>> > >>> OMG....Could you try this ? > >>> > >> No luck, the same bug still exists. :( > >> > > This is a little fixed one.. > > > > I tried the patch, but it doesn't solve the problem.. > Hmm.. Can you catch "pfn" of troublesome page_cgroup ? By patch like this ? == Index: linux-2.6.27/mm/memcontrol.c =================================================================== --- linux-2.6.27.orig/mm/memcontrol.c +++ linux-2.6.27/mm/memcontrol.c @@ -544,6 +544,10 @@ static int mem_cgroup_charge_common(stru goto done; } + + printk(KERN_DEBUG "pc %p pc->page %p page %p pfn %lx\n", + pc, pc->page, page, page_to_pfn(page)); + BUG_ON(!pc->page); pc->mem_cgroup = mem; /* * If a page is accounted as a page cache, insert to inactive list. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org