kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 14542 Comm: syz-executor.4 Not tainted 5.0.0-rc7+ #78 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rt_cache_valid+0x33/0x190 net/ipv4/route.c:1513 Code: 31 e4 53 48 89 fb e8 ac e6 9e fb 48 85 db 74 4f e8 a2 e6 9e fb 48 8d 7b 3a 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 07 RSP: 0018:ffff88809ee5ed78 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000018 RCX: ffffc90007f7d000 RDX: 000000000000000a RSI: ffffffff85d0fade RDI: 0000000000000052 kobject: 'loop0' (0000000007b027a3): kobject_uevent_env RBP: ffff88809ee5ed90 R08: ffff8880977dc1c0 R09: ffffed1015d25bd0 R10: ffffed1015d25bcf R11: ffff8880ae92de7b R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000018 R15: ffff88806730eac0 FS: 0000000000000000(0000) GS:ffff8880ae900000(0063) knlGS:00000000f5d10b40 kobject: 'loop0' (0000000007b027a3): fill_kobj_path: path = '/devices/virtual/block/loop0' CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007f0e91af7000 CR3: 0000000063117000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __mkroute_output net/ipv4/route.c:2263 [inline] ip_route_output_key_hash_rcu+0x89d/0x30e0 net/ipv4/route.c:2495 ip_route_output_key_hash+0x212/0x380 net/ipv4/route.c:2324 __ip_route_output_key include/net/route.h:124 [inline] icmp_route_lookup.constprop.0+0xbc6/0x1560 net/ipv4/icmp.c:512 icmp_send+0x957/0x1400 net/ipv4/icmp.c:714 ip_options_compile+0xd22/0x19b0 net/ipv4/ip_options.c:472 ip_rcv_options net/ipv4/ip_input.c:282 [inline] ip_rcv_finish_core.isra.0+0x6d1/0x1b80 net/ipv4/ip_input.c:357 ip_rcv_finish+0x13f/0x2f0 net/ipv4/ip_input.c:412 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4973 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5083 netif_receive_skb_internal+0x117/0x660 net/core/dev.c:5186 netif_receive_skb+0x6e/0x5a0 net/core/dev.c:5261 tun_rx_batched.isra.0+0x4f7/0x840 drivers/net/tun.c:1562 tun_get_user+0x2588/0x38d0 drivers/net/tun.c:1991 tun_chr_write_iter+0xbd/0x160 drivers/net/tun.c:2019 call_write_iter include/linux/fs.h:1863 [inline] do_iter_readv_writev+0x5e0/0x8e0 fs/read_write.c:680 do_iter_write fs/read_write.c:956 [inline] do_iter_write+0x184/0x610 fs/read_write.c:937 compat_writev+0x1f6/0x3a0 fs/read_write.c:1270 do_compat_writev+0xf5/0x1f0 fs/read_write.c:1291 __do_compat_sys_writev fs/read_write.c:1302 [inline] __se_compat_sys_writev fs/read_write.c:1298 [inline] __ia32_compat_sys_writev+0x74/0xb0 fs/read_write.c:1298 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f14869 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5d10054 EFLAGS: 00000292 ORIG_RAX: 0000000000000092 RAX: ffffffffffffffda RBX: 00000000000000f0 RCX: 00000000f5d100a4 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 00000000ffffffff RBP: 00000000f5d10168 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 24758ff56b3aa748 ]--- RIP: 0010:rt_cache_valid+0x33/0x190 net/ipv4/route.c:1513 Code: 31 e4 53 48 89 fb e8 ac e6 9e fb 48 85 db 74 4f e8 a2 e6 9e fb 48 8d 7b 3a 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 07 RSP: 0018:ffff88809ee5ed78 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000018 RCX: ffffc90007f7d000 RDX: 000000000000000a RSI: ffffffff85d0fade RDI: 0000000000000052 RBP: ffff88809ee5ed90 R08: ffff8880977dc1c0 R09: ffffed1015d25bd0 R10: ffffed1015d25bcf R11: ffff8880ae92de7b R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000018 R15: ffff88806730eac0 FS: 0000000000000000(0000) GS:ffff8880ae900000(0063) knlGS:00000000f5d10b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007f0e91af7000 CR3: 0000000063117000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400