Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2015 20:53:27 +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:  <EAA00A09-DCA6-4ADF-8773-3C8A3609CCB6@gmail.com>
In-Reply-To: <CAJ-Vmokf9cC_26jF5B99_CRpjOaLOQUpBqMCcyqHevfi3JfFdQ@mail.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>

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

> On 24 =D1=8F=D0=BD=D0=B2. 2015 =D0=B3., at 20:29, Adrian Chadd =
<adrian@freebsd.org> wrote:
>=20
> Hi,
>=20
> Can you compile your kernel with WITNESS and repeat this test? It
> looks like it's stuck in some lock ordering thing between some UDP
> paths and an inpcb lookup.
>=20
> It should log in dmesg the first time a LOR occurs, regardless of
> whether it actively causes a hang.



Here is what I got in dmesg just before my net locked up:

lock order reversal:
 1st 0xffffffff80e79008 pcbinfohash (pcbinfohash) @ =
/opt/WRK/src/sys/netinet6/udp6_usrreq.c:1202
 2nd 0xffffffff80e78fb0 udp (udp) @ =
/opt/WRK/src/sys/netinet6/in6_pcb.c:614
lock order reversal:
 1st 0xffffffff80e79008 pcbinfohash (pcbinfohash) @ =
/opt/WRK/src/sys/netinet6/udp6_usrreq.c:1202
 2nd 0xffffffff80e78d58 tcp (tcp) @ =
/opt/WRK/src/sys/netinet6/in6_pcb.c:614
lock order reversal:
 1st 0xffffffff80e79008 pcbinfohash (pcbinfohash) @ =
/opt/WRK/src/sys/netinet6/udp6_usrreq.c:1202
 2nd 0xffffffff80e781c0 rip (rip) @ =
/opt/WRK/src/sys/netinet6/in6_pcb.c:614

When I was saving this dmesg output to disk, I got another LOR:

lock order reversal:
 1st 0xfffffe0baf12fd78 bufwait (bufwait) @ =
/opt/WRK/src/sys/kern/vfs_bio.c:3065
 2nd 0xfffff80011416c00 dirhash (dirhash) @ =
/opt/WRK/src/sys/ufs/ufs/ufs_dirhash.c:284


Please tell me if I can provide more information to help tracking this =
down.

Thanks!=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EAA00A09-DCA6-4ADF-8773-3C8A3609CCB6>