====================================== | [ 141.798892][ T897] #1: ffff888005294a30 (&tb->tb6_lock){+...}-{3:3}, at: ip6_route_add (net/ipv6/route.c:1317 net/ipv6/route.c:3883) | [ 141.799151][ T897] #2: ffff888008d10180 (&nh->lock){+...}-{3:3}, at: fib6_add (net/ipv6/ip6_fib.c:1508) | [ 141.799368][ T897] | [ 141.799368][ T897] stack backtrace: [ 141.799553][ T897] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 141.799555][ T897] Call Trace: [ 141.799557][ T897] [ 141.799560][ T897] dump_stack_lvl (lib/dump_stack.c:123) [ 141.799568][ T897] print_deadlock_bug (kernel/locking/lockdep.c:3042) [ 141.799576][ T897] validate_chain (kernel/locking/lockdep.c:3896) [ 141.799582][ T897] ? __pfx_validate_chain (kernel/locking/lockdep.c:3862) [ 141.799586][ T897] ? 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:230) [ 141.799589][ T897] ? mark_lock (kernel/locking/lockdep.c:4729 (discriminator 3)) [ 141.799593][ T897] __lock_acquire (kernel/locking/lockdep.c:5228) [ 141.799600][ T897] lock_acquire.part.0 (kernel/locking/lockdep.c:469 kernel/locking/lockdep.c:5853) [ 141.799603][ T897] ? fib6_purge_rt (./include/linux/list.h:373 net/ipv6/ip6_fib.c:1053) [ 141.799608][ T897] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5816) [ 141.799612][ T897] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 21)) [ 141.799615][ T897] ? lock_acquire (kernel/locking/lockdep.c:5824) [ 141.799618][ T897] ? fib6_purge_rt (./include/linux/list.h:373 net/ipv6/ip6_fib.c:1053) [ 141.799622][ T897] _raw_spin_lock (./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) [ 141.799627][ T897] ? fib6_purge_rt (./include/linux/list.h:373 net/ipv6/ip6_fib.c:1053) [ 141.799629][ T897] fib6_purge_rt (./include/linux/list.h:373 net/ipv6/ip6_fib.c:1053) [ 141.799634][ T897] ? __pfx_fib6_purge_rt (net/ipv6/ip6_fib.c:1044) [ 141.799638][ T897] ? nlmsg_notify (net/netlink/af_netlink.c:2578) [ 141.799645][ T897] fib6_add_rt2node (net/ipv6/ip6_fib.c:1316) [ 141.799651][ T897] ? __pfx_fib6_add_rt2node (net/ipv6/ip6_fib.c:1092) [ 141.799654][ T897] ? do_raw_spin_lock (./arch/x86/include/asm/atomic.h:107 ./include/linux/atomic/atomic-arch-fallback.h:2170 ./include/linux/atomic/atomic-instrumented.h:1302 ./include/asm-generic/qspinlock.h:111 kernel/locking/spinlock_debug.c:116) [ 141.799658][ T897] ? lock_acquire (kernel/locking/lockdep.c:5824) [ 141.799661][ T897] ? fib6_add (net/ipv6/ip6_fib.c:1508) [ 141.799665][ T897] fib6_add (net/ipv6/ip6_fib.c:1514) [ 141.799670][ T897] ip6_route_add (./include/linux/spinlock.h:396 net/ipv6/route.c:1318 net/ipv6/route.c:3883) [ 141.799673][ T897] ? __pfx_inet6_rtm_newroute (net/ipv6/route.c:5669) [ 141.799676][ T897] inet6_rtm_newroute (net/ipv6/route.c:5683) [ 141.799679][ T897] ? __pfx_inet6_rtm_newroute (net/ipv6/route.c:5669) [ 141.799686][ T897] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6952) [ 141.799692][ T897] rtnetlink_rcv_msg (net/core/rtnetlink.c:6954) [ 141.799695][ T897] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6857) [ 141.799698][ T897] ? 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:230) [ 141.799700][ T897] ? mark_lock (kernel/locking/lockdep.c:4729 (discriminator 3)) [ 141.799704][ T897] ? __lock_acquire (kernel/locking/lockdep.c:5228) [ 141.799708][ T897] netlink_rcv_skb (net/netlink/af_netlink.c:2534) [ 141.799711][ T897] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6857) [ 141.799714][ T897] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2511) [ 141.799721][ T897] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 141.799724][ T897] ? 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) [ 141.799728][ T897] netlink_unicast (net/netlink/af_netlink.c:1313 net/netlink/af_netlink.c:1339) [ 141.799731][ T897] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1324) [ 141.799734][ T897] ? find_held_lock (kernel/locking/lockdep.c:5341) [ 141.799738][ T897] netlink_sendmsg (net/netlink/af_netlink.c:1883) [ 141.799742][ T897] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1802) [ 141.799748][ T897] ____sys_sendmsg (net/socket.c:712 net/socket.c:727 net/socket.c:2566) [ 141.799754][ T897] ? __pfx_____sys_sendmsg (net/socket.c:2512) [ 141.799757][ T897] ? __pfx_copy_msghdr_from_user (net/socket.c:2492) [ 141.799763][ T897] ___sys_sendmsg (net/socket.c:2622) [ 141.799767][ T897] ? __pfx____sys_sendmsg (net/socket.c:2609) [ 141.799771][ T897] ? ___sys_recvmsg (net/socket.c:2818) [ 141.799774][ T897] ? __pfx____sys_recvmsg (net/socket.c:2818) [ 141.799778][ T897] ? do_user_addr_fault (./include/linux/rcupdate.h:337 ./include/linux/rcupdate.h:849 ./include/linux/mm.h:740 arch/x86/mm/fault.c:1339) [ 141.799783][ T897] ? do_user_addr_fault (./include/linux/rcupdate.h:337 ./include/linux/rcupdate.h:849 ./include/linux/mm.h:740 arch/x86/mm/fault.c:1339) [ 141.799787][ T897] ? find_held_lock (kernel/locking/lockdep.c:5341) [ 141.799790][ T897] ? __lock_release (kernel/locking/lockdep.c:5527) [ 141.799795][ T897] __sys_sendmsg (net/socket.c:2652) [ 141.799797][ T897] ? __pfx___sys_sendmsg (net/socket.c:2637) [ 141.799802][ T897] ? do_user_addr_fault (./include/linux/rcupdate.h:882 ./include/linux/mm.h:742 arch/x86/mm/fault.c:1339) [ 141.799807][ T897] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 141.799813][ T897] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 141.799818][ T897] RIP: 0033:0x7f7f4782a9a7 [ 141.799823][ T897] 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) [ 141.799825][ T897] RSP: 002b:00007ffd079aef78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 141.799829][ T897] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7f4782a9a7 [ 141.799831][ T897] RDX: 0000000000000000 RSI: 00007ffd079aefe0 RDI: 0000000000000005 [ 141.799833][ T897] RBP: 00007ffd079b1518 R08: 0000000000000004 R09: 0000000000000000 [ 141.799835][ T897] R10: 00007f7f47879ac0 R11: 0000000000000246 R12: 00007ffd079b02f0 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:_raw_spin_lock:fib6_purge_rt