====================================== | [ 623.729374][ T2940] #0: ffffffff9a7e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink (net/core/rtnetlink.c:3512) | [ 623.729650][ T2940] #1: ffffffff9a7d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 623.729953][ T2940] | [ 623.729953][ T2940] stack backtrace: [ 623.730378][ T2940] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 623.730573][ T2940] Call Trace: [ 623.730688][ T2940] [ 623.730766][ T2940] dump_stack_lvl (lib/dump_stack.c:123) [ 623.730923][ T2940] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 623.731076][ T2940] validate_chain (kernel/locking/lockdep.c:3894) [ 623.731229][ T2940] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 623.731412][ T2940] ? 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) [ 623.731568][ T2940] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 623.731685][ T2940] __lock_acquire (kernel/locking/lockdep.c:5226) [ 623.731840][ T2940] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 623.731990][ T2940] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 623.732176][ T2940] ? netconsole_process_cleanups_core (drivers/net/netconsole.c:242 (discriminator 11)) [ 623.732370][ T2940] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 623.732526][ T2940] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 623.732676][ T2940] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 623.732824][ T2940] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 623.733011][ T2940] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 623.733125][ T2940] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 623.733312][ T2940] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 623.733465][ T2940] ? __lock_release (kernel/locking/lockdep.c:5525) [ 623.733618][ T2940] ? netconsole_netdev_event (drivers/net/netconsole.c:1082) [ 623.733772][ T2940] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 623.733929][ T2940] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 623.734079][ T2940] __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)) [ 623.734232][ T2940] ? __pfx___netdev_upper_dev_unlink (net/core/dev.c:8151) [ 623.734419][ T2940] ? __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) [ 623.734574][ T2940] ? __pfx___mutex_unlock_slowpath (kernel/locking/mutex.c:890) [ 623.734763][ T2940] ? rtnl_is_locked (net/core/rtnetlink.c:164) [ 623.734919][ T2940] netdev_upper_dev_unlink (net/core/dev.c:8190) [ 623.735070][ T2940] ? __pfx_netdev_upper_dev_unlink (net/core/dev.c:8190) [ 623.735255][ T2940] ? netconsole_netdev_event (drivers/net/netconsole.c:1082) [ 623.735437][ T2940] ? 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) [ 623.735600][ T2940] ? rtnl_is_locked (net/core/rtnetlink.c:164) [ 623.735762][ T2940] ? netdev_master_upper_dev_get (net/core/dev.c:7230) [ 623.735964][ T2940] vrf_device_event (drivers/net/vrf.c:1110 drivers/net/vrf.c:1119 drivers/net/vrf.c:1804) vrf [ 623.736137][ T2940] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 623.736304][ T2940] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 623.736467][ T2940] unregister_netdevice_many_notify (net/core/dev.c:11571) [ 623.736672][ T2940] ? 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) [ 623.736831][ T2940] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 623.736946][ T2940] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11512) [ 623.737136][ T2940] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 623.737325][ T2940] ? kfree (mm/slub.c:4613 mm/slub.c:4761) [ 623.737441][ T2940] ? vlan_vid_del (net/8021q/vlan_core.c:368 net/8021q/vlan_core.c:387) [ 623.737604][ T2940] ? vlan_vid_del (net/8021q/vlan_core.c:368 net/8021q/vlan_core.c:387) [ 623.737755][ T2940] rtnl_dellink (net/core/rtnetlink.c:3478 net/core/rtnetlink.c:3518) [ 623.737910][ T2940] ? __pfx_rtnl_dellink (net/core/rtnetlink.c:3484) [ 623.738078][ T2940] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 623.738231][ T2940] ? __lock_release (kernel/locking/lockdep.c:5525) [ 623.738390][ T2940] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 623.738542][ T2940] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 623.738694][ T2940] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 623.738847][ T2940] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 623.738996][ T2940] ? __pfx_rtnl_dellink (net/core/rtnetlink.c:3484) [ 623.739149][ T2940] rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 623.739323][ T2940] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 623.739478][ T2940] ? 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) [ 623.739632][ T2940] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 623.739747][ T2940] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 623.739898][ T2940] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 623.740049][ T2940] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 623.740211][ T2940] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 623.740371][ T2940] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 623.740529][ T2940] ? 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) [ 623.740681][ T2940] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 623.740833][ T2940] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 623.740984][ T2940] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 623.741141][ T2940] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 623.741294][ T2940] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 623.741447][ T2940] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 623.741604][ T2940] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 623.741756][ T2940] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 623.741945][ T2940] ___sys_sendmsg (net/socket.c:2650) [ 623.742096][ T2940] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 623.742252][ T2940] ? kasan_save_stack (mm/kasan/common.c:49) [ 623.742402][ T2940] ? kasan_save_stack (mm/kasan/common.c:48) [ 623.742556][ T2940] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 623.742707][ T2940] ? __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) [ 623.742895][ T2940] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 623.743044][ T2940] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 623.743193][ T2940] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 623.743412][ T2940] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 623.743570][ T2940] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 623.743721][ T2940] ? __lock_release (kernel/locking/lockdep.c:5525) [ 623.743870][ T2940] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 623.744021][ T2940] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 623.744173][ T2940] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 623.744324][ T2940] __sys_sendmsg (net/socket.c:2680) [ 623.744480][ T2940] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 623.744635][ T2940] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 623.744828][ T2940] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 623.744979][ T2940] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 623.745169][ T2940] RIP: 0033:0x7f8ec01469a7 [ 623.745339][ T2940] 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) [ 623.745882][ T2940] RSP: 002b:00007fff380002b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 623.746172][ T2940] RAX: ffffffffffffffda RBX: 00007fff380009e0 RCX: 00007f8ec01469a7 [ 623.746403][ T2940] RDX: 0000000000000000 RSI: 00007fff38000320 RDI: 0000000000000005 [ 623.746631][ T2940] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 623.746859][ T2940] R10: 00007f8ec0004ef8 R11: 0000000000000246 R12: 0000000000000002 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain