====================================== | [ 506.300991][ T3698] #0: ffffffffb5be3948 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) | [ 506.301410][ T3698] #1: ffffffffb5bd25f0 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 506.301907][ T3698] | [ 506.301907][ T3698] stack backtrace: [ 506.302556][ T3698] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 506.302843][ T3698] Call Trace: [ 506.303021][ T3698] [ 506.303152][ T3698] dump_stack_lvl (lib/dump_stack.c:123) [ 506.303410][ T3698] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 506.303653][ T3698] validate_chain (kernel/locking/lockdep.c:3894) [ 506.303891][ T3698] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 506.304127][ T3698] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 506.304356][ T3698] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 506.304530][ T3698] __lock_acquire (kernel/locking/lockdep.c:5226) [ 506.304765][ T3698] ? __rhashtable_remove_fast.constprop.0 (./include/linux/rhashtable.h:1095) [ 506.305059][ T3698] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 506.305291][ T3698] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 506.305537][ T3698] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 506.305824][ T3698] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 506.306066][ T3698] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 506.306298][ T3698] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 506.306528][ T3698] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 506.306764][ T3698] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 506.307053][ T3698] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 506.307230][ T3698] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 506.307513][ T3698] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 506.307744][ T3698] ? notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 506.307977][ T3698] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 506.308211][ T3698] call_netdevice_notifiers (net/core/dev.c:2062) [ 506.308450][ T3698] ? __pfx_call_netdevice_notifiers (net/core/dev.c:2062) [ 506.308704][ T3698] ? mutex_is_locked (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-long.h:38 ./include/linux/atomic/atomic-instrumented.h:3189 kernel/locking/mutex.h:47 kernel/locking/mutex.c:66) [ 506.308853][ T3698] udp_tunnel_nic_netdevice_event (net/ipv4/udp_tunnel_nic.c:915) udp_tunnel [ 506.309083][ T3698] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 506.309232][ T3698] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 506.309395][ T3698] __dev_notify_flags (net/core/dev.c:9010) [ 506.309553][ T3698] ? __pfx___dev_notify_flags (net/core/dev.c:8997) [ 506.309790][ T3698] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 506.309984][ T3698] ? unwind_get_return_address (arch/x86/kernel/unwind_orc.c:369 arch/x86/kernel/unwind_orc.c:364) [ 506.310245][ T3698] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 506.310541][ T3698] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 506.310810][ T3698] dev_change_flags (net/core/dev.c:9045) [ 506.311059][ T3698] do_setlink.constprop.0 (net/core/rtnetlink.c:3109) [ 506.311336][ T3698] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2990) [ 506.311637][ T3698] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 506.311879][ T3698] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 506.312155][ T3698] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3912) [ 506.312383][ T3698] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 506.312580][ T3698] ? __mutex_trylock_common (./arch/x86/include/asm/atomic64_64.h:101 ./include/linux/atomic/atomic-arch-fallback.h:4296 ./include/linux/atomic/atomic-long.h:1482 ./include/linux/atomic/atomic-instrumented.h:4458 kernel/locking/mutex.c:104) [ 506.312812][ T3698] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 506.313116][ T3698] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 506.313343][ T3698] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 506.313571][ T3698] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 506.313805][ T3698] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 506.314035][ T3698] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 506.314267][ T3698] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 506.314494][ T3698] ? __create_object (mm/kmemleak.c:766) [ 506.314720][ T3698] ? __rtnl_newlink (net/core/rtnetlink.c:3862) [ 506.314965][ T3698] rtnl_newlink (net/core/rtnetlink.c:336 net/core/rtnetlink.c:4013) [ 506.315211][ T3698] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 506.315439][ T3698] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 506.315671][ T3698] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 506.315902][ T3698] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 506.316138][ T3698] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 506.316367][ T3698] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 506.316601][ T3698] rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 506.316835][ T3698] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 506.317068][ T3698] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 506.317300][ T3698] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 506.317476][ T3698] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 506.317772][ T3698] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 506.318015][ T3698] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 506.318271][ T3698] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 506.318536][ T3698] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 506.318771][ T3698] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 506.319005][ T3698] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 506.319236][ T3698] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 506.319502][ T3698] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 506.319758][ T3698] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 506.319990][ T3698] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 506.320251][ T3698] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 506.320484][ T3698] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 506.320717][ T3698] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 506.321023][ T3698] ___sys_sendmsg (net/socket.c:2650) [ 506.321253][ T3698] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 506.321480][ T3698] ? kasan_save_stack (mm/kasan/common.c:49) [ 506.321692][ T3698] ? kasan_save_stack (mm/kasan/common.c:48) [ 506.321928][ T3698] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 506.322156][ T3698] ? __call_rcu_common.constprop.0 (./arch/x86/include/asm/irqflags.h:26 ./arch/x86/include/asm/irqflags.h:87 ./arch/x86/include/asm/irqflags.h:123 kernel/rcu/tree.c:3087) [ 506.322432][ T3698] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 506.322660][ T3698] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 506.322902][ T3698] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 506.323193][ T3698] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 506.323424][ T3698] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 506.323652][ T3698] ? __lock_release (kernel/locking/lockdep.c:5525) [ 506.323880][ T3698] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 506.324129][ T3698] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 506.324357][ T3698] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 506.324590][ T3698] __sys_sendmsg (net/socket.c:2680) [ 506.324839][ T3698] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 506.325066][ T3698] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 506.325372][ T3698] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 506.325599][ T3698] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 506.325930][ T3698] RIP: 0033:0x7fa36b4b99a7 [ 506.326174][ T3698] Code: 0a 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 All code ======== 0: 0a 00 or (%rax),%al 2: f7 d8 neg %eax 4: 64 89 02 mov %eax,%fs:(%rdx) 7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax e: eb b9 jmp 0xffffffffffffffc9 10: 0f 1f 00 nopl (%rax) 13: f3 0f 1e fa endbr64 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 10 jne 0x33 23: b8 2e 00 00 00 mov $0x2e,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 51 ja 0x83 32: c3 ret 33: 48 83 ec 28 sub $0x28,%rsp 37: 89 54 24 1c mov %edx,0x1c(%rsp) 3b: 48 89 74 24 10 mov %rsi,0x10(%rsp) Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 51 ja 0x59 8: c3 ret 9: 48 83 ec 28 sub $0x28,%rsp d: 89 54 24 1c mov %edx,0x1c(%rsp) 11: 48 89 74 24 10 mov %rsi,0x10(%rsp) [ 506.327030][ T3698] RSP: 002b:00007ffc75594718 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 506.327423][ T3698] RAX: ffffffffffffffda RBX: 00007ffc75594e40 RCX: 00007fa36b4b99a7 [ 506.327769][ T3698] RDX: 0000000000000000 RSI: 00007ffc75594780 RDI: 0000000000000005 [ 506.328120][ T3698] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000000000078 [ 506.328464][ T3698] R10: 00007fa36b377ef8 R11: 0000000000000246 R12: 0000000000000003 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain