Bug 206494

Summary: lock order reversal (sleepable after non-sleepable) in in_mcast.c/bxe.c
Product: Base System Reporter: olivier
Component: kernAssignee: freebsd-net (Nobody) <net>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description olivier 2016-01-22 13:28:52 UTC
lock order reversal: (sleepable after non-sleepable)
 1st 0xffffffff81cf6388 in_multi_mtx (in_multi_mtx) @ /usr/src/sys/netinet/in_mcast.c:1146
 2nd 0xfffffe00025225a0 bxe3_core_lock (bxe3_core_lock) @ /usr/src/sys/dev/bxe/bxe.c:4890
stack backtrace:
#0 0xffffffff80a7a6d0 at witness_debugger+0x70
#1 0xffffffff80a7a5d1 at witness_checkorder+0xe71
#2 0xffffffff80a27bb2 at _sx_xlock+0x72
#3 0xffffffff80eb1bc5 at bxe_ioctl+0x85
#4 0xffffffff80afebd3 at if_addmulti+0x253
#5 0xffffffff80b62746 at in_joingroup_locked+0x116
#6 0xffffffff80b62602 at in_joingroup+0x42
#7 0xffffffff80b5f5f7 at in_control+0x9e7
#8 0xffffffff80afde99 at ifioctl+0xf39
#9 0xffffffff80a7fbf0 at kern_ioctl+0x230
#10 0xffffffff80a7f94e at sys_ioctl+0x17e
#11 0xffffffff80e6c15b at amd64_syscall+0x2db
#12 0xffffffff80e4b40b at Xfast_syscall+0xfb
root@lame6:~ # uname -a
FreeBSD lame6.bsdrp.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r293801: Wed Jan 13 07:14:44 UTC 2016     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
root@lame6:~ # pciconf -lcvb
bxe3@pci0:3:0:1:        class=0x020000 card=0x100714e4 chip=0x168e14e4 rev=0x10 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'NetXtreme II BCM57810 10 Gigabit Ethernet'
    class      = network

Just had to configure IPv4 on the interface for triggering this LoR.