====================================== | [ 72.980948][ T595] #0: ffffffff909e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) | [ 72.981265][ T595] #1: ffffffff909d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 72.981617][ T595] | [ 72.981617][ T595] stack backtrace: [ 72.982103][ T595] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 72.982323][ T595] Call Trace: [ 72.982456][ T595] [ 72.982549][ T595] dump_stack_lvl (lib/dump_stack.c:123) [ 72.982731][ T595] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 72.982910][ T595] validate_chain (kernel/locking/lockdep.c:3894) [ 72.983090][ T595] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 72.983273][ T595] ? 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.983447][ T595] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 72.983579][ T595] __lock_acquire (kernel/locking/lockdep.c:5226) [ 72.983757][ T595] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 72.983931][ T595] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 72.984153][ T595] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 72.984329][ T595] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 72.984508][ T595] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 72.984683][ T595] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 72.984921][ T595] 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.985058][ T595] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 72.985276][ T595] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 72.985451][ T595] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 72.985628][ T595] __dev_close_many (net/core/dev.c:1537 (discriminator 3)) [ 72.985804][ T595] ? __pfx___dev_close_many (net/core/dev.c:1525) [ 72.985981][ T595] dev_close_many (net/core/dev.c:1588) [ 72.986158][ T595] ? __pfx_dev_close_many (net/core/dev.c:1578) [ 72.986331][ T595] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 72.986549][ T595] vlan_device_event (net/8021q/vlan.c:451) 8021q [ 72.986773][ T595] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 72.987000][ T595] ? packet_notifier (net/packet/af_packet.c:4282) [ 72.987178][ T595] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 72.987353][ T595] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 72.987529][ T595] __dev_notify_flags (net/core/dev.c:9010) [ 72.987705][ T595] ? __pfx___dev_notify_flags (net/core/dev.c:8997) [ 72.987881][ T595] ? __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.988056][ T595] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 72.988238][ T595] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 72.988415][ T595] ? validate_chain (kernel/locking/lockdep.c:3797 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 72.988589][ T595] dev_change_flags (net/core/dev.c:9045) [ 72.988763][ T595] cycle_netdev (drivers/net/vrf.c:1053) vrf [ 72.988941][ T595] vrf_del_slave (drivers/net/vrf.c:1120) vrf [ 72.989126][ T595] do_set_master (net/core/rtnetlink.c:2903) [ 72.989301][ T595] do_setlink.constprop.0 (net/core/rtnetlink.c:3116) [ 72.989474][ T595] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2990) [ 72.989695][ T595] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 72.989870][ T595] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 72.990045][ T595] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3912) [ 72.990218][ T595] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 72.990395][ T595] ? __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.990570][ T595] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 72.990785][ T595] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 72.990970][ T595] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 72.991200][ T595] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 72.991377][ T595] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 72.991552][ T595] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 72.991725][ T595] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 72.991901][ T595] ? __rtnl_newlink (net/core/rtnetlink.c:3862) [ 72.992074][ T595] rtnl_newlink (net/core/rtnetlink.c:336 net/core/rtnetlink.c:4013) [ 72.992254][ T595] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 72.992425][ T595] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 72.992606][ T595] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 72.992781][ T595] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 72.992958][ T595] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 72.993132][ T595] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 72.993306][ T595] rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 72.993479][ T595] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 72.993658][ T595] ? 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.993832][ T595] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 72.993965][ T595] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 72.994138][ T595] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 72.994308][ T595] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 72.994483][ T595] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 72.994659][ T595] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 72.994837][ T595] ? 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.995011][ T595] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 72.995185][ T595] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 72.995358][ T595] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 72.995534][ T595] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 72.995708][ T595] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 72.995882][ T595] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 72.996062][ T595] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 72.996234][ T595] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 72.996453][ T595] ___sys_sendmsg (net/socket.c:2650) [ 72.996629][ T595] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 72.996805][ T595] ? kasan_save_stack (mm/kasan/common.c:49) [ 72.996979][ T595] ? kasan_save_stack (mm/kasan/common.c:48) [ 72.997147][ T595] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 72.997323][ T595] ? __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.997541][ T595] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 72.997712][ T595] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 72.997884][ T595] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 72.998101][ T595] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 72.998275][ T595] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 72.998447][ T595] ? __lock_release (kernel/locking/lockdep.c:5525) [ 72.998619][ T595] ? __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.998800][ T595] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 72.998980][ T595] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 72.999161][ T595] __sys_sendmsg (net/socket.c:2680) [ 72.999332][ T595] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 72.999505][ T595] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 72.999725][ T595] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 72.999938][ T595] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 73.000138][ T595] RIP: 0033:0x7f543dba39a7 [ 73.000302][ T595] 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.000856][ T595] RSP: 002b:00007ffc3f7448c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 73.001100][ T595] RAX: ffffffffffffffda RBX: 00007ffc3f744ff0 RCX: 00007f543dba39a7 [ 73.001336][ T595] RDX: 0000000000000000 RSI: 00007ffc3f744930 RDI: 0000000000000005 [ 73.001575][ T595] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 73.001810][ T595] R10: 000000001d3a6910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain