====================================== | [ 137.933284][ T1577] #0: ffffffffad7f1088 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 137.933559][ T1577] #1: ffffffffad7dfc30 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 137.933877][ T1577] | [ 137.933877][ T1577] stack backtrace: [ 137.934301][ T1577] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 137.934495][ T1577] Call Trace: [ 137.934612][ T1577] [ 137.934694][ T1577] dump_stack_lvl (lib/dump_stack.c:123) [ 137.934851][ T1577] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 137.935014][ T1577] validate_chain (kernel/locking/lockdep.c:3894) [ 137.935170][ T1577] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 137.935333][ T1577] ? 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) [ 137.935488][ T1577] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 137.935607][ T1577] ? add_lock_to_list (./arch/x86/include/asm/bitops.h:68 ./include/asm-generic/bitops/instrumented-non-atomic.h:29 kernel/locking/lockdep.c:1413 kernel/locking/lockdep.c:1430) [ 137.935773][ T1577] __lock_acquire (kernel/locking/lockdep.c:5226) [ 137.935930][ T1577] ? validate_chain (kernel/locking/lockdep.c:3915) [ 137.936086][ T1577] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 137.936247][ T1577] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 137.936438][ T1577] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 137.936593][ T1577] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 137.936746][ T1577] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 137.936906][ T1577] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 137.937059][ T1577] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 137.937249][ T1577] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 137.937370][ T1577] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 137.937561][ T1577] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 137.937716][ T1577] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 137.937872][ T1577] __dev_open (./include/linux/notifier.h:207 net/core/dev.c:1467) [ 137.937992][ T1577] ? __pfx___dev_open (net/core/dev.c:1445) [ 137.938149][ T1577] ? mark_held_locks (kernel/locking/lockdep.c:4321) [ 137.938302][ T1577] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 137.938501][ T1577] __dev_change_flags (net/core/dev.c:8966) [ 137.938657][ T1577] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 137.938813][ T1577] dev_change_flags (net/core/dev.c:9038) [ 137.938970][ T1577] vlan_device_event (net/8021q/vlan.c:85 net/8021q/vlan.c:470) 8021q [ 137.939131][ T1577] ? __pfx_nf_tables_netdev_event (net/netfilter/nft_chain_filter.c:357) nf_tables [ 137.939358][ T1577] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 137.939551][ T1577] ? __pfx_br_device_event (net/bridge/br.c:29) bridge [ 137.939778][ T1577] ? nft_offload_netdev_event (net/netfilter/nf_tables_offload.c:665) nf_tables [ 137.939995][ T1577] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 137.940153][ T1577] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 137.940307][ T1577] __dev_notify_flags (net/core/dev.c:9010) [ 137.940468][ T1577] ? __pfx___dev_notify_flags (net/core/dev.c:8997) [ 137.940624][ T1577] ? __pfx___dev_change_flags (net/core/dev.c:8930) [ 137.940781][ T1577] ? unwind_get_return_address (arch/x86/kernel/unwind_orc.c:369 arch/x86/kernel/unwind_orc.c:364) [ 137.940935][ T1577] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 137.941127][ T1577] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 137.941290][ T1577] dev_change_flags (net/core/dev.c:9045) [ 137.941445][ T1577] do_setlink.constprop.0 (net/core/rtnetlink.c:3118) [ 137.941600][ T1577] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 137.941809][ T1577] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 137.941969][ T1577] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 137.942131][ T1577] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 137.942282][ T1577] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 137.942437][ T1577] ? __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) [ 137.942593][ T1577] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 137.942783][ T1577] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 137.942937][ T1577] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 137.943096][ T1577] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 137.943250][ T1577] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 137.943404][ T1577] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 137.943556][ T1577] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 137.943711][ T1577] ? __create_object (mm/kmemleak.c:766) [ 137.943873][ T1577] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 137.944031][ T1577] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 137.944186][ T1577] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 137.944346][ T1577] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 137.944504][ T1577] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 137.944656][ T1577] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 137.944812][ T1577] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 137.944965][ T1577] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 137.945120][ T1577] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 137.945273][ T1577] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 137.945431][ T1577] ? 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) [ 137.945585][ T1577] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 137.945705][ T1577] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 137.945858][ T1577] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 137.946014][ T1577] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 137.946183][ T1577] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 137.946360][ T1577] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 137.946539][ T1577] ? 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) [ 137.946694][ T1577] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 137.946971][ T1577] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 137.947125][ T1577] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 137.947279][ T1577] ? __lock_release (kernel/locking/lockdep.c:5525) [ 137.947431][ T1577] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 137.947586][ T1577] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 137.947745][ T1577] ? _copy_from_user (./arch/x86/include/asm/smap.h:33 ./arch/x86/include/asm/uaccess_64.h:134 ./arch/x86/include/asm/uaccess_64.h:141 ./include/linux/uaccess.h:178 lib/usercopy.c:18) [ 137.947926][ T1577] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 137.948082][ T1577] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 137.948235][ T1577] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 137.948432][ T1577] ___sys_sendmsg (net/socket.c:2650) [ 137.948585][ T1577] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 137.948739][ T1577] ? kasan_save_stack (mm/kasan/common.c:49) [ 137.948894][ T1577] ? kasan_save_stack (mm/kasan/common.c:48) [ 137.949051][ T1577] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 137.949206][ T1577] ? __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) [ 137.949398][ T1577] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 137.949554][ T1577] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 137.949709][ T1577] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 137.949898][ T1577] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 137.950077][ T1577] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 137.950236][ T1577] ? __lock_release (kernel/locking/lockdep.c:5525) [ 137.950394][ T1577] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 137.950552][ T1577] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 137.950706][ T1577] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 137.950862][ T1577] __sys_sendmsg (net/socket.c:2680) [ 137.951017][ T1577] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 137.951171][ T1577] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 137.951370][ T1577] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 137.951527][ T1577] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 137.951712][ T1577] RIP: 0033:0x7fbe94a069a7 [ 137.951872][ T1577] 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) [ 137.952432][ T1577] RSP: 002b:00007ffec922b9b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 137.952665][ T1577] RAX: ffffffffffffffda RBX: 00007ffec922c0f0 RCX: 00007fbe94a069a7 [ 137.952897][ T1577] RDX: 0000000000000000 RSI: 00007ffec922ba20 RDI: 0000000000000005 [ 137.953129][ T1577] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000000000078 [ 137.953366][ T1577] R10: 00007fbe948c44a8 R11: 0000000000000246 R12: 0000000000000003 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain