serialport: Connected to syzkaller.us-central1-c.ci-android-49-kasan-gce-6 port 1 (session ID: a83ac0662e1f5162d5da9893bb60a589b82f980b0c7869a24983c23e4994889c, active connections: 1). 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.14' (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: [ 32.795918] ================================================================== [ 32.796961] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x2453/0x2830 at addr ffff8801db307580 [ 32.798178] Read of size 4 by task syzkaller212282/3276 [ 32.798886] page:ffffea00076cc1c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 32.799980] flags: 0x8000000000000400(reserved) [ 32.800596] page dumped because: kasan: bad access detected [ 32.801349] CPU: 1 PID: 3276 Comm: syzkaller212282 Not tainted 4.9.41-gdb02484 #19 [ 32.802353] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.803579] ffff8801db306c68 ffffffff81d8f749 ffffed003b660eb0 0000000000000004 [ 32.804698] 0000000000000000 ffffed003b660eb0 ffff8801db307580 ffff8801db306cf0 [ 32.805817] ffffffff81539883 0000000000000000 0000000000000002 ffffffff833cab23 [ 32.806933] Call Trace: [ 32.807279] [ 32.807568] [] dump_stack+0xc1/0x128 [ 32.808304] [] kasan_report.part.1+0x4c3/0x500 [ 32.809122] [] ? xfrm_state_find+0x2453/0x2830 [ 32.809939] [] ? xfrm_state_find+0x25a/0x2830 [ 32.810746] [] __asan_report_load4_noabort+0x29/0x30 [ 32.811631] [] xfrm_state_find+0x2453/0x2830 [ 32.812425] [] ? xfrm_state_find+0x25a/0x2830 [ 32.813235] [] ? tun_net_xmit+0x28f/0x1150 [ 32.814008] [] ? tun_net_xmit+0x4e/0x1150 [ 32.814769] [] ? xfrm_unregister_mode+0x200/0x200 [ 32.815643] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 32.820372] [] ? dev_queue_xmit+0x17/0x20 [ 32.826137] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 32.832340] [] ? trace_hardirqs_on+0xd/0x10 [ 32.838276] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 32.844560] [] ? __dev_queue_xmit+0x901/0x1e60 [ 32.850758] [] ? dev_queue_xmit+0x17/0x20 [ 32.856522] [] xfrm_tmpl_resolve+0x298/0xa90 [ 32.862545] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 32.869172] [] ? memcpy+0x45/0x50 [ 32.874240] [] ? dev_queue_xmit+0x17/0x20 [ 32.880035] [] ? netlbl_enabled+0x9/0x50 [ 32.885711] [] ? mod_timer+0x5ba/0xea0 [ 32.891213] [] ? ip_finish_output2+0x6b6/0x1060 [ 32.897496] [] ? get_stack_info+0x37/0x130 [ 32.903346] [] ? update_stack_state.constprop.5+0xca/0x150 [ 32.910583] [] ? __unwind_start+0x1e3/0x3c0 [ 32.916522] [] xfrm_resolve_and_create_bundle+0xd7/0x1d50 [ 32.923675] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 32.930771] [] ? __save_stack_trace+0x7d/0xf0 [ 32.936880] [] ? depot_save_stack+0x122/0x4a0 [ 32.942991] [] ? kfree_skbmem+0xd7/0xf0 [ 32.948578] [] ? __xfrm_decode_session+0x100/0x100 [ 32.955121] [] ? xfrm_selector_match+0xe40/0xe40 [ 32.961490] [] ? xfrm_sk_policy_lookup+0x200/0x370 [ 32.968031] [] ? xfrm_sk_policy_lookup+0x227/0x370 [ 32.974575] [] ? xfrm_selector_match+0xe40/0xe40 [ 32.980943] [] ? xfrm_expand_policies+0x25b/0x5b0 [ 32.987396] [] xfrm_lookup+0x984/0xbf0 [ 32.992895] [] ? xfrm_bundle_lookup+0x11b0/0x11b0 [ 32.999353] [] ? __ip_route_output_key_hash+0x7e5/0x23e0 [ 33.006415] [] ? __ip_route_output_key_hash+0x80c/0x23e0 [ 33.013483] [] ? __ip_route_output_key_hash+0xc94/0x23e0 [ 33.020550] [] ? ip_rt_update_pmtu+0x8b0/0x8b0 [ 33.026747] [] xfrm_lookup_route+0x39/0x1a0 [ 33.032683] [] ip_route_output_flow+0x7f/0xa0 [ 33.038794] [] inet_csk_route_req+0x5d8/0x9a0 [ 33.044903] [] tcp_v4_send_synack+0x203/0x290 [ 33.051012] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 33.057293] [] ? tcp_v4_send_check+0x90/0x90 [ 33.063317] [] ? prandom_u32_state+0x13/0x180 [ 33.069425] [] tcp_rtx_synack+0x121/0x1a0 [ 33.075190] [] ? tcp_rtx_synack.part.33+0x1d0/0x1d0 [ 33.081823] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 33.088800] [] ? ip_vs_in.part.29.constprop.37+0x12e/0x1b40 [ 33.096123] [] ? ipt_do_table+0xc0d/0x16d0 [ 33.101972] [] ? trace_hardirqs_on+0xd/0x10 [ 33.107907] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 33.114187] [] inet_rtx_syn_ack+0x64/0xd0 [ 33.119947] [] tcp_check_req+0x926/0x11e0 [ 33.125706] [] ? tcp_timewait_state_process+0xeb0/0xeb0 [ 33.132679] [] ? tcp_v4_inbound_md5_hash+0x155/0x510 [ 33.139394] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 33.146372] [] ? check_preemption_disabled+0x3b/0x200 [ 33.153175] [] tcp_v4_rcv+0x14de/0x29c0 [ 33.158763] [] ? raw_local_deliver+0x1b3/0xaf0 [ 33.164963] [] ? ipv4_confirm+0x2e4/0x3f0 [ 33.170723] [] ip_local_deliver_finish+0x285/0xa80 [ 33.177265] [] ? ip_local_deliver_finish+0x129/0xa80 [ 33.183980] [] ip_local_deliver+0x30a/0x4d0 [ 33.189916] [] ? ip_local_deliver+0x1ab/0x4d0 [ 33.196022] [] ? ip_call_ra_chain+0x540/0x540 [ 33.202129] [] ? ip_rcv_finish+0x1900/0x1900 [ 33.208149] [] ? tcp_v4_early_demux+0x4f/0x7a0 [ 33.214341] [] ip_rcv_finish+0x71b/0x1900 [ 33.220101] [] ? ip_rcv+0xa4a/0x1620 [ 33.225425] [] ip_rcv+0xbc2/0x1620 [ 33.230575] [] ? ip_rcv+0xa4a/0x1620 [ 33.235903] [] ? debug_smp_processor_id+0x1c/0x20 [ 33.242360] [] ? ip_local_deliver+0x4d0/0x4d0 [ 33.248471] [] ? inet_del_offload+0x40/0x40 [ 33.254407] [] ? update_load_avg+0x7bf/0x1db0 [ 33.260518] [] ? check_preemption_disabled+0x3b/0x200 [ 33.267326] [] ? ip_local_deliver+0x4d0/0x4d0 [ 33.273436] [] __netif_receive_skb_core+0xa33/0x29e0 [ 33.280159] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 33.287139] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 33.294119] [] ? netif_wake_subqueue+0x210/0x210 [ 33.300489] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 33.307467] [] ? ttwu_do_wakeup+0x27b/0x540 [ 33.313403] [] ? try_to_wake_up+0xb7/0xee0 [ 33.319253] [] ? process_backlog+0x17c/0x690 [ 33.325284] [] __netif_receive_skb+0x5b/0x1c0 [ 33.331393] [] process_backlog+0x1d4/0x690 [ 33.337240] [] ? process_backlog+0x17c/0x690 [ 33.343269] [] net_rx_action+0x396/0xe00 [ 33.348946] [] ? clockevents_program_event+0x1a5/0x350 [ 33.355838] [] ? sk_busy_loop+0xca0/0xca0 [ 33.361601] [] ? clockevents_program_event+0x131/0x350 [ 33.368490] [] ? tick_program_event+0xaf/0x110 [ 33.374689] [] ? check_preemption_disabled+0x3b/0x200 [ 33.381493] [] __do_softirq+0x22d/0x964 [ 33.387080] [] ? rcu_eqs_enter_common.constprop.77+0xe5/0x1c0 [ 33.394585] [] do_softirq_own_stack+0x1c/0x30 [ 33.400693] [ 33.402721] [] do_softirq.part.16+0x99/0xb0 [ 33.408666] [] do_softirq+0x18/0x20 [ 33.413907] [] netif_rx_ni+0x140/0x320 [ 33.419421] [] tun_get_user+0xac5/0x2080 [ 33.425097] [] ? tun_chr_ioctl+0x40/0x40 [ 33.430771] [] ? tun_net_uninit+0x20/0x20 [ 33.436531] [] ? __tun_get+0x12a/0x230 [ 33.442030] [] tun_chr_write_iter+0xd5/0x190 [ 33.448053] [] __vfs_write+0x4bf/0x680 [ 33.453553] [] ? default_llseek+0x290/0x290 [ 33.459489] [] ? avc_policy_seqno+0x9/0x20 [ 33.465338] [] ? selinux_file_permission+0x82/0x460 [ 33.471968] [] ? rw_verify_area+0xe5/0x2b0 [ 33.477814] [] vfs_write+0x170/0x4e0 [ 33.483140] [] SyS_write+0xd9/0x1b0 [ 33.488380] [] ? SyS_read+0x1b0/0x1b0 [ 33.493790] [] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.500330] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 33.506870] Memory state around the buggy address: [ 33.511761] ffff8801db307480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.519081] ffff8801db307500: 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 [ 33.526410] >ffff8801db307580: f2 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 [ 33.533729] ^ [ 33.537057] ffff8801db307600: 00 00 00 00 00 00 00 00 00 00 f2 f2 00 00 00 00 [ 33.544377] ffff8801db307680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.551694] ================================================================== [ 33.559059] ================================================================== [ 33.566391] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0xc9b/0x2830 at addr ffff8801db307580 [ 33.575622] Read of size 4 by task syzkaller212282/3276 [ 33.580946] page:ffffea00076cc1c0 count:1 mapcount:0 mapping: (null) index:0x0 [ 33.589157] flags: 0x8000000000000400(reserved) [ 33.593784] page dumped because: kasan: bad access detected [ 33.599457] CPU: 1 PID: 3276 Comm: syzkaller212282 Tainted: G B 4.9.41-gdb02484 #19 [ 33.608337] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.617655] ffff8801db306c68 ffffffff81d8f749 ffffed003b660eb0 0000000000000004 [ 33.625593] 0000000000000000 ffffed003b660eb0 ffff8801db307580 ffff8801db306cf0 [ 33.633524] ffffffff81539883 0000000000000010 0000000000000000 ffffffff833c936b [ 33.641453] Call Trace: [ 33.643999] [ 33.646027] [] dump_stack+0xc1/0x128 [ 33.651369] [] kasan_report.part.1+0x4c3/0x500 [ 33.657564] [] ? xfrm_state_find+0xc9b/0x2830 [ 33.663674] [] __asan_report_load4_noabort+0x29/0x30 [ 33.670393] [] xfrm_state_find+0xc9b/0x2830 [ 33.676327] [] ? xfrm_state_find+0x25a/0x2830 [ 33.682440] [] ? tun_net_xmit+0x28f/0x1150 [ 33.688288] [] ? tun_net_xmit+0x4e/0x1150 [ 33.694050] [] ? xfrm_unregister_mode+0x200/0x200 [ 33.700509] [] ? dev_deactivate_queue.constprop.28+0x150/0x150 [ 33.708099] [] ? dev_queue_xmit+0x17/0x20 [ 33.713863] [] ? __dev_queue_xmit+0x8c3/0x1e60 [ 33.720065] [] ? trace_hardirqs_on+0xd/0x10 [ 33.725998] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 33.732282] [] ? __dev_queue_xmit+0x901/0x1e60 [ 33.738478] [] ? dev_queue_xmit+0x17/0x20 [ 33.744238] [] xfrm_tmpl_resolve+0x298/0xa90 [ 33.750260] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 33.756891] [] ? memcpy+0x45/0x50 [ 33.761958] [] ? dev_queue_xmit+0x17/0x20 [ 33.767723] [] ? netlbl_enabled+0x9/0x50 [ 33.773400] [] ? mod_timer+0x5ba/0xea0 [ 33.778900] [] ? ip_finish_output2+0x6b6/0x1060 [ 33.785183] [] ? get_stack_info+0x37/0x130 [ 33.791031] [] ? update_stack_state.constprop.5+0xca/0x150