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.53' (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: [ 59.921211] ================================================================== [ 59.922357] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x2453/0x2830 at addr ffff8801db207580 [ 59.923695] Read of size 4 by task syzkaller880175/3292 [ 59.924408] page:ffffea00076c81c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 59.925597] flags: 0x8000000000000400(reserved) [ 59.926232] page dumped because: kasan: bad access detected [ 59.927009] CPU: 0 PID: 3292 Comm: syzkaller880175 Not tainted 4.9.42-g02f29ab #24 [ 59.928018] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 59.929363] ffff8801db206c68 ffffffff81d92909 ffffed003b640eb0 0000000000000004 [ 59.930528] 0000000000000000 ffffed003b640eb0 ffff8801db207580 ffff8801db206cf0 [ 59.931686] ffffffff8153ca83 0000000000000000 0000000000000002 ffffffff833cdea3 [ 59.932839] Call Trace: [ 59.933189] [ 59.933502] [] dump_stack+0xc1/0x128 [ 59.934331] [] kasan_report.part.1+0x4c3/0x500 [ 59.935192] [] ? xfrm_state_find+0x2453/0x2830 [ 59.936011] [] ? xfrm_state_find+0x25a/0x2830 [ 59.936840] [] __asan_report_load4_noabort+0x29/0x30 [ 59.937809] [] xfrm_state_find+0x2453/0x2830 [ 59.938646] [] ? xfrm_state_find+0x25a/0x2830 [ 59.939510] [] ? tun_net_xmit+0x28f/0x1150 [ 59.940310] [] ? tun_net_xmit+0x4e/0x1150 [ 59.941076] [] ? xfrm_unregister_mode+0x200/0x200 [ 59.945968] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 59.953556] [] ? dev_queue_xmit+0x17/0x20 [ 59.959318] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 59.965525] [] ? trace_hardirqs_on+0xd/0x10 [ 59.971462] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 59.977748] [] ? __dev_queue_xmit+0x901/0x1e60 [ 59.983955] [] ? dev_queue_xmit+0x17/0x20 [ 59.989723] [] xfrm_tmpl_resolve+0x298/0xa90 [ 59.995753] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 60.002387] [] ? memcpy+0x45/0x50 [ 60.007466] [] ? dev_queue_xmit+0x17/0x20 [ 60.013231] [] ? neigh_resolve_output+0x470/0x770 [ 60.019769] [] ? ip_finish_output2+0x6b6/0x1060 [ 60.026060] [] ? eth_mac_addr+0x1a0/0x1a0 [ 60.031837] [] ? ip_finish_output2+0x6c6/0x1060 [ 60.038120] [] ? trace_hardirqs_on+0xd/0x10 [ 60.044059] [] xfrm_resolve_and_create_bundle+0xd7/0x1d50 [ 60.051213] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 60.058193] [] ? nf_iterate+0x19a/0x310 [ 60.063784] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 60.070763] [] ? nf_hook_slow+0x131/0x1e0 [ 60.076539] [] ? __xfrm_decode_session+0x100/0x100 [ 60.083104] [] ? xfrm_selector_match+0xe40/0xe40 [ 60.089483] [] ? xfrm_sk_policy_lookup+0x200/0x370 [ 60.096035] [] ? xfrm_sk_policy_lookup+0x227/0x370 [ 60.102592] [] ? xfrm_selector_match+0xe40/0xe40 [ 60.108962] [] ? xfrm_expand_policies+0x25b/0x5b0 [ 60.115435] [] xfrm_lookup+0x984/0xbf0 [ 60.120939] [] ? xfrm_bundle_lookup+0x11b0/0x11b0 [ 60.127412] [] ? __ip_route_output_key_hash+0x7e5/0x23e0 [ 60.134480] [] ? __ip_route_output_key_hash+0x80c/0x23e0 [ 60.141548] [] ? __ip_route_output_key_hash+0xc94/0x23e0 [ 60.148618] [] ? ip_rt_update_pmtu+0x8b0/0x8b0 [ 60.154816] [] ? save_stack_trace+0x16/0x20 [ 60.160752] [] xfrm_lookup_route+0x39/0x1a0 [ 60.166687] [] ip_route_output_flow+0x7f/0xa0 [ 60.172811] [] inet_csk_route_req+0x5d8/0x9a0 [ 60.178923] [] tcp_v4_send_synack+0x203/0x290 [ 60.185035] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 60.191328] [] ? tcp_v4_send_check+0x90/0x90 [ 60.197366] [] ? prandom_u32_state+0x13/0x180 [ 60.203478] [] tcp_rtx_synack+0x121/0x1a0 [ 60.209240] [] ? tcp_rtx_synack.part.33+0x1d0/0x1d0 [ 60.215872] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 60.222853] [] ? ip_vs_in.part.29.constprop.37+0x12e/0x1b40 [ 60.230179] [] ? ipt_do_table+0xc0d/0x16d0 [ 60.236030] [] ? trace_hardirqs_on+0xd/0x10 [ 60.241969] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 60.248252] [] inet_rtx_syn_ack+0x64/0xd0 [ 60.254022] [] tcp_check_req+0x926/0x11e0 [ 60.259783] [] ? tcp_timewait_state_process+0xeb0/0xeb0 [ 60.266761] [] ? tcp_v4_inbound_md5_hash+0x155/0x510 [ 60.273478] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 60.280460] [] ? check_preemption_disabled+0x3b/0x200 [ 60.287278] [] tcp_v4_rcv+0x14de/0x29c0 [ 60.292869] [] ? raw_local_deliver+0x1b3/0xaf0 [ 60.299065] [] ? ipv4_confirm+0x2e4/0x3f0 [ 60.304828] [] ip_local_deliver_finish+0x285/0xa80 [ 60.311373] [] ? ip_local_deliver_finish+0x129/0xa80 [ 60.318093] [] ip_local_deliver+0x30a/0x4d0 [ 60.324039] [] ? ip_local_deliver+0x1ab/0x4d0 [ 60.330148] [] ? ip_call_ra_chain+0x540/0x540 [ 60.336258] [] ? ip_rcv_finish+0x1900/0x1900 [ 60.342283] [] ? tcp_v4_early_demux+0x4f/0x7a0 [ 60.348480] [] ip_rcv_finish+0x71b/0x1900 [ 60.354251] [] ? ip_rcv+0xa4a/0x1620 [ 60.359578] [] ip_rcv+0xbc2/0x1620 [ 60.364736] [] ? ip_rcv+0xa4a/0x1620 [ 60.370065] [] ? update_cfs_rq_load_avg+0xb85/0x1980 [ 60.376783] [] ? ip_local_deliver+0x4d0/0x4d0 [ 60.382908] [] ? inet_del_offload+0x40/0x40 [ 60.388849] [] ? update_load_avg+0x7bf/0x1db0 [ 60.394974] [] ? check_preemption_disabled+0x3b/0x200 [ 60.401783] [] ? ip_local_deliver+0x4d0/0x4d0 [ 60.407892] [] __netif_receive_skb_core+0xa33/0x29e0 [ 60.414616] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 60.421595] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 60.428573] [] ? netif_wake_subqueue+0x210/0x210 [ 60.434956] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 60.441947] [] ? ttwu_do_wakeup+0x27b/0x540 [ 60.447884] [] ? try_to_wake_up+0xb7/0xee0 [ 60.453735] [] ? process_backlog+0x17c/0x690 [ 60.459777] [] __netif_receive_skb+0x5b/0x1c0 [ 60.465895] [] process_backlog+0x1d4/0x690 [ 60.471746] [] ? process_backlog+0x17c/0x690 [ 60.477770] [] net_rx_action+0x396/0xe00 [ 60.483450] [] ? clockevents_program_event+0x1a5/0x350 [ 60.490341] [] ? sk_busy_loop+0xca0/0xca0 [ 60.496104] [] ? clockevents_program_event+0x131/0x350 [ 60.502996] [] ? tick_program_event+0xaf/0x110 [ 60.509205] [] ? check_preemption_disabled+0x3b/0x200 [ 60.516023] [] __do_softirq+0x22d/0x964 [ 60.521614] [] ? rcu_eqs_enter_common.constprop.77+0xe5/0x1c0 [ 60.529135] [] do_softirq_own_stack+0x1c/0x30 [ 60.535252] [ 60.537288] [] do_softirq.part.16+0x99/0xb0 [ 60.543249] [] do_softirq+0x18/0x20 [ 60.548493] [] netif_rx_ni+0x140/0x320 [ 60.553997] [] tun_get_user+0xac5/0x2080 [ 60.560625] [] ? tun_chr_ioctl+0x40/0x40 [ 60.566312] [] ? preempt_count_add+0x7d/0x170 [ 60.572430] [] ? get_page_from_freelist+0x9d1/0x1a00 [ 60.579154] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 60.586152] [] ? tun_net_uninit+0x20/0x20 [ 60.591919] [] ? __tun_get+0x12a/0x230 [ 60.597424] [] tun_chr_write_iter+0xd5/0x190 [ 60.603449] [] __vfs_write+0x4bf/0x680 [ 60.608953] [] ? default_llseek+0x290/0x290 [ 60.614898] [] ? avc_policy_seqno+0x9/0x20 [ 60.620760] [] ? selinux_file_permission+0x82/0x460 [ 60.627400] [] ? rw_verify_area+0xe5/0x2b0 [ 60.633251] [] vfs_write+0x170/0x4e0 [ 60.638581] [] SyS_write+0xd9/0x1b0 [ 60.643828] [] ? SyS_read+0x1b0/0x1b0 [ 60.649252] [] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 60.655802] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 60.662346] Memory state around the buggy address: [ 60.667243] ffff8801db207480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 60.674571] ffff8801db207500: 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 [ 60.681894] >ffff8801db207580: f2 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 [ 60.689216] ^ [ 60.692546] ffff8801db207600: 00 00 00 00 00 00 00 00 00 00 f2 f2 00 00 00 00 [ 60.699868] ffff8801db207680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 60.707194] ================================================================== [ 60.714583] ================================================================== [ 60.721927] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0xc9b/0x2830 at addr ffff8801db207580 [ 60.731167] Read of size 4 by task syzkaller880175/3292 [ 60.736496] page:ffffea00076c81c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 60.744716] flags: 0x8000000000000400(reserved) [ 60.749347] page dumped because: kasan: bad access detected [ 60.755028] CPU: 0 PID: 3292 Comm: syzkaller880175 Tainted: G B 4.9.42-g02f29ab #24 [ 60.763916] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 60.773247] ffff8801db206c68 ffffffff81d92909 ffffed003b640eb0 0000000000000004 [ 60.781205] 0000000000000000 ffffed003b640eb0 ffff8801db207580 ffff8801db206cf0 [ 60.789162] ffffffff8153ca83 0000000000000010 0000000000000000 ffffffff833cc6eb [ 60.797108] Call Trace: [ 60.799658] [ 60.801707] [] dump_stack+0xc1/0x128 [ 60.807052] [] kasan_report.part.1+0x4c3/0x500 [ 60.813251] [] ? xfrm_state_find+0xc9b/0x2830 [ 60.819359] [] __asan_report_load4_noabort+0x29/0x30 [ 60.826080] [] xfrm_state_find+0xc9b/0x2830 [ 60.832016] [] ? xfrm_state_find+0x25a/0x2830 [ 60.838140] [] ? tun_net_xmit+0x28f/0x1150 [ 60.843989] [] ? tun_net_xmit+0x4e/0x1150 [ 60.849751] [] ? xfrm_unregister_mode+0x200/0x200 [ 60.856212] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 60.863801] [] ? dev_queue_xmit+0x17/0x20 [ 60.869570] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 60.875771] [] ? trace_hardirqs_on+0xd/0x10 [ 60.881706] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 60.887991] [] ? __dev_queue_xmit+0x901/0x1e60 [ 60.894188] [] ? dev_queue_xmit+0x17/0x20 [ 60.899952] [] xfrm_tmpl_resolve+0x298/0xa90 [ 60.905984] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 60.912710] [] ? memcpy+0x45/0x50 [ 60.917778] [] ? dev_queue_xmit+0x17/0x20