====================================== | WAIT TIMEOUT stdout | | [ 33.923417][ T323] general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI | [ 33.923952][ T323] KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] [ 33.924612][ T323] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 33.925118][ T323] RIP: 0010:__nh_valid_dump_req (./include/net/netlink.h:1680 net/ipv4/nexthop.c:3404) [ 33.925426][ T323] Code: ea 03 80 3c 02 00 0f 85 ab 02 00 00 48 8b 5e 70 48 85 db 74 73 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 33 All code ======== 0: ea (bad) 1: 03 80 3c 02 00 0f add 0xf00023c(%rax),%eax 7: 85 ab 02 00 00 48 test %ebp,0x48000002(%rbx) d: 8b 5e 70 mov 0x70(%rsi),%ebx 10: 48 85 db test %rbx,%rbx 13: 74 73 je 0x88 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 48 8d 7b 04 lea 0x4(%rbx),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx 2a:* 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 83 e0 07 and $0x7,%eax 34: 83 c0 03 add $0x3,%eax 37: 38 d0 cmp %dl,%al 39: 7c 08 jl 0x43 3b: 84 d2 test %dl,%dl 3d: 0f .byte 0xf 3e: 85 33 test %esi,(%rbx) Code starting with the faulting instruction =========================================== 0: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx 4: 48 89 f8 mov %rdi,%rax 7: 83 e0 07 and $0x7,%eax a: 83 c0 03 add $0x3,%eax d: 38 d0 cmp %dl,%al f: 7c 08 jl 0x19 11: 84 d2 test %dl,%dl 13: 0f .byte 0xf 14: 85 33 test %esi,(%rbx) [ 33.926236][ T323] RSP: 0018:ffffc9000074f448 EFLAGS: 00010247 [ 33.926522][ T323] RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc9000074f770 [ 33.926857][ T323] RDX: 0000000000000000 RSI: ffffc9000074f500 RDI: 0000000000000005 [ 33.927199][ T323] RBP: ffffc9000074f680 R08: ffffc9000074f770 R09: 0000000000000004 [ 33.927528][ T323] R10: dffffc0000000000 R11: 0000000000000003 R12: ffff888003f98040 [ 33.927859][ T323] R13: 0000000000000000 R14: ffffc9000074f500 R15: 0000000000000001 [ 33.928187][ T323] FS: 00007f79e6217c40(0000) GS:ffff88802fa00000(0000) knlGS:0000000000000000 [ 33.928568][ T323] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 33.928846][ T323] CR2: 000000000047eb22 CR3: 000000000314c003 CR4: 0000000000770ef0 [ 33.929171][ T323] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 33.929497][ T323] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 33.929821][ T323] PKRU: 55555554 [ 33.929986][ T323] Call Trace: [ 33.930148][ T323] [ 33.930271][ T323] ? die_addr (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:460) [ 33.930444][ T323] ? exc_general_protection (arch/x86/kernel/traps.c:701 arch/x86/kernel/traps.c:643) [ 33.930668][ T323] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:564) [ 33.930893][ T323] ? __nh_valid_dump_req (./include/net/netlink.h:1680 net/ipv4/nexthop.c:3404) [ 33.931116][ T323] nh_valid_dump_bucket_req (net/ipv4/nexthop.c:3552) [ 33.931335][ T323] ? __lock_release (kernel/locking/lockdep.c:5430) [ 33.931558][ T323] ? __pfx_nh_valid_dump_bucket_req (net/ipv4/nexthop.c:3552) [ 33.931836][ T323] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 33.932057][ T323] ? netlink_dump (net/netlink/af_netlink.c:2269) [ 33.932277][ T323] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 44)) [ 33.932524][ T323] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 33.932748][ T323] rtm_dump_nexthop_bucket (net/ipv4/nexthop.c:3676) [ 33.932967][ T323] ? __pfx___mutex_lock (kernel/locking/mutex.c:751) [ 33.933186][ T323] ? __alloc_skb (net/core/skbuff.c:684) [ 33.933408][ T323] ? __pfx_rtm_dump_nexthop_bucket (net/ipv4/nexthop.c:3669) [ 33.933675][ T323] ? __mutex_trylock_common (./arch/x86/include/asm/atomic64_64.h:109 ./include/linux/atomic/atomic-arch-fallback.h:4276 ./include/linux/atomic/atomic-long.h:1476 ./include/linux/atomic/atomic-instrumented.h:4424 kernel/locking/mutex.c:129) [ 33.933896][ T323] netlink_dump (net/netlink/af_netlink.c:2269) [ 33.934112][ T323] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 44)) [ 33.934333][ T323] ? __pfx_netlink_dump (net/netlink/af_netlink.c:2197) [ 33.934548][ T323] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 33.934771][ T323] ? __pfx___netlink_lookup (net/netlink/af_netlink.c:512) [ 33.934989][ T323] ? netlink_lookup (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 net/netlink/af_netlink.c:539) [ 33.935208][ T323] __netlink_dump_start (./include/linux/instrumented.h:96 ./include/linux/atomic/atomic-instrumented.h:400 ./include/linux/refcount.h:261 ./include/linux/refcount.h:304 ./include/linux/refcount.h:322 ./include/net/sock.h:1940 net/netlink/af_netlink.c:2388) [ 33.935426][ T323] rtnetlink_rcv_msg (net/core/rtnetlink.c:6555) [ 33.935647][ T323] ? __pfx_rtm_dump_nexthop_bucket (net/ipv4/nexthop.c:3669) [ 33.935922][ T323] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6489) [ 33.936140][ T323] ? __pfx_rtm_dump_nexthop_bucket (net/ipv4/nexthop.c:3669) [ 33.936413][ T323] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 33.936632][ T323] netlink_rcv_skb (net/netlink/af_netlink.c:2559) [ 33.936851][ T323] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6489) [ 33.937075][ T323] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2536) [ 33.937292][ T323] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 33.937515][ T323] ? __pfx___netlink_lookup (net/netlink/af_netlink.c:512) [ 33.937731][ T323] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 33.937947][ T323] ? netlink_deliver_tap (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 33.938292][ T323] ? netlink_deliver_tap (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 33.938508][ T323] ? netlink_deliver_tap (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 net/netlink/af_netlink.c:340) [ 33.938724][ T323] netlink_unicast (net/netlink/af_netlink.c:1335 net/netlink/af_netlink.c:1361) [ 33.938941][ T323] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1346) [ 33.939285][ T323] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 33.939500][ T323] ? 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) [ 33.939721][ T323] netlink_sendmsg (net/netlink/af_netlink.c:1905) [ 33.939939][ T323] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1824) [ 33.940282][ T323] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145) [ 33.940502][ T323] __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 33.940720][ T323] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 33.940937][ T323] ? __pfx___sys_sendto (net/socket.c:2161) [ 33.941279][ T323] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 33.941503][ T323] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 33.941719][ T323] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 33.941934][ T323] ? rseq_ip_fixup (kernel/rseq.c:257 kernel/rseq.c:291) [ 33.942155][ T323] ? __pfx_find_vma (mm/mmap.c:1883) [ 33.942502][ T323] ? __pfx___up_read (kernel/locking/rwsem.c:1339) [ 33.942720][ T323] ? __pfx_rseq_ip_fixup (kernel/rseq.c:275) [ 33.942939][ T323] __x64_sys_sendto (net/socket.c:2199) [ 33.943162][ T323] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 33.943573][ T323] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 33.943808][ T323] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 33.944097][ T323] RIP: 0033:0x7f79e6420700 [ 33.944338][ T323] Code: ff ff 64 89 02 eb bd 0f 1f 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 41 54 48 83 ec 20 All code ======== 0: ff (bad) 1: ff 64 89 02 jmp *0x2(%rcx,%rcx,4) 5: eb bd jmp 0xffffffffffffffc4 7: 0f 1f 00 nopl (%rax) a: f3 0f 1e fa endbr64 e: 41 89 ca mov %ecx,%r10d 11: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 18: 00 19: 85 c0 test %eax,%eax 1b: 75 1d jne 0x3a 1d: 45 31 c9 xor %r9d,%r9d 20: 45 31 c0 xor %r8d,%r8d 23: b8 2c 00 00 00 mov $0x2c,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 68 ja 0x9a 32: c3 ret 33: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 3a: 41 54 push %r12 3c: 48 83 ec 20 sub $0x20,%rsp Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 68 ja 0x70 8: c3 ret 9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 10: 41 54 push %r12 12: 48 83 ec 20 sub $0x20,%rsp [ 33.945292][ T323] RSP: 002b:00007fff40b6b1e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 33.945791][ T323] RAX: ffffffffffffffda RBX: 0000000000495540 RCX: 00007f79e6420700 [ 33.946135][ T323] RDX: 0000000000000098 RSI: 00007fff40b6b1f0 RDI: 0000000000000005 [ 33.946482][ T323] RBP: 00007fff40b6b1f0 R08: 0000000000000000 R09: 0000000000000000 [ 33.946974][ T323] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff Finger prints: __nh_valid_dump_req:nh_valid_dump_bucket_req:rtm_dump_nexthop_bucket:netlink_dump