====================================== | [ 27.701627][ T445] #0: ffffffff8a5e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) | [ 27.701902][ T445] #1: ffffffff8a5d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 27.702204][ T445] | [ 27.702204][ T445] stack backtrace: [ 27.702619][ T445] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 27.702809][ T445] Call Trace: [ 27.702927][ T445] [ 27.703008][ T445] dump_stack_lvl (lib/dump_stack.c:123) [ 27.703165][ T445] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 27.703319][ T445] validate_chain (kernel/locking/lockdep.c:3894) [ 27.703472][ T445] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 27.703626][ 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.703778][ T445] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 27.703895][ T445] __lock_acquire (kernel/locking/lockdep.c:5226) [ 27.704047][ T445] ? validate_chain (kernel/locking/lockdep.c:3798 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 27.704201][ T445] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 27.704354][ T445] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 27.704540][ T445] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 27.704695][ T445] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 27.704849][ T445] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 27.705000][ T445] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 27.705191][ 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.705306][ T445] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 27.705494][ T445] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 27.705646][ T445] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 27.705795][ T445] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9101) [ 27.705945][ T445] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 27.706099][ T445] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 27.706253][ T445] ? __lock_release (kernel/locking/lockdep.c:5525) [ 27.706403][ T445] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 27.706554][ T445] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 27.706670][ T445] ? mark_held_locks (kernel/locking/lockdep.c:4321) [ 27.706822][ T445] dev_set_mtu (net/core/dev.c:9130) [ 27.706937][ T445] ? __pfx_dev_set_mtu (net/core/dev.c:9125) [ 27.707088][ T445] ? __timer_delete_sync (kernel/time/timer.c:1668 (discriminator 34)) [ 27.707242][ T445] vlan_device_event (net/8021q/vlan.c:424) 8021q [ 27.707404][ T445] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 27.707592][ T445] ? packet_notifier (net/packet/af_packet.c:4282) [ 27.707744][ T445] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 27.707897][ T445] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 27.708048][ T445] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9111) [ 27.708199][ T445] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 27.708349][ T445] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 27.708540][ T445] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 27.708692][ T445] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 27.708809][ T445] do_setlink.constprop.0 (net/core/rtnetlink.c:3072) [ 27.708960][ T445] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2990) [ 27.709153][ T445] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 27.709305][ T445] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 27.709458][ T445] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3912) [ 27.709606][ T445] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 27.709759][ 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.709908][ T445] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 27.710095][ T445] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 27.710245][ T445] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 27.710396][ T445] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 27.710548][ T445] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 27.710699][ T445] ? rtnl_newlink (net/core/rtnetlink.c:328 net/core/rtnetlink.c:4011) [ 27.710849][ T445] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 27.711001][ T445] ? __rtnl_newlink (net/core/rtnetlink.c:3862) [ 27.711153][ T445] rtnl_newlink (net/core/rtnetlink.c:336 net/core/rtnetlink.c:4013) [ 27.711303][ T445] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 27.711454][ T445] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 27.711609][ T445] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 27.711763][ T445] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 27.711915][ T445] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6900) [ 27.712068][ T445] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3903) [ 27.712219][ T445] rtnetlink_rcv_msg (net/core/rtnetlink.c:6902) [ 27.712370][ T445] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 27.712521][ 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.712670][ T445] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 27.712795][ T445] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 27.712945][ T445] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 27.713097][ T445] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6805) [ 27.713247][ T445] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 27.713403][ T445] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 27.713555][ 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.713706][ T445] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 27.713859][ T445] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 27.714012][ T445] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 27.714164][ T445] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 27.714313][ T445] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 27.714466][ T445] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 27.714619][ T445] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 27.714767][ T445] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 27.714959][ T445] ___sys_sendmsg (net/socket.c:2650) [ 27.715112][ T445] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 27.715263][ T445] ? kasan_save_stack (mm/kasan/common.c:49) [ 27.715415][ T445] ? kasan_save_stack (mm/kasan/common.c:48) [ 27.715563][ T445] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 27.715716][ 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.715903][ T445] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 27.716054][ T445] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 27.716207][ T445] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 27.716396][ T445] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 27.716548][ T445] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 27.716715][ T445] ? __lock_release (kernel/locking/lockdep.c:5525) [ 27.716864][ 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.717024][ T445] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 27.717172][ T445] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 27.717329][ T445] __sys_sendmsg (net/socket.c:2680) [ 27.717479][ T445] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 27.717631][ T445] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 27.717821][ T445] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 27.717971][ T445] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 27.718157][ T445] RIP: 0033:0x7fea547529a7 [ 27.718314][ 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.718849][ T445] RSP: 002b:00007ffe54e63ea8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 27.719077][ T445] RAX: ffffffffffffffda RBX: 00007ffe54e645d0 RCX: 00007fea547529a7 [ 27.719315][ T445] RDX: 0000000000000000 RSI: 00007ffe54e63f10 RDI: 0000000000000005 [ 27.719556][ T445] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000078 [ 27.719780][ T445] R10: 00007fea54610ef8 R11: 0000000000000246 R12: 0000000000000004 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain