Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757788Ab0HNSGY (ORCPT ); Sat, 14 Aug 2010 14:06:24 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:33736 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752228Ab0HNSGX (ORCPT ); Sat, 14 Aug 2010 14:06:23 -0400 MIME-Version: 1.0 In-Reply-To: <20100812.161050.246523792.davem@davemloft.net> References: <20100812.161050.246523792.davem@davemloft.net> From: Linus Torvalds Date: Sat, 14 Aug 2010 11:05:54 -0700 Message-ID: Subject: Re: [GIT] Networking To: David Miller Cc: akpm@linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4950 Lines: 109 David, I completely screwed up locking in my VM guard page patch, so when I verified my fix for that I tried to enable all the lock debug crud I possibly could. And as a result, I got a locking error report, but it had nothing to do with the VM guard page any more (so hopefully I finally fixed my mindless code-drivel correctly. I'm a bit ashamed of myself). Anyway, the lock warning I do get seems to be networking-related, and is appended. Does this ring any bells? It could easily be something old: I turn on lock debugging only when I look for bugs (or when people point out bugs that I've created :^/ ) The only thing that seems to be related that google can find is pretty recent too: a report from Valdis Kletnieks about this apparently happening on e1000e too (Subject "mmotm 2010-08-11 - lockdep whinges at e1000e driver ifconfig up"). So it does seem to be pretty recent. Hmm? Everything obviously still works, but judging by the lockdep report this might be a deadlock situation (lock taken in softirq _and_ outside softirq without disabling bhs) Linus --- r8169 0000:01:00.0: eth0: link up r8169 0000:01:00.0: eth0: link up ================================= [ INFO: inconsistent lock state ] 2.6.35-07956-g92fa5bd9-dirty #7 --------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. dbus-daemon/2432 [HC0[0]:SC1[2]:HE1:SE0] takes: (&(&lock->lock)->rlock){+.?...}, at: [] ip6t_do_table+0x7f/0x3e7 {SOFTIRQ-ON-W} state was registered at: [] __lock_acquire+0x756/0x1712 [] lock_acquire+0x83/0x9d [] _raw_spin_lock+0x31/0x64 [] get_counters+0xa4/0x139 [] alloc_counters+0x37/0x42 [] do_ip6t_get_ctl+0x107/0x35e [] nf_sockopt+0x55/0x81 [] nf_getsockopt+0x13/0x15 [] ipv6_getsockopt+0x7f/0xb5 [] rawv6_getsockopt+0x3d/0x46 [] sock_common_getsockopt+0xf/0x11 [] sys_getsockopt+0x75/0x96 [] system_call_fastpath+0x16/0x1b irq event stamp: 21072 hardirqs last enabled at (21072): [] local_bh_enable+0xbd/0xc2 hardirqs last disabled at (21071): [] local_bh_enable+0x52/0xc2 softirqs last enabled at (20000): [] unix_create1+0x164/0x17c softirqs last disabled at (21037): [] call_softirq+0x1c/0x28 other info that might help us debug this: 3 locks held by dbus-daemon/2432: #0: (&idev->mc_ifc_timer){+.-...}, at: [] run_timer_softirq+0x14e/0x28c #1: (rcu_read_lock){.+.+..}, at: [] mld_sendpack+0x0/0x3bd #2: (rcu_read_lock){.+.+..}, at: [] nf_hook_slow+0x0/0x10a stack backtrace: Pid: 2432, comm: dbus-daemon Not tainted 2.6.35-07956-g92fa5bd9-dirty #7 Call Trace: [] print_usage_bug+0x1a4/0x1b5 [] ? save_stack_trace+0x2a/0x47 [] ? check_usage_forwards+0x0/0xc6 [] mark_lock+0x2ea/0x552 [] __lock_acquire+0x6dd/0x1712 [] ? local_clock+0x2b/0x3c [] ? lock_release_holdtime+0x1c/0x123 [] lock_acquire+0x83/0x9d [] ? ip6t_do_table+0x7f/0x3e7 [] _raw_spin_lock+0x31/0x64 [] ? ip6t_do_table+0x7f/0x3e7 [] ip6t_do_table+0x7f/0x3e7 [] ip6table_filter_hook+0x17/0x1c [] nf_iterate+0x41/0x84 [] ? dst_output+0x0/0x58 [] nf_hook_slow+0x8e/0x10a [] ? dst_output+0x0/0x58 [] mld_sendpack+0x24e/0x3bd [] ? mark_held_locks+0x52/0x70 [] mld_ifc_timer_expire+0x24f/0x288 [] ? mld_ifc_timer_expire+0x0/0x288 [] run_timer_softirq+0x1dc/0x28c [] ? run_timer_softirq+0x14e/0x28c [] ? __do_softirq+0x69/0x13d [] __do_softirq+0xa2/0x13d [] ? tick_program_event+0x25/0x27 [] call_softirq+0x1c/0x28 [] do_softirq+0x38/0x80 [] irq_exit+0x45/0x87 [] smp_apic_timer_interrupt+0x88/0x96 [] apic_timer_interrupt+0x13/0x20 r8169: WARNING! Changing of MTU on this NIC may lead to frame reception errors! -- 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/