====================================== | [ 74.912484][ T593] #0: ffffffff91de7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 74.912766][ T593] #1: ffffffff91dd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 74.913089][ T593] | [ 74.913089][ T593] stack backtrace: [ 74.913524][ T593] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 74.913721][ T593] Call Trace: [ 74.913840][ T593] [ 74.913936][ T593] dump_stack_lvl (lib/dump_stack.c:123) [ 74.914119][ T593] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 74.914292][ T593] validate_chain (kernel/locking/lockdep.c:3894) [ 74.914459][ T593] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 74.914617][ T593] ? 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) [ 74.914775][ T593] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 74.914897][ T593] __lock_acquire (kernel/locking/lockdep.c:5226) [ 74.915059][ T593] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 74.915225][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 74.915438][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 74.915597][ T593] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 74.915753][ T593] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 74.915907][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 74.916108][ T593] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 74.916232][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 74.916432][ T593] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 74.916595][ T593] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 74.916754][ T593] __dev_close_many (net/core/dev.c:1537 (discriminator 3)) [ 74.916915][ T593] ? __pfx___dev_close_many (net/core/dev.c:1525) [ 74.917081][ T593] dev_close_many (net/core/dev.c:1588) [ 74.917245][ T593] ? __pfx_dev_close_many (net/core/dev.c:1578) [ 74.917402][ T593] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 74.917615][ T593] vlan_device_event (net/8021q/vlan.c:451) 8021q [ 74.917820][ T593] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 74.918036][ T593] ? packet_notifier (net/packet/af_packet.c:4282) [ 74.918200][ T593] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 74.918363][ T593] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 74.918526][ T593] __dev_notify_flags (net/core/dev.c:9010) [ 74.918684][ T593] ? __pfx___dev_notify_flags (net/core/dev.c:8997) [ 74.918856][ T593] ? __dev_change_flags (./include/linux/list.h:111 ./include/linux/list.h:215 ./include/linux/list.h:229 net/core/dev.c:1574 net/core/dev.c:8964) [ 74.919013][ T593] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 74.919169][ T593] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 74.919327][ T593] ? validate_chain (kernel/locking/lockdep.c:3797 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 74.919486][ T593] dev_change_flags (net/core/dev.c:9045) [ 74.919646][ T593] cycle_netdev (drivers/net/vrf.c:1053) vrf [ 74.919806][ T593] vrf_del_slave (drivers/net/vrf.c:1120) vrf [ 74.919962][ T593] do_set_master (net/core/rtnetlink.c:2912) [ 74.920128][ T593] do_setlink.constprop.0 (net/core/rtnetlink.c:3125) [ 74.920297][ T593] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 74.920493][ T593] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 74.920653][ T593] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 74.920814][ T593] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 74.920969][ T593] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 74.921129][ T593] ? __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) [ 74.921294][ T593] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 74.921490][ T593] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 74.921646][ T593] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 74.921805][ T593] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 74.921973][ T593] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 74.922132][ T593] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 74.922289][ T593] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 74.922453][ T593] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 74.922612][ T593] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 74.922770][ T593] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 74.922927][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 74.923093][ T593] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 74.923253][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 74.923415][ T593] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 74.923578][ T593] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 74.923734][ T593] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 74.923892][ T593] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 74.924052][ T593] ? 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) [ 74.924210][ T593] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 74.924331][ T593] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 74.924490][ T593] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 74.924649][ T593] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 74.924812][ T593] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 74.924971][ T593] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 74.925132][ T593] ? 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) [ 74.925291][ T593] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 74.925454][ T593] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 74.925648][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 74.925808][ T593] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 74.925976][ T593] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 74.926140][ T593] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 74.926300][ T593] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 74.926457][ T593] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 74.926656][ T593] ___sys_sendmsg (net/socket.c:2650) [ 74.926815][ T593] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 74.926978][ T593] ? kasan_save_stack (mm/kasan/common.c:49) [ 74.927145][ T593] ? kasan_save_stack (mm/kasan/common.c:48) [ 74.927304][ T593] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 74.927464][ T593] ? __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) [ 74.927662][ T593] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 74.927821][ T593] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 74.927982][ T593] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 74.928180][ T593] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 74.928345][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 74.928510][ T593] ? __lock_release (kernel/locking/lockdep.c:5525) [ 74.928667][ T593] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 74.928825][ T593] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 74.928984][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 74.929145][ T593] __sys_sendmsg (net/socket.c:2680) [ 74.929301][ T593] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 74.929460][ T593] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 74.929664][ T593] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 74.929819][ T593] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 74.930017][ T593] RIP: 0033:0x7f5d371ce9a7 [ 74.930183][ T593] 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) [ 74.930760][ T593] RSP: 002b:00007ffda74fea38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 74.931002][ T593] RAX: ffffffffffffffda RBX: 00007ffda74ff160 RCX: 00007f5d371ce9a7 [ 74.931247][ T593] RDX: 0000000000000000 RSI: 00007ffda74feaa0 RDI: 0000000000000005 [ 74.931482][ T593] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 74.931731][ T593] R10: 000000003553a910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain