====================================== | [ 161.057515][ T1709] #0: ffffffffb31f1088 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) | [ 161.057795][ T1709] #1: ffffffffb31dfc30 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) | [ 161.058110][ T1709] | [ 161.058110][ T1709] stack backtrace: [ 161.058536][ T1709] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 161.058730][ T1709] Call Trace: [ 161.058849][ T1709] [ 161.058934][ T1709] dump_stack_lvl (lib/dump_stack.c:123) [ 161.059100][ T1709] print_deadlock_bug (kernel/locking/lockdep.c:3040) [ 161.059265][ T1709] validate_chain (kernel/locking/lockdep.c:3894) [ 161.059425][ T1709] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 161.059584][ T1709] ? 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) [ 161.059743][ T1709] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 161.059862][ T1709] __lock_acquire (kernel/locking/lockdep.c:5226) [ 161.060028][ T1709] ? find_held_lock (kernel/locking/lockdep.c:5332) [ 161.060181][ T1709] ? stack_depot_save_flags (lib/stackdepot.c:672) [ 161.060384][ T1709] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 161.060539][ T1709] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 161.060738][ T1709] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 161.060890][ T1709] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 37)) [ 161.061045][ T1709] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 161.061197][ T1709] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 161.061392][ T1709] down_read (./arch/x86/include/asm/preempt.h:79 kernel/locking/rwsem.c:1246 kernel/locking/rwsem.c:1261 kernel/locking/rwsem.c:1526) [ 161.061510][ T1709] ? blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 161.061707][ T1709] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 161.061867][ T1709] ? __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) [ 161.062057][ T1709] ? addrconf_ifdown.isra.0 (./include/net/addrconf.h:412 net/ipv6/addrconf.c:4033) [ 161.062209][ T1709] ? addrconf_notify (net/ipv6/addrconf.c:3834) [ 161.062364][ T1709] ? notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 161.062516][ T1709] ? blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 161.062703][ T1709] ? dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9111) [ 161.062856][ T1709] ? rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 161.063015][ T1709] blocking_notifier_call_chain (kernel/notifier.c:380 kernel/notifier.c:368) [ 161.063168][ T1709] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9101) [ 161.063321][ T1709] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 161.063474][ T1709] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 161.063626][ T1709] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 161.063780][ T1709] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 161.063934][ T1709] dev_set_mtu (net/core/dev.c:9130) [ 161.064059][ T1709] ? __pfx_dev_set_mtu (net/core/dev.c:9125) [ 161.064212][ T1709] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 161.064368][ T1709] ? __lock_release (kernel/locking/lockdep.c:5525) [ 161.064519][ T1709] ? nf_tables_netdev_event (./include/net/net_namespace.h:393 ./include/linux/netdevice.h:2639 net/netfilter/nft_chain_filter.c:364) nf_tables [ 161.064742][ T1709] br_mtu_auto_adjust (net/bridge/br_if.c:525) bridge [ 161.064975][ T1709] br_device_event (net/bridge/br.c:142) bridge [ 161.065163][ T1709] ? __pfx_br_device_event (net/bridge/br.c:29) bridge [ 161.065391][ T1709] ? nft_offload_netdev_event (net/netfilter/nf_tables_offload.c:665) nf_tables [ 161.065611][ T1709] notifier_call_chain (kernel/notifier.c:85 (discriminator 2)) [ 161.065767][ T1709] blocking_notifier_call_chain (kernel/notifier.c:381 kernel/notifier.c:368) [ 161.065921][ T1709] dev_set_mtu_ext (./include/linux/notifier.h:207 net/core/dev.c:9111) [ 161.066074][ T1709] ? __pfx_dev_set_mtu_ext (net/core/dev.c:9087) [ 161.066240][ T1709] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 161.066435][ T1709] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 161.066589][ T1709] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 161.066708][ T1709] do_setlink.constprop.0 (net/core/rtnetlink.c:3081) [ 161.066864][ T1709] ? __pfx_do_setlink.constprop.0 (net/core/rtnetlink.c:2999) [ 161.067055][ T1709] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851) [ 161.067206][ T1709] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 161.067361][ T1709] ? rtnl_newlink (./include/linux/slab.h:901 net/core/rtnetlink.c:3921) [ 161.067519][ T1709] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 161.067670][ T1709] ? __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) [ 161.067823][ T1709] ? __pfx___mutex_trylock_common (kernel/locking/mutex.c:79) [ 161.068015][ T1709] ? lock_acquire (kernel/locking/lockdep.c:5822) [ 161.068166][ T1709] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 37)) [ 161.068324][ T1709] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:595 kernel/locking/mutex.c:735) [ 161.068478][ T1709] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 161.068644][ T1709] ? rtnl_newlink (net/core/rtnetlink.c:337 net/core/rtnetlink.c:4020) [ 161.068801][ T1709] ? __pfx___mutex_lock (kernel/locking/mutex.c:734) [ 161.068956][ T1709] ? __rtnl_newlink (net/core/rtnetlink.c:3871) [ 161.069111][ T1709] rtnl_newlink (net/core/rtnetlink.c:345 net/core/rtnetlink.c:4022) [ 161.069267][ T1709] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 161.069421][ T1709] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 161.069576][ T1709] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 161.069728][ T1709] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 161.069890][ T1709] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6909) [ 161.070043][ T1709] ? __pfx_rtnl_newlink (net/core/rtnetlink.c:3912) [ 161.070203][ T1709] rtnetlink_rcv_msg (net/core/rtnetlink.c:6911) [ 161.070356][ T1709] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 161.070512][ T1709] ? 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) [ 161.070664][ T1709] ? mark_lock (kernel/locking/lockdep.c:4727 (discriminator 3)) [ 161.070782][ T1709] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 161.070938][ T1709] netlink_rcv_skb (net/netlink/af_netlink.c:2543) [ 161.071094][ T1709] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6814) [ 161.071249][ T1709] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2520) [ 161.071407][ T1709] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 161.071564][ T1709] ? 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) [ 161.071720][ T1709] netlink_unicast (net/netlink/af_netlink.c:1322 net/netlink/af_netlink.c:1348) [ 161.071878][ T1709] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1333) [ 161.072036][ T1709] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 161.072192][ T1709] ? __lock_release (kernel/locking/lockdep.c:5525) [ 161.072348][ T1709] netlink_sendmsg (net/netlink/af_netlink.c:1892) [ 161.072502][ T1709] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1811) [ 161.072654][ T1709] ? _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) [ 161.072808][ T1709] ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2594) [ 161.072963][ T1709] ? __pfx_____sys_sendmsg (net/socket.c:2540) [ 161.073121][ T1709] ? __pfx_copy_msghdr_from_user (net/socket.c:2520) [ 161.073316][ T1709] ___sys_sendmsg (net/socket.c:2650) [ 161.073564][ T1709] ? __pfx____sys_sendmsg (net/socket.c:2637) [ 161.073719][ T1709] ? kasan_save_stack (mm/kasan/common.c:49) [ 161.073871][ T1709] ? kasan_save_stack (mm/kasan/common.c:48) [ 161.074023][ T1709] ? __kasan_record_aux_stack (mm/kasan/generic.c:544) [ 161.074269][ T1709] ? __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) [ 161.074465][ T1709] ? __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 161.074620][ T1709] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 161.074865][ T1709] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 161.075052][ T1709] ? __lock_acquire (kernel/locking/lockdep.c:5226) [ 161.075209][ T1709] ? find_held_lock (kernel/locking/lockdep.c:5339) [ 161.075361][ T1709] ? __lock_release (kernel/locking/lockdep.c:5525) [ 161.075610][ T1709] ? __virt_addr_valid (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:962 ./include/linux/mmzone.h:2058 arch/x86/mm/physaddr.c:65) [ 161.075763][ T1709] ? __pfx___lock_release (kernel/locking/lockdep.c:5501) [ 161.075922][ T1709] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5814) [ 161.076076][ T1709] __sys_sendmsg (net/socket.c:2680) [ 161.076337][ T1709] ? __pfx___sys_sendmsg (net/socket.c:2665) [ 161.076492][ T1709] ? __pfx_slab_free_after_rcu_debug (mm/slub.c:4643) [ 161.076687][ T1709] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 161.076841][ T1709] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 161.077121][ T1709] RIP: 0033:0x7fa2ae7b59a7 [ 161.077287][ T1709] 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) [ 161.077924][ T1709] RSP: 002b:00007ffe43625108 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 161.078159][ T1709] RAX: ffffffffffffffda RBX: 00007ffe43625840 RCX: 00007fa2ae7b59a7 [ 161.078485][ T1709] RDX: 0000000000000000 RSI: 00007ffe43625170 RDI: 0000000000000005 [ 161.078716][ T1709] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000000000078 [ 161.078946][ T1709] R10: 00007fa2ae6734a8 R11: 0000000000000246 R12: 0000000000000003 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:down_read:blocking_notifier_call_chain