====================================== | [ 12.893350][ T301] #0: ffffffffa6407e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) | [ 12.893625][ T301] #1: ffffffffa63f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 12.893940][ T301] | [ 12.893940][ T301] stack backtrace: [ 12.894367][ T301] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.894557][ T301] Call Trace: [ 12.894687][ T301] [ 12.894767][ T301] dump_stack_lvl (lib/dump_stack.c:123) [ 12.894925][ T301] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 12.895087][ T301] validate_chain (kernel/locking/lockdep.c:3894) [ 12.895243][ T301] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 12.895407][ T301] ? 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.895562][ T301] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 12.895680][ T301] __lock_acquire (kernel/locking/lockdep.c:5226) [ 12.895837][ T301] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 12.895988][ T301] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 12.896183][ T301] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 12.896336][ T301] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 12.896488][ T301] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 12.896643][ T301] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 12.896836][ T301] 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.896954][ T301] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 12.897146][ T301] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 12.897301][ T301] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 12.897456][ T301] netdev_update_features (net/core/dev.c:10314) [ 12.897610][ T301] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 12.897803][ T301] vlan_device_event (net/8021q/vlan.c:430 (discriminator 2)) [ 12.897962][ T301] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) [ 12.898120][ T301] ? __pfx_br_device_event (net/bridge/br.c:29) [ 12.898296][ T301] ? packet_notifier (net/packet/af_packet.c:4282) [ 12.898454][ T301] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 12.898612][ T301] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 12.898768][ T301] netdev_update_features (net/core/dev.c:10314) [ 12.898924][ T301] ? __pfx_netdev_update_features (net/core/dev.c:10311) [ 12.899118][ T301] br_add_if (net/bridge/br_if.c:657) [ 12.899238][ T301] ? rtnl_is_locked (net/core/rtnetlink.c:164) [ 12.899400][ T301] ? netdev_master_upper_dev_get (net/core/dev.c:7230) [ 12.899604][ T301] do_setlink.constprop.0 (net/core/rtnetlink.c:3116) [ 12.899758][ T301] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2990) [ 12.899951][ T301] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 12.900103][ T301] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 12.900257][ T301] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3912) [ 12.900407][ T301] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 12.900566][ T301] ? __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.900720][ T301] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 12.900908][ T301] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 12.901061][ T301] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 12.901219][ T301] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 12.901370][ T301] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 12.901522][ T301] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 12.901698][ T301] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 12.901856][ T301] ? __rtnl_newlink (net/core/rtnetlink.c:3862) [ 12.902013][ T301] rtnl_newlink (net/core/rtnetlink.c:336 net/core/rtnetlink.c:4013) [ 12.902171][ T301] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 12.902327][ T301] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 12.902484][ T301] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 12.902641][ T301] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 12.902808][ T301] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 12.902963][ T301] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 12.903117][ T301] rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 12.903270][ T301] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 12.903424][ T301] ? 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.903580][ T301] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 12.903699][ T301] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 12.903854][ T301] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 12.904013][ T301] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 12.904168][ T301] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 12.904327][ T301] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 12.904482][ T301] ? 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.904638][ T301] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 12.904793][ T301] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 12.904949][ T301] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 12.905106][ T301] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 12.905266][ T301] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 12.905423][ T301] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 12.905579][ T301] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 12.905734][ T301] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 12.905927][ T301] ___sys_sendmsg (net/socket.c:2650) [ 12.906082][ T301] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 12.906241][ T301] ? kasan_save_stack (mm/kasan/common.c:49) [ 12.906397][ T301] ? kasan_save_stack (mm/kasan/common.c:48) [ 12.906548][ T301] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 12.906706][ T301] ? __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.906899][ T301] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 12.907055][ T301] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 12.907210][ T301] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 12.907406][ T301] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 12.907562][ T301] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 12.907716][ T301] ? __lock_release (kernel/locking/lockdep.c:5525) [ 12.907869][ T301] ? __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.908027][ T301] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 12.908182][ T301] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 12.908338][ T301] __sys_sendmsg (net/socket.c:2680) [ 12.908495][ T301] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 12.908651][ T301] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 12.908849][ T301] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 12.909003][ T301] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 12.909194][ T301] RIP: 0033:0x7fa2cb5c89a7 [ 12.909354][ T301] 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.909906][ T301] RSP: 002b:00007ffd8bb6a618 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 12.910138][ T301] RAX: ffffffffffffffda RBX: 00007ffd8bb6ad50 RCX: 00007fa2cb5c89a7 [ 12.910374][ T301] RDX: 0000000000000000 RSI: 00007ffd8bb6a680 RDI: 0000000000000005 [ 12.910608][ T301] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000000 [ 12.910835][ T301] R10: 0000000034c33910 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain