====================================== | [ 11.368960][ T264] #0: ffffffffbc607e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 11.369251][ T264] #1: ffffffffbc5f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 11.369581][ T264] | [ 11.369581][ T264] stack backtrace: [ 11.370038][ T264] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.370241][ T264] Call Trace: [ 11.370372][ T264] [ 11.370461][ T264] dump_stack_lvl (lib/dump_stack.c:123) [ 11.370633][ T264] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 11.370800][ T264] validate_chain (kernel/locking/lockdep.c:3894) [ 11.370965][ T264] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 11.371129][ T264] ? 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) [ 11.371288][ T264] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 11.371410][ T264] __lock_acquire (kernel/locking/lockdep.c:5226) [ 11.371576][ T264] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 11.371738][ T264] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 11.371939][ T264] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 11.372106][ T264] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 11.372267][ T264] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 11.372430][ T264] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 11.372634][ T264] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 11.372760][ T264] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 11.372959][ T264] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 11.373126][ T264] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 11.373293][ T264] netdev_update_features (net/core/dev.c:10314) [ 11.373452][ T264] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 11.373655][ T264] vlan_device_event (net/8021q/vlan.c:430 (discriminator 2)) [ 11.373820][ T264] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) [ 11.373981][ T264] ? __pfx_br_device_event (net/bridge/br.c:29) [ 11.374143][ T264] ? packet_notifier (net/packet/af_packet.c:4282) [ 11.374313][ T264] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 11.374481][ T264] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 11.374644][ T264] netdev_change_features (net/core/dev.c:10328) [ 11.374803][ T264] ? __pfx_netdev_change_features (net/core/dev.c:10328) [ 11.375005][ T264] ? __pfx___up_read (kernel/locking/rwsem.c:1337) [ 11.375168][ T264] bond_compute_features (drivers/net/bonding/bond_main.c:1548) bonding [ 11.375412][ T264] ? blocking_notifier_call_chain (kernel/notifier.c:384) [ 11.375614][ T264] ? __pfx_bond_compute_features (drivers/net/bonding/bond_main.c:1548) bonding [ 11.375842][ T264] ? call_netdevice_notifiers (net/core/dev.c:2062) [ 11.376008][ T264] ? __pfx_call_netdevice_notifiers (net/core/dev.c:2062) [ 11.376211][ T264] __bond_release_one (drivers/net/bonding/bond_main.c:2607) bonding [ 11.376436][ T264] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 11.376600][ T264] ? __pfx___bond_release_one (drivers/net/bonding/bond_main.c:2492) bonding [ 11.376820][ T264] ? is_bpf_text_address (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 kernel/bpf/core.c:774) [ 11.376990][ T264] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 11.377157][ T264] ? validate_chain (kernel/locking/lockdep.c:3797 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 11.377351][ T264] ? __kernel_text_address (kernel/extable.c:79) [ 11.377519][ T264] ? unwind_get_return_address (arch/x86/kernel/unwind_orc.c:369 arch/x86/kernel/unwind_orc.c:364) [ 11.377687][ T264] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 11.377897][ T264] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 11.378067][ T264] ? __pfx_validate_linkmsg (net/core/rtnetlink.c:2646) [ 11.378233][ T264] do_set_master (net/core/rtnetlink.c:2912) [ 11.378412][ T264] do_setlink.constprop.0 (net/core/rtnetlink.c:3125) [ 11.378573][ T264] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 11.378776][ T264] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 11.378940][ T264] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 11.379105][ T264] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 11.379271][ T264] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 11.379434][ T264] ? __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) [ 11.379599][ T264] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 11.379804][ T264] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 11.379966][ T264] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 11.380131][ T264] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 11.380294][ T264] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 11.380463][ T264] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 11.380624][ T264] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 11.380789][ T264] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 11.380952][ T264] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 11.381117][ T264] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 11.381278][ T264] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 11.381441][ T264] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 11.381604][ T264] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 11.381773][ T264] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 11.381936][ T264] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 11.382101][ T264] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 11.382263][ T264] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 11.382426][ T264] ? 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) [ 11.382586][ T264] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 11.382713][ T264] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 11.382879][ T264] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 11.383044][ T264] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 11.383208][ T264] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 11.383375][ T264] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 11.383541][ T264] ? 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) [ 11.383707][ T264] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 11.383871][ T264] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 11.384039][ T264] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 11.384202][ T264] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 11.384368][ T264] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 11.384533][ T264] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 11.384697][ T264] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 11.384860][ T264] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 11.385066][ T264] ___sys_sendmsg (net/socket.c:2650) [ 11.385230][ T264] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 11.385394][ T264] ? kasan_save_stack (mm/kasan/common.c:49) [ 11.385560][ T264] ? kasan_save_stack (mm/kasan/common.c:48) [ 11.385723][ T264] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 11.385885][ T264] ? __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) [ 11.386091][ T264] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 11.386256][ T264] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 11.386427][ T264] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 11.386630][ T264] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 11.386794][ T264] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 11.386955][ T264] ? __lock_release (kernel/locking/lockdep.c:5525) [ 11.387116][ T264] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 11.387316][ T264] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 11.387480][ T264] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 11.387654][ T264] __sys_sendmsg (net/socket.c:2680) [ 11.387820][ T264] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 11.387986][ T264] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 11.388201][ T264] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 11.388369][ T264] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 11.388584][ T264] RIP: 0033:0x7f10ad9fc9a7 [ 11.388773][ T264] 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) [ 11.389361][ T264] RSP: 002b:00007ffec00cc398 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 11.389609][ T264] RAX: ffffffffffffffda RBX: 00007ffec00ccac0 RCX: 00007f10ad9fc9a7 [ 11.389853][ T264] RDX: 0000000000000000 RSI: 00007ffec00cc400 RDI: 0000000000000005 [ 11.390098][ T264] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 11.390342][ T264] R10: 00007f10ad8baef8 R11: 0000000000000246 R12: 0000000000000002 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain