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-0,10.128.0.39' (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: [ 27.326201] ================================================================== [ 27.327327] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x2453/0x2830 at addr ffff8801db307580 [ 27.328606] Read of size 4 by task syzkaller210016/3265 [ 27.329331] page:ffffea00076cc1c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 27.330519] flags: 0x8000000000000400(reserved) [ 27.331134] page dumped because: kasan: bad access detected [ 27.331989] CPU: 1 PID: 3265 Comm: syzkaller210016 Not tainted 4.9.42-g02f29ab #24 [ 27.333030] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.334267] ffff8801db306c68 ffffffff81d92909 ffffed003b660eb0 0000000000000004 [ 27.335426] 0000000000000000 ffffed003b660eb0 ffff8801db307580 ffff8801db306cf0 [ 27.336580] ffffffff8153ca83 0000000000000000 0000000000000002 ffffffff833cdea3 [ 27.337697] Call Trace: [ 27.338045] [ 27.338332] [] dump_stack+0xc1/0x128 [ 27.339078] [] kasan_report.part.1+0x4c3/0x500 [ 27.339934] [] ? xfrm_state_find+0x2453/0x2830 [ 27.340786] [] ? xfrm_state_find+0x25a/0x2830 [ 27.341616] [] __asan_report_load4_noabort+0x29/0x30 [ 27.342547] [] xfrm_state_find+0x2453/0x2830 [ 27.343344] [] ? xfrm_state_find+0x25a/0x2830 [ 27.344169] [] ? tun_net_xmit+0x28f/0x1150 [ 27.344964] [] ? tun_net_xmit+0x4e/0x1150 [ 27.345762] [] ? xfrm_unregister_mode+0x200/0x200 [ 27.348875] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 27.356468] [] ? dev_queue_xmit+0x17/0x20 [ 27.362232] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 27.368434] [] ? trace_hardirqs_on+0xd/0x10 [ 27.374370] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 27.380656] [] ? __dev_queue_xmit+0x901/0x1e60 [ 27.386854] [] ? dev_queue_xmit+0x17/0x20 [ 27.392632] [] xfrm_tmpl_resolve+0x298/0xa90 [ 27.398656] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 27.405294] [] ? memcpy+0x45/0x50 [ 27.410375] [] ? dev_queue_xmit+0x17/0x20 [ 27.416155] [] ? netlbl_enabled+0x9/0x50 [ 27.421834] [] ? mod_timer+0x5ba/0xea0 [ 27.427340] [] ? ip_finish_output2+0x6b6/0x1060 [ 27.433627] [] ? get_stack_info+0x37/0x130 [ 27.439484] [] ? update_stack_state.constprop.5+0xca/0x150 [ 27.446735] [] ? __module_text_address+0x13/0x150 [ 27.453207] [] ? __unwind_start+0x1e3/0x3c0 [ 27.459149] [] xfrm_resolve_and_create_bundle+0xd7/0x1d50 [ 27.466304] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.473295] [] ? unwind_get_return_address+0x7a/0xa0 [ 27.480015] [] ? __save_stack_trace+0x8d/0xf0 [ 27.486136] [] ? depot_save_stack+0x122/0x4a0 [ 27.492247] [] ? kfree_skbmem+0xd7/0xf0 [ 27.497837] [] ? __xfrm_decode_session+0x100/0x100 [ 27.504389] [] ? xfrm_selector_match+0xe40/0xe40 [ 27.510763] [] ? xfrm_sk_policy_lookup+0x200/0x370 [ 27.517311] [] ? xfrm_sk_policy_lookup+0x227/0x370 [ 27.523855] [] ? xfrm_selector_match+0xe40/0xe40 [ 27.530237] [] ? xfrm_expand_policies+0x25b/0x5b0 [ 27.536713] [] xfrm_lookup+0x984/0xbf0 [ 27.542218] [] ? xfrm_bundle_lookup+0x11b0/0x11b0 [ 27.548678] [] ? __ip_route_output_key_hash+0x7e5/0x23e0 [ 27.555745] [] ? __ip_route_output_key_hash+0x80c/0x23e0 [ 27.562813] [] ? __ip_route_output_key_hash+0xc94/0x23e0 [ 27.569882] [] ? ip_rt_update_pmtu+0x8b0/0x8b0 [ 27.576079] [] xfrm_lookup_route+0x39/0x1a0 [ 27.582019] [] ip_route_output_flow+0x7f/0xa0 [ 27.588133] [] inet_csk_route_req+0x5d8/0x9a0 [ 27.594255] [] tcp_v4_send_synack+0x203/0x290 [ 27.600378] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 27.606666] [] ? tcp_v4_send_check+0x90/0x90 [ 27.612691] [] ? prandom_u32_state+0x13/0x180 [ 27.618810] [] tcp_rtx_synack+0x121/0x1a0 [ 27.624580] [] ? tcp_rtx_synack.part.33+0x1d0/0x1d0 [ 27.631216] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.638210] [] ? ip_vs_in.part.29.constprop.37+0x12e/0x1b40 [ 27.645549] [] ? tcp_parse_fastopen_option+0xc1/0xf0 [ 27.652270] [] ? tcp_parse_options+0x184/0x970 [ 27.658469] [] inet_rtx_syn_ack+0x64/0xd0 [ 27.664234] [] tcp_check_req+0x926/0x11e0 [ 27.669996] [] ? tcp_timewait_state_process+0xeb0/0xeb0 [ 27.677004] [] ? tcp_v4_inbound_md5_hash+0x155/0x510 [ 27.683733] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.690738] [] ? check_preemption_disabled+0x3b/0x200 [ 27.697567] [] tcp_v4_rcv+0x14de/0x29c0 [ 27.703176] [] ? raw_local_deliver+0x1b3/0xaf0 [ 27.709378] [] ? ipv4_confirm+0x2e4/0x3f0 [ 27.715139] [] ip_local_deliver_finish+0x285/0xa80 [ 27.721677] [] ? ip_local_deliver_finish+0x129/0xa80 [ 27.728393] [] ip_local_deliver+0x30a/0x4d0 [ 27.734323] [] ? ip_local_deliver+0x1ab/0x4d0 [ 27.740427] [] ? ip_call_ra_chain+0x540/0x540 [ 27.746532] [] ? ip_rcv_finish+0x1900/0x1900 [ 27.752548] [] ? tcp_v4_early_demux+0x4f/0x7a0 [ 27.758746] [] ip_rcv_finish+0x71b/0x1900 [ 27.764504] [] ? ip_rcv+0xa4a/0x1620 [ 27.769829] [] ip_rcv+0xbc2/0x1620 [ 27.774980] [] ? ip_rcv+0xa4a/0x1620 [ 27.780305] [] ? update_cfs_rq_load_avg+0xb85/0x1980 [ 27.787018] [] ? ip_local_deliver+0x4d0/0x4d0 [ 27.793124] [] ? inet_del_offload+0x40/0x40 [ 27.799058] [] ? update_load_avg+0x7bf/0x1db0 [ 27.805167] [] ? check_preemption_disabled+0x3b/0x200 [ 27.811967] [] ? ip_local_deliver+0x4d0/0x4d0 [ 27.818073] [] __netif_receive_skb_core+0xa33/0x29e0 [ 27.824789] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.831764] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.838741] [] ? netif_wake_subqueue+0x210/0x210 [ 27.845106] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.852083] [] ? ttwu_do_wakeup+0x27b/0x540 [ 27.858017] [] ? try_to_wake_up+0xb7/0xee0 [ 27.863866] [] ? process_backlog+0x17c/0x690 [ 27.869885] [] __netif_receive_skb+0x5b/0x1c0 [ 27.875997] [] process_backlog+0x1d4/0x690 [ 27.881842] [] ? process_backlog+0x17c/0x690 [ 27.887860] [] net_rx_action+0x396/0xe00 [ 27.893537] [] ? clockevents_program_event+0x1a5/0x350 [ 27.900421] [] ? sk_busy_loop+0xca0/0xca0 [ 27.906177] [] ? clockevents_program_event+0x131/0x350 [ 27.913063] [] ? tick_program_event+0xaf/0x110 [ 27.919255] [] ? check_preemption_disabled+0x3b/0x200 [ 27.926066] [] __do_softirq+0x22d/0x964 [ 27.931651] [] ? rcu_eqs_enter_common.constprop.77+0xe5/0x1c0 [ 27.939149] [] do_softirq_own_stack+0x1c/0x30 [ 27.945259] [ 27.947286] [] do_softirq.part.16+0x99/0xb0 [ 27.953231] [] do_softirq+0x18/0x20 [ 27.958469] [] netif_rx_ni+0x140/0x320 [ 27.963966] [] tun_get_user+0xac5/0x2080 [ 27.969639] [] ? tun_chr_ioctl+0x40/0x40 [ 27.975641] [] ? tun_net_uninit+0x20/0x20 [ 27.981416] [] ? __tun_get+0x12a/0x230 [ 27.986915] [] tun_chr_write_iter+0xd5/0x190 [ 27.992938] [] __vfs_write+0x4bf/0x680 [ 27.998436] [] ? default_llseek+0x290/0x290 [ 28.004379] [] ? avc_policy_seqno+0x9/0x20 [ 28.010225] [] ? selinux_file_permission+0x82/0x460 [ 28.016854] [] ? rw_verify_area+0xe5/0x2b0 [ 28.022725] [] vfs_write+0x170/0x4e0 [ 28.028050] [] SyS_write+0xd9/0x1b0 [ 28.033288] [] ? SyS_read+0x1b0/0x1b0 [ 28.038714] [] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.045256] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 28.051792] Memory state around the buggy address: [ 28.056682] ffff8801db307480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.064001] ffff8801db307500: 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 [ 28.071317] >ffff8801db307580: f2 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 [ 28.078633] ^ [ 28.081956] ffff8801db307600: 00 00 00 00 00 00 00 00 00 00 f2 f2 00 00 00 00 [ 28.089275] ffff8801db307680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.096592] ================================================================== [ 28.103975] ================================================================== [ 28.111306] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0xc9b/0x2830 at addr ffff8801db307580 [ 28.120536] Read of size 4 by task syzkaller210016/3265 [ 28.125868] page:ffffea00076cc1c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 28.134085] flags: 0x8000000000000400(reserved) [ 28.138715] page dumped because: kasan: bad access detected [ 28.144393] CPU: 1 PID: 3265 Comm: syzkaller210016 Tainted: G B 4.9.42-g02f29ab #24 [ 28.153279] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.162604] ffff8801db306c68 ffffffff81d92909 ffffed003b660eb0 0000000000000004 [ 28.170535] 0000000000000000 ffffed003b660eb0 ffff8801db307580 ffff8801db306cf0 [ 28.178466] ffffffff8153ca83 0000000000000010 0000000000000000 ffffffff833cc6eb [ 28.186430] Call Trace: [ 28.188991] [ 28.191022] [] dump_stack+0xc1/0x128 [ 28.196376] [] kasan_report.part.1+0x4c3/0x500 [ 28.202572] [] ? xfrm_state_find+0xc9b/0x2830 [ 28.208681] [] __asan_report_load4_noabort+0x29/0x30 [ 28.215396] [] xfrm_state_find+0xc9b/0x2830 [ 28.221351] [] ? xfrm_state_find+0x25a/0x2830 [ 28.227459] [] ? tun_net_xmit+0x28f/0x1150 [ 28.233304] [] ? tun_net_xmit+0x4e/0x1150 [ 28.239064] [] ? xfrm_unregister_mode+0x200/0x200 [ 28.245521] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 28.253109] [] ? dev_queue_xmit+0x17/0x20 [ 28.258871] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 28.265067] [] ? trace_hardirqs_on+0xd/0x10 [ 28.271000] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 28.277282] [] ? __dev_queue_xmit+0x901/0x1e60 [ 28.283477] [] ? dev_queue_xmit+0x17/0x20 [ 28.289237] [] xfrm_tmpl_resolve+0x298/0xa90 [ 28.295258] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 28.301898] [] ? memcpy+0x45/0x50 [ 28.306962] [] ? dev_queue_xmit+0x17/0x20 [ 28.312724] [] ? netlbl_enabled+0x9/0x50 [ 28.318397] [] ? mod_timer+0x5ba/0xea0 [ 28.323899] [] ? ip_finish_output2+0x6b6/0x1060