From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jann Traschewski" Subject: [BUG][AX25] mkiss and ax25_route lockdep warning Date: Mon, 11 Feb 2008 09:56:27 +0100 Message-ID: <000d01c86c8b$fd9e67d0$453c822c@dg8ngn> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Return-path: Received: from mail.gmx.net ([213.165.64.20]:52655 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752966AbYBKI4b (ORCPT ); Mon, 11 Feb 2008 03:56:31 -0500 Sender: netdev-owner@vger.kernel.org List-ID: Hello, After using "Lock debugging: prove locking correctness" with the Kernel I got this warning: ================================= [ INFO: inconsistent lock state ] 2.6.24-dg8ngn-p02 #1 --------------------------------- inconsistent {softirq-on-W} -> {in-softirq-R} usage. linuxnet/3046 [HC0[0]:SC1[2]:HE1:SE0] takes: (ax25_route_lock){--.+}, at: [] ax25_get_route+0x18/0xb7 [ax25] {softirq-on-W} state was registered at: [] __lock_acquire+0x464/0xb7b [] mark_held_locks+0x39/0x53 [] local_bh_enable_ip+0xcd/0xd5 [] trace_hardirqs_on+0x11a/0x13d [] lock_acquire+0x5f/0x77 [] ax25_rt_ioctl+0x66/0x325 [ax25] [] _write_lock+0x29/0x34 [] ax25_rt_ioctl+0x66/0x325 [ax25] [] ax25_rt_ioctl+0x66/0x325 [ax25] [] ax25_ioctl+0x1b6/0x5b8 [ax25] [] fd_install+0x1e/0x46 [] _spin_lock+0x29/0x34 [] sock_ioctl+0x1bb/0x1e0 [] sock_ioctl+0x0/0x1e0 [] do_ioctl+0x1f/0x62 [] vfs_ioctl+0x220/0x232 [] trace_hardirqs_on+0x11a/0x13d [] sys_ioctl+0x33/0x4c [] syscall_call+0x7/0xb [] 0xffffffff irq event stamp: 120000 hardirqs last enabled at (120000): [] local_bh_enable_ip+0xcd/0xd5 hardirqs last disabled at (119999): [] local_bh_enable_ip+0x5b/0xd5 softirqs last enabled at (119892): [] mkiss_receive_buf+0x2a5/0x394 [mkiss] softirqs last disabled at (119893): [] do_softirq+0x37/0x4d other info that might help us debug this: 5 locks held by linuxnet/3046: #0: (&tty->atomic_write_lock){--..}, at: [] tty_write_lock+0x11/0x37 #1: (rcu_read_lock){..--}, at: [] net_rx_action+0x4e/0x1c4 #2: (rcu_read_lock){..--}, at: [] netif_receive_skb+0xe6/0x3d6 #3: (rcu_read_lock){..--}, at: [] ip_local_deliver_finish+0x2d/0x1f7 #4: (slock-AF_INET){-+..}, at: [] icmp_send+0x10e/0x37a stack backtrace: Pid: 3046, comm: linuxnet Not tainted 2.6.24-dg8ngn-p02 #1 [] print_usage_bug+0x138/0x142 [] mark_lock+0x1ca/0x44a [] __lock_acquire+0x3fd/0xb7b [] mark_held_locks+0x39/0x53 [] local_bh_enable_ip+0xcd/0xd5 [] lock_acquire+0x5f/0x77 [] ax25_get_route+0x18/0xb7 [ax25] [] _read_lock+0x29/0x34 [] ax25_get_route+0x18/0xb7 [ax25] [] ax25_get_route+0x18/0xb7 [ax25] [] ax_header+0x0/0x1a [mkiss] [] ax25_rebuild_header+0x30/0x202 [ax25] [] ax_header+0x0/0x1a [mkiss] [] neigh_compat_output+0x7b/0x97 [] ip_finish_output+0x1da/0x204 [] ip_output+0x74/0x89 [] ip_push_pending_frames+0x2d8/0x33a [] dst_output+0x0/0x7 [] icmp_send+0x304/0x37a [] __lock_acquire+0x477/0xb7b [] __udp4_lib_lookup+0xec/0xf6 [] __udp4_lib_rcv+0x586/0x771 [] ip_local_deliver_finish+0x13e/0x1f7 [] ip_local_deliver_finish+0x2d/0x1f7 [] ip_rcv_finish+0x2c1/0x2e0 [] ip_rcv+0x1f0/0x22b [] ip_rcv_finish+0x0/0x2e0 [] netif_receive_skb+0x375/0x3d6 [] netif_receive_skb+0xe6/0x3d6 [] process_backlog+0x6c/0xcd [] net_rx_action+0xbc/0x1c4 [] net_rx_action+0x4e/0x1c4 [] __do_softirq+0x69/0xde [] mkiss_receive_buf+0x2a5/0x394 [mkiss] [] do_softirq+0x37/0x4d [] local_bh_enable_ip+0xad/0xd5 [] mkiss_receive_buf+0x2a5/0x394 [mkiss] [] _spin_unlock_irqrestore+0x34/0x39 [] pty_write+0x2f/0x39 [] write_chan+0x22d/0x2a1 [] default_wake_function+0x0/0x8 [] tty_write+0x14d/0x1c2 [] write_chan+0x0/0x2a1 [] tty_write+0x0/0x1c2 [] vfs_write+0x8a/0x10c [] sys_write+0x41/0x67 [] syscall_call+0x7/0xb ======================= -- Jann Traschewski, Drosselstr.1, D-90513 Zirndorf, Germany Tel.: +49-911-696971, Mobile: +49-170-1045937, EMail: jann@gmx.de Ham: DG8NGN / DB0VOX, http://www.qsl.net/db0fhn, ICQ UIN: 4130182