Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753851AbYLILEM (ORCPT ); Tue, 9 Dec 2008 06:04:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754007AbYLILDp (ORCPT ); Tue, 9 Dec 2008 06:03:45 -0500 Received: from gv-out-0910.google.com ([216.239.58.184]:3140 "EHLO gv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753979AbYLILDn (ORCPT ); Tue, 9 Dec 2008 06:03:43 -0500 Date: Tue, 9 Dec 2008 12:03:37 +0100 From: Frederik Deweerdt To: Zdenek Kabelac Cc: Linux Kernel Mailing List , tglx@linutronix.de Subject: Re: BUG: bad unlock balance detected! e1000e Message-ID: <20081209110337.GJ4864@gambetta> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4496 Lines: 101 Hello Zdenek, This could be due to 717d438d1fde94decef874b9808379d1f4523453 "e1000e: debug contention on NVM SWFLAG" Error handling is missing from e1000_reset_hw_ich8lan so it may happen that we don't acquire the nvm_mutex if the card times out. Adding Thomas to CC. Regards, Frederik It some error checking is missing in e1000e: debug contention on NVM SWFLAG On Mon, Dec 08, 2008 at 12:24:09PM +0100, Zdenek Kabelac wrote: > Hi > > During occasional scan of message log - I've found out this BUG which > happened on Dec3 with the -rc7 from that day. > (So if it's now fixed in current git feel free to ignore :)) > > My machine T61 - C2D, 2GB, 64bit kernel - message appeared during > shutdown and was actually not noticed by me... > > > NetworkManager: nm_signal_handler(): Caught signal 15, > shutting down normally. > NetworkManager: (eth0): now unmanaged > NetworkManager: (eth0): device state change: 3 -> 1 > NetworkManager: (eth0): cleaning up... > NetworkManager: (eth0): taking down device. > > ===================================== > [ BUG: bad unlock balance detected! ] > ------------------------------------- > NetworkManager/2058 is trying to release lock (nvm_mutex) at: > [] mutex_unlock+0x9/0x10 > but there are no more locks to release! > > other info that might help us debug this: > 1 lock held by NetworkManager/2058: > #0: (rtnl_mutex){--..}, at: [] rtnetlink_rcv+0x1a/0x40 > > stack backtrace: > Pid: 2058, comm: NetworkManager Not tainted 2.6.28-rc7 #90 > Call Trace: > [] print_unlock_inbalance_bug+0xfb/0x120 > [] ? mark_held_locks+0x56/0xa0 > [] ? try_to_del_timer_sync+0x5a/0x70 > [] ? _spin_unlock_irqrestore+0x43/0x70 > [] lock_release_non_nested+0x1a8/0x2a0 > [] ? try_to_del_timer_sync+0x5a/0x70 > [] ? mutex_unlock+0x9/0x10 > [] lock_release+0xbb/0x200 > [] __mutex_unlock_slowpath+0x86/0x170 > [] mutex_unlock+0x9/0x10 > [] e1000_release_swflag_ich8lan+0x35/0x40 [e1000e] > [] e1000_reset_hw_ich8lan+0xa9/0x130 [e1000e] > [] e1000e_reset+0xf0/0x260 [e1000e] > [] ? del_timer_sync+0x1a/0x30 > [] e1000e_down+0x178/0x180 [e1000e] > [] e1000_close+0x26/0xd0 [e1000e] > [] dev_close+0x76/0xc0 > [] dev_change_flags+0x96/0x1e0 > [] do_setlink+0x2ac/0x440 > [] ? _read_unlock+0x26/0x30 > [] rtnl_setlink+0x10d/0x150 > [] ? mutex_lock_nested+0x1f2/0x300 > [] ? rtnetlink_rcv+0x1a/0x40 > [] rtnetlink_rcv_msg+0x18d/0x240 > [] ? rtnetlink_rcv_msg+0x0/0x240 > [] netlink_rcv_skb+0x89/0xb0 > [] rtnetlink_rcv+0x29/0x40 > [] netlink_unicast+0x2bd/0x2d0 > [] ? __alloc_skb+0x6e/0x150 > [] netlink_sendmsg+0x204/0x2f0 > [] ? sock_def_readable+0x68/0x70 > [] sock_sendmsg+0x107/0x130 > [] ? autoremove_wake_function+0x0/0x40 > [] ? native_sched_clock+0x13/0x60 > [] ? fget_light+0x106/0x110 > [] ? move_addr_to_kernel+0x57/0x60 > [] ? verify_iovec+0x3f/0xe0 > [] sys_sendmsg+0x189/0x320 > [] ? sys_sendto+0xfd/0x120 > [] ? d_free+0x50/0x60 > [] ? __fput+0x171/0x1e0 > [] ? trace_hardirqs_on_caller+0x133/0x190 > [] ? audit_syscall_entry+0x15f/0x190 > [] ? trace_hardirqs_on_thunk+0x3a/0x3f > [] system_call_fastpath+0x16/0x1b > -- > 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/ -- 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/