====================================== | WAIT TIMEOUT stdout | | [ 269.984124][ T2421] general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI | [ 269.984467][ T2421] KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] [ 269.984894][ T2421] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 269.985184][ T2421] RIP: 0010:__nh_valid_dump_req (./include/net/netlink.h:1680 net/ipv4/nexthop.c:3404) [ 269.985350][ T2421] 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) [ 269.985839][ T2421] RSP: 0018:ffffc9000300f448 EFLAGS: 00010247 [ 269.986013][ T2421] RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc9000300f770 [ 269.986204][ T2421] RDX: 0000000000000000 RSI: ffffc9000300f500 RDI: 0000000000000005 [ 269.986393][ T2421] RBP: ffffc9000300f680 R08: ffffc9000300f770 R09: 0000000000000004 [ 269.986586][ T2421] R10: dffffc0000000000 R11: 0000000000000003 R12: ffff88800251c6c0 [ 269.986787][ T2421] R13: 0000000000000000 R14: ffffc9000300f500 R15: 0000000000000001 [ 269.986977][ T2421] FS: 00007fddcf997c40(0000) GS:ffff888036180000(0000) knlGS:0000000000000000 [ 269.987230][ T2421] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 269.987401][ T2421] CR2: 000000000047eb22 CR3: 0000000008ae6006 CR4: 0000000000770ef0 [ 269.987604][ T2421] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 269.987811][ T2421] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 269.988021][ T2421] PKRU: 55555554 [ 269.988125][ T2421] Call Trace: [ 269.988232][ T2421] [ 269.988306][ T2421] ? die_addr (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:460) [ 269.988424][ T2421] ? exc_general_protection (arch/x86/kernel/traps.c:701 arch/x86/kernel/traps.c:643) [ 269.988561][ T2421] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:564) [ 269.988704][ T2421] ? __nh_valid_dump_req (./include/net/netlink.h:1680 net/ipv4/nexthop.c:3404) [ 269.988837][ T2421] nh_valid_dump_bucket_req (net/ipv4/nexthop.c:3552) [ 269.988968][ T2421] ? __lock_release (kernel/locking/lockdep.c:5430) [ 269.989096][ T2421] ? __pfx_nh_valid_dump_bucket_req (net/ipv4/nexthop.c:3552) [ 269.989255][ T2421] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 269.989378][ T2421] ? netlink_dump (net/netlink/af_netlink.c:2269) [ 269.989511][ T2421] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 44)) [ 269.989646][ T2421] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 269.989791][ T2421] rtm_dump_nexthop_bucket (net/ipv4/nexthop.c:3676) [ 269.989928][ T2421] ? __pfx___mutex_lock (kernel/locking/mutex.c:751) [ 269.990060][ T2421] ? __alloc_skb (net/core/skbuff.c:684) [ 269.990189][ T2421] ? __pfx_rtm_dump_nexthop_bucket (net/ipv4/nexthop.c:3669) [ 269.990382][ T2421] ? __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) [ 269.990521][ T2421] netlink_dump (net/netlink/af_netlink.c:2269) [ 269.990660][ T2421] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 44)) [ 269.990799][ T2421] ? __pfx_netlink_dump (net/netlink/af_netlink.c:2197) [ 269.990938][ T2421] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 269.991081][ T2421] ? __pfx___netlink_lookup (net/netlink/af_netlink.c:512) [ 269.991219][ T2421] ? netlink_lookup (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 net/netlink/af_netlink.c:539) [ 269.991362][ T2421] __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) [ 269.991500][ T2421] rtnetlink_rcv_msg (net/core/rtnetlink.c:6555) [ 269.991652][ T2421] ? __pfx_rtm_dump_nexthop_bucket (net/ipv4/nexthop.c:3669) [ 269.991826][ T2421] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6489) [ 269.991964][ T2421] ? __pfx_rtm_dump_nexthop_bucket (net/ipv4/nexthop.c:3669) [ 269.992139][ T2421] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 269.992278][ T2421] netlink_rcv_skb (net/netlink/af_netlink.c:2559) [ 269.992436][ T2421] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6489) [ 269.992570][ T2421] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2536) [ 269.992694][ T2421] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 269.992847][ T2421] ? __pfx___netlink_lookup (net/netlink/af_netlink.c:512) [ 269.992982][ T2421] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 269.993119][ T2421] ? 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) [ 269.993256][ T2421] ? 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) [ 269.993395][ T2421] ? netlink_deliver_tap (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 net/netlink/af_netlink.c:340) [ 269.993538][ T2421] netlink_unicast (net/netlink/af_netlink.c:1335 net/netlink/af_netlink.c:1361) [ 269.993676][ T2421] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1346) [ 269.993814][ T2421] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 269.993954][ T2421] ? 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) [ 269.994092][ T2421] netlink_sendmsg (net/netlink/af_netlink.c:1905) [ 269.994233][ T2421] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1824) [ 269.994370][ T2421] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145) [ 269.994513][ T2421] __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 269.994653][ T2421] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 269.994792][ T2421] ? __pfx___sys_sendto (net/socket.c:2161) [ 269.994928][ T2421] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 269.995067][ T2421] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 269.995207][ T2421] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 269.995353][ T2421] ? rseq_ip_fixup (kernel/rseq.c:257 kernel/rseq.c:291) [ 269.995486][ T2421] ? __pfx_find_vma (mm/mmap.c:1883) [ 269.995614][ T2421] ? __pfx___up_read (kernel/locking/rwsem.c:1339) [ 269.995739][ T2421] ? __pfx_rseq_ip_fixup (kernel/rseq.c:275) [ 269.995868][ T2421] __x64_sys_sendto (net/socket.c:2199) [ 269.995991][ T2421] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 269.996174][ T2421] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 269.996313][ T2421] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 269.996487][ T2421] RIP: 0033:0x7fddcfba0700 [ 269.996634][ T2421] 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 [ 269.997130][ T2421] RSP: 002b:00007fff3aacf368 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 269.997339][ T2421] RAX: ffffffffffffffda RBX: 0000000000495540 RCX: 00007fddcfba0700 [ 269.997549][ T2421] RDX: 0000000000000098 RSI: 00007fff3aacf370 RDI: 0000000000000005 [ 269.997758][ T2421] RBP: 00007fff3aacf370 R08: 0000000000000000 R09: 0000000000000000 [ 269.997971][ T2421] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff Finger prints: __nh_valid_dump_req:nh_valid_dump_bucket_req:rtm_dump_nexthop_bucket:netlink_dump