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-5,10.128.0.23' (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: [ 37.372323] ================================================================== [ 37.373418] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x2453/0x2830 at addr ffff8801db207580 [ 37.374733] Read of size 4 by task syzkaller890687/3278 [ 37.375456] page:ffffea00076c81c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 37.376572] flags: 0x8000000000000400(reserved) [ 37.377188] page dumped because: kasan: bad access detected [ 37.377970] CPU: 0 PID: 3278 Comm: syzkaller890687 Not tainted 4.9.44-g6dda7ac #31 [ 37.379019] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.380261] ffff8801db206c68 ffffffff81d929c9 ffffed003b640eb0 0000000000000004 [ 37.381391] 0000000000000000 ffffed003b640eb0 ffff8801db207580 ffff8801db206cf0 [ 37.382525] ffffffff8153cb53 0000000000000000 0000000000000002 ffffffff833cece3 [ 37.383680] Call Trace: [ 37.384050] [ 37.384374] [] dump_stack+0xc1/0x128 [ 37.385120] [] kasan_report.part.1+0x4c3/0x500 [ 37.385940] [] ? xfrm_state_find+0x2453/0x2830 [ 37.386762] [] ? xfrm_state_find+0x25a/0x2830 [ 37.387570] [] __asan_report_load4_noabort+0x29/0x30 [ 37.388458] [] xfrm_state_find+0x2453/0x2830 [ 37.389264] [] ? xfrm_state_find+0x25a/0x2830 [ 37.390102] [] ? tun_net_xmit+0x28f/0x1150 [ 37.390887] [] ? tun_net_xmit+0x4e/0x1150 [ 37.391674] [] ? xfrm_unregister_mode+0x200/0x200 [ 37.393154] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 37.400743] [] ? dev_queue_xmit+0x17/0x20 [ 37.406506] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 37.412709] [] ? trace_hardirqs_on+0xd/0x10 [ 37.418662] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 37.424948] [] ? __dev_queue_xmit+0x901/0x1e60 [ 37.431143] [] ? dev_queue_xmit+0x17/0x20 [ 37.436908] [] xfrm_tmpl_resolve+0x298/0xa90 [ 37.442937] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 37.449569] [] ? memcpy+0x45/0x50 [ 37.454636] [] ? dev_queue_xmit+0x17/0x20 [ 37.460400] [] ? neigh_resolve_output+0x470/0x770 [ 37.466859] [] ? ip_finish_output2+0x6b6/0x1060 [ 37.473144] [] ? eth_mac_addr+0x1a0/0x1a0 [ 37.478913] [] ? ip_finish_output2+0x6c6/0x1060 [ 37.485198] [] ? trace_hardirqs_on+0xd/0x10 [ 37.491135] [] xfrm_resolve_and_create_bundle+0xd7/0x1d50 [ 37.498294] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 37.505275] [] ? nf_iterate+0x19a/0x310 [ 37.510864] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 37.517844] [] ? nf_hook_slow+0x131/0x1e0 [ 37.523608] [] ? __xfrm_decode_session+0x100/0x100 [ 37.530150] [] ? xfrm_selector_match+0xe40/0xe40 [ 37.536529] [] ? xfrm_sk_policy_lookup+0x200/0x370 [ 37.543477] [] ? xfrm_sk_policy_lookup+0x227/0x370 [ 37.550024] [] ? xfrm_selector_match+0xe40/0xe40 [ 37.556394] [] ? xfrm_expand_policies+0x25b/0x5b0 [ 37.562852] [] xfrm_lookup+0x984/0xbf0 [ 37.568354] [] ? xfrm_bundle_lookup+0x11b0/0x11b0 [ 37.574816] [] ? __ip_route_output_key_hash+0x7e5/0x23e0 [ 37.581893] [] ? __ip_route_output_key_hash+0x80c/0x23e0 [ 37.588962] [] ? __ip_route_output_key_hash+0xc94/0x23e0 [ 37.596028] [] ? ip_rt_update_pmtu+0x8b0/0x8b0 [ 37.602226] [] ? save_stack_trace+0x16/0x20 [ 37.608166] [] xfrm_lookup_route+0x39/0x1a0 [ 37.614101] [] ip_route_output_flow+0x7f/0xa0 [ 37.620210] [] inet_csk_route_req+0x5d8/0x9a0 [ 37.626323] [] tcp_v4_send_synack+0x203/0x290 [ 37.632434] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 37.638716] [] ? tcp_v4_send_check+0x90/0x90 [ 37.644739] [] ? prandom_u32_state+0x13/0x180 [ 37.650849] [] tcp_rtx_synack+0x121/0x1a0 [ 37.656613] [] ? tcp_rtx_synack.part.33+0x1d0/0x1d0 [ 37.663247] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 37.670227] [] ? ip_vs_in.part.29.constprop.37+0x12e/0x1b40 [ 37.677557] [] ? ipt_do_table+0xc0d/0x16d0 [ 37.683410] [] ? trace_hardirqs_on+0xd/0x10 [ 37.689348] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 37.695632] [] inet_rtx_syn_ack+0x64/0xd0 [ 37.701393] [] tcp_check_req+0x926/0x11e0 [ 37.707164] [] ? tcp_timewait_state_process+0xeb0/0xeb0 [ 37.714143] [] ? tcp_v4_inbound_md5_hash+0x155/0x510 [ 37.720860] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 37.727840] [] ? check_preemption_disabled+0x3b/0x200 [ 37.734644] [] tcp_v4_rcv+0x14de/0x29c0 [ 37.740231] [] ? raw_local_deliver+0x1b3/0xaf0 [ 37.746428] [] ? ipv4_confirm+0x2e4/0x3f0 [ 37.752192] [] ip_local_deliver_finish+0x285/0xa80 [ 37.758821] [] ? ip_local_deliver_finish+0x129/0xa80 [ 37.765541] [] ip_local_deliver+0x30a/0x4d0 [ 37.771477] [] ? ip_local_deliver+0x1ab/0x4d0 [ 37.777588] [] ? ip_call_ra_chain+0x540/0x540 [ 37.783710] [] ? ip_rcv_finish+0x1900/0x1900 [ 37.789734] [] ? tcp_v4_early_demux+0x4f/0x7a0 [ 37.795932] [] ip_rcv_finish+0x71b/0x1900 [ 37.801692] [] ? ip_rcv+0xa4a/0x1620 [ 37.807018] [] ip_rcv+0xbc2/0x1620 [ 37.812170] [] ? ip_rcv+0xa4a/0x1620 [ 37.817499] [] ? update_cfs_rq_load_avg+0xb85/0x1980 [ 37.824217] [] ? ip_local_deliver+0x4d0/0x4d0 [ 37.830324] [] ? inet_del_offload+0x40/0x40 [ 37.836260] [] ? update_load_avg+0x7bf/0x1db0 [ 37.842371] [] ? check_preemption_disabled+0x3b/0x200 [ 37.849174] [] ? ip_local_deliver+0x4d0/0x4d0 [ 37.855286] [] __netif_receive_skb_core+0xa33/0x29e0 [ 37.862020] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 37.869002] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 37.875982] [] ? netif_wake_subqueue+0x210/0x210 [ 37.882353] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 37.889331] [] ? ttwu_do_wakeup+0x27b/0x540 [ 37.895267] [] ? try_to_wake_up+0xb7/0xee0 [ 37.901115] [] ? process_backlog+0x17c/0x690 [ 37.907141] [] __netif_receive_skb+0x5b/0x1c0 [ 37.913249] [] process_backlog+0x1d4/0x690 [ 37.919098] [] ? process_backlog+0x17c/0x690 [ 37.925118] [] net_rx_action+0x396/0xe00 [ 37.930793] [] ? clockevents_program_event+0x1a5/0x350 [ 37.937688] [] ? sk_busy_loop+0xca0/0xca0 [ 37.943449] [] ? clockevents_program_event+0x131/0x350 [ 37.950339] [] ? tick_program_event+0xaf/0x110 [ 37.956538] [] ? check_preemption_disabled+0x3b/0x200 [ 37.963341] [] __do_softirq+0x22d/0x964 [ 37.968938] [] ? rcu_eqs_enter_common.constprop.77+0xe5/0x1c0 [ 37.976437] [] do_softirq_own_stack+0x1c/0x30 [ 37.982542] [ 37.984569] [] do_softirq.part.16+0x99/0xb0 [ 37.990519] [] do_softirq+0x18/0x20 [ 37.995761] [] netif_rx_ni+0x140/0x320 [ 38.001265] [] tun_get_user+0xac5/0x2080 [ 38.006941] [] ? tun_chr_ioctl+0x40/0x40 [ 38.012619] [] ? tun_net_uninit+0x20/0x20 [ 38.018391] [] ? __tun_get+0x12a/0x230 [ 38.023897] [] tun_chr_write_iter+0xd5/0x190 [ 38.029921] [] __vfs_write+0x4bf/0x680 [ 38.035432] [] ? default_llseek+0x290/0x290 [ 38.041371] [] ? avc_policy_seqno+0x9/0x20 [ 38.047223] [] ? selinux_file_permission+0x82/0x460 [ 38.053855] [] ? rw_verify_area+0xe5/0x2b0 [ 38.059704] [] vfs_write+0x170/0x4e0 [ 38.065032] [] SyS_write+0xd9/0x1b0 [ 38.070274] [] ? SyS_read+0x1b0/0x1b0 [ 38.075695] [] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.082239] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 38.088781] Memory state around the buggy address: [ 38.093674] ffff8801db207480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.100995] ffff8801db207500: 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 [ 38.108320] >ffff8801db207580: f2 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 [ 38.115643] ^ [ 38.118973] ffff8801db207600: 00 00 00 00 00 00 00 00 00 00 f2 f2 00 00 00 00 [ 38.126299] ffff8801db207680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.133619] ================================================================== [ 38.140992] ================================================================== [ 38.148332] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0xc9b/0x2830 at addr ffff8801db207580 [ 38.157570] Read of size 4 by task syzkaller890687/3278 [ 38.162904] page:ffffea00076c81c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 38.171120] flags: 0x8000000000000400(reserved) [ 38.175750] page dumped because: kasan: bad access detected [ 38.181429] CPU: 0 PID: 3278 Comm: syzkaller890687 Tainted: G B 4.9.44-g6dda7ac #31 [ 38.190313] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.199632] ffff8801db206c68 ffffffff81d929c9 ffffed003b640eb0 0000000000000004 [ 38.207577] 0000000000000000 ffffed003b640eb0 ffff8801db207580 ffff8801db206cf0 [ 38.215525] ffffffff8153cb53 0000000000000010 0000000000000000 ffffffff833cd52b [ 38.223474] Call Trace: [ 38.226021] [ 38.228051] [] dump_stack+0xc1/0x128 [ 38.233393] [] kasan_report.part.1+0x4c3/0x500 [ 38.239589] [] ? xfrm_state_find+0xc9b/0x2830 [ 38.245696] [] __asan_report_load4_noabort+0x29/0x30 [ 38.252413] [] xfrm_state_find+0xc9b/0x2830 [ 38.258349] [] ? xfrm_state_find+0x25a/0x2830 [ 38.264458] [] ? tun_net_xmit+0x28f/0x1150 [ 38.270306] [] ? tun_net_xmit+0x4e/0x1150 [ 38.276069] [] ? xfrm_unregister_mode+0x200/0x200 [ 38.282527] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 38.290111] [] ? dev_queue_xmit+0x17/0x20 [ 38.295872] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 38.302076] [] ? trace_hardirqs_on+0xd/0x10 [ 38.308011] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 38.314295] [] ? __dev_queue_xmit+0x901/0x1e60 [ 38.320489] [] ? dev_queue_xmit+0x17/0x20 [ 38.326259] [] xfrm_tmpl_resolve+0x298/0xa90 [ 38.332280] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 38.338911] [] ? memcpy+0x45/0x50 [ 38.343985] [] ? dev_queue_xmit+0x17/0x20 [ 38.349746] [] ? neigh_resolve_output+0x470/0x770 [ 38.356204] [] ? ip_finish_output2+0x6b6/0x1060 [ 38.362486] [] ? eth_mac_addr+0x1a0/0x1a0 [ 38.368249] [] ? ip_finish_output2+0x6c6/0x1060