Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756565AbXEFVE3 (ORCPT ); Sun, 6 May 2007 17:04:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756563AbXEFVE2 (ORCPT ); Sun, 6 May 2007 17:04:28 -0400 Received: from wr-out-0506.google.com ([64.233.184.225]:19688 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756555AbXEFVE1 (ORCPT ); Sun, 6 May 2007 17:04:27 -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=iQK5yfI8sIC2AP9pz5rsYrEDYtf7yetDJvHu5BUjGbTetd466olskrHy0F20Nv9+OBMe5A7buszDz+ojPHgqa+xU5vsJ/Uywq8naoZQghQkZSx++RLC6SID/yz+UwbdpuuForhmeu/ug0fP/Gb+ftKwnlbiYml7pxjVP6fy/46k= Message-ID: Date: Mon, 7 May 2007 02:34:26 +0530 From: "Satyam Sharma" To: "Andrew Morton" Subject: Re: 2.6.21-mm1 Cc: "Simon Arlott" , linux-kernel@vger.kernel.org, linux-dvb@linuxtv.org In-Reply-To: <20070506130821.b6bed03b.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070505014955.8f3990b5.akpm@linux-foundation.org> <463DED69.4020507@simon.arlott.org.uk> <20070506130821.b6bed03b.akpm@linux-foundation.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2628 Lines: 48 On 5/7/07, Andrew Morton wrote: > On Sun, 06 May 2007 15:59:53 +0100 Simon Arlott wrote: > > > On 05/05/07 09:49, Andrew Morton wrote: > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21/2.6.21-mm1/ > > > > I'm currently in the middle of a bisect over the last week of commits to linus' > > tree, but I got the following with -mm1 that isn't showing up in the latest > > 2.6.21-git: > > > > [ 15.644778] BUG: sleeping function called from invalid context at kernel/mutex.c:86 > > [ 15.644873] in_atomic():1, irqs_disabled():1 > > [ 15.644882] 2 locks held by modprobe/2765: > > [ 15.644889] #0: (devlist_lock){--..}, at: [] mutex_lock+0x1f/0x30 > > [ 15.645058] #1: (modlist_lock){....}, at: [] __symbol_get+0x1d/0x90 > > [ 15.645207] irq event stamp: 11772 > > [ 15.645271] hardirqs last enabled at (11771): [] slab_free+0xc3/0x200 > > [ 15.645289] hardirqs last disabled at (11772): [] _spin_lock_irqsave+0x16/0x60 > > [ 15.645364] softirqs last enabled at (11216): [] __do_softirq+0x96/0xb0 > > [ 15.645439] softirqs last disabled at (11211): [] do_softirq+0x82/0x100 > > [ 15.645517] [] show_trace_log_lvl+0x1a/0x30 > > [ 15.645586] [] show_trace+0x12/0x20 > > [ 15.645654] [] dump_stack+0x15/0x20 > > [ 15.645665] [] __might_sleep+0xcd/0xf0 > > [ 15.645737] [] mutex_lock+0x18/0x30 > > [ 15.645806] [] sysfs_create_link+0x6c/0x130 > > [ 15.645823] [] use_module+0x11a/0x170 > > [ 15.645892] [] __symbol_get+0x6c/0x90 > > [ 15.645904] [] dvb_init+0x98c/0xd70 [saa7134_dvb] > > [ 15.645984] [] mpeg_ops_attach+0x3d/0x50 > > [ 15.646058] [] saa7134_ts_register+0x29/0x70 > > [ 15.646070] [] dvb_register+0x10/0x12 [saa7134_dvb] > > [ 15.646141] [] sys_init_module+0xf7/0x150 > > [ 15.646153] [] sysenter_past_esp+0x5f/0x99 > > [ 15.646221] ======================= > > Looks like a locking error in the DVB code. Actually, kernel/module.c:__symbol_get() does spinlock_irq_save(&modlist_lock) and then calls use_module(). But when CONFIG_MODULE_UNLOAD=y, use_module() wants to sysfs_create_link() (I wonder why) which will clearly blow up. - 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/