====================================== | [ 12.101671][ T302] #0: ffffffffa6407e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 12.101970][ T302] #1: ffffffffa63f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 12.102287][ T302] | [ 12.102287][ T302] stack backtrace: [ 12.102710][ T302] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.102906][ T302] Call Trace: [ 12.103025][ T302] [ 12.103111][ T302] dump_stack_lvl (lib/dump_stack.c:123) [ 12.103276][ T302] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 12.103432][ T302] validate_chain (kernel/locking/lockdep.c:3894) [ 12.103589][ T302] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 12.103753][ T302] ? 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) [ 12.103907][ T302] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 12.104026][ T302] __lock_acquire (kernel/locking/lockdep.c:5226) [ 12.104187][ T302] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 12.104342][ T302] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 12.104543][ T302] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 12.104702][ T302] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 12.104859][ T302] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 12.105014][ T302] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 12.105211][ T302] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 12.105330][ T302] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 12.105527][ T302] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 12.105686][ T302] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 12.105841][ T302] netdev_update_features (net/core/dev.c:10314) [ 12.105997][ T302] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 12.106209][ T302] vlan_device_event (net/8021q/vlan.c:430 (discriminator 2)) [ 12.106370][ T302] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) [ 12.106528][ T302] ? __pfx_br_device_event (net/bridge/br.c:29) [ 12.106690][ T302] ? packet_notifier (net/packet/af_packet.c:4282) [ 12.106845][ T302] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 12.107003][ T302] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 12.107159][ T302] netdev_update_features (net/core/dev.c:10314) [ 12.107312][ T302] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 12.107508][ T302] br_add_if (net/bridge/br_if.c:657) [ 12.107630][ T302] ? rtnl_is_locked (net/core/rtnetlink.c:163) [ 12.107791][ T302] ? netdev_master_upper_dev_get (net/core/dev.c:7230) [ 12.107986][ T302] do_setlink.constprop.0 (net/core/rtnetlink.c:3125) [ 12.108143][ T302] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 12.108337][ T302] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 12.108491][ T302] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 12.108646][ T302] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 12.108801][ T302] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 12.108960][ T302] ? __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) [ 12.109121][ T302] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 12.109316][ T302] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 12.109471][ T302] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 12.109628][ T302] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 12.109783][ T302] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 12.109938][ T302] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 12.110095][ T302] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 12.110251][ T302] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 12.110406][ T302] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 12.110562][ T302] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 12.110717][ T302] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 12.110873][ T302] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 12.111026][ T302] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 12.111187][ T302] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 12.111341][ T302] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 12.111497][ T302] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 12.111668][ T302] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 12.111822][ T302] ? 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) [ 12.111979][ T302] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 12.112100][ T302] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 12.112257][ T302] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 12.112416][ T302] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 12.112573][ T302] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 12.112733][ T302] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 12.112890][ T302] ? 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) [ 12.113045][ T302] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 12.113202][ T302] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 12.113362][ T302] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 12.113524][ T302] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 12.113685][ T302] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 12.113848][ T302] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 12.114007][ T302] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 12.114162][ T302] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 12.114358][ T302] ___sys_sendmsg (net/socket.c:2650) [ 12.114515][ T302] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 12.114675][ T302] ? kasan_save_stack (mm/kasan/common.c:49) [ 12.114829][ T302] ? kasan_save_stack (mm/kasan/common.c:48) [ 12.114983][ T302] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 12.115144][ T302] ? __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) [ 12.115339][ T302] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 12.115499][ T302] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 12.115656][ T302] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 12.115860][ T302] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 12.116016][ T302] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 12.116179][ T302] ? __lock_release (kernel/locking/lockdep.c:5525) [ 12.116333][ T302] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 12.116491][ T302] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 12.116644][ T302] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 12.116800][ T302] __sys_sendmsg (net/socket.c:2680) [ 12.116960][ T302] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 12.117115][ T302] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 12.117325][ T302] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 12.117481][ T302] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 12.117680][ T302] RIP: 0033:0x7f68594cd9a7 [ 12.117846][ T302] 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) [ 12.118397][ T302] RSP: 002b:00007fffe1a952f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 12.118631][ T302] RAX: ffffffffffffffda RBX: 00007fffe1a95a30 RCX: 00007f68594cd9a7 [ 12.118872][ T302] RDX: 0000000000000000 RSI: 00007fffe1a95360 RDI: 0000000000000005 [ 12.119109][ T302] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 12.119345][ T302] R10: 000000000d417910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain