Oops: general protection fault, probably for non-canonical address 0xdffffc000000001c: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000000e0-0x00000000000000e7] CPU: 0 UID: 0 PID: 5991 Comm: syz.0.19 Not tainted 6.16.0-rc6-syzkaller-01646-g56613001dfc9-dirty #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:ipv6_anycast_destination include/net/ip6_route.h:234 [inline] RIP: 0010:icmpv6_route_lookup+0x1ad/0x590 net/ipv6/icmp.c:374 Code: a4 01 00 00 49 89 c7 e8 b1 54 94 f7 4c 89 f8 49 89 df e9 3f 02 00 00 4c 8b 74 24 60 4d 8d ae e0 00 00 00 4c 89 e8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 41 03 00 00 45 8b 6d 00 44 89 ee 81 e6 RSP: 0018:ffffc90002b4ec00 EFLAGS: 00010202 RAX: 000000000000001c RBX: ffffc90002b4eee0 RCX: 0000000000000000 RDX: ffff8880206c3980 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90002b4ed70 R08: ffff88802a9ef3c3 R09: 1ffff1100553de78 R10: dffffc0000000000 R11: ffffed100553de79 R12: ffff88810de0f800 R13: 00000000000000e0 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007faf43ec86c0(0000) GS:ffff8880b8615000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000034000 CR3: 0000000028440000 CR4: 00000000000006f0 Call Trace: icmp6_send+0x1001/0x1940 net/ipv6/icmp.c:606 icmpv6_param_prob_reason+0x32/0x50 net/ipv6/icmp.c:654 ip6_tlvopt_unknown net/ipv6/exthdrs.c:94 [inline] ip6_parse_tlv+0x19fc/0x1e60 net/ipv6/exthdrs.c:-1 ipv6_destopt_rcv+0x597/0xbc0 net/ipv6/exthdrs.c:325 ip6_protocol_deliver_rcu+0xe0b/0x15c0 net/ipv6/ip6_input.c:438 ip6_input_finish+0x191/0x370 net/ipv6/ip6_input.c:489 NF_HOOK+0x30c/0x3a0 include/linux/netfilter.h:317 ip6_input+0x16a/0x270 net/ipv6/ip6_input.c:500 ip6_mc_input+0x5c8/0xaf0 net/ipv6/ip6_input.c:590 NF_HOOK+0x30c/0x3a0 include/linux/netfilter.h:317 __netif_receive_skb_one_core net/core/dev.c:5979 [inline] __netif_receive_skb+0xd3/0x380 net/core/dev.c:6092 netif_receive_skb_internal net/core/dev.c:6178 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6237 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2aa2/0x3e20 drivers/net/tun.c:1950 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1996 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x54b/0xa90 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faf42f8e9a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faf43ec8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007faf431b5fa0 RCX: 00007faf42f8e9a9 RDX: 0000000000000ffe RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007faf43010d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007faf431b5fa0 R15: 00007ffeead38248 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ipv6_anycast_destination include/net/ip6_route.h:234 [inline] RIP: 0010:icmpv6_route_lookup+0x1ad/0x590 net/ipv6/icmp.c:374 Code: a4 01 00 00 49 89 c7 e8 b1 54 94 f7 4c 89 f8 49 89 df e9 3f 02 00 00 4c 8b 74 24 60 4d 8d ae e0 00 00 00 4c 89 e8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 41 03 00 00 45 8b 6d 00 44 89 ee 81 e6 RSP: 0018:ffffc90002b4ec00 EFLAGS: 00010202 RAX: 000000000000001c RBX: ffffc90002b4eee0 RCX: 0000000000000000 RDX: ffff8880206c3980 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90002b4ed70 R08: ffff88802a9ef3c3 R09: 1ffff1100553de78 R10: dffffc0000000000 R11: ffffed100553de79 R12: ffff88810de0f800 R13: 00000000000000e0 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007faf43ec86c0(0000) GS:ffff8880b8615000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000034000 CR3: 0000000028440000 CR4: 00000000000006f0 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 00 00 add %al,(%rax) 2: 49 89 c7 mov %rax,%r15 5: e8 b1 54 94 f7 call 0xf79454bb a: 4c 89 f8 mov %r15,%rax d: 49 89 df mov %rbx,%r15 10: e9 3f 02 00 00 jmp 0x254 15: 4c 8b 74 24 60 mov 0x60(%rsp),%r14 1a: 4d 8d ae e0 00 00 00 lea 0xe0(%r14),%r13 21: 4c 89 e8 mov %r13,%rax 24: 48 c1 e8 03 shr $0x3,%rax * 28: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax <-- trapping instruction 2d: 84 c0 test %al,%al 2f: 0f 85 41 03 00 00 jne 0x376 35: 45 8b 6d 00 mov 0x0(%r13),%r13d 39: 44 89 ee mov %r13d,%esi 3c: 81 .byte 0x81 3d: e6 .byte 0xe6