====================================== | [ 67.807635][ T763] #0: ffffffff8b5e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink (net/core/rtnetlink.c:3521) | [ 67.807942][ T763] #1: ffffffff8b5d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 67.808279][ T763] | [ 67.808279][ T763] stack backtrace: [ 67.808734][ T763] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 67.808947][ T763] Call Trace: [ 67.809077][ T763] [ 67.809165][ T763] dump_stack_lvl (lib/dump_stack.c:123) [ 67.809347][ T763] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 67.809512][ T763] validate_chain (kernel/locking/lockdep.c:3894) [ 67.809681][ T763] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 67.809851][ T763] ? 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) [ 67.810020][ T763] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 67.810147][ T763] __lock_acquire (kernel/locking/lockdep.c:5226) [ 67.810316][ T763] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 67.810477][ T763] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 67.810686][ T763] ? netconsole_process_cleanups_core (drivers/net/netconsole.c:242 (discriminator 11)) [ 67.810897][ T763] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 67.811064][ T763] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 67.811232][ T763] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 67.811398][ T763] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 67.811605][ T763] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 67.811730][ T763] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 67.811942][ T763] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 67.812112][ T763] ? __lock_release (kernel/locking/lockdep.c:5525) [ 67.812277][ T763] ? netconsole_netdev_event (drivers/net/netconsole.c:1082) [ 67.812452][ T763] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 67.812620][ T763] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 67.812792][ T763] __netdev_upper_dev_unlink (net/core/dev.c:8000 (discriminator 11) net/core/dev.c:8017 (discriminator 11) net/core/dev.c:8167 (discriminator 11)) [ 67.812972][ T763] ? __pfx___netdev_upper_dev_unlink (net/core/dev.c:8151) [ 67.813188][ T763] ? __mutex_unlock_slowpath (./arch/x86/include/asm/atomic64_64.h:101 ./include/linux/atomic/atomic-arch-fallback.h:4329 ./include/linux/atomic/atomic-long.h:1506 ./include/linux/atomic/atomic-instrumented.h:4481 kernel/locking/mutex.c:913) [ 67.813359][ T763] ? __pfx___mutex_unlock_slowpath (kernel/locking/mutex.c:890) [ 67.813576][ T763] ? rtnl_is_locked (net/core/rtnetlink.c:163) [ 67.813750][ T763] netdev_upper_dev_unlink (net/core/dev.c:8190) [ 67.813927][ T763] ? __pfx_netdev_upper_dev_unlink (net/core/dev.c:8190) [ 67.814139][ T763] ? netconsole_netdev_event (drivers/net/netconsole.c:1082) [ 67.814312][ T763] ? 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) [ 67.814485][ T763] ? rtnl_is_locked (net/core/rtnetlink.c:163) [ 67.814658][ T763] ? netdev_master_upper_dev_get (net/core/dev.c:7230) [ 67.814869][ T763] vrf_device_event (drivers/net/vrf.c:1110 drivers/net/vrf.c:1119 drivers/net/vrf.c:1804) vrf [ 67.815046][ T763] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 67.815222][ T763] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 67.815394][ T763] unregister_netdevice_many_notify (net/core/dev.c:11575) [ 67.815614][ T763] ? __lock_release (kernel/locking/lockdep.c:5525) [ 67.815788][ T763] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 67.815959][ T763] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11516) [ 67.816167][ T763] ? 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) [ 67.816343][ T763] ? mark_held_locks (kernel/locking/lockdep.c:4321) [ 67.816516][ T763] ? __pfx_vlan_info_rcu_free (net/8021q/vlan_core.c:145) [ 67.816690][ T763] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 67.816912][ T763] rtnl_dellink (net/core/rtnetlink.c:3487 net/core/rtnetlink.c:3527) [ 67.817086][ T763] ? __pfx_rtnl_dellink (net/core/rtnetlink.c:3493) [ 67.817273][ T763] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 67.817449][ T763] ? __lock_release (kernel/locking/lockdep.c:5525) [ 67.817627][ T763] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 67.817794][ T763] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 67.817959][ T763] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 67.818135][ T763] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 67.818302][ T763] ? __pfx_rtnl_dellink (net/core/rtnetlink.c:3493) [ 67.818468][ T763] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 67.818635][ T763] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 67.818803][ T763] ? 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) [ 67.818968][ T763] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 67.819096][ T763] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 67.819264][ T763] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 67.819436][ T763] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 67.819602][ T763] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 67.819772][ T763] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 67.819941][ T763] ? 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) [ 67.820113][ T763] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 67.820282][ T763] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 67.820451][ T763] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 67.820620][ T763] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 67.820790][ T763] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 67.820958][ T763] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 67.821125][ T763] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 67.821291][ T763] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 67.821502][ T763] ___sys_sendmsg (net/socket.c:2650) [ 67.821674][ T763] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 67.821841][ T763] ? kasan_save_stack (mm/kasan/common.c:49) [ 67.822011][ T763] ? kasan_save_stack (mm/kasan/common.c:48) [ 67.822176][ T763] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 67.822344][ T763] ? __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) [ 67.822553][ T763] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 67.822724][ T763] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 67.822893][ T763] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 67.823106][ T763] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 67.823272][ T763] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 67.823443][ T763] ? __lock_release (kernel/locking/lockdep.c:5525) [ 67.823608][ T763] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 67.823777][ T763] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 67.823941][ T763] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 67.824110][ T763] __sys_sendmsg (net/socket.c:2680) [ 67.824280][ T763] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 67.824452][ T763] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 67.824670][ T763] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 67.824844][ T763] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 67.825056][ T763] RIP: 0033:0x7fbea03bf9a7 [ 67.825232][ T763] 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) [ 67.825842][ T763] RSP: 002b:00007ffe70b1eaa8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 67.826101][ T763] RAX: ffffffffffffffda RBX: 00007ffe70b1f1d0 RCX: 00007fbea03bf9a7 [ 67.826356][ T763] RDX: 0000000000000000 RSI: 00007ffe70b1eb10 RDI: 0000000000000005 [ 67.826616][ T763] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 67.826873][ T763] R10: 00007fbea027def8 R11: 0000000000000246 R12: 0000000000000002 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain