Oops: general protection fault, probably for non-canonical address 0xdffffc000000001c: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x00000000000000e0-0x00000000000000e7]
CPU: 0 UID: 0 PID: 11901 Comm: syz.4.1609 Not tainted 6.12.0-syzkaller-05480-gfcc79e1714e8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:ip_rt_get_source+0x1ed/0x960 net/ipv4/route.c:1281
Code: 42 80 3c 30 00 74 10 4c 89 ff e8 3e 59 da f7 48 8d 94 24 b0 00 00 00 4c 8d 62 04 bb e0 00 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 75 05 00 00 8b 1b 4c 89 e0 48 c1 e8 03
RSP: 0018:ffffc9000d01ed60 EFLAGS: 00010202
RAX: 000000000000001c RBX: 00000000000000e0 RCX: 0000000000000000
RDX: ffffc9000d01ee10 RSI: 0000000000000000 RDI: ffffc9000d01ee40
RBP: ffffc9000d01eed8 R08: ffffc9000d01edef R09: 0000000000000000
R10: ffffc9000d01edc0 R11: fffff52001a03dbe R12: ffffc9000d01ee14
R13: ffff888033c893c0 R14: dffffc0000000000 R15: ffff888033c893d0
FS: 00007f461d4136c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c316089 CR3: 0000000061958000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ip_options_build+0x1fe/0x530 net/ipv4/ip_options.c:57
__ip_make_skb+0xf31/0x1eb0 net/ipv4/ip_output.c:1465
ip_finish_skb include/net/ip.h:244 [inline]
ip_push_pending_frames+0x30/0x150 net/ipv4/ip_output.c:1520
__icmp_send+0x1013/0x15c0 net/ipv4/icmp.c:779
icmp_send include/net/icmp.h:43 [inline]
ip_options_compile+0xf0/0x180 net/ipv4/ip_options.c:473
ip_rcv_options net/ipv4/ip_input.c:281 [inline]
ip_rcv_finish_core+0xcc7/0x1b50 net/ipv4/ip_input.c:387
ip_rcv_finish+0x14a/0x560 net/ipv4/ip_input.c:445
NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314
__netif_receive_skb_one_core net/core/dev.c:5672 [inline]
__netif_receive_skb+0x2bf/0x650 net/core/dev.c:5785
netif_receive_skb_internal net/core/dev.c:5871 [inline]
netif_receive_skb+0x1e8/0x890 net/core/dev.c:5930
tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1550
tun_get_user+0x30d6/0x4890 drivers/net/tun.c:2007
tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f461c57d2ff
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 c9 8d 02 00 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 1c 8e 02 00 48
RSP: 002b:00007f461d413000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f461c735fa0 RCX: 00007f461c57d2ff
RDX: 000000000000005a RSI: 0000000020000140 RDI: 00000000000000c8
RBP: 00007f461c5f175e R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000005a R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f461c735fa0 R15: 00007ffe17395718
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ip_rt_get_source+0x1ed/0x960 net/ipv4/route.c:1281
Code: 42 80 3c 30 00 74 10 4c 89 ff e8 3e 59 da f7 48 8d 94 24 b0 00 00 00 4c 8d 62 04 bb e0 00 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 75 05 00 00 8b 1b 4c 89 e0 48 c1 e8 03
RSP: 0018:ffffc9000d01ed60 EFLAGS: 00010202
RAX: 000000000000001c RBX: 00000000000000e0 RCX: 0000000000000000
RDX: ffffc9000d01ee10 RSI: 0000000000000000 RDI: ffffc9000d01ee40
RBP: ffffc9000d01eed8 R08: ffffc9000d01edef R09: 0000000000000000
R10: ffffc9000d01edc0 R11: fffff52001a03dbe R12: ffffc9000d01ee14
R13: ffff888033c893c0 R14: dffffc0000000000 R15: ffff888033c893d0
FS: 00007f461d4136c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c316089 CR3: 0000000061958000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1)
5: 74 10 je 0x17
7: 4c 89 ff mov %r15,%rdi
a: e8 3e 59 da f7 call 0xf7da594d
f: 48 8d 94 24 b0 00 00 lea 0xb0(%rsp),%rdx
16: 00
17: 4c 8d 62 04 lea 0x4(%rdx),%r12
1b: bb e0 00 00 00 mov $0xe0,%ebx
20: 49 03 1f add (%r15),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 75 05 00 00 jne 0x5ac
37: 8b 1b mov (%rbx),%ebx
39: 4c 89 e0 mov %r12,%rax
3c: 48 c1 e8 03 shr $0x3,%rax