From owner-freebsd-current@FreeBSD.ORG Wed Oct 28 05:13:33 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3328106566C for ; Wed, 28 Oct 2009 05:13:33 +0000 (UTC) (envelope-from areilly@bigpond.net.au) Received: from nschwqsrv02p.mx.bigpond.com (nschwqsrv02p.mx.bigpond.com [61.9.189.234]) by mx1.freebsd.org (Postfix) with ESMTP id 42AB38FC15 for ; Wed, 28 Oct 2009 05:13:33 +0000 (UTC) Received: from nschwotgx02p.mx.bigpond.com ([124.188.161.100]) by nschwmtas05p.mx.bigpond.com with ESMTP id <20091028040357.RVXR28093.nschwmtas05p.mx.bigpond.com@nschwotgx02p.mx.bigpond.com>; Wed, 28 Oct 2009 04:03:57 +0000 Received: from duncan.reilly.home ([124.188.161.100]) by nschwotgx02p.mx.bigpond.com with ESMTP id <20091028040356.NWEP9934.nschwotgx02p.mx.bigpond.com@duncan.reilly.home>; Wed, 28 Oct 2009 04:03:56 +0000 Date: Wed, 28 Oct 2009 15:03:56 +1100 From: Andrew Reilly To: freebsd-current@freebsd.org, bzeeb+freebsd+lor@zabbadoz.net Message-ID: <20091028040356.GA68328@duncan.reilly.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Authentication-Info: Submitted using SMTP AUTH LOGIN at nschwotgx02p.mx.bigpond.com from [124.188.161.100] using ID areilly@bigpond.net.au at Wed, 28 Oct 2009 04:03:56 +0000 X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150201.4AE7C2AD.00D1,ss=1,fgs=0 X-SIH-MSG-ID: rBg1E9P8TAD0zmQs0WyzOwJxyArnqyN48Z4QX81loRIGTUDCp8DeQ9rEJvdRvt2ixDxEJhqBNGEjaanjTY3RstCK Cc: Subject: LOR 1st rtentry, 2nd ifnet_sx X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2009 05:13:33 -0000 Hi there, I've just joined the bumpy road of -current, in order to answer a qustion about USB attached drives (see -stable and -fs), and am now learning about reporting lock order reversals. Here's my first, from the last dmesg.boot. Doesn't seem to be in the lor database or PRs. I'm running -current on amd64: FreeBSD duncan.reilly.home 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Mon Oct 26 20:19:29 EST 2009 root@duncan.reilly.home:/usr/obj/usr/src/sys/DUNCAN amd64 lock order reversal: (sleepable after non-sleepable) 1st 0xffffff0002cc30a8 rtentry (rtentry) @ /usr/src/sys/net/route.c:1474 2nd 0xffffffff80e00b00 ifnet_sx (ifnet_sx) @ /usr/src/sys/netinet/sctp_bsd_addr.c:212 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _sx_slock() at _sx_slock+0x55 sctp_init_ifns_for_vrf() at sctp_init_ifns_for_vrf+0x2e sctp_addr_change() at sctp_addr_change+0xce rt_newaddrmsg() at rt_newaddrmsg+0x54 rtinit() at rtinit+0x358 in_ifinit() at in_ifinit+0x2fd in_control() at in_control+0x1047 ifioctl() at ifioctl+0xfc1 kern_ioctl() at kern_ioctl+0xc5 ioctl() at ioctl+0xfd syscall() at syscall+0x1af Xfast_syscall() at Xfast_syscall+0xe1 --- syscall (54, FreeBSD ELF64, ioctl), rip = 0x800b8084c, rsp = 0x7fffffffe4e8, rbp = 0x7fffffffef6a ---