====================================== | [ 140.697992][ T1033] #0: ffffffff955e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink (net/core/rtnetlink.c:3512) | [ 140.698266][ T1033] #1: ffffffff955d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 140.698558][ T1033] | [ 140.698558][ T1033] stack backtrace: [ 140.698968][ T1033] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 140.699152][ T1033] Call Trace: [ 140.699268][ T1033] [ 140.699347][ T1033] dump_stack_lvl (lib/dump_stack.c:123) [ 140.699501][ T1033] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 140.699652][ T1033] validate_chain (kernel/locking/lockdep.c:3894) [ 140.699806][ T1033] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 140.699962][ T1033] ? 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) [ 140.700111][ T1033] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 140.700227][ T1033] __lock_acquire (kernel/locking/lockdep.c:5226) [ 140.700375][ T1033] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 140.700520][ T1033] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 140.700705][ T1033] ? netconsole_process_cleanups_core (drivers/net/netconsole.c:242 (discriminator 11)) [ 140.700899][ T1033] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 140.701050][ T1033] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 140.701196][ T1033] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 140.701349][ T1033] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 140.701534][ T1033] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 140.701647][ T1033] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 140.701830][ T1033] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 140.701981][ T1033] ? __lock_release (kernel/locking/lockdep.c:5525) [ 140.702130][ T1033] ? netconsole_netdev_event (drivers/net/netconsole.c:1082) [ 140.702277][ T1033] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 140.702426][ T1033] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 140.702575][ T1033] __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)) [ 140.702722][ T1033] ? __pfx___netdev_upper_dev_unlink (net/core/dev.c:8151) [ 140.702908][ T1033] ? __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) [ 140.703062][ T1033] ? __pfx___mutex_unlock_slowpath (kernel/locking/mutex.c:890) [ 140.703243][ T1033] ? rtnl_is_locked (net/core/rtnetlink.c:164) [ 140.703395][ T1033] netdev_upper_dev_unlink (net/core/dev.c:8190) [ 140.703568][ T1033] ? __pfx_netdev_upper_dev_unlink (net/core/dev.c:8190) [ 140.703769][ T1033] ? netconsole_netdev_event (drivers/net/netconsole.c:1082) [ 140.703915][ T1033] ? 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) [ 140.704061][ T1033] ? rtnl_is_locked (net/core/rtnetlink.c:164) [ 140.704214][ T1033] ? netdev_master_upper_dev_get (net/core/dev.c:7230) [ 140.704395][ T1033] vrf_device_event (drivers/net/vrf.c:1110 drivers/net/vrf.c:1119 drivers/net/vrf.c:1804) vrf [ 140.704546][ T1033] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 140.704695][ T1033] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 140.704843][ T1033] unregister_netdevice_many_notify (net/core/dev.c:11571) [ 140.705023][ T1033] ? __lock_release (kernel/locking/lockdep.c:5525) [ 140.705170][ T1033] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 140.705321][ T1033] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11512) [ 140.705504][ T1033] ? 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) [ 140.705654][ T1033] ? mark_held_locks (kernel/locking/lockdep.c:4321) [ 140.705801][ T1033] ? __pfx_vlan_info_rcu_free (net/8021q/vlan_core.c:145) [ 140.705952][ T1033] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 140.706134][ T1033] rtnl_dellink (net/core/rtnetlink.c:3478 net/core/rtnetlink.c:3518) [ 140.706290][ T1033] ? __pfx_rtnl_dellink (net/core/rtnetlink.c:3484) [ 140.706451][ T1033] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 140.706600][ T1033] ? __lock_release (kernel/locking/lockdep.c:5525) [ 140.706760][ T1033] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 140.706907][ T1033] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 140.707053][ T1033] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 140.707204][ T1033] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 140.707353][ T1033] ? __pfx_rtnl_dellink (net/core/rtnetlink.c:3484) [ 140.707501][ T1033] rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 140.707649][ T1033] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 140.707796][ T1033] ? 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) [ 140.707942][ T1033] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 140.708053][ T1033] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 140.708198][ T1033] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 140.708345][ T1033] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 140.708497][ T1033] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 140.708648][ T1033] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 140.708794][ T1033] ? 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) [ 140.708943][ T1033] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 140.709092][ T1033] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 140.709237][ T1033] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 140.709386][ T1033] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 140.709541][ T1033] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 140.709697][ T1033] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 140.709849][ T1033] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 140.710000][ T1033] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 140.710188][ T1033] ___sys_sendmsg (net/socket.c:2650) [ 140.710334][ T1033] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 140.710480][ T1033] ? kasan_save_stack (mm/kasan/common.c:49) [ 140.710634][ T1033] ? kasan_save_stack (mm/kasan/common.c:48) [ 140.710785][ T1033] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 140.710933][ T1033] ? __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) [ 140.711122][ T1033] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 140.711272][ T1033] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 140.711425][ T1033] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 140.711616][ T1033] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 140.711772][ T1033] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 140.711922][ T1033] ? __lock_release (kernel/locking/lockdep.c:5525) [ 140.712072][ T1033] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 140.712220][ T1033] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 140.712364][ T1033] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 140.712512][ T1033] __sys_sendmsg (net/socket.c:2680) [ 140.712658][ T1033] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 140.712814][ T1033] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 140.713005][ T1033] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 140.713162][ T1033] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 140.713345][ T1033] RIP: 0033:0x7fa3306cd9a7 [ 140.713505][ T1033] 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) [ 140.714035][ T1033] RSP: 002b:00007ffea32e2338 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 140.714259][ T1033] RAX: ffffffffffffffda RBX: 00007ffea32e2a60 RCX: 00007fa3306cd9a7 [ 140.714494][ T1033] RDX: 0000000000000000 RSI: 00007ffea32e23a0 RDI: 0000000000000005 [ 140.714719][ T1033] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 140.714968][ T1033] R10: 00007fa33058bef8 R11: 0000000000000246 R12: 0000000000000002 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain