====================================== | [ 13.128340][ T302] #0: ffffffff8a607e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 13.128609][ T302] #1: ffffffff8a5f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 13.128915][ T302] | [ 13.128915][ T302] stack backtrace: [ 13.129324][ T302] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.129512][ T302] Call Trace: [ 13.129627][ T302] [ 13.129709][ T302] dump_stack_lvl (lib/dump_stack.c:123) [ 13.129869][ T302] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 13.130020][ T302] validate_chain (kernel/locking/lockdep.c:3894) [ 13.130171][ T302] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 13.130324][ 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) [ 13.130475][ T302] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 13.130591][ T302] __lock_acquire (kernel/locking/lockdep.c:5226) [ 13.130742][ T302] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 13.130893][ T302] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 13.131080][ T302] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 13.131229][ T302] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 13.131379][ T302] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 13.131528][ T302] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 13.131712][ 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) [ 13.131825][ T302] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 13.132006][ T302] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 13.132155][ T302] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 13.132308][ T302] netdev_update_features (net/core/dev.c:10314) [ 13.132457][ T302] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 13.132642][ T302] vlan_device_event (net/8021q/vlan.c:430 (discriminator 2)) [ 13.132799][ T302] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) [ 13.132948][ T302] ? __pfx_br_device_event (net/bridge/br.c:29) [ 13.133098][ T302] ? packet_notifier (net/packet/af_packet.c:4282) [ 13.133247][ T302] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 13.133407][ T302] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 13.133554][ T302] netdev_update_features (net/core/dev.c:10314) [ 13.133701][ T302] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 13.133882][ T302] br_add_if (net/bridge/br_if.c:657) [ 13.133996][ T302] ? rtnl_is_locked (net/core/rtnetlink.c:163) [ 13.134143][ T302] ? netdev_master_upper_dev_get (net/core/dev.c:7230) [ 13.134325][ T302] do_setlink.constprop.0 (net/core/rtnetlink.c:3125) [ 13.134476][ T302] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 13.134656][ T302] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 13.134804][ T302] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 13.134947][ T302] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 13.135091][ T302] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 13.135240][ 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) [ 13.135416][ T302] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 13.135605][ T302] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 13.135758][ T302] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 13.135908][ T302] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 13.136060][ T302] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 13.136209][ T302] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 13.136360][ T302] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 13.136510][ T302] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 13.136672][ T302] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 13.136819][ T302] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 13.136964][ T302] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 13.137110][ T302] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 13.137257][ T302] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 13.137405][ T302] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 13.137552][ T302] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 13.137696][ T302] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 13.137845][ T302] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 13.137992][ 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) [ 13.138136][ T302] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 13.138249][ T302] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 13.138394][ T302] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 13.138542][ T302] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 13.138690][ T302] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 13.138847][ T302] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 13.138995][ 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) [ 13.139146][ T302] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 13.139294][ T302] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 13.139442][ T302] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 13.139592][ T302] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 13.139737][ T302] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 13.139891][ T302] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 13.140038][ T302] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 13.140182][ T302] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 13.140367][ T302] ___sys_sendmsg (net/socket.c:2650) [ 13.140514][ T302] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 13.140661][ T302] ? kasan_save_stack (mm/kasan/common.c:49) [ 13.140808][ T302] ? kasan_save_stack (mm/kasan/common.c:48) [ 13.140956][ T302] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 13.141104][ 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) [ 13.141286][ T302] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 13.141433][ T302] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 13.141578][ T302] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 13.141763][ T302] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 13.141914][ T302] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 13.142061][ T302] ? __lock_release (kernel/locking/lockdep.c:5525) [ 13.142211][ 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) [ 13.142361][ T302] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 13.142506][ T302] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 13.142673][ T302] __sys_sendmsg (net/socket.c:2680) [ 13.142823][ T302] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 13.142974][ T302] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 13.143172][ T302] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 13.143323][ T302] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 13.143511][ T302] RIP: 0033:0x7fc5c964d9a7 [ 13.143665][ 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) [ 13.144196][ T302] RSP: 002b:00007ffc7d920608 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 13.144421][ T302] RAX: ffffffffffffffda RBX: 00007ffc7d920d40 RCX: 00007fc5c964d9a7 [ 13.144641][ T302] RDX: 0000000000000000 RSI: 00007ffc7d920670 RDI: 0000000000000005 [ 13.144862][ T302] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 13.145081][ T302] R10: 000000001432a910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain