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-4,10.128.0.18' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 47.208040] ================================================================== [ 47.209164] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x2453/0x2830 at addr ffff8801cdb3fb50 [ 47.210399] Read of size 4 by task syzkaller159177/3245 [ 47.211106] page:ffffea000736cfc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 47.212215] flags: 0x8000000000000000() [ 47.212742] page dumped because: kasan: bad access detected [ 47.213496] CPU: 1 PID: 3245 Comm: syzkaller159177 Not tainted 4.9.52-gc30c69c #54 [ 47.214546] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.215765] ffff8801cdb3f198 ffffffff81d93149 ffffed0039b67f6a 0000000000000004 [ 47.216890] 0000000000000000 ffffed0039b67f6a ffff8801cdb3fb50 ffff8801cdb3f220 [ 47.218049] ffffffff8153d143 0000000000000000 0000000000000002 ffffffff833d3373 [ 47.219210] Call Trace: [ 47.219565] [] dump_stack+0xc1/0x128 [ 47.220295] [] kasan_report.part.1+0x4c3/0x500 [ 47.221113] [] ? xfrm_state_find+0x2453/0x2830 [ 47.221937] [] ? xfrm_state_find+0x25a/0x2830 [ 47.222790] [] __asan_report_load4_noabort+0x29/0x30 [ 47.223718] [] xfrm_state_find+0x2453/0x2830 [ 47.224531] [] ? xfrm_state_find+0x25a/0x2830 [ 47.225339] [] ? update_cfs_rq_load_avg+0xb85/0x1980 [ 47.226226] [] ? depot_save_stack+0x122/0x4a0 [ 47.227034] [] ? xfrm_unregister_mode+0x200/0x200 [ 47.227888] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 47.230965] [] ? depot_save_stack+0x1c5/0x4a0 [ 47.237081] [] xfrm_tmpl_resolve+0x298/0xa90 [ 47.243104] [] ? xfrm_policy_get_afinfo+0x1e0/0x1e0 [ 47.249735] [] ? depot_save_stack+0x3b1/0x4a0 [ 47.255844] [] ? save_stack+0xa3/0xd0 [ 47.261259] [] ? save_stack_trace+0x16/0x20 [ 47.267192] [] ? save_stack+0x43/0xd0 [ 47.272606] [] ? kasan_kmalloc+0xad/0xe0 [ 47.278286] [] ? kasan_slab_alloc+0x12/0x20 [ 47.284220] [] ? kmem_cache_alloc+0xba/0x290 [ 47.290244] [] ? dst_alloc+0x11f/0x1a0 [ 47.295753] [] ? rt_dst_alloc+0x78/0x430 [ 47.301429] [] ? __ip_route_output_key_hash+0xa4e/0x23e0 [ 47.308504] [] ? ip_route_output_flow+0x29/0xa0 [ 47.314788] [] ? udp_sendmsg+0xe36/0x1c10 [ 47.320562] [] ? inet_sendmsg+0x2bc/0x4c0 [ 47.326323] [] ? sock_sendmsg+0xca/0x110 [ 47.332004] [] xfrm_resolve_and_create_bundle+0xd7/0x1d50 [ 47.339179] [] ? depot_save_stack+0x1c5/0x4a0 [ 47.345306] [] ? depot_save_stack+0x3b1/0x4a0 [ 47.351422] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 47.358402] [] ? depot_save_stack+0x3b1/0x4a0 [ 47.364513] [] ? __xfrm_decode_session+0x100/0x100 [ 47.371057] [] ? xfrm_selector_match+0xe40/0xe40 [ 47.377425] [] ? xfrm_sk_policy_lookup+0x200/0x370 [ 47.383968] [] ? xfrm_sk_policy_lookup+0x227/0x370 [ 47.390510] [] ? xfrm_selector_match+0xe40/0xe40 [ 47.396876] [] ? xfrm_expand_policies+0x25b/0x5b0 [ 47.403334] [] xfrm_lookup+0x984/0xbf0 [ 47.408833] [] ? xfrm_bundle_lookup+0x11b0/0x11b0 [ 47.415290] [] ? rt_set_nexthop.constprop.54+0x500/0xf90 [ 47.422356] [] ? __ip_route_output_key_hash+0x7e5/0x23e0 [ 47.429418] [] ? __ip_route_output_key_hash+0x80c/0x23e0 [ 47.436493] [] ? __ip_route_output_key_hash+0x16a/0x23e0 [ 47.443555] [] ? ip_rt_update_pmtu+0x8b0/0x8b0 [ 47.449751] [] xfrm_lookup_route+0x39/0x1a0 [ 47.455686] [] ip_route_output_flow+0x7f/0xa0 [ 47.461796] [] udp_sendmsg+0xe36/0x1c10 [ 47.467383] [] ? udp_sendmsg+0x1232/0x1c10 [ 47.473230] [] ? ip_reply_glue_bits+0xb0/0xb0 [ 47.479338] [] ? udp_lib_get_port+0x18a0/0x18a0 [ 47.485619] [] ? ip4_datagram_release_cb+0x8e/0x940 [ 47.492249] [] ? udp_seq_next+0x80/0x80 [ 47.497843] [] ? ip4_datagram_release_cb+0x1da/0x940 [ 47.504558] [] ? ip4_datagram_release_cb+0x206/0x940 [ 47.511278] [] ? release_sock+0x20/0x1c0 [ 47.516953] [] ? release_sock+0x14c/0x1c0 [ 47.522722] [] ? trace_hardirqs_on+0xd/0x10 [ 47.528657] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 47.534941] [] ? _raw_spin_unlock_bh+0x30/0x40 [ 47.541136] [] ? release_sock+0x14c/0x1c0 [ 47.546897] [] inet_sendmsg+0x2bc/0x4c0 [ 47.552485] [] ? inet_sendmsg+0x73/0x4c0 [ 47.558159] [] ? inet_recvmsg+0x4c0/0x4c0 [ 47.563919] [] sock_sendmsg+0xca/0x110 [ 47.569419] [] SYSC_sendto+0x2c8/0x340 [ 47.574927] [] ? SYSC_connect+0x310/0x310 [ 47.580694] [] ? handle_mm_fault+0x6ee/0x2530 [ 47.586807] [] ? __do_page_fault+0x510/0xbd0 [ 47.592830] [] ? up_read+0x1a/0x40 [ 47.597983] [] ? __do_page_fault+0x33f/0xbd0 [ 47.604008] [] SyS_sendto+0x40/0x50 [ 47.609261] [] entry_SYSCALL_64_fastpath+0x23/0xc6 [ 47.615806] Memory state around the buggy address: [ 47.620705] ffff8801cdb3fa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 47.628031] ffff8801cdb3fa80: f1 f1 f1 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 f2 [ 47.635354] >ffff8801cdb3fb00: f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 [ 47.642673] ^ [ 47.648608] ffff8801cdb3fb80: 00 00 00 00 00 00 00 00 f2 f2 f2 00 00 00 00 00 [ 47.655930] ffff8801cdb3fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 47.663251] ================================================================== [ 47.670654] ================================================================== [ 47.677989] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0xc9b/0x2830 at addr ffff8801cdb3fb50 [ 47.687226] Read of size 4 by task syzkaller159177/3245 [ 47.692559] page:ffffea000736cfc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 47.700795] flags: 0x8000000000000000() [ 47.704733] page dumped because: kasan: bad access detected