====================================== | [ 75.029658][ T592] #0: ffffffffb61e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 75.029963][ T592] #1: ffffffffb61d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 75.030323][ T592] | [ 75.030323][ T592] stack backtrace: [ 75.030783][ T592] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 75.030996][ T592] Call Trace: [ 75.031124][ T592] [ 75.031211][ T592] dump_stack_lvl (lib/dump_stack.c:123) [ 75.031391][ T592] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 75.031563][ T592] validate_chain (kernel/locking/lockdep.c:3894) [ 75.031735][ T592] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 75.031908][ T592] ? 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) [ 75.032074][ T592] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 75.032206][ T592] __lock_acquire (kernel/locking/lockdep.c:5226) [ 75.032377][ T592] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 75.032558][ T592] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 75.032774][ T592] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 75.032942][ T592] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 75.033112][ T592] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 75.033280][ T592] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 75.033507][ T592] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 75.033639][ T592] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 75.033848][ T592] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 75.034023][ T592] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 75.034191][ T592] __dev_close_many (net/core/dev.c:1537 (discriminator 3)) [ 75.034361][ T592] ? __pfx___dev_close_many (net/core/dev.c:1525) [ 75.034532][ T592] dev_close_many (net/core/dev.c:1588) [ 75.034702][ T592] ? __pfx_dev_close_many (net/core/dev.c:1578) [ 75.034871][ T592] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 75.035081][ T592] vlan_device_event (net/8021q/vlan.c:451) 8021q [ 75.035309][ T592] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 75.035523][ T592] ? packet_notifier (net/packet/af_packet.c:4282) [ 75.035712][ T592] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 75.035883][ T592] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 75.036058][ T592] __dev_notify_flags (net/core/dev.c:9010) [ 75.036229][ T592] ? __pfx___dev_notify_flags (net/core/dev.c:8997) [ 75.036403][ T592] ? __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) [ 75.036575][ T592] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 75.036739][ T592] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 75.036909][ T592] ? validate_chain (kernel/locking/lockdep.c:3797 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 75.037126][ T592] dev_change_flags (net/core/dev.c:9045) [ 75.037295][ T592] cycle_netdev (drivers/net/vrf.c:1053) vrf [ 75.037473][ T592] vrf_del_slave (drivers/net/vrf.c:1120) vrf [ 75.037655][ T592] do_set_master (net/core/rtnetlink.c:2912) [ 75.037838][ T592] do_setlink.constprop.0 (net/core/rtnetlink.c:3125) [ 75.038007][ T592] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 75.038214][ T592] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 75.038378][ T592] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 75.038545][ T592] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 75.038754][ T592] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 75.038941][ T592] ? __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) [ 75.039140][ T592] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 75.039360][ T592] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 75.039529][ T592] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 75.039699][ T592] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 75.039878][ T592] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 75.040053][ T592] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 75.040221][ T592] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 75.040394][ T592] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 75.040560][ T592] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 75.040730][ T592] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 75.040896][ T592] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 75.041074][ T592] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 75.041268][ T592] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 75.041440][ T592] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 75.041615][ T592] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 75.041788][ T592] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 75.041956][ T592] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 75.042122][ T592] ? 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) [ 75.042289][ T592] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 75.042419][ T592] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 75.042591][ T592] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 75.042760][ T592] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 75.042932][ T592] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 75.043103][ T592] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 75.043273][ T592] ? 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) [ 75.043442][ T592] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 75.043609][ T592] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 75.043779][ T592] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 75.043952][ T592] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 75.044126][ T592] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 75.044307][ T592] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 75.044477][ T592] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 75.044650][ T592] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 75.044866][ T592] ___sys_sendmsg (net/socket.c:2650) [ 75.045038][ T592] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 75.045211][ T592] ? kasan_save_stack (mm/kasan/common.c:49) [ 75.045386][ T592] ? kasan_save_stack (mm/kasan/common.c:48) [ 75.045564][ T592] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 75.045733][ T592] ? __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) [ 75.046044][ T592] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 75.046216][ T592] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 75.046389][ T592] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 75.046698][ T592] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 75.046868][ T592] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 75.047042][ T592] ? __lock_release (kernel/locking/lockdep.c:5525) [ 75.047213][ T592] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 75.047487][ T592] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 75.047654][ T592] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 75.047825][ T592] __sys_sendmsg (net/socket.c:2680) [ 75.047994][ T592] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 75.048164][ T592] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 75.048385][ T592] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 75.048556][ T592] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 75.048764][ T592] RIP: 0033:0x7fedc95e99a7 [ 75.049042][ T592] 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) [ 75.049856][ T592] RSP: 002b:00007ffcbe3d2268 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 75.050111][ T592] RAX: ffffffffffffffda RBX: 00007ffcbe3d2990 RCX: 00007fedc95e99a7 [ 75.050364][ T592] RDX: 0000000000000000 RSI: 00007ffcbe3d22d0 RDI: 0000000000000005 [ 75.050613][ T592] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 75.050869][ T592] R10: 000000000d453910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain