From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753495Ab1GVGLA (ORCPT ); Fri, 22 Jul 2011 02:11:00 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:61127 "EHLO mail-fx0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752558Ab1GVGK7 (ORCPT ); Fri, 22 Jul 2011 02:10:59 -0400 Date: Fri, 22 Jul 2011 08:10:54 +0200 From: Tejun Heo To: Shreshtha Cc: linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: Kernel Oops on enabling CONFIG_LOCK_STAT Message-ID: <20110722061054.GA2622@htj.dyndns.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (cc'ing Andrew. Thanks for forwarding. :) Hi, On Tue, Jul 19, 2011 at 06:59:36PM +0530, Shreshtha wrote: > After enabling CONFIG_LOCK_STAT, kernel Oops with following - How reproducible is the problem? Can you please attach .config? > <4>WARNING: at /home/kernel/mm/percpu-vm.c:181 pcpu_unmap_pages+0x44/0x10c() > Modules linked in: > Backtrace: > [] (dump_backtrace+0x0/0xf8) from [] (dump_stack+0x18/0x1c) > r7:00000000 r6:c028f6e0 r5:c0848bd2 r4:000000b5 > [] (dump_stack+0x0/0x1c) from [] > (warn_slowpath_common+0x54/0x6c) > [] (warn_slowpath_common+0x0/0x6c) from [] > (warn_slowpath_null+0x24/0x2c) > r9:df801fa0 r8:c1a27180 r7:00000000 r6:00000001 r5:00000167 > r4:00000167 > [] (warn_slowpath_null+0x0/0x2c) from [] > (pcpu_unmap_pages+0x44/0x10c) > [] (pcpu_unmap_pages+0x0/0x10c) from [] > (pcpu_populate_chunk+0x250/0x314) > [] (pcpu_populate_chunk+0x0/0x314) from [] > (pcpu_alloc+0x1fc/0x2f0) > [] (pcpu_alloc+0x0/0x2f0) from [] (__alloc_percpu+0x14/0x18) > [] (__alloc_percpu+0x0/0x18) from [] > (__percpu_counter_init+0x48/0xa4) > [] (__percpu_counter_init+0x0/0xa4) from [] > (mmap_init+0x28/0x34) > r7:c0913d7c r6:c0035074 r5:c0977ca0 r4:00000000 > [] (mmap_init+0x0/0x34) from [] (proc_caches_init+0xc8/0xf0) > [] (proc_caches_init+0x0/0xf0) from [] > (start_kernel+0x204/0x288) > r5:c0974240 r4:c0f2b54c > [] (start_kernel+0x0/0x288) from [<00008080>] (0x8080) > r5:c0975284 r4:10c53c7d Hrmm... so it's pcpu_populate_chunk() failure path. Can you please attach full kernel log? Attaching full kernel log and including a bit of hardware details is generally a good idea when reporting a bug. It's most likely there's a bug in the code which rolls back from partial allocation after encountering alloc failure in the middle. I'll take a deeper look there and report what I find. Thank you. -- tejun