====================================== | [ 74.761209][ T593] #0: ffffffff989e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) | [ 74.761497][ T593] #1: ffffffff989d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 74.761825][ T593] | [ 74.761825][ T593] stack backtrace: [ 74.762285][ T593] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 74.762500][ T593] Call Trace: [ 74.762622][ T593] [ 74.762703][ T593] dump_stack_lvl (lib/dump_stack.c:123) [ 74.762873][ T593] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 74.763032][ T593] validate_chain (kernel/locking/lockdep.c:3894) [ 74.763190][ T593] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 74.763353][ 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.763509][ T593] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 74.763631][ T593] __lock_acquire (kernel/locking/lockdep.c:5226) [ 74.763790][ T593] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 74.763945][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 74.764144][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 74.764301][ T593] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 74.764459][ T593] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 74.764613][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 74.764814][ 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.764934][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 74.765129][ T593] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 74.765286][ T593] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 74.765445][ T593] __dev_close_many (net/core/dev.c:1537 (discriminator 3)) [ 74.765605][ T593] ? __pfx___dev_close_many (net/core/dev.c:1525) [ 74.765764][ T593] dev_close_many (net/core/dev.c:1588) [ 74.765924][ T593] ? __pfx_dev_close_many (net/core/dev.c:1578) [ 74.766081][ T593] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 74.766308][ T593] vlan_device_event (net/8021q/vlan.c:451) 8021q [ 74.766508][ T593] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 74.766707][ T593] ? packet_notifier (net/packet/af_packet.c:4282) [ 74.766870][ T593] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 74.767027][ T593] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 74.767191][ T593] __dev_notify_flags (net/core/dev.c:9010) [ 74.767349][ T593] ? __pfx___dev_notify_flags (net/core/dev.c:8997) [ 74.767506][ 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.767664][ T593] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 74.767822][ T593] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 74.767982][ T593] ? validate_chain (kernel/locking/lockdep.c:3797 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 74.768137][ T593] dev_change_flags (net/core/dev.c:9045) [ 74.768298][ T593] cycle_netdev (drivers/net/vrf.c:1053) vrf [ 74.768457][ T593] vrf_del_slave (drivers/net/vrf.c:1120) vrf [ 74.768615][ T593] do_set_master (net/core/rtnetlink.c:2903) [ 74.768771][ T593] do_setlink.constprop.0 (net/core/rtnetlink.c:3116) [ 74.768928][ T593] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2990) [ 74.769119][ T593] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 74.769275][ T593] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 74.769435][ T593] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3912) [ 74.769588][ T593] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 74.769744][ 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.769905][ T593] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 74.770105][ T593] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 74.770290][ T593] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 74.770448][ T593] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 74.770611][ T593] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 74.770768][ T593] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 74.770923][ T593] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 74.771081][ T593] ? __rtnl_newlink (net/core/rtnetlink.c:3862) [ 74.771239][ T593] rtnl_newlink (net/core/rtnetlink.c:336 net/core/rtnetlink.c:4013) [ 74.771398][ T593] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 74.771557][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 74.771715][ T593] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 74.771878][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 74.772037][ T593] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 74.772199][ T593] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 74.772357][ T593] rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 74.772521][ T593] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 74.772676][ 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.772832][ T593] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 74.773054][ T593] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 74.773248][ T593] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 74.773408][ T593] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 74.773564][ T593] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 74.773727][ T593] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 74.773886][ 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.774043][ T593] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 74.774236][ T593] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 74.774400][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 74.774562][ T593] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 74.774720][ T593] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 74.774879][ T593] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 74.775039][ T593] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 74.775198][ T593] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 74.775399][ T593] ___sys_sendmsg (net/socket.c:2650) [ 74.775558][ T593] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 74.775716][ T593] ? kasan_save_stack (mm/kasan/common.c:49) [ 74.775875][ T593] ? kasan_save_stack (mm/kasan/common.c:48) [ 74.776034][ T593] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 74.776195][ 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.776398][ T593] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 74.776556][ T593] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 74.776722][ T593] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 74.776926][ T593] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 74.777087][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 74.777246][ T593] ? __lock_release (kernel/locking/lockdep.c:5525) [ 74.777404][ 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.777566][ T593] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 74.777724][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 74.777885][ T593] __sys_sendmsg (net/socket.c:2680) [ 74.778042][ T593] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 74.778224][ T593] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 74.778427][ T593] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 74.778585][ T593] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 74.778778][ T593] RIP: 0033:0x7f13f63479a7 [ 74.778948][ 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.779516][ T593] RSP: 002b:00007ffe12d0d4e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 74.779758][ T593] RAX: ffffffffffffffda RBX: 00007ffe12d0dc10 RCX: 00007f13f63479a7 [ 74.779995][ T593] RDX: 0000000000000000 RSI: 00007ffe12d0d550 RDI: 0000000000000005 [ 74.780233][ T593] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 74.780470][ T593] R10: 0000000017f5d910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain