====================================== | [ 72.666196][ T593] #0: ffffffffb57e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 72.666483][ T593] #1: ffffffffb57d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 72.666808][ T593] | [ 72.666808][ T593] stack backtrace: [ 72.667238][ T593] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 72.667437][ T593] Call Trace: [ 72.667570][ T593] [ 72.667651][ T593] dump_stack_lvl (lib/dump_stack.c:123) [ 72.667818][ T593] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 72.667979][ T593] validate_chain (kernel/locking/lockdep.c:3894) [ 72.668137][ T593] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 72.668299][ 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) [ 72.668454][ T593] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 72.668575][ T593] __lock_acquire (kernel/locking/lockdep.c:5226) [ 72.668733][ T593] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 72.668892][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 72.669088][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 72.669243][ T593] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 72.669400][ T593] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 72.669555][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 72.669756][ 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) [ 72.669877][ T593] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 72.670076][ T593] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 72.670235][ T593] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 72.670397][ T593] __dev_close_many (net/core/dev.c:1537 (discriminator 3)) [ 72.670554][ T593] ? __pfx___dev_close_many (net/core/dev.c:1525) [ 72.670711][ T593] dev_close_many (net/core/dev.c:1588) [ 72.670867][ T593] ? __pfx_dev_close_many (net/core/dev.c:1578) [ 72.671022][ T593] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 72.671220][ T593] vlan_device_event (net/8021q/vlan.c:451) 8021q [ 72.671445][ T593] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 72.671673][ T593] ? packet_notifier (net/packet/af_packet.c:4282) [ 72.671837][ T593] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 72.671994][ T593] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 72.672150][ T593] __dev_notify_flags (net/core/dev.c:9010) [ 72.672309][ T593] ? __pfx___dev_notify_flags (net/core/dev.c:8997) [ 72.672471][ 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) [ 72.672628][ T593] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 72.672786][ T593] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 72.672946][ T593] ? validate_chain (kernel/locking/lockdep.c:3797 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 72.673103][ T593] dev_change_flags (net/core/dev.c:9045) [ 72.673259][ T593] cycle_netdev (drivers/net/vrf.c:1053) vrf [ 72.673419][ T593] vrf_del_slave (drivers/net/vrf.c:1120) vrf [ 72.673582][ T593] do_set_master (net/core/rtnetlink.c:2912) [ 72.673743][ T593] do_setlink.constprop.0 (net/core/rtnetlink.c:3125) [ 72.673903][ T593] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 72.674098][ T593] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 72.674255][ T593] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 72.674411][ T593] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 72.674564][ T593] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 72.674721][ 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) [ 72.674879][ T593] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 72.675071][ T593] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 72.675226][ T593] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 72.675381][ T593] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 72.675537][ T593] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 72.675693][ T593] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 72.675860][ T593] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 72.676017][ T593] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 72.676174][ T593] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 72.676330][ T593] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 72.676485][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 72.676642][ T593] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 72.676799][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 72.676955][ T593] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 72.677116][ T593] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 72.677270][ T593] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 72.677426][ T593] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 72.677580][ 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) [ 72.677733][ T593] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 72.677852][ T593] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 72.678009][ T593] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 72.678169][ T593] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 72.678328][ T593] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 72.678487][ T593] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 72.678647][ 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) [ 72.678805][ T593] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 72.678961][ T593] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 72.679117][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 72.679278][ T593] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 72.679436][ T593] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 72.679595][ T593] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 72.679753][ T593] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 72.679911][ T593] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 72.680107][ T593] ___sys_sendmsg (net/socket.c:2650) [ 72.680264][ T593] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 72.680423][ T593] ? kasan_save_stack (mm/kasan/common.c:49) [ 72.680584][ T593] ? kasan_save_stack (mm/kasan/common.c:48) [ 72.680738][ T593] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 72.680895][ 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) [ 72.681091][ T593] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 72.681248][ T593] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 72.681405][ T593] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 72.681603][ T593] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 72.681776][ T593] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 72.681934][ T593] ? __lock_release (kernel/locking/lockdep.c:5525) [ 72.682088][ 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) [ 72.682247][ T593] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 72.682404][ T593] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 72.682561][ T593] __sys_sendmsg (net/socket.c:2680) [ 72.682717][ T593] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 72.682879][ T593] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 72.683081][ T593] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 72.683239][ T593] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 72.683437][ T593] RIP: 0033:0x7fb1d58039a7 [ 72.683601][ 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) [ 72.684155][ T593] RSP: 002b:00007ffdd8958558 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 72.684397][ T593] RAX: ffffffffffffffda RBX: 00007ffdd8958c80 RCX: 00007fb1d58039a7 [ 72.684633][ T593] RDX: 0000000000000000 RSI: 00007ffdd89585c0 RDI: 0000000000000005 [ 72.684869][ T593] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 72.685113][ T593] R10: 00000000042a7910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain