====================================== | [ 28.582425][ T443] #0: ffffffff993e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) | [ 28.582698][ T443] #1: ffffffff993d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 28.583002][ T443] | [ 28.583002][ T443] stack backtrace: [ 28.583419][ T443] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 28.583608][ T443] Call Trace: [ 28.583723][ T443] [ 28.583801][ T443] dump_stack_lvl (lib/dump_stack.c:123) [ 28.583955][ T443] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 28.584109][ T443] validate_chain (kernel/locking/lockdep.c:3894) [ 28.584258][ T443] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 28.584408][ T443] ? 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) [ 28.584555][ T443] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 28.584671][ T443] __lock_acquire (kernel/locking/lockdep.c:5226) [ 28.584825][ T443] ? validate_chain (kernel/locking/lockdep.c:3798 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 28.584979][ T443] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 28.585129][ T443] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 28.585317][ T443] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 28.585468][ T443] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 28.585615][ T443] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 28.585760][ T443] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 28.585946][ T443] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 28.586058][ T443] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 28.586239][ T443] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 28.586391][ T443] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 28.586543][ T443] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9101) [ 28.586691][ T443] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 28.586843][ T443] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 28.586990][ T443] ? __lock_release (kernel/locking/lockdep.c:5525) [ 28.587140][ T443] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 28.587289][ T443] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 28.587402][ T443] ? mark_held_locks (kernel/locking/lockdep.c:4321) [ 28.587551][ T443] dev_set_mtu (net/core/dev.c:9130) [ 28.587670][ T443] ? __pfx_dev_set_mtu (net/core/dev.c:9125) [ 28.587822][ T443] ? __timer_delete_sync (kernel/time/timer.c:1668 (discriminator 34)) [ 28.587974][ T443] vlan_device_event (net/8021q/vlan.c:424) 8021q [ 28.588129][ T443] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 28.588316][ T443] ? packet_notifier (net/packet/af_packet.c:4282) [ 28.588476][ T443] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 28.588624][ T443] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 28.588781][ T443] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9111) [ 28.588934][ T443] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 28.589082][ T443] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 28.589267][ T443] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 28.589416][ T443] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 28.589530][ T443] do_setlink.constprop.0 (net/core/rtnetlink.c:3072) [ 28.589681][ T443] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2990) [ 28.589869][ T443] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 28.590018][ T443] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 28.590168][ T443] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3912) [ 28.590314][ T443] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 28.590463][ T443] ? __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) [ 28.590610][ T443] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 28.590800][ T443] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 28.590948][ T443] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 28.591097][ T443] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 28.591247][ T443] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 28.591397][ T443] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 28.591545][ T443] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 28.591695][ T443] ? __rtnl_newlink (net/core/rtnetlink.c:3862) [ 28.591845][ T443] rtnl_newlink (net/core/rtnetlink.c:336 net/core/rtnetlink.c:4013) [ 28.592000][ T443] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 28.592145][ T443] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 28.592294][ T443] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 28.592443][ T443] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 28.592593][ T443] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 28.592739][ T443] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 28.592886][ T443] rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 28.593037][ T443] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 28.593186][ T443] ? 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) [ 28.593332][ T443] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 28.593445][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 28.593591][ T443] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 28.593741][ T443] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 28.593888][ T443] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 28.594040][ T443] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 28.594192][ T443] ? 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) [ 28.594341][ T443] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 28.594489][ T443] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 28.594635][ T443] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 28.594784][ T443] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 28.594933][ T443] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 28.595081][ T443] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 28.595235][ T443] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 28.595381][ T443] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 28.595568][ T443] ___sys_sendmsg (net/socket.c:2650) [ 28.595715][ T443] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 28.595863][ T443] ? kasan_save_stack (mm/kasan/common.c:49) [ 28.596014][ T443] ? kasan_save_stack (mm/kasan/common.c:48) [ 28.596161][ T443] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 28.596318][ T443] ? __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) [ 28.596499][ T443] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 28.596649][ T443] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 28.596797][ T443] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 28.596984][ T443] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 28.597132][ T443] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 28.597283][ T443] ? __lock_release (kernel/locking/lockdep.c:5525) [ 28.597435][ T443] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 28.597587][ T443] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 28.597735][ T443] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 28.597887][ T443] __sys_sendmsg (net/socket.c:2680) [ 28.598034][ T443] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 28.598181][ T443] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 28.598371][ T443] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 28.598533][ T443] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 28.598720][ T443] RIP: 0033:0x7f35afaba9a7 [ 28.598874][ T443] 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) [ 28.599396][ T443] RSP: 002b:00007ffec42f61a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 28.599625][ T443] RAX: ffffffffffffffda RBX: 00007ffec42f68d0 RCX: 00007f35afaba9a7 [ 28.599847][ T443] RDX: 0000000000000000 RSI: 00007ffec42f6210 RDI: 0000000000000005 [ 28.600070][ T443] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000078 [ 28.600293][ T443] R10: 00007f35af978ef8 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain