====================================== | [1502.919325][T19322] #1: ffff88800a70ac30 (&tb->tb6_lock){+.-.}-{3:3}, at: ip6_route_add (net/ipv6/route.c:1317 net/ipv6/route.c:3883) | [1502.919594][T19322] #2: ffff8880106ed680 (&nh->lock){+...}-{3:3}, at: fib6_add (net/ipv6/ip6_fib.c:1508) | [ 1502.919832][T19322] | [ 1502.919832][T19322] stack backtrace: [ 1502.920024][T19322] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1502.920026][T19322] Call Trace: [ 1502.920027][T19322] [1502.920029][T19322] dump_stack_lvl (lib/dump_stack.c:123) [1502.920035][T19322] print_deadlock_bug (kernel/locking/lockdep.c:3042) [1502.920042][T19322] validate_chain (kernel/locking/lockdep.c:3896) [1502.920048][T19322] ? __pfx_validate_chain (kernel/locking/lockdep.c:3862) [1502.920051][T19322] ? 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) [1502.920054][T19322] ? mark_lock (kernel/locking/lockdep.c:4729 (discriminator 3)) [1502.920059][T19322] __lock_acquire (kernel/locking/lockdep.c:5228) [1502.920065][T19322] lock_acquire.part.0 (kernel/locking/lockdep.c:469 kernel/locking/lockdep.c:5853) [1502.920069][T19322] ? fib6_purge_rt (./include/linux/list.h:373 net/ipv6/ip6_fib.c:1053) [1502.920073][T19322] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5816) [1502.920077][T19322] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 21)) [1502.920081][T19322] ? lock_acquire (kernel/locking/lockdep.c:5824) [1502.920084][T19322] ? fib6_purge_rt (./include/linux/list.h:373 net/ipv6/ip6_fib.c:1053) [1502.920088][T19322] _raw_spin_lock (./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) [1502.920091][T19322] ? fib6_purge_rt (./include/linux/list.h:373 net/ipv6/ip6_fib.c:1053) [1502.920094][T19322] fib6_purge_rt (./include/linux/list.h:373 net/ipv6/ip6_fib.c:1053) [1502.920099][T19322] ? __pfx_fib6_purge_rt (net/ipv6/ip6_fib.c:1044) [1502.920103][T19322] ? nlmsg_notify (net/netlink/af_netlink.c:2578) [1502.920108][T19322] fib6_add_rt2node (net/ipv6/ip6_fib.c:1316) [1502.920115][T19322] ? __pfx_fib6_add_rt2node (net/ipv6/ip6_fib.c:1092) [1502.920118][T19322] ? 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) [1502.920121][T19322] ? lock_acquire (kernel/locking/lockdep.c:5824) [1502.920124][T19322] ? fib6_add (net/ipv6/ip6_fib.c:1508) [1502.920128][T19322] fib6_add (net/ipv6/ip6_fib.c:1514) [1502.920133][T19322] ip6_route_add (./include/linux/spinlock.h:396 net/ipv6/route.c:1318 net/ipv6/route.c:3883) [1502.920135][T19322] ? __pfx_inet6_rtm_newroute (net/ipv6/route.c:5669) [1502.920138][T19322] inet6_rtm_newroute (net/ipv6/route.c:5683) [1502.920141][T19322] ? __pfx_inet6_rtm_newroute (net/ipv6/route.c:5669) [1502.920149][T19322] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/core/rtnetlink.c:6952) [1502.920153][T19322] rtnetlink_rcv_msg (net/core/rtnetlink.c:6954) [1502.920156][T19322] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6857) [1502.920159][T19322] ? 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) [1502.920161][T19322] ? mark_lock (kernel/locking/lockdep.c:4729 (discriminator 3)) [1502.920166][T19322] ? __lock_acquire (kernel/locking/lockdep.c:5228) [1502.920170][T19322] netlink_rcv_skb (net/netlink/af_netlink.c:2534) [1502.920173][T19322] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6857) [1502.920176][T19322] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2511) [1502.920183][T19322] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [1502.920186][T19322] ? 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) [1502.920189][T19322] netlink_unicast (net/netlink/af_netlink.c:1313 net/netlink/af_netlink.c:1339) [1502.920193][T19322] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1324) [1502.920196][T19322] ? find_held_lock (kernel/locking/lockdep.c:5341) [1502.920200][T19322] netlink_sendmsg (net/netlink/af_netlink.c:1883) [1502.920204][T19322] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1802) [1502.920209][T19322] ____sys_sendmsg (net/socket.c:712 net/socket.c:727 net/socket.c:2566) [1502.920215][T19322] ? __pfx_____sys_sendmsg (net/socket.c:2512) [1502.920218][T19322] ? __pfx_copy_msghdr_from_user (net/socket.c:2492) [1502.920225][T19322] ___sys_sendmsg (net/socket.c:2622) [1502.920229][T19322] ? __pfx____sys_sendmsg (net/socket.c:2609) [1502.920233][T19322] ? ___sys_recvmsg (net/socket.c:2818) [1502.920236][T19322] ? __pfx____sys_recvmsg (net/socket.c:2818) [1502.920239][T19322] ? 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) [1502.920243][T19322] ? 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) [1502.920248][T19322] ? find_held_lock (kernel/locking/lockdep.c:5341) [1502.920251][T19322] ? __lock_release (kernel/locking/lockdep.c:5527) [1502.920255][T19322] __sys_sendmsg (net/socket.c:2652) [1502.920258][T19322] ? __pfx___sys_sendmsg (net/socket.c:2637) [1502.920263][T19322] ? do_user_addr_fault (./include/linux/rcupdate.h:882 ./include/linux/mm.h:742 arch/x86/mm/fault.c:1339) [1502.920267][T19322] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [1502.920272][T19322] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 1502.920277][T19322] RIP: 0033:0x7f0c983759a7 [ 1502.920280][T19322] 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) [ 1502.920283][T19322] RSP: 002b:00007ffe1b387e38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 1502.920287][T19322] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0c983759a7 [ 1502.920289][T19322] RDX: 0000000000000000 RSI: 00007ffe1b387ea0 RDI: 0000000000000005 [ 1502.920290][T19322] RBP: 00007ffe1b38a3d8 R08: 0000000000000004 R09: 0000000000000000 [ 1502.920292][T19322] R10: 00007f0c983c4ac0 R11: 0000000000000246 R12: 00007ffe1b3891b0 Finger prints: print_deadlock_bug:validate_chain:__lock_acquire:_raw_spin_lock:fib6_purge_rt