Panic when downing interface

olivier olivier777a7 at gmail.com
Fri Feb 28 01:21:40 UTC 2014


Hi all,
The following kernel panic often happens for me after downing an Infiniband
interface (i.e. calling ifconfig ib0 down). It happens both under 9-STABLE
and 10-STABLE. The stack trace doesn't look Infiniband-specific so I'm not
sending to the Infiniband mailing list for now.
Details for 9-STABLE are as follows:

panic: sbdrop
cpuid = 25
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a/frame
0xffffffbff8b97480
kdb_backtrace() at kdb_backtrace+0x37/frame 0xffffffbff8b97540
panic() at panic+0x1ce/frame 0xffffffbff8b97640
sbdrop_internal() at sbdrop_internal+0x323/frame 0xffffffbff8b97680
sbflush_internal() at sbflush_internal+0x3b/frame 0xffffffbff8b976a0
sbflush() at sbflush+0x3b/frame 0xffffffbff8b976c0
tcp_disconnect() at tcp_disconnect+0x46/frame 0xffffffbff8b976f0
tcp_usr_disconnect() at tcp_usr_disconnect+0x10f/frame 0xffffffbff8b97710
soclose() at soclose+0x53/frame 0xffffffbff8b97740
_fdrop() at _fdrop+0x23/frame 0xffffffbff8b97760
closef() at closef+0x4c/frame 0xffffffbff8b97810
fdfree() at fdfree+0x23c/frame 0xffffffbff8b978d0
exit1() at exit1+0x330/frame 0xffffffbff8b97940
sys_sys_exit() at sys_sys_exit+0xe/frame 0xffffffbff8b97950
amd64_syscall() at amd64_syscall+0x5ea/frame 0xffffffbff8b97a70
Xfast_syscall() at Xfast_syscall+0xf7/frame 0xffffffbff8b97a70

(kgdb) list *(sbdrop_internal+0x323)
0xffffffff8099b823 is at /usr/src/sys/kern/uipc_sockbuf.c:855.
850
851 next = (m = sb->sb_mb) ? m->m_nextpkt : 0;
852 while (len > 0) {
853 if (m == 0) {
854 if (next == 0)
855 panic("sbdrop");
856 m = next;
857 next = m->m_nextpkt;
858 continue;
859 }


FreeBSD 9.2 r255606 compiled with
options OFED # Infiniband protocol
device mlx4ib # ConnectX Infiniband support
device mlxen # ConnectX Ethernet support
device mthca # Infinihost cards
device ipoib # IP over IB devices

Mellanox ConnectX HCA Ethernet driver v1.5.2 (July 2010)
Mellanox ConnectX InfiniBand driver v1.0-ofed1.5.2 (August 4, 2010)

output of ifconfig ib0:
ib0: flags=8043<UP,BROADCAST,RUNNING,MULTICAST> metric 0 mtu 2044
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
lladdr 0.0.0.48.fe.80.0.0.0.0.0.0.0.2.c9.3.0.4f.ae.f1
inet 192.168.192.2 netmask 0xffffff00 broadcast 192.168.192.255
inet6 fe80::225:90ff:fe59:b78%ib0 prefixlen 64 scopeid 0xb
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Happy to provide more detail if that helps anyone look into this problem.
Thanks
Olivier


More information about the freebsd-net mailing list