WARNING: CPU: 1 PID: 13257 at net/ipv4/route.c:1275 ip_rt_bug+0x2b/0x120 net/ipv4/route.c:1275 Modules linked in: CPU: 1 UID: 0 PID: 13257 Comm: syz.4.3141 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ip_rt_bug+0x2b/0x120 net/ipv4/route.c:1275 Code: 0f 1e fa 41 54 55 53 48 89 d3 48 83 ec 08 e8 dc c0 fe f7 66 90 e8 d5 c0 fe f7 ba 02 00 00 00 48 89 de 31 ff e8 26 97 6e ff 90 <0f> 0b 90 48 83 c4 08 31 c0 5b 5d 41 5c e9 83 90 a5 01 e8 ae c0 fe RSP: 0018:ffffc90006cff3b8 EFLAGS: 00010287 RAX: 0000000000000da6 RBX: ffff88805f892a00 RCX: ffffc90006429000 RDX: 0000000000080000 RSI: ffffffff89be270a RDI: ffffffff8bf073c0 RBP: ffff88805f892a00 R08: 0000000000000001 R09: 0000000000000001 R10: ffffc90006cff368 R11: 0000000000000001 R12: ffff888055e58000 R13: ffff8881006ac380 R14: ffff8880329c2500 R15: ffff88805f892a58 FS: 00007ff37cdc26c0(0000) GS:ffff8880d6b05000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b34b18ff8 CR3: 00000000339bb000 CR4: 0000000000352ef0 Call Trace: dst_output include/net/dst.h:464 [inline] dst_output include/net/dst.h:462 [inline] ip_local_out net/ipv4/ip_output.c:131 [inline] ip_send_skb net/ipv4/ip_output.c:1508 [inline] ip_push_pending_frames+0x419/0x5d0 net/ipv4/ip_output.c:1528 icmp_push_reply+0x308/0x440 net/ipv4/icmp.c:395 __icmp_send+0xce3/0x19c0 net/ipv4/icmp.c:787 icmp_send include/net/icmp.h:43 [inline] ip_options_compile+0xb6/0x100 net/ipv4/ip_options.c:473 ip_rcv_options net/ipv4/ip_input.c:288 [inline] ip_rcv_finish_core+0x6de/0x2290 net/ipv4/ip_input.c:391 ip_rcv_finish net/ipv4/ip_input.c:451 [inline] NF_HOOK include/linux/netfilter.h:318 [inline] NF_HOOK include/linux/netfilter.h:312 [inline] ip_rcv+0x1c0/0x600 net/ipv4/ip_input.c:573 __netif_receive_skb_one_core+0x197/0x1e0 net/core/dev.c:6079 __netif_receive_skb+0x1d/0x160 net/core/dev.c:6192 netif_receive_skb_internal net/core/dev.c:6278 [inline] netif_receive_skb+0x137/0x7b0 net/core/dev.c:6337 tun_rx_batched.isra.0+0x3ee/0x740 drivers/net/tun.c:1509 tun_get_user+0x28b2/0x3cc0 drivers/net/tun.c:1953 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff37bf8e17f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 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 4c 93 02 00 48 RSP: 002b:00007ff37cdc2000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff37c1e5fa0 RCX: 00007ff37bf8e17f RDX: 0000000000000046 RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007ff37c011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000046 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ff37c1e6038 R14: 00007ff37c1e5fa0 R15: 00007ffc3aae8d58