INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-android-49-kasan-gce-2,10.128.0.50' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 executing program syzkaller login: [ 41.434034] ================================================================== [ 41.435216] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x2453/0x2830 at addr ffff8801db307580 [ 41.436493] Read of size 4 by task syzkaller473312/3278 [ 41.437234] page:ffffea00076cc1c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 41.438477] flags: 0x8000000000000400(reserved) [ 41.439094] page dumped because: kasan: bad access detected [ 41.439847] CPU: 1 PID: 3278 Comm: syzkaller473312 Not tainted 4.9.41-gdb02484 #19 [ 41.440918] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.442263] ffff8801db306c68 ffffffff81d8f749 ffffed003b660eb0 0000000000000004 [ 41.443484] 0000000000000000 ffffed003b660eb0 ffff8801db307580 ffff8801db306cf0 [ 41.444919] ffffffff81539883 0000000000000000 0000000000000002 ffffffff833cab23 [ 41.446256] Call Trace: [ 41.446622] [ 41.446929] [] dump_stack+0xc1/0x128 [ 41.447654] [] kasan_report.part.1+0x4c3/0x500 [ 41.448509] [] ? xfrm_state_find+0x2453/0x2830 [ 41.449327] [] ? xfrm_state_find+0x25a/0x2830 [ 41.450136] [] __asan_report_load4_noabort+0x29/0x30 [ 41.451061] [] xfrm_state_find+0x2453/0x2830 [ 41.451858] [] ? xfrm_state_find+0x25a/0x2830 [ 41.452669] [] ? tun_net_xmit+0x28f/0x1150 [ 41.453442] [] ? tun_net_xmit+0x4e/0x1150 [ 41.454225] [] ? xfrm_unregister_mode+0x200/0x200 [ 41.460690] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 41.468276] [] ? dev_queue_xmit+0x17/0x20 [ 41.474037] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 41.480233] [] ? trace_hardirqs_on+0xd/0x10 [ 41.486185] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 41.492468] [] ? __dev_queue_xmit+0x901/0x1e60 [ 41.498665] [] ? dev_queue_xmit+0x17/0x20 [ 41.504432] [] xfrm_tmpl_resolve+0x298/0xa90 [ 41.510455] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 41.517347] [] ? memcpy+0x45/0x50 [ 41.522423] [] ? dev_queue_xmit+0x17/0x20 [ 41.528185] [] ? neigh_resolve_output+0x470/0x770 [ 41.534728] [] ? ip_finish_output2+0x6b6/0x1060 [ 41.541009] [] ? eth_mac_addr+0x1a0/0x1a0 [ 41.546770] [] ? ip_finish_output2+0x6c6/0x1060 [ 41.553050] [] ? trace_hardirqs_on+0xd/0x10 [ 41.558983] [] xfrm_resolve_and_create_bundle+0xd7/0x1d50 [ 41.566133] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 41.573114] [] ? nf_iterate+0x19a/0x310 [ 41.578701] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 41.585678] [] ? nf_hook_slow+0x131/0x1e0 [ 41.591438] [] ? __xfrm_decode_session+0x100/0x100 [ 41.597982] [] ? xfrm_selector_match+0xe40/0xe40 [ 41.604352] [] ? xfrm_sk_policy_lookup+0x200/0x370 [ 41.610898] [] ? xfrm_sk_policy_lookup+0x227/0x370 [ 41.617448] [] ? xfrm_selector_match+0xe40/0xe40 [ 41.623818] [] ? xfrm_expand_policies+0x25b/0x5b0 [ 41.630273] [] xfrm_lookup+0x984/0xbf0 [ 41.635775] [] ? xfrm_bundle_lookup+0x11b0/0x11b0 [ 41.642233] [] ? __ip_route_output_key_hash+0x7e5/0x23e0 [ 41.649297] [] ? __ip_route_output_key_hash+0x80c/0x23e0 [ 41.656371] [] ? __ip_route_output_key_hash+0xc94/0x23e0 [ 41.663439] [] ? ip_rt_update_pmtu+0x8b0/0x8b0 [ 41.669636] [] ? save_stack_trace+0x16/0x20 [ 41.675578] [] xfrm_lookup_route+0x39/0x1a0 [ 41.681513] [] ip_route_output_flow+0x7f/0xa0 [ 41.687620] [] inet_csk_route_req+0x5d8/0x9a0 [ 41.693729] [] tcp_v4_send_synack+0x203/0x290 [ 41.699836] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 41.706122] [] ? tcp_v4_send_check+0x90/0x90 [ 41.712151] [] ? prandom_u32_state+0x13/0x180 [ 41.718259] [] tcp_rtx_synack+0x121/0x1a0 [ 41.724020] [] ? tcp_rtx_synack.part.33+0x1d0/0x1d0 [ 41.730696] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 41.737674] [] ? ip_vs_in.part.29.constprop.37+0x12e/0x1b40 [ 41.745000] [] ? ipt_do_table+0xc0d/0x16d0 [ 41.750846] [] ? trace_hardirqs_on+0xd/0x10 [ 41.756781] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 41.763062] [] inet_rtx_syn_ack+0x64/0xd0 [ 41.768823] [] tcp_check_req+0x926/0x11e0 [ 41.774584] [] ? tcp_timewait_state_process+0xeb0/0xeb0 [ 41.781562] [] ? tcp_v4_inbound_md5_hash+0x155/0x510 [ 41.788281] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 41.795262] [] ? check_preemption_disabled+0x3b/0x200 [ 41.802063] [] tcp_v4_rcv+0x14de/0x29c0 [ 41.807651] [] ? raw_local_deliver+0x1b3/0xaf0 [ 41.813846] [] ? ipv4_confirm+0x2e4/0x3f0 [ 41.819609] [] ip_local_deliver_finish+0x285/0xa80 [ 41.826151] [] ? ip_local_deliver_finish+0x129/0xa80 [ 41.832870] [] ip_local_deliver+0x30a/0x4d0 [ 41.838802] [] ? ip_local_deliver+0x1ab/0x4d0 [ 41.844911] [] ? ip_call_ra_chain+0x540/0x540 [ 41.851018] [] ? ip_rcv_finish+0x1900/0x1900 [ 41.857044] [] ? tcp_v4_early_demux+0x4f/0x7a0 [ 41.863238] [] ip_rcv_finish+0x71b/0x1900 [ 41.868997] [] ? ip_rcv+0xa4a/0x1620 [ 41.874324] [] ip_rcv+0xbc2/0x1620 [ 41.879476] [] ? ip_rcv+0xa4a/0x1620 [ 41.884803] [] ? debug_smp_processor_id+0x1c/0x20 [ 41.891259] [] ? ip_local_deliver+0x4d0/0x4d0 [ 41.897368] [] ? inet_del_offload+0x40/0x40 [ 41.903308] [] ? update_load_avg+0x7bf/0x1db0 [ 41.909420] [] ? check_preemption_disabled+0x3b/0x200 [ 41.916227] [] ? ip_local_deliver+0x4d0/0x4d0 [ 41.922354] [] __netif_receive_skb_core+0xa33/0x29e0 [ 41.929071] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 41.936065] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 41.943042] [] ? netif_wake_subqueue+0x210/0x210 [ 41.949414] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 41.956393] [] ? ttwu_do_wakeup+0x27b/0x540 [ 41.962343] [] ? try_to_wake_up+0xb7/0xee0 [ 41.968192] [] ? process_backlog+0x17c/0x690 [ 41.974215] [] __netif_receive_skb+0x5b/0x1c0 [ 41.980324] [] process_backlog+0x1d4/0x690 [ 41.986181] [] ? process_backlog+0x17c/0x690 [ 41.992201] [] net_rx_action+0x396/0xe00 [ 41.997876] [] ? clockevents_program_event+0x1a5/0x350 [ 42.004772] [] ? sk_busy_loop+0xca0/0xca0 [ 42.010535] [] ? clockevents_program_event+0x131/0x350 [ 42.017425] [] ? tick_program_event+0xaf/0x110 [ 42.023627] [] ? check_preemption_disabled+0x3b/0x200 [ 42.030603] [] __do_softirq+0x22d/0x964 [ 42.036198] [] ? rcu_eqs_enter_common.constprop.77+0xe5/0x1c0 [ 42.043702] [] do_softirq_own_stack+0x1c/0x30 [ 42.049807] [ 42.051837] [] do_softirq.part.16+0x99/0xb0 [ 42.057784] [] do_softirq+0x18/0x20 [ 42.063027] [] netif_rx_ni+0x140/0x320 [ 42.068530] [] tun_get_user+0xac5/0x2080 [ 42.074211] [] ? tun_chr_ioctl+0x40/0x40 [ 42.079886] [] ? tun_net_uninit+0x20/0x20 [ 42.085647] [] ? __tun_get+0x12a/0x230 [ 42.091151] [] tun_chr_write_iter+0xd5/0x190 [ 42.097172] [] __vfs_write+0x4bf/0x680 [ 42.102672] [] ? default_llseek+0x290/0x290 [ 42.108608] [] ? avc_policy_seqno+0x9/0x20 [ 42.114458] [] ? selinux_file_permission+0x82/0x460 [ 42.121087] [] ? rw_verify_area+0xe5/0x2b0 [ 42.126935] [] vfs_write+0x170/0x4e0 [ 42.132262] [] SyS_write+0xd9/0x1b0 [ 42.137501] [] ? SyS_read+0x1b0/0x1b0 [ 42.142917] [] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.149461] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 42.156001] Memory state around the buggy address: [ 42.160899] ffff8801db307480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.168220] ffff8801db307500: 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 [ 42.175546] >ffff8801db307580: f2 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 [ 42.182868] ^ [ 42.186197] ffff8801db307600: 00 00 00 00 00 00 00 00 00 00 f2 f2 00 00 00 00 [ 42.193521] ffff8801db307680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.200851] ================================================================== [ 42.208375] ================================================================== [ 42.215721] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0xc9b/0x2830 at addr ffff8801db307580 [ 42.224967] Read of size 4 by task syzkaller473312/3278 [ 42.230298] page:ffffea00076cc1c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 42.238511] flags: 0x8000000000000400(reserved) [ 42.243148] page dumped because: kasan: bad access detected [ 42.248831] CPU: 1 PID: 3278 Comm: syzkaller473312 Tainted: G B 4.9.41-gdb02484 #19 [ 42.257726] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.267086] ffff8801db306c68 ffffffff81d8f749 ffffed003b660eb0 0000000000000004 [ 42.275029] 0000000000000000 ffffed003b660eb0 ffff8801db307580 ffff8801db306cf0 [ 42.282971] ffffffff81539883 0000000000000010 0000000000000000 ffffffff833c936b [ 42.290917] Call Trace: [ 42.293462] [ 42.295493] [] dump_stack+0xc1/0x128 [ 42.300836] [] kasan_report.part.1+0x4c3/0x500 [ 42.307036] [] ? xfrm_state_find+0xc9b/0x2830 [ 42.313152] [] __asan_report_load4_noabort+0x29/0x30 [ 42.319869] [] xfrm_state_find+0xc9b/0x2830 [ 42.325806] [] ? xfrm_state_find+0x25a/0x2830 [ 42.331916] [] ? tun_net_xmit+0x28f/0x1150 [ 42.337775] [] ? tun_net_xmit+0x4e/0x1150 [ 42.343539] [] ? xfrm_unregister_mode+0x200/0x200 [ 42.349999] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 42.357587] [] ? dev_queue_xmit+0x17/0x20 [ 42.363349] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 42.369552] [] ? trace_hardirqs_on+0xd/0x10 [ 42.375486] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 42.381766] [] ? __dev_queue_xmit+0x901/0x1e60 [ 42.387967] [] ? dev_queue_xmit+0x17/0x20 [ 42.393730] [] xfrm_tmpl_resolve+0x298/0xa90 [ 42.399752] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 42.406385] [] ? memcpy+0x45/0x50 [ 42.411453] [] ? dev_queue_xmit+0x17/0x20 [ 42.417212] [] ? neigh_resolve_output+0x470/0x770 [ 42.423665] [] ? ip_finish_output2+0x6b6/0x1060 [ 42.429946] [] ? eth_mac_addr+0x1a0/0x1a0