Date: Fri, 27 Mar 2015 18:32:57 -0500 From: Lars <lars@odin-corporation.com> To: freebsd-current@freebsd.org Subject: locking issue between igmp and route code in current? Message-ID: <49CA9057-E7E4-4AE2-A0DC-F31E7EF4D7A9@odin-corporation.com>
next in thread | raw e-mail | index | archive | help
Hi, I realized that I hadn=E2=80=99t copied the other half of the locking = issue mentioned earlier.. Lars Mon Mar 23 12:42:15 CDT 2015 lock order reversal: 1st 0xfffff80003d62190 if_addr_lock (if_addr_lock) @ = /u/lars/sandbox/builds/current_10032015/sys/netinet/igmp.c:1714 2nd 0xffffffff80e387b0 ifnet_rw (ifnet_rw) @ = /u/lars/sandbox/builds/current_10032015/sys/net/if.c:243 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame = 0xfffffe0043faf6f0 witness_checkorder() at witness_checkorder+0xbe7/frame = 0xfffffe0043faf780 __rw_rlock() at __rw_rlock+0x5a/frame 0xfffffe0043faf820 ifnet_byindex() at ifnet_byindex+0x22/frame 0xfffffe0043faf840 igmp_intr() at igmp_intr+0x1d/frame 0xfffffe0043faf8c0 netisr_dispatch_src() at netisr_dispatch_src+0x61/frame = 0xfffffe0043faf930 igmp_v1v2_queue_report() at igmp_v1v2_queue_report+0x14b/frame = 0xfffffe0043faf980 igmp_fasttimo() at igmp_fasttimo+0x381/frame 0xfffffe0043fafa30 pffasttimo() at pffasttimo+0x54/frame 0xfffffe0043fafa60 softclock_call_cc() at softclock_call_cc+0x165/frame 0xfffffe0043fafb20 softclock() at softclock+0x3d/frame 0xfffffe0043fafb40 intr_event_execute_handlers() at intr_event_execute_handlers+0xb1/frame = 0xfffffe0043fafb70 ithread_loop() at ithread_loop+0x9c/frame 0xfffffe0043fafbb0 fork_exit() at fork_exit+0x71/frame 0xfffffe0043fafbf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0043fafbf0 --- trap 0, rip =3D 0, rsp =3D 0xfffffe0043fafcb0, rbp =3D 0 --- lock order reversal: 1st 0xfffff80003d62190 if_addr_lock (if_addr_lock) @ = /u/lars/sandbox/builds/current_10032015/sys/netinet/igmp.c:1714 2nd 0xfffff800090d7be0 radix node head (radix node head) @ = /u/lars/sandbox/builds/current_10032015/sys/net/route.c:415 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame = 0xfffffe0043faf3f0 witness_checkorder() at witness_checkorder+0xbe7/frame = 0xfffffe0043faf480 __rw_rlock() at __rw_rlock+0x5a/frame 0xfffffe0043faf520 rtalloc1_fib() at rtalloc1_fib+0x60/frame 0xfffffe0043faf5d0 rtalloc_ign_fib() at rtalloc_ign_fib+0x98/frame 0xfffffe0043faf610 flowtable_lookup_common() at flowtable_lookup_common+0x1e6/frame = 0xfffffe0043faf6f0 flowtable_lookup() at flowtable_lookup+0x10f/frame 0xfffffe0043faf750 ip_output() at ip_output+0x87/frame 0xfffffe0043faf840 igmp_intr() at igmp_intr+0x2ed/frame 0xfffffe0043faf8c0 netisr_dispatch_src() at netisr_dispatch_src+0x61/frame = 0xfffffe0043faf930 igmp_v1v2_queue_report() at igmp_v1v2_queue_report+0x14b/frame = 0xfffffe0043faf980 igmp_fasttimo() at igmp_fasttimo+0x381/frame 0xfffffe0043fafa30 pffasttimo() at pffasttimo+0x54/frame 0xfffffe0043fafa60 softclock_call_cc() at softclock_call_cc+0x165/frame 0xfffffe0043fafb20 softclock() at softclock+0x3d/frame 0xfffffe0043fafb40 intr_event_execute_handlers() at intr_event_execute_handlers+0xb1/frame = 0xfffffe0043fafb70 ithread_loop() at ithread_loop+0x9c/frame 0xfffffe0043fafbb0 fork_exit() at fork_exit+0x71/frame 0xfffffe0043fafbf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0043fafbf0 --- trap 0, rip =3D 0, rsp =3D 0xfffffe0043fafcb0, rbp =3D 0 --- panic: deadlkres: possible deadlock detected for 0xfffff8018245d000, = blocked for 1802208 ticks cpuid =3D 16 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame = 0xfffffe00cac40a80 vpanic() at vpanic+0x187/frame 0xfffffe00cac40b00 panic() at panic+0x43/frame 0xfffffe00cac40b60 deadlkres() at deadlkres+0x2fc/frame 0xfffffe00cac40bb0 fork_exit() at fork_exit+0x71/frame 0xfffffe00cac40bf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00cac40bf0 --- trap 0, rip =3D 0, rsp =3D 0xfffffe00cac40cb0, rbp =3D 0 --- KDB: enter: panic
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49CA9057-E7E4-4AE2-A0DC-F31E7EF4D7A9>