====================================== | [ 73.179240][ T591] #0: ffffffffb27e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 73.179539][ T591] #1: ffffffffb27d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 73.179859][ T591] | [ 73.179859][ T591] stack backtrace: [ 73.180296][ T591] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 73.180509][ T591] Call Trace: [ 73.180630][ T591] [ 73.180712][ T591] dump_stack_lvl (lib/dump_stack.c:123) [ 73.180879][ T591] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 73.181044][ T591] validate_chain (kernel/locking/lockdep.c:3894) [ 73.181203][ T591] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 73.181366][ T591] ? 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) [ 73.181526][ T591] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 73.181691][ T591] __lock_acquire (kernel/locking/lockdep.c:5226) [ 73.181859][ T591] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 73.182023][ T591] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 73.182231][ T591] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 73.182401][ T591] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 73.182564][ T591] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 73.182723][ T591] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 73.182923][ T591] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 73.183051][ T591] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 73.183249][ T591] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 73.183416][ T591] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 73.183572][ T591] __dev_close_many (net/core/dev.c:1537 (discriminator 3)) [ 73.183739][ T591] ? __pfx___dev_close_many (net/core/dev.c:1525) [ 73.183902][ T591] dev_close_many (net/core/dev.c:1588) [ 73.184068][ T591] ? __pfx_dev_close_many (net/core/dev.c:1578) [ 73.184238][ T591] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 73.184442][ T591] vlan_device_event (net/8021q/vlan.c:451) 8021q [ 73.184653][ T591] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 73.184866][ T591] ? packet_notifier (net/packet/af_packet.c:4282) [ 73.185033][ T591] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 73.185197][ T591] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 73.185368][ T591] __dev_notify_flags (net/core/dev.c:9010) [ 73.185534][ T591] ? __pfx___dev_notify_flags (net/core/dev.c:8997) [ 73.185692][ T591] ? __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) [ 73.185851][ T591] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 73.186029][ T591] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 73.186190][ T591] ? validate_chain (kernel/locking/lockdep.c:3797 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 73.186383][ T591] dev_change_flags (net/core/dev.c:9045) [ 73.186611][ T591] cycle_netdev (drivers/net/vrf.c:1053) vrf [ 73.186829][ T591] vrf_del_slave (drivers/net/vrf.c:1120) vrf [ 73.187074][ T591] do_set_master (net/core/rtnetlink.c:2912) [ 73.187337][ T591] do_setlink.constprop.0 (net/core/rtnetlink.c:3125) [ 73.187593][ T591] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 73.187910][ T591] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 73.188156][ T591] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 73.188337][ T591] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 73.188528][ T591] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 73.188687][ T591] ? __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) [ 73.188856][ T591] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 73.189056][ T591] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 73.189217][ T591] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 73.189379][ T591] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 73.189555][ T591] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 73.189722][ T591] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 73.189884][ T591] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 73.190045][ T591] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 73.190223][ T591] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 73.190387][ T591] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 73.190549][ T591] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 73.190709][ T591] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 73.190869][ T591] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 73.191031][ T591] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 73.191190][ T591] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 73.191357][ T591] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 73.191547][ T591] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 73.191707][ T591] ? 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) [ 73.191863][ T591] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 73.191985][ T591] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 73.192153][ T591] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 73.192315][ T591] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 73.192513][ T591] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 73.192686][ T591] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 73.192849][ T591] ? 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) [ 73.193009][ T591] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 73.193167][ T591] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 73.193326][ T591] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 73.193517][ T591] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 73.193677][ T591] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 73.193844][ T591] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 73.194005][ T591] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 73.194267][ T591] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 73.194485][ T591] ___sys_sendmsg (net/socket.c:2650) [ 73.194643][ T591] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 73.194809][ T591] ? kasan_save_stack (mm/kasan/common.c:49) [ 73.195069][ T591] ? kasan_save_stack (mm/kasan/common.c:48) [ 73.195232][ T591] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 73.195399][ T591] ? __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) [ 73.195600][ T591] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 73.195859][ T591] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 73.196017][ T591] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 73.196215][ T591] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 73.196374][ T591] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 73.196651][ T591] ? __lock_release (kernel/locking/lockdep.c:5525) [ 73.196808][ T591] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 73.196968][ T591] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 73.197124][ T591] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 73.197386][ T591] __sys_sendmsg (net/socket.c:2680) [ 73.197568][ T591] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 73.197727][ T591] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 73.198121][ T591] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 73.198284][ T591] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 73.198501][ T591] RIP: 0033:0x7fd34da1b9a7 [ 73.198669][ T591] 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) [ 73.199334][ T591] RSP: 002b:00007ffd27c607d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 73.199676][ T591] RAX: ffffffffffffffda RBX: 00007ffd27c60f00 RCX: 00007fd34da1b9a7 [ 73.199911][ T591] RDX: 0000000000000000 RSI: 00007ffd27c60840 RDI: 0000000000000005 [ 73.200146][ T591] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 73.200480][ T591] R10: 0000000030e15910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain