From owner-freebsd-net@FreeBSD.ORG Sat Jan 24 23:16:23 2015 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7EBA128 for ; Sat, 24 Jan 2015 23:16:23 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8BC6ECE for ; Sat, 24 Jan 2015 23:16:23 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t0ONGN2x019423 for ; Sat, 24 Jan 2015 23:16:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 197059] network locks up with IPv6 udp traffic Date: Sat, 24 Jan 2015 23:16:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: demon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2015 23:16:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197059 Bug ID: 197059 Summary: network locks up with IPv6 udp traffic Product: Base System Version: 10.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: demon@FreeBSD.org CC: adrian@freebsd.org, freebsd-net@FreeBSD.org Hello! I am using FreeBSD-10/stable. We have a program at work that transmits data via UDP. When I run several instances of this program simultaneously, after a few seconds network stops working. If I login from console, I see some network daemons like ntpd, snmpd are in "*udp" state. If I try to deal with network interface (ifconfig igb0 for instance), ifconfig utility stuck in "L" state (Marks a process that is waiting to acquire a lock.). I found the only way to fix that: reboot. What can be the cause for such a behaviour? lock order reversal: 1st 0xffffffff80ea5588 pcbinfohash (pcbinfohash) @ /opt/WRK/src/sys/netinet6/ud p6_usrreq.c:1202 2nd 0xffffffff80ea5530 udp (udp) @ /opt/WRK/src/sys/netinet6/in6_pcb.c:614 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0c581c1270 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe0c581c1320 witness_checkorder() at witness_checkorder+0xc04/frame 0xfffffe0c581c13a0 _rw_wlock_cookie() at _rw_wlock_cookie+0x45/frame 0xfffffe0c581c13e0 in6_pcbnotify() at in6_pcbnotify+0x12e/frame 0xfffffe0c581c1480 udp6_common_ctlinput() at udp6_common_ctlinput+0x111/frame 0xfffffe0c581c14e0 pfctlinput2() at pfctlinput2+0x7d/frame 0xfffffe0c581c1520 ip6_output() at ip6_output+0x15b8/frame 0xfffffe0c581c1780 udp6_send() at udp6_send+0x75c/frame 0xfffffe0c581c1910 sosend_dgram() at sosend_dgram+0x30b/frame 0xfffffe0c581c1980 kern_sendit() at kern_sendit+0x191/frame 0xfffffe0c581c1a30 sendit() at sendit+0x225/frame 0xfffffe0c581c1a80 sys_sendmsg() at sys_sendmsg+0x68/frame 0xfffffe0c581c1ae0 amd64_syscall() at amd64_syscall+0x244/frame 0xfffffe0c581c1bf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0c581c1bf0 --- syscall (28, FreeBSD ELF64, sys_sendmsg), rip = 0x803ec5eaa, rsp = 0x7fffdf5f6848, rbp = 0x7fffdf5f6880 --- lock order reversal: 1st 0xffffffff80ea5588 pcbinfohash (pcbinfohash) @ /opt/WRK/src/sys/netinet6/udp6_usrreq.c:1202 2nd 0xffffffff80ea52d8 tcp (tcp) @ /opt/WRK/src/sys/netinet6/in6_pcb.c:614 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0c581c1240 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe0c581c12f0 witness_checkorder() at witness_checkorder+0xc04/frame 0xfffffe0c581c1370 _rw_wlock_cookie() at _rw_wlock_cookie+0x45/frame 0xfffffe0c581c13b0 in6_pcbnotify() at in6_pcbnotify+0x12e/frame 0xfffffe0c581c1450 tcp6_ctlinput() at tcp6_ctlinput+0x1a5/frame 0xfffffe0c581c14e0 pfctlinput2() at pfctlinput2+0x7d/frame 0xfffffe0c581c1520 ip6_output() at ip6_output+0x15b8/frame 0xfffffe0c581c1780 udp6_send() at udp6_send+0x75c/frame 0xfffffe0c581c1910 sosend_dgram() at sosend_dgram+0x30b/frame 0xfffffe0c581c1980 kern_sendit() at kern_sendit+0x191/frame 0xfffffe0c581c1a30 sendit() at sendit+0x225/frame 0xfffffe0c581c1a80 sys_sendmsg() at sys_sendmsg+0x68/frame 0xfffffe0c581c1ae0 amd64_syscall() at amd64_syscall+0x244/frame 0xfffffe0c581c1bf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0c581c1bf0 --- syscall (28, FreeBSD ELF64, sys_sendmsg), rip = 0x803ec5eaa, rsp = 0x7fffdf5f6848, rbp = 0x7fffdf5f6880 --- lock order reversal: 1st 0xffffffff80ea5588 pcbinfohash (pcbinfohash) @ /opt/WRK/src/sys/netinet6/udp6_usrreq.c:1202 2nd 0xffffffff80ea4740 rip (rip) @ /opt/WRK/src/sys/netinet6/in6_pcb.c:614 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0c581c12b0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe0c581c1360 witness_checkorder() at witness_checkorder+0xc04/frame 0xfffffe0c581c13e0 _rw_wlock_cookie() at _rw_wlock_cookie+0x45/frame 0xfffffe0c581c1420 in6_pcbnotify() at in6_pcbnotify+0x12e/frame 0xfffffe0c581c14c0 rip6_ctlinput() at rip6_ctlinput+0x70/frame 0xfffffe0c581c14e0 pfctlinput2() at pfctlinput2+0x7d/frame 0xfffffe0c581c1520 ip6_output() at ip6_output+0x15b8/frame 0xfffffe0c581c1780 udp6_send() at udp6_send+0x75c/frame 0xfffffe0c581c1910 sosend_dgram() at sosend_dgram+0x30b/frame 0xfffffe0c581c1980 kern_sendit() at kern_sendit+0x191/frame 0xfffffe0c581c1a30 sendit() at sendit+0x225/frame 0xfffffe0c581c1a80 sys_sendmsg() at sys_sendmsg+0x68/frame 0xfffffe0c581c1ae0 amd64_syscall() at amd64_syscall+0x244/frame 0xfffffe0c581c1bf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0c581c1bf0 --- syscall (28, FreeBSD ELF64, sys_sendmsg), rip = 0x803ec5eaa, rsp = 0x7fffdf5f6848, rbp = 0x7fffdf5f6880 --- -- You are receiving this mail because: You are on the CC list for the bug.