Panic when using IPV6

From: Lothar Braun <lothar_at_lobraun.de>
Date: Tue, 16 Dec 2008 12:21:01 +0100
Hi all,

I do experience a kernel panic if I enable IPv6 on my network interface.
The message is

exclusive lock of (rw) lle _at_/usr/src/sys/netinet6/in6.c:2215
while share lock from /usr/src/sys/netinet6/in6.c:2217
panic: excl->share

It then drops into kdb. I tried to get a kernel crash dump like
described in

http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html#KERNELDEBUG-OBTAIN

But savecore does tell me that there is no dump in my swap device. Can i
somehow save the bt from within kdb?

There are some messages within /var/log/messages that might have some
information about the problem (see attached file).

Can I give you any further information that could help you to track down
the problem?

Best regards,
  Lothar


Dec 16 11:33:50 willet kernel: Trying to mount root from ufs:/dev/ad4s1a
Dec 16 11:33:50 willet kernel: lock order reversal:
Dec 16 11:33:50 willet kernel: 1st 0xc656c044 user map (user map) _at_ /usr/src/sys/vm/vm_map.c:3115
Dec 16 11:33:50 willet kernel: 2nd 0xc6873ad0 ufs (ufs) _at_ /usr/src/sys/kern/vfs_subr.c:2079
Dec 16 11:33:50 willet kernel: KDB: stack backtrace:
Dec 16 11:33:50 willet kernel: db_trace_self_wrapper(c6568d80,c63af92c,c6521728,c6526458,c63af984,...) at db_trace_self_wrapper+0x26
Dec 16 11:33:50 willet kernel: _witness_debugger(c0c02444,c6873ad0,c0bf5f04,c6526458,c0c091fc,...) at _witness_debugger+0x25
Dec 16 11:33:50 willet kernel: witness_checkorder(c6873ad0,1,c0c091fc,81f,0,...) at witness_checkorder+0x73b
Dec 16 11:33:50 willet kernel: __lockmgr_args(c6873ad0,200501,c6873aec,0,0,...) at __lockmgr_args+0xd15
Dec 16 11:33:50 willet kernel: ffs_lock(c63afa78,c0bf5615,3,200401,c6873a78,...) at ffs_lock+0x92
Dec 16 11:33:50 willet kernel: VOP_LOCK1_APV(c0d058a0,c63afa78,c0b8f046,c0d19960,c6873a78,...) at VOP_LOCK1_APV+0x94
Dec 16 11:33:50 willet kernel: _vn_lock(c6873a78,200501,c0c091fc,81f,c0bfad3e,...) at _vn_lock+0x49
Dec 16 11:33:50 willet kernel: vget(c6873a78,200501,c6568d80,4b4,0,...) at vget+0x76
Dec 16 11:33:50 willet kernel: vnode_pager_lock(c1876d14,0,c0c227cb,127,c63afc1c,...) at vnode_pager_lock+0x1a4
Dec 16 11:33:50 willet kernel: vm_fault(c656c000,80db000,2,8,80db780,...) at vm_fault+0x162
Dec 16 11:33:50 willet kernel: trap_pfault(5,0,c0c323b9,2e7,c6566d34,...) at trap_pfault+0xff
Dec 16 11:33:50 willet kernel: trap(c63afd38) at trap+0x536
Dec 16 11:33:50 willet kernel: calltrap() at calltrap+0x6
Dec 16 11:33:50 willet kernel: --- trap 0xc, eip = 0x80480e5, esp = 0xbfbfeef0, ebp = 0xbfbfef10 ---
Dec 16 11:33:50 willet kernel: WARNING: /home was not properly dismounted
Dec 16 11:33:50 willet kernel: lock order reversal:
Dec 16 11:33:50 willet kernel: 1st 0xc6bbe708 lle (lle) _at_ /usr/src/sys/netinet6/in6.c:2217
Dec 16 11:33:50 willet kernel: 2nd 0xc6713e08 if_afdata (if_afdata) _at_ /usr/src/sys/netinet6/nd6_rtr.c:679
Dec 16 11:33:50 willet kernel: KDB: stack backtrace:
Dec 16 11:33:50 willet kernel: db_trace_self_wrapper(c66ff900,e70eb54c,c65266c8,c65249f0,e70eb5a4,...) at db_trace_self_wrapper+0x26
Dec 16 11:33:50 willet kernel: _witness_debugger(c0c02444,c6713e08,c0c0af6a,c65249f0,c0c197ad,...) at _witness_debugger+0x25
Dec 16 11:33:50 willet kernel: witness_checkorder(c6713e08,9,c0c197ad,2a7,0,...) at witness_checkorder+0x73b
Dec 16 11:33:50 willet kernel: _mtx_lock_flags(c6713e08,0,c0c197ad,2a7,0,...) at _mtx_lock_flags+0x72
Dec 16 11:33:50 willet kernel: defrouter_select(c6bbe708,c0c18f9e,643,59f,e70eb664,...) at defrouter_select+0x134
Dec 16 11:33:50 willet kernel: nd6_cache_lladdr(c6713c00,e70eb8a8,c6b6a06a,8,86,...) at nd6_cache_lladdr+0x2d3
Dec 16 11:33:50 willet kernel: nd6_ra_input(c69d9e00,28,38,1,0,...) at nd6_ra_input+0x4dc
Dec 16 11:33:50 willet kernel: icmp6_input(e70ebb0c,e70ebb20,3a,21a,c0c21ff3,...) at icmp6_input+0x1161
Dec 16 11:33:50 willet kernel: ip6_input(c6b2a000,c6b2a000,156,3,0) at ip6_input+0xbcc
Dec 16 11:33:50 willet kernel: ether_demux(c6713c00,c6b2a000,3,0,3,...) at ether_demux+0x1f1
Dec 16 11:33:50 willet kernel: ether_input(c6713c00,c6b2a000,c0bdf85a,bd0,c66eee00,...) at ether_input+0x1b4
Dec 16 11:33:50 willet kernel: msk_handle_events(c66eeeac,0,c0bdf85a,ddb,c66eeeac,...) at msk_handle_events+0x7ba
Dec 16 11:33:50 willet kernel: msk_int_task(c66eee00,1,c0c00de6,52,c6726ac4,...) at msk_int_task+0x167
Dec 16 11:33:50 willet kernel: taskqueue_run(c6726ac0,c6726adc,c0bf3078,0,e70ebcf8,...) at taskqueue_run+0xa1
Dec 16 11:33:50 willet kernel: taskqueue_thread_loop(c66eee98,e70ebd38,c0bf851e,32d,c0d4c2c0,...) at taskqueue_thread_loop+0x6a
Dec 16 11:33:50 willet kernel: fork_exit(c0886370,c66eee98,e70ebd38) at fork_exit+0xa6
Dec 16 11:33:50 willet kernel: fork_trampoline() at fork_trampoline+0x8
Dec 16 11:33:50 willet kernel: --- trap 0, eip = 0, esp = 0xe70ebd70, ebp = 0 ---
Dec 16 11:33:50 willet kernel: lock order reversal:
Dec 16 11:33:50 willet kernel: 1st 0xc6bbe708 lle (lle) _at_ /usr/src/sys/netinet6/in6.c:2217
Dec 16 11:33:50 willet kernel: 2nd 0xc0ebc6b0 rip (rip) _at_ /usr/src/sys/netinet6/icmp6.c:1932
Dec 16 11:33:50 willet kernel: KDB: stack backtrace:
Dec 16 11:33:50 willet kernel: db_trace_self_wrapper(c66ff900,e70eb848,c65266c8,c6525f78,e70eb8a0,...) at db_trace_self_wrapper+0x26
Dec 16 11:33:50 willet kernel: _witness_debugger(c0c02444,c0ebc6b0,c0bf6678,c6525f78,c0c17e5e,...) at _witness_debugger+0x25
Dec 16 11:33:50 willet kernel: witness_checkorder(c0ebc6b0,1,c0c17e5e,78c,0,...) at witness_checkorder+0x73b
Dec 16 11:33:50 willet kernel: _rw_rlock(c0ebc6b0,c0c17e5e,78c,1,0,...) at _rw_rlock+0x5d
Dec 16 11:33:50 willet kernel: icmp6_input(e70ebb0c,e70ebb20,3a,21a,c0c21ff3,...) at icmp6_input+0x70e
Dec 16 11:33:50 willet kernel: ip6_input(c6b2a000,c6b2a000,156,3,0) at ip6_input+0xbcc
Dec 16 11:33:50 willet kernel: ether_demux(c6713c00,c6b2a000,3,0,3,...) at ether_demux+0x1f1
Dec 16 11:33:50 willet kernel: ether_input(c6713c00,c6b2a000,c0bdf85a,bd0,c66eee00,...) at ether_input+0x1b4
Dec 16 11:33:50 willet kernel: msk_handle_events(c66eeeac,0,c0bdf85a,ddb,c66eeeac,...) at msk_handle_events+0x7ba
Dec 16 11:33:50 willet kernel: msk_int_task(c66eee00,1,c0c00de6,52,c6726ac4,...) at msk_int_task+0x167
Dec 16 11:33:50 willet kernel: taskqueue_run(c6726ac0,c6726adc,c0bf3078,0,e70ebcf8,...) at taskqueue_run+0xa1
Dec 16 11:33:50 willet kernel: taskqueue_thread_loop(c66eee98,e70ebd38,c0bf851e,32d,c0d4c2c0,...) at taskqueue_thread_loop+0x6a
Dec 16 11:33:50 willet kernel: fork_exit(c0886370,c66eee98,e70ebd38) at fork_exit+0xa6
Dec 16 11:33:50 willet kernel: fork_trampoline() at fork_trampoline+0x8
Dec 16 11:33:50 willet kernel: --- trap 0, eip = 0, esp = 0xe70ebd70, ebp = 0 ---
Dec 16 11:33:50 willet kernel: Sleeping on "-" with the following non-sleepable locks held:
Dec 16 11:33:50 willet kernel: shared rw lle (lle) r = 5 (0xc6bbe708) locked _at_ /usr/src/sys/netinet6/in6.c:2217
Dec 16 11:33:50 willet kernel: KDB: stack backtrace:
Dec 16 11:33:50 willet kernel: db_trace_self_wrapper(c0c18234,8a9,ffffffff,c0e8e32c,e70ebc9c,...) at db_trace_self_wrapper+0x26
Dec 16 11:33:50 willet kernel: _witness_debugger(c0c01a0f,e70ebcb0,4,1,1,...) at _witness_debugger+0x25
Dec 16 11:33:50 willet kernel: witness_warn(5,0,c0bfd02e,c0bf3078,0,...) at witness_warn+0x1c1
Dec 16 11:33:50 willet kernel: msleep_spin(c6726ac0,c6726adc,c0bf3078,0,e70ebcf8,...) at msleep_spin+0x149
Dec 16 11:33:50 willet kernel: taskqueue_thread_loop(c66eee98,e70ebd38,c0bf851e,32d,c0d4c2c0,...) at taskqueue_thread_loop+0x5c
Dec 16 11:33:50 willet kernel: fork_exit(c0886370,c66eee98,e70ebd38) at fork_exit+0xa6
Dec 16 11:33:50 willet kernel: fork_trampoline() at fork_trampoline+0x8
Dec 16 11:33:50 willet kernel: --- trap 0, eip = 0, esp = 0xe70ebd70, ebp = 0 ---
Dec 16 11:33:50 willet kernel: Sleeping on "-" with the following non-sleepable locks held:
Dec 16 11:33:50 willet kernel: shared rw lle (lle) r = 5 (0xc6bbe708) locked _at_ /usr/src/sys/netinet6/in6.c:2217
Dec 16 11:33:50 willet kernel: KDB: stack backtrace:
Dec 16 11:33:50 willet kernel: db_trace_self_wrapper(c0c18234,8a9,ffffffff,c0e8e32c,e70ebc9c,...) at db_trace_self_wrapper+0x26
Dec 16 11:33:50 willet kernel: _witness_debugger(c0c01a0f,e70ebcb0,4,1,1,...) at _witness_debugger+0x25
Dec 16 11:33:50 willet kernel: witness_warn(5,0,c0bfd02e,c0bf3078,0,...) at witness_warn+0x1c1
Dec 16 11:33:50 willet kernel: msleep_spin(c6726ac0,c6726adc,c0bf3078,0,e70ebcf8,...) at msleep_spin+0x149
Dec 16 11:33:50 willet kernel: taskqueue_thread_loop(c66eee98,e70ebd38,c0bf851e,32d,c0d4c2c0,...) at taskqueue_thread_loop+0x5c
Dec 16 11:33:50 willet kernel: fork_exit(c0886370,c66eee98,e70ebd38) at fork_exit+0xa6
Dec 16 11:33:50 willet kernel: fork_trampoline() at fork_trampoline+0x8
Dec 16 11:33:50 willet kernel: --- trap 0, eip = 0, esp = 0xe70ebd70, ebp = 0 ---
Dec 16 11:33:50 willet kernel: Sleeping on "-" with the following non-sleepable locks held:
Dec 16 11:33:50 willet kernel: shared rw lle (lle) r = 5 (0xc6bbe708) locked _at_ /usr/src/sys/netinet6/in6.c:2217
Dec 16 11:33:50 willet kernel: KDB: stack backtrace:
Dec 16 11:33:50 willet kernel: db_trace_self_wrapper(c0c18234,8a9,ffffffff,c0e8e32c,e70ebc9c,...) at db_trace_self_wrapper+0x26
Dec 16 11:33:50 willet kernel: _witness_debugger(c0c01a0f,e70ebcb0,4,1,1,...) at _witness_debugger+0x25
Dec 16 11:33:50 willet kernel: witness_warn(5,0,c0bfd02e,c0bf3078,0,...) at witness_warn+0x1c1
Dec 16 11:33:50 willet kernel: msleep_spin(c6726ac0,c6726adc,c0bf3078,0,e70ebcf8,...) at msleep_spin+0x149
Dec 16 11:33:50 willet kernel: taskqueue_thread_loop(c66eee98,e70ebd38,c0bf851e,32d,c0d4c2c0,...) at taskqueue_thread_loop+0x5c
Dec 16 11:33:50 willet kernel: fork_exit(c0886370,c66eee98,e70ebd38) at fork_exit+0xa6
Dec 16 11:33:50 willet kernel: fork_trampoline() at fork_trampoline+0x8
Dec 16 11:33:50 willet kernel: --- trap 0, eip = 0, esp = 0xe70ebd70, ebp = 0 ---
Dec 16 11:33:50 willet kernel: Sleeping on "-" with the following non-sleepable locks held:
Dec 16 11:33:50 willet kernel: shared rw lle (lle) r = 5 (0xc6bbe708) locked _at_ /usr/src/sys/netinet6/in6.c:2217
Dec 16 11:33:50 willet kernel: KDB: stack backtrace:
Dec 16 11:33:50 willet kernel: db_trace_self_wrapper(c0c18234,8a9,ffffffff,c0e8e32c,e70ebc9c,...) at db_trace_self_wrapper+0x26
Dec 16 11:33:50 willet kernel: _witness_debugger(c0c01a0f,e70ebcb0,4,1,1,...) at _witness_debugger+0x25
Dec 16 11:33:50 willet kernel: witness_warn(5,0,c0bfd02e,c0bf3078,0,...) at witness_warn+0x1c1
Dec 16 11:33:50 willet kernel: msleep_spin(c6726ac0,c6726adc,c0bf3078,0,e70ebcf8,...) at msleep_spin+0x149
Dec 16 11:33:50 willet kernel: taskqueue_thread_loop(c66eee98,e70ebd38,c0bf851e,32d,c0d4c2c0,...) at taskqueue_thread_loop+0x5c
Dec 16 11:33:50 willet kernel: fork_exit(c0886370,c66eee98,e70ebd38) at fork_exit+0xa6
Dec 16 11:33:50 willet kernel: fork_trampoline() at fork_trampoline+0x8
Dec 16 11:33:50 willet kernel: --- trap 0, eip = 0, esp = 0xe70ebd70, ebp = 0 ---
Dec 16 11:33:50 willet kernel: Sleeping on "-" with the following non-sleepable locks held:
Dec 16 11:33:50 willet kernel: shared rw lle (lle) r = 5 (0xc6bbe708) locked _at_ /usr/src/sys/netinet6/in6.c:2217
Dec 16 11:33:50 willet kernel: KDB: stack backtrace:
Dec 16 11:33:50 willet kernel: db_trace_self_wrapper(c0c18234,8a9,ffffffff,c0e8e32c,e70ebc9c,...) at db_trace_
Dec 16 11:33:50 willet kernel: self_wrapper+0x26
Dec 16 11:33:50 willet kernel: _witness_debugger(c0c01a0f,e70ebcb0,4,1,1,...) at _witness_debugger+0x25
Dec 16 11:33:50 willet kernel: witness_warn(5,0,c0bfd02e,c0bf3078,0,...) at witness_warn+0x1c1
Dec 16 11:33:50 willet kernel: msleep_spin(c6726ac0,c6726adc,c0bf3078,0,e70ebcf8,...) at msleep_spin+0x149
Dec 16 11:33:50 willet kernel: taskqueue_thread_loop(c66eee98,e70ebd38,c0bf851e,32d,c0d4c2c0,...) at taskqueue_thread_loop+0x5c
Dec 16 11:33:50 willet kernel: fork_exit(c0886370,c66eee98,e70ebd38) at fork_exit+0xa6
Dec 16 11:33:50 willet kernel: fork_trampoline() at fork_trampoline+0x8
Dec 16 11:33:50 willet kernel: --- trap 0, eip = 0, esp = 0xe70ebd70, ebp = 0 ---
Dec 16 11:33:52 willet kernel: msk0: link state changed to UP
Received on Tue Dec 16 2008 - 10:49:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:39 UTC