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-6,10.128.0.30' (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: [ 34.990794] ================================================================== [ 34.991917] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x2453/0x2830 at addr ffff8801db307580 [ 34.993194] Read of size 4 by task syzkaller772313/3277 [ 34.993902] page:ffffea00076cc1c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 34.995084] flags: 0x8000000000000400(reserved) [ 34.995714] page dumped because: kasan: bad access detected [ 34.996468] CPU: 1 PID: 3277 Comm: syzkaller772313 Not tainted 4.9.41-gdb02484 #19 [ 34.997473] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.998779] ffff8801db306c68 ffffffff81d8f749 ffffed003b660eb0 0000000000000004 [ 34.999961] 0000000000000000 ffffed003b660eb0 ffff8801db307580 ffff8801db306cf0 [ 35.001153] ffffffff81539883 0000000000000000 0000000000000002 ffffffff833cab23 [ 35.002309] Call Trace: [ 35.002658] [ 35.002955] [] dump_stack+0xc1/0x128 [ 35.003703] [] kasan_report.part.1+0x4c3/0x500 [ 35.004527] [] ? xfrm_state_find+0x2453/0x2830 [ 35.005346] [] ? xfrm_state_find+0x25a/0x2830 [ 35.006217] [] __asan_report_load4_noabort+0x29/0x30 [ 35.007118] [] xfrm_state_find+0x2453/0x2830 [ 35.007952] [] ? xfrm_state_find+0x25a/0x2830 [ 35.008823] [] ? netdev_pick_tx+0x300/0x300 [ 35.009610] [] ? nf_ct_deliver_cached_events+0x26c/0x5f0 [ 35.010561] [] ? xfrm_unregister_mode+0x200/0x200 [ 35.014790] [] ? ip_finish_output2+0x6c6/0x1060 [ 35.021079] [] ? trace_hardirqs_on+0xd/0x10 [ 35.027022] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 35.034002] [] ? update_cfs_rq_load_avg+0xb85/0x1980 [ 35.040726] [] ? check_preemption_disabled+0x3b/0x200 [ 35.047530] [] xfrm_tmpl_resolve+0x298/0xa90 [ 35.053555] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 35.060186] [] ? depot_save_stack+0x3b1/0x4a0 [ 35.066297] [] ? save_stack+0xa3/0xd0 [ 35.071719] [] ? save_stack_trace+0x16/0x20 [ 35.077654] [] ? save_stack+0x43/0xd0 [ 35.083075] [] ? kasan_kmalloc+0xad/0xe0 [ 35.088751] [] ? kasan_slab_alloc+0x12/0x20 [ 35.094685] [] ? kmem_cache_alloc+0xba/0x290 [ 35.100707] [] ? dst_alloc+0x11f/0x1a0 [ 35.106212] [] ? rt_dst_alloc+0x78/0x430 [ 35.111890] [] ? __ip_route_output_key_hash+0xa4e/0x23e0 [ 35.118956] [] ? ip_route_output_flow+0x29/0xa0 [ 35.125242] [] ? inet_csk_route_req+0x5d8/0x9a0 [ 35.131526] [] ? tcp_v4_send_synack+0x203/0x290 [ 35.137813] [] ? tcp_rtx_synack+0x121/0x1a0 [ 35.143749] [] xfrm_resolve_and_create_bundle+0xd7/0x1d50 [ 35.150901] [] ? __netif_receive_skb+0x5b/0x1c0 [ 35.157184] [] ? process_backlog+0x1d4/0x690 [ 35.163206] [] ? net_rx_action+0x396/0xe00 [ 35.169055] [] ? __do_softirq+0x22d/0x964 [ 35.174824] [] ? do_softirq_own_stack+0x1c/0x30 [ 35.181111] [] ? do_softirq.part.16+0x99/0xb0 [ 35.187227] [] ? do_softirq+0x18/0x20 [ 35.192646] [] ? netif_rx_ni+0x140/0x320 [ 35.198328] [] ? tun_get_user+0xac5/0x2080 [ 35.204175] [] ? tun_chr_write_iter+0xd5/0x190 [ 35.210374] [] ? SyS_write+0xd9/0x1b0 [ 35.215791] [] ? ttwu_do_wakeup+0x27b/0x540 [ 35.221737] [] ? try_to_wake_up+0xb7/0xee0 [ 35.227589] [] ? __xfrm_decode_session+0x100/0x100 [ 35.234146] [] ? xfrm_selector_match+0xe40/0xe40 [ 35.240526] [] ? xfrm_sk_policy_lookup+0x200/0x370 [ 35.247074] [] ? xfrm_sk_policy_lookup+0x227/0x370 [ 35.253619] [] ? xfrm_selector_match+0xe40/0xe40 [ 35.259987] [] ? xfrm_expand_policies+0x25b/0x5b0 [ 35.266442] [] xfrm_lookup+0x984/0xbf0 [ 35.271951] [] ? xfrm_bundle_lookup+0x11b0/0x11b0 [ 35.278429] [] ? rt_set_nexthop.constprop.53+0x500/0xf90 [ 35.285493] [] ? __ip_route_output_key_hash+0x7e5/0x23e0 [ 35.292555] [] ? __ip_route_output_key_hash+0x80c/0x23e0 [ 35.299620] [] ? __ip_route_output_key_hash+0xc94/0x23e0 [ 35.306685] [] ? ip_rt_update_pmtu+0x8b0/0x8b0 [ 35.312888] [] ? __wake_up_sync_key+0x4b/0x60 [ 35.319008] [] xfrm_lookup_route+0x39/0x1a0 [ 35.324953] [] ip_route_output_flow+0x7f/0xa0 [ 35.331079] [] inet_csk_route_req+0x5d8/0x9a0 [ 35.337189] [] tcp_v4_send_synack+0x203/0x290 [ 35.343298] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 35.349585] [] ? tcp_v4_send_check+0x90/0x90 [ 35.355611] [] ? prandom_u32_state+0x13/0x180 [ 35.361721] [] tcp_rtx_synack+0x121/0x1a0 [ 35.367484] [] ? tcp_rtx_synack.part.33+0x1d0/0x1d0 [ 35.374114] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 35.381101] [] ? ip_vs_in.part.29.constprop.37+0x12e/0x1b40 [ 35.388428] [] ? ipt_do_table+0xc0d/0x16d0 [ 35.394279] [] ? trace_hardirqs_on+0xd/0x10 [ 35.400216] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 35.406498] [] inet_rtx_syn_ack+0x64/0xd0 [ 35.412258] [] tcp_check_req+0x926/0x11e0 [ 35.418020] [] ? tcp_timewait_state_process+0xeb0/0xeb0 [ 35.424995] [] ? tcp_v4_inbound_md5_hash+0x155/0x510 [ 35.431715] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 35.438697] [] ? check_preemption_disabled+0x3b/0x200 [ 35.445511] [] tcp_v4_rcv+0x14de/0x29c0 [ 35.451104] [] ? raw_local_deliver+0x1b3/0xaf0 [ 35.457306] [] ? ipv4_confirm+0x2e4/0x3f0 [ 35.463083] [] ip_local_deliver_finish+0x285/0xa80 [ 35.469646] [] ? ip_local_deliver_finish+0x129/0xa80 [ 35.476374] [] ip_local_deliver+0x30a/0x4d0 [ 35.482313] [] ? ip_local_deliver+0x1ab/0x4d0 [ 35.488426] [] ? ip_call_ra_chain+0x540/0x540 [ 35.494555] [] ? ip_rcv_finish+0x1900/0x1900 [ 35.500592] [] ? tcp_v4_early_demux+0x4f/0x7a0 [ 35.506803] [] ip_rcv_finish+0x71b/0x1900 [ 35.512573] [] ? ip_rcv+0xa4a/0x1620 [ 35.517903] [] ip_rcv+0xbc2/0x1620 [ 35.523058] [] ? ip_rcv+0xa4a/0x1620 [ 35.528393] [] ? __module_text_address+0x13/0x150 [ 35.534857] [] ? ip_local_deliver+0x4d0/0x4d0 [ 35.540979] [] ? unwind_get_return_address+0x7a/0xa0 [ 35.547707] [] ? inet_del_offload+0x40/0x40 [ 35.553654] [] ? check_preemption_disabled+0x3b/0x200 [ 35.560467] [] ? ip_local_deliver+0x4d0/0x4d0 [ 35.566582] [] __netif_receive_skb_core+0xa33/0x29e0 [ 35.573312] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 35.580301] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 35.587300] [] ? rcu_process_callbacks+0x840/0x12d0 [ 35.593937] [] ? netif_wake_subqueue+0x210/0x210 [ 35.600313] [] ? update_load_avg+0x7bf/0x1db0 [ 35.606429] [] ? process_backlog+0x17c/0x690 [ 35.612471] [] __netif_receive_skb+0x5b/0x1c0 [ 35.618582] [] process_backlog+0x1d4/0x690 [ 35.624427] [] ? process_backlog+0x17c/0x690 [ 35.630454] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 35.637443] [] net_rx_action+0x396/0xe00 [ 35.643120] [] ? sk_busy_loop+0xca0/0xca0 [ 35.648888] [] ? check_preemption_disabled+0x3b/0x200 [ 35.655701] [] __do_softirq+0x22d/0x964 [ 35.661292] [] ? rcu_eqs_enter_common.constprop.77+0xe5/0x1c0 [ 35.668795] [] do_softirq_own_stack+0x1c/0x30 [ 35.674905] [ 35.676941] [] do_softirq.part.16+0x99/0xb0 [ 35.682891] [] do_softirq+0x18/0x20 [ 35.688137] [] netif_rx_ni+0x140/0x320 [ 35.693644] [] tun_get_user+0xac5/0x2080 [ 35.699321] [] ? tun_chr_ioctl+0x40/0x40 [ 35.705006] [] ? preempt_count_add+0x7d/0x170 [ 35.711121] [] ? get_page_from_freelist+0x9d1/0x1a00 [ 35.717855] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 35.724838] [] ? tun_net_uninit+0x20/0x20 [ 35.730604] [] ? __tun_get+0x12a/0x230 [ 35.736117] [] tun_chr_write_iter+0xd5/0x190 [ 35.742145] [] __vfs_write+0x4bf/0x680 [ 35.747648] [] ? default_llseek+0x290/0x290 [ 35.753587] [] ? avc_policy_seqno+0x9/0x20 [ 35.759436] [] ? selinux_file_permission+0x82/0x460 [ 35.766069] [] ? rw_verify_area+0xe5/0x2b0 [ 35.771921] [] vfs_write+0x170/0x4e0 [ 35.777249] [] SyS_write+0xd9/0x1b0 [ 35.782493] [] ? SyS_read+0x1b0/0x1b0 [ 35.787910] [] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.794459] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 35.801004] Memory state around the buggy address: [ 35.805939] ffff8801db307480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.813272] ffff8801db307500: 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 [ 35.820599] >ffff8801db307580: f2 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 [ 35.827919] ^ [ 35.831247] ffff8801db307600: 00 00 00 00 00 00 00 00 00 00 f2 f2 00 00 00 00 [ 35.838570] ffff8801db307680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.845892] ================================================================== [ 35.853286] ================================================================== [ 35.860627] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0xc9b/0x2830 at addr ffff8801db307580 [ 35.869873] Read of size 4 by task syzkaller772313/3277 [ 35.875211] page:ffffea00076cc1c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 35.883440] flags: 0x8000000000000400(reserved) [ 35.888076] page dumped because: kasan: bad access detected [ 35.893756] CPU: 1 PID: 3277 Comm: syzkaller772313 Tainted: G B 4.9.41-gdb02484 #19 [ 35.902644] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.911976] ffff8801db306c68 ffffffff81d8f749 ffffed003b660eb0 0000000000000004 [ 35.919922] 0000000000000000 ffffed003b660eb0 ffff8801db307580 ffff8801db306cf0 [ 35.927861] ffffffff81539883 0000000000000010 0000000000000000 ffffffff833c936b [ 35.935808] Call Trace: [ 35.938355] [ 35.940388] [] dump_stack+0xc1/0x128 [ 35.945734] [] kasan_report.part.1+0x4c3/0x500 [ 35.951948] [] ? xfrm_state_find+0xc9b/0x2830 [ 35.958071] [] __asan_report_load4_noabort+0x29/0x30 [ 35.964796] [] xfrm_state_find+0xc9b/0x2830 [ 35.970755] [] ? xfrm_state_find+0x25a/0x2830 [ 35.976873] [] ? netdev_pick_tx+0x300/0x300 [ 35.982817] [] ? xfrm_unregister_mode+0x200/0x200