Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2005 20:01:28 +0200
From:      Rene Ladan <r.c.ladan@student.tue.nl>
To:        bzeeb+freebsd+lor@zabbadoz.net, stable@freebsd.org
Subject:   new fxp lor
Message-ID:  <20050427180127.GA15351@82-168-79-254-bbxl.xdsl.tiscali.nl>

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

--3V7upXqbjpZ4EhLz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I experienced this new fxp LOR (probably when ntpd started during boot):

hand-copied:
lock order reversal
 1st 0xcc666360 inp (udpinp) @ sys/netinet/udp_usrreq.c:772
 2nd 0xc14c8264 fxp0 (network driver) @ /usr/src/sys/modules/fxp/../../dev/=
fxp/if_fxp.c:1232
KDB: stack backtrace:
kdb_backtrace+0x2e(c06fd115, c14c8264, c14a57e0, c06fe820, c06fe7bd)
witness_checkorder+0x6a6(c14c8264, 9, c06fe7bd, 4d0, c0602589)
_mtx_lock_flags+0x8a(c14c8264, 0, c06fe7bd, 4d0, c14c8000)
fxp_start+0x37(c14c8000, 12b, 0, c14c8000)
and continuing from dmesg:
if_start(c14c8000,0,c0602589,184,2) at 0xc050b1c9 =3D if_start+0x99
ether_output_frame(c14c8000,c15d3900,6,ca422b10,ca422aac) at 0xc050c908 =3D=
 ether_output_frame+0x218
ether_output(c14c8000,c15d3900,ca422b10,c16687bc,c04bbc77) at 0xc050c6de =
=3D ether_output+0x44e
ip_output(c15d3900,0,ca422b0c,0,0) at 0xc05210c7 =3D ip_output+0x7c7
udp_output(c16662d0,c15d3900,0,0,c148fa80) at 0xc053659a =3D udp_output+0x5=
3a
udp_send(c1665dec,0,c15d3900,0,0) at 0xc0536da0 =3D udp_send+0x30
sosend(c1665dec,0,ca422c48,c15d3900,0) at 0xc04d33b1 =3D sosend+0x701
kern_sendit(c148fa80,d,ca422cc4,0,0) at 0xc04d9bef =3D kern_sendit+0x13f
sendit(c148fa80,d,ca422cc4,0,810001d) at 0xc04d9a81 =3D sendit+0x1a1
sendto(c148fa80,ca422d14,18,431,6) at 0xc04d9d6b =3D sendto+0x5b
syscall(2f,2f,2f,2,0) at=20
0xc05d9d40 =3D syscall+0x2a0
Xint0x80_syscall() at 0xc05c885f =3D Xint0x80_syscall+0x1f
--- syscall (133, FreeBSD ELF32, sendto), eip =3D 0x28233cff, esp =3D 0xbfb=
fd4ec, ebp =3D 0xbfbfd518 ---

followed by another new LOR:

KDB: enter: witness_checkorder
lock order reversal
 1st 0xc066f20c udp (udp) @ /usr/src/sys/netinet/udp_usrreq.c:246
 2nd 0xc14c8264 fxp0 (network driver) @ /usr/src/sys/modules/fxp/../../dev/=
fxp/if_fxp.c:1232
KDB: stack backtrace:
kdb_backtrace(c05fd115,c14c8264,c14a57e0,c06fe820,c06fe7bd) at 0xc04b0a7e =
=3D kdb_backtrace+0x2e
witness_checkorder(c14c8264,9,c06fe7bd,4d0,c0602589) at 0xc04bbb96 =3D witn=
ess_checkorder+0x6a6
_mtx_lock_flags(c14c8264,0,c06fe7bd,4d0,c14c8000) at 0xc048a95a =3D _mtx_lo=
ck_flags+0x8a
fxp_start(c14c8000,12b,0,c14c8000) at 0xc06fbdc7 =3D fxp_start+0x37
if_start(c14c8000,0,c0602589,184,2) at 0xc050b1c9 =3D if_start+0x99
ether_output_frame(c14c8000,c15d6000,6,c9be5b20,c9be5abc) at 0xc050c908 =3D=
 ether_output_frame+0x218
ether_output(c14c8000,c15d6000,c9be5b20,c16687bc,18a) at 0xc050c6de =3D eth=
er_output+0x44e
ip_output(c15d6000,0,c9be5b1c,0,0) at 0xc05210c7 =3D ip_output+0x7c7
icmp_send(c15d6000,0,c05a61a8,0,0) at 0xc051e567 =3D icmp_send+0x87
icmp_reflect(c15d6000,c15d60c8,14,c15d6100,1c) at 0xc051e490 =3D icmp_refle=
ct+0x330
icmp_error(c14d1600,3,3,0,0) at 0xc051db85 =3D icmp_error+0x275
udp_input(c14d1600,14,c9be5c98,c048aa6a,c066e714) at 0xc053547a =3D udp_inp=
ut+0x5ea
ip_input(c14d1600,0,c0602a22,e6,c066dcd8) at 0xc051ef22 =3D ip_input+0x5a2
netisr_processqueue(c066dcd8,c0643a80,1,c05f8d46,c1404040) at 0xc050e64e =
=3D netisr_processqueue+0x8e
swi_net(0,0,c05f72d8,269,c0643a80) at 0xc050e8a9 =3D swi_net+0xe9
ithread_loop(c13dc500,c9be5d48,c05f70cf,30e,0) at 0xc047dbf2 =3D ithread_lo=
op+0x172
fork_exit(c047da80,c13dc500,c9be5d48) at 0xc047cc16 =3D fork_exit+0xc6
fork_trampoline() at 0xc05c886c =3D fork_trampoline+0x8
--- trap 0x1, eip =3D 0, esp =3D 0xc9be5d7c, ebp =3D 0 ---

The box panics with automatic dump and reboot:

KDB: enter: witness_checkorder
panic: blockable sleep lock (sleep mutex) tty @ /usr/src/sys/kern/kern_even=
t.c:1495
KDB: stack backtrace:
Uptime: 15m33s
Dumping 191 MB
 16 32 48 64 80 96 112 128 144 160 176
Dump complete

This is on:

FreeBSD 5.4-STABLE #0: Tue Apr 26 07:30:25 CEST 2005     root@82-168-79-254=
-bbxl.xdsl.tiscali.nl:/usr/obj/usr/src/sys/RENE=20

Regards,
Rene=09
--=20
"It won't fit on the line."
		-- me, 2001

--3V7upXqbjpZ4EhLz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCb9N3vz70qa4zXcwRAuxVAKCBCZ+3f5TwhoGzXKfeFdWS7gEEsACeNm79
01NhjZxv3+NK3QQljlBafr0=
=aGZX
-----END PGP SIGNATURE-----

--3V7upXqbjpZ4EhLz--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050427180127.GA15351>