general protection fault, probably for non-canonical address 0xdffffc00000000cd: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000668-0x000000000000066f] CPU: 0 PID: 10813 Comm: syz-executor.3 Not tainted 5.18.0-rc2-syzkaller-00937-gedf45f007a31 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ip6_rcv_core+0x12e8/0x1dd0 net/ipv6/ip6_input.c:169 Code: c1 ea 03 80 3c 02 00 0f 85 39 09 00 00 4c 89 f2 49 8b 85 b0 02 00 00 48 c1 ea 03 65 48 ff 40 68 48 b8 00 00 00 00 00 fc ff df <0f> b6 14 02 4c 89 f0 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 f6 RSP: 0018:ffffc90006ef77b0 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc900049c2000 RDX: 00000000000000cd RSI: 0000000000000200 RDI: 0000000000000000 RBP: ffff88801a992c80 R08: 0000000000000001 R09: ffff88801a992d5f R10: ffffffff87fa0f3e R11: 0000000000000000 R12: 0000000000000000 R13: ffff88804e65d280 R14: 000000000000066c R15: dffffc0000000000 FS: 00007f209870d700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f209779c028 CR3: 0000000073389000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ipv6_rcv+0x75/0x3b0 net/ipv6/ip6_input.c:303 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5408 __netif_receive_skb+0x24/0x1b0 net/core/dev.c:5522 netif_receive_skb_internal net/core/dev.c:5608 [inline] netif_receive_skb+0x13e/0x8e0 net/core/dev.c:5667 tun_rx_batched.isra.0+0x460/0x720 drivers/net/tun.c:1534 tun_get_user+0x28b7/0x3e30 drivers/net/tun.c:1985 tun_chr_write_iter+0xdb/0x200 drivers/net/tun.c:2015 call_write_iter include/linux/fs.h:2050 [inline] new_sync_write+0x38a/0x560 fs/read_write.c:504 vfs_write+0x7c0/0xac0 fs/read_write.c:591 ksys_write+0x127/0x250 fs/read_write.c:644 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f209763bbff Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 cc fd ff ff 48 RSP: 002b:00007f209870d130 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f209779bf60 RCX: 00007f209763bbff RDX: 000000000000004e RSI: 0000000020000280 RDI: 00000000000000c8 RBP: 00007f20976e308d R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000004e R11: 0000000000000293 R12: 0000000000000000 R13: 00007ffea6766a4f R14: 00007f209870d300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ip6_rcv_core+0x12e8/0x1dd0 net/ipv6/ip6_input.c:169 Code: c1 ea 03 80 3c 02 00 0f 85 39 09 00 00 4c 89 f2 49 8b 85 b0 02 00 00 48 c1 ea 03 65 48 ff 40 68 48 b8 00 00 00 00 00 fc ff df <0f> b6 14 02 4c 89 f0 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 f6 RSP: 0018:ffffc90006ef77b0 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc900049c2000 RDX: 00000000000000cd RSI: 0000000000000200 RDI: 0000000000000000 RBP: ffff88801a992c80 R08: 0000000000000001 R09: ffff88801a992d5f R10: ffffffff87fa0f3e R11: 0000000000000000 R12: 0000000000000000 R13: ffff88804e65d280 R14: 000000000000066c R15: dffffc0000000000 FS: 00007f209870d700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f209779c028 CR3: 0000000073389000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 39 09 00 00 jne 0x946 d: 4c 89 f2 mov %r14,%rdx 10: 49 8b 85 b0 02 00 00 mov 0x2b0(%r13),%rax 17: 48 c1 ea 03 shr $0x3,%rdx 1b: 65 48 ff 40 68 incq %gs:0x68(%rax) 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2e: 4c 89 f0 mov %r14,%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 f6 test %esi,%esi