====================================== | [ 25.435475][ T383] #0: ffffffffabbe7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 25.435785][ T383] #1: ffffffffabbd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 25.436124][ T383] | [ 25.436124][ T383] stack backtrace: [ 25.436618][ T383] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.436835][ T383] Call Trace: [ 25.436977][ T383] [ 25.437075][ T383] dump_stack_lvl (lib/dump_stack.c:123) [ 25.437263][ T383] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 25.437441][ T383] validate_chain (kernel/locking/lockdep.c:3894) [ 25.437613][ T383] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 25.437781][ T383] ? 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) [ 25.437953][ T383] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 25.438082][ T383] __lock_acquire (kernel/locking/lockdep.c:5226) [ 25.438253][ T383] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 25.438426][ T383] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 25.438634][ T383] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 25.438799][ T383] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 25.438983][ T383] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 25.439156][ T383] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 25.439364][ T383] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 25.439499][ T383] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 25.439716][ T383] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 25.439887][ T383] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 25.440064][ T383] netdev_update_features (net/core/dev.c:10314) [ 25.440246][ T383] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 25.440477][ T383] vlan_device_event (net/8021q/vlan.c:430 (discriminator 2)) 8021q [ 25.440704][ T383] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 25.440925][ T383] ? packet_notifier (net/packet/af_packet.c:4282) [ 25.441100][ T383] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 25.441277][ T383] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 25.441457][ T383] netdev_update_features (net/core/dev.c:10314) [ 25.441625][ T383] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 25.441935][ T383] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 25.442140][ T383] ? br_del_if (net/bridge/br_if.c:748) bridge [ 25.442354][ T383] br_del_if (net/bridge/br_if.c:753) bridge [ 25.442554][ T383] ? rtnl_is_locked (net/core/rtnetlink.c:163) [ 25.442718][ T383] do_set_master (net/core/rtnetlink.c:2912) [ 25.442879][ T383] do_setlink.constprop.0 (net/core/rtnetlink.c:3125) [ 25.443041][ T383] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 25.443244][ T383] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 25.443419][ T383] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 25.443571][ T383] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 25.443733][ T383] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 25.443888][ T383] ? __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) [ 25.444044][ T383] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 25.444240][ T383] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 25.444394][ T383] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 25.444549][ T383] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 25.444702][ T383] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 25.444857][ T383] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 25.445010][ T383] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 25.445164][ T383] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 25.445316][ T383] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 25.445472][ T383] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 25.445626][ T383] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 25.445793][ T383] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 25.445946][ T383] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 25.446101][ T383] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 25.446255][ T383] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 25.446416][ T383] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 25.446576][ T383] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 25.446727][ T383] ? 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) [ 25.446882][ T383] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 25.447000][ T383] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 25.447152][ T383] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 25.447305][ T383] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 25.447461][ T383] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 25.447619][ T383] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 25.447777][ T383] ? 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) [ 25.447935][ T383] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 25.448094][ T383] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 25.448252][ T383] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 25.448409][ T383] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 25.448561][ T383] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 25.448728][ T383] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 25.448903][ T383] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 25.449076][ T383] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 25.449282][ T383] ___sys_sendmsg (net/socket.c:2650) [ 25.449437][ T383] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 25.449594][ T383] ? kasan_save_stack (mm/kasan/common.c:49) [ 25.449750][ T383] ? kasan_save_stack (mm/kasan/common.c:48) [ 25.449901][ T383] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 25.450061][ T383] ? __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) [ 25.450254][ T383] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 25.450408][ T383] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 25.450563][ T383] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 25.450757][ T383] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 25.450915][ T383] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 25.451069][ T383] ? __lock_release (kernel/locking/lockdep.c:5525) [ 25.451227][ T383] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 25.451383][ T383] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 25.451546][ T383] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 25.451699][ T383] __sys_sendmsg (net/socket.c:2680) [ 25.451851][ T383] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 25.452004][ T383] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 25.452215][ T383] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 25.452371][ T383] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 25.452571][ T383] RIP: 0033:0x7f9ef3f919a7 [ 25.452735][ T383] 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) [ 25.453270][ T383] RSP: 002b:00007fff056f1048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 25.453509][ T383] RAX: ffffffffffffffda RBX: 00007fff056f1770 RCX: 00007f9ef3f919a7 [ 25.453750][ T383] RDX: 0000000000000000 RSI: 00007fff056f10b0 RDI: 0000000000000005 [ 25.453980][ T383] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000000000078 [ 25.454222][ T383] R10: 00007f9ef3e4fef8 R11: 0000000000000246 R12: 0000000000000003 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain