Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2015 02:07:35 +0300
From:      Dmitry Sivachenko <trtrmitya@gmail.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: network locks up with udp traffic
Message-ID:  <81FCF115-3EE7-4902-9F9A-4852B59348AC@gmail.com>
In-Reply-To: <6B125546-E095-4A4C-9B6B-7E80D1D6E8EF@gmail.com>
References:  <5B08402C-67A7-49E7-ADF8-390C94DCF1D7@gmail.com> <CAJ-Vmo=v5S=cRM3QPo0mGiNS8OS8so=915vx6R1fhDaKWS6BhQ@mail.gmail.com> <FCEBED19-25A4-4D8E-8EE5-8B2B397702C5@gmail.com> <CAJ-Vmokf9cC_26jF5B99_CRpjOaLOQUpBqMCcyqHevfi3JfFdQ@mail.gmail.com> <EAA00A09-DCA6-4ADF-8773-3C8A3609CCB6@gmail.com> <CAJ-Vmon%2Bzd%2B-xURkEJbkzNVoEh%2BFNNseZPSjCJ7Xz23FjX68CA@mail.gmail.com> <CCB57D6F-5343-4A9F-A072-55E7B8A85A18@gmail.com> <CAJ-Vmon5LarcPOyyzJbk7c57BvusAe9D4cEg3nndLaOr53LLtw@mail.gmail.com> <6B125546-E095-4A4C-9B6B-7E80D1D6E8EF@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> On 25 =D1=8F=D0=BD=D0=B2. 2015 =D0=B3., at 1:45, Dmitry Sivachenko =
<trtrmitya@gmail.com> wrote:
>=20
>=20
>> On 25 =D1=8F=D0=BD=D0=B2. 2015 =D0=B3., at 0:10, Adrian Chadd =
<adrian@freebsd.org> wrote:
>>=20
>> Ah, try adding STACK to your config?
>>=20
>=20
>=20
> It's already there.


Ah, sorry, it is options DDB that was missing.  Now we have full stack:


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 =3D 0x803ec5eaa, rsp =3D=
 0x7fffdf5f6848, rbp =3D 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 =3D 0x803ec5eaa, rsp =3D=
 0x7fffdf5f6848, rbp =3D 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 =3D 0x803ec5eaa, rsp =3D=
 0x7fffdf5f6848, rbp =3D 0x7fffdf5f6880 ---=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?81FCF115-3EE7-4902-9F9A-4852B59348AC>