====================================== | [ 27.797474][ T445] #0: ffffffff9b5e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 27.797902][ T445] #1: ffffffff9b5d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 27.798389][ T445] | [ 27.798389][ T445] stack backtrace: [ 27.798938][ T445] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 27.799227][ T445] Call Trace: [ 27.799405][ T445] [ 27.799530][ T445] dump_stack_lvl (lib/dump_stack.c:123) [ 27.799773][ T445] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 27.799996][ T445] validate_chain (kernel/locking/lockdep.c:3894) [ 27.800236][ T445] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 27.800468][ T445] ? 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) [ 27.800691][ T445] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 27.800863][ T445] __lock_acquire (kernel/locking/lockdep.c:5226) [ 27.801096][ T445] ? validate_chain (kernel/locking/lockdep.c:3798 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 27.801337][ T445] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 27.801571][ T445] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 27.801847][ T445] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 27.802067][ T445] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 27.802298][ T445] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 27.802517][ T445] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 27.802812][ T445] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 27.802998][ T445] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 27.803293][ T445] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 27.803531][ T445] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 27.803763][ T445] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9101) [ 27.803966][ T445] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 27.804142][ T445] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 27.804313][ T445] ? __lock_release (kernel/locking/lockdep.c:5525) [ 27.804530][ T445] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 27.804686][ T445] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 27.804838][ T445] ? mark_held_locks (kernel/locking/lockdep.c:4321) [ 27.805067][ T445] dev_set_mtu (net/core/dev.c:9130) [ 27.805193][ T445] ? __pfx_dev_set_mtu (net/core/dev.c:9125) [ 27.805389][ T445] ? __timer_delete_sync (kernel/time/timer.c:1668 (discriminator 34)) [ 27.805625][ T445] vlan_device_event (net/8021q/vlan.c:424) 8021q [ 27.805861][ T445] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 27.806141][ T445] ? packet_notifier (net/packet/af_packet.c:4282) [ 27.806305][ T445] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 27.806537][ T445] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 27.806775][ T445] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9111) [ 27.806973][ T445] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 27.807200][ T445] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 27.807492][ T445] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 27.807730][ T445] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 27.807902][ T445] do_setlink.constprop.0 (net/core/rtnetlink.c:3081) [ 27.808134][ T445] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 27.808414][ T445] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 27.808647][ T445] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 27.808880][ T445] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 27.809076][ T445] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 27.809306][ T445] ? __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) [ 27.809541][ T445] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 27.809829][ T445] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 27.810048][ T445] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 27.810272][ T445] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 27.810507][ T445] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 27.810741][ T445] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 27.810974][ T445] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 27.811156][ T445] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 27.811387][ T445] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 27.811614][ T445] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 27.811831][ T445] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 27.812059][ T445] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 27.812284][ T445] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 27.812513][ T445] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 27.812751][ T445] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 27.812991][ T445] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 27.813227][ T445] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 27.813460][ T445] ? 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) [ 27.813694][ T445] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 27.813876][ T445] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 27.814112][ T445] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 27.814347][ T445] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 27.814584][ T445] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 27.814832][ T445] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 27.815068][ T445] ? 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) [ 27.815304][ T445] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 27.815538][ T445] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 27.815773][ T445] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 27.816002][ T445] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 27.816233][ T445] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 27.816470][ T445] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 27.816702][ T445] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 27.816941][ T445] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 27.817230][ T445] ___sys_sendmsg (net/socket.c:2650) [ 27.817455][ T445] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 27.817691][ T445] ? kasan_save_stack (mm/kasan/common.c:49) [ 27.817926][ T445] ? kasan_save_stack (mm/kasan/common.c:48) [ 27.818167][ T445] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 27.818396][ T445] ? __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) [ 27.818681][ T445] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 27.818912][ T445] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 27.819143][ T445] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 27.819429][ T445] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 27.819660][ T445] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 27.819900][ T445] ? __lock_release (kernel/locking/lockdep.c:5525) [ 27.820135][ T445] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 27.820368][ T445] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 27.820593][ T445] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 27.820824][ T445] __sys_sendmsg (net/socket.c:2680) [ 27.821062][ T445] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 27.821295][ T445] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 27.821592][ T445] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 27.821829][ T445] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 27.822116][ T445] RIP: 0033:0x7f46464499a7 [ 27.822347][ T445] 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) [ 27.823169][ T445] RSP: 002b:00007ffe8897e218 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 27.823515][ T445] RAX: ffffffffffffffda RBX: 00007ffe8897e940 RCX: 00007f46464499a7 [ 27.823873][ T445] RDX: 0000000000000000 RSI: 00007ffe8897e280 RDI: 0000000000000005 [ 27.824222][ T445] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000078 [ 27.824576][ T445] R10: 00007f4646307ef8 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain