====================================== | [ 29.082198][ T444] #0: ffffffff999e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 29.082498][ T444] #1: ffffffff999d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 29.082819][ T444] | [ 29.082819][ T444] stack backtrace: [ 29.083265][ T444] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 29.083481][ T444] Call Trace: [ 29.083618][ T444] [ 29.083711][ T444] dump_stack_lvl (lib/dump_stack.c:123) [ 29.083882][ T444] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 29.084042][ T444] validate_chain (kernel/locking/lockdep.c:3894) [ 29.084209][ T444] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 29.084365][ T444] ? 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) [ 29.084528][ T444] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 29.084665][ T444] __lock_acquire (kernel/locking/lockdep.c:5226) [ 29.084827][ T444] ? validate_chain (kernel/locking/lockdep.c:3798 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 29.084999][ T444] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 29.085157][ T444] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 29.085353][ T444] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 29.085531][ T444] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 29.085702][ T444] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 29.085866][ T444] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 29.086078][ T444] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 29.086207][ T444] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 29.086401][ T444] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 29.086560][ T444] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 29.086710][ T444] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9101) [ 29.086884][ T444] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 29.087037][ T444] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 29.087186][ T444] ? __lock_release (kernel/locking/lockdep.c:5525) [ 29.087332][ T444] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 29.087504][ T444] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 29.087627][ T444] ? mark_held_locks (kernel/locking/lockdep.c:4321) [ 29.087794][ T444] dev_set_mtu (net/core/dev.c:9130) [ 29.087925][ T444] ? __pfx_dev_set_mtu (net/core/dev.c:9125) [ 29.088096][ T444] ? __timer_delete_sync (kernel/time/timer.c:1668 (discriminator 34)) [ 29.088271][ T444] vlan_device_event (net/8021q/vlan.c:424) 8021q [ 29.088436][ T444] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 29.088640][ T444] ? packet_notifier (net/packet/af_packet.c:4282) [ 29.088794][ T444] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 29.088956][ T444] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 29.089103][ T444] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9111) [ 29.089257][ T444] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 29.089420][ T444] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 29.089622][ T444] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 29.089795][ T444] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 29.089927][ T444] do_setlink.constprop.0 (net/core/rtnetlink.c:3081) [ 29.090088][ T444] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 29.090285][ T444] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 29.090458][ T444] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 29.090615][ T444] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 29.090767][ T444] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 29.090922][ T444] ? __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) [ 29.091072][ T444] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 29.091256][ T444] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 29.091418][ T444] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 29.091572][ T444] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 29.091722][ T444] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 29.091873][ T444] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 29.092024][ T444] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 29.092182][ T444] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 29.092331][ T444] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 29.092481][ T444] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 29.092641][ T444] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 29.092801][ T444] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 29.092950][ T444] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 29.093101][ T444] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 29.093251][ T444] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 29.093404][ T444] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 29.093568][ T444] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 29.093718][ T444] ? 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) [ 29.093880][ T444] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 29.094000][ T444] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 29.094149][ T444] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 29.094299][ T444] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 29.094459][ T444] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 29.094616][ T444] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 29.094768][ T444] ? 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) [ 29.094932][ T444] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 29.095091][ T444] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 29.095259][ T444] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 29.095413][ T444] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 29.095565][ T444] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 29.095743][ T444] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 29.095905][ T444] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 29.096056][ T444] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 29.096260][ T444] ___sys_sendmsg (net/socket.c:2650) [ 29.096431][ T444] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 29.096586][ T444] ? kasan_save_stack (mm/kasan/common.c:49) [ 29.096734][ T444] ? kasan_save_stack (mm/kasan/common.c:48) [ 29.096879][ T444] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 29.097044][ T444] ? __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) [ 29.097240][ T444] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 29.097392][ T444] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 29.097548][ T444] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 29.097742][ T444] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 29.097901][ T444] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 29.098074][ T444] ? __lock_release (kernel/locking/lockdep.c:5525) [ 29.098236][ T444] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 29.098387][ T444] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 29.098554][ T444] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 29.098725][ T444] __sys_sendmsg (net/socket.c:2680) [ 29.098875][ T444] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 29.099021][ T444] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 29.099219][ T444] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 29.099368][ T444] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 29.099564][ T444] RIP: 0033:0x7f89f7aa99a7 [ 29.099724][ T444] 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) [ 29.100260][ T444] RSP: 002b:00007fffe43fc848 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 29.100502][ T444] RAX: ffffffffffffffda RBX: 00007fffe43fcf70 RCX: 00007f89f7aa99a7 [ 29.100761][ T444] RDX: 0000000000000000 RSI: 00007fffe43fc8b0 RDI: 0000000000000005 [ 29.100990][ T444] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000078 [ 29.101213][ T444] R10: 00007f89f7967ef8 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain