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-upstream-kasan-gce-386-1,10.128.0.3' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 32.324429] ================================================================== [ 32.331860] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 32.339022] Read of size 4 at addr ffff8801ce127960 by task syzkaller331572/2982 [ 32.346524] [ 32.348128] CPU: 0 PID: 2982 Comm: syzkaller331572 Not tainted 4.14.0-rc1+ #5 [ 32.355389] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.364717] Call Trace: [ 32.367284] dump_stack+0x194/0x257 [ 32.370886] ? arch_local_irq_restore+0x53/0x53 [ 32.375526] ? show_regs_print_info+0x65/0x65 [ 32.379997] ? lock_release+0xd70/0xd70 [ 32.383946] ? xfrm_state_find+0x305b/0x3190 [ 32.388328] print_address_description+0x73/0x250 [ 32.393142] ? xfrm_state_find+0x305b/0x3190 [ 32.397521] kasan_report+0x24e/0x340 [ 32.401296] __asan_report_load4_noabort+0x14/0x20 [ 32.406198] xfrm_state_find+0x305b/0x3190 [ 32.410408] ? __save_stack_trace+0x61/0xd0 [ 32.414719] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 32.419798] ? copy_trace+0x1d0/0x1d0 [ 32.423581] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.428739] ? check_noncircular+0x20/0x20 [ 32.432946] ? lock_downgrade+0x990/0x990 [ 32.437071] ? find_held_lock+0x39/0x1d0 [ 32.441109] ? __lock_acquire+0x732/0x4620 [ 32.445313] ? find_held_lock+0x39/0x1d0 [ 32.449364] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.454527] ? depot_save_stack+0x1c2/0x490 [ 32.458829] ? do_raw_spin_trylock+0x190/0x190 [ 32.463386] ? check_noncircular+0x20/0x20 [ 32.467602] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 32.471827] ? __xfrm_decode_session+0x100/0x100 [ 32.476560] ? lock_downgrade+0x990/0x990 [ 32.480679] ? inet_sendmsg+0x11f/0x5e0 [ 32.484627] ? sock_sendmsg+0xca/0x110 [ 32.488484] ? SYSC_sendto+0x358/0x5a0 [ 32.492347] ? check_noncircular+0x20/0x20 [ 32.496555] ? rt_add_uncached_list+0xa2/0x240 [ 32.501110] ? check_noncircular+0x20/0x20 [ 32.505325] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 32.510770] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 32.515150] ? lock_downgrade+0x990/0x990 [ 32.519269] ? dst_init+0x4d9/0x6a0 [ 32.522875] ? xfrm_selector_match+0xe00/0xe00 [ 32.527429] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.532594] ? lock_release+0xd70/0xd70 [ 32.536544] ? refcount_inc_not_zero+0xfe/0x180 [ 32.541197] ? xfrm_selector_match+0x3b/0xe00 [ 32.545668] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 32.550400] ? xfrm_selector_match+0xe00/0xe00 [ 32.554957] ? check_noncircular+0x20/0x20 [ 32.559160] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 32.564590] xfrm_lookup+0xf0a/0x2540 [ 32.568360] ? xfrm_lookup+0xf0a/0x2540 [ 32.572307] ? ip_route_input_noref+0x1e0/0x1e0 [ 32.576954] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 32.583335] ? find_held_lock+0x39/0x1d0 [ 32.587381] ? lock_downgrade+0x990/0x990 [ 32.591508] ? ip_route_output_key_hash+0x1a6/0x370 [ 32.596497] ? find_held_lock+0x39/0x1d0 [ 32.600533] ? lock_release+0xd70/0xd70 [ 32.604485] ? lock_downgrade+0x990/0x990 [ 32.608619] ? ip_route_output_key_hash+0x252/0x370 [ 32.613608] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 32.619114] ? lock_release+0xd70/0xd70 [ 32.623070] xfrm_lookup_route+0x39/0x1a0 [ 32.627192] ip_route_output_flow+0x7c/0xa0 [ 32.631492] raw_sendmsg+0xc4f/0x38c0 [ 32.635286] ? raw_setsockopt+0xd0/0xd0 [ 32.639235] ? get_mem_cgroup_from_mm+0x49b/0x710 [ 32.644053] ? lock_page_memcg+0x3b0/0x3b0 [ 32.648264] ? __lock_is_held+0xbc/0x140 [ 32.652325] ? lru_cache_add+0x1c7/0x3a0 [ 32.656358] ? get_mem_cgroup_from_mm+0x710/0x710 [ 32.661170] ? lru_cache_add_file+0x20/0x20 [ 32.665483] ? lock_downgrade+0x990/0x990 [ 32.669609] ? __might_fault+0xe0/0x1d0 [ 32.673556] ? sock_has_perm+0x29c/0x400 [ 32.677589] ? selinux_tun_dev_create+0xc0/0xc0 [ 32.682228] ? lock_release+0xd70/0xd70 [ 32.686171] ? check_same_owner+0x320/0x320 [ 32.690462] ? __check_object_size+0x25d/0x4f0 [ 32.695025] inet_sendmsg+0x11f/0x5e0 [ 32.698795] ? __might_sleep+0x95/0x190 [ 32.702741] ? inet_recvmsg+0x5f0/0x5f0 [ 32.706688] ? selinux_socket_sendmsg+0x36/0x40 [ 32.711331] ? security_socket_sendmsg+0x89/0xb0 [ 32.716056] ? inet_recvmsg+0x5f0/0x5f0 [ 32.720005] sock_sendmsg+0xca/0x110 [ 32.723693] SYSC_sendto+0x358/0x5a0 [ 32.727383] ? SYSC_connect+0x480/0x480 [ 32.731327] ? find_held_lock+0x39/0x1d0 [ 32.735372] ? lock_downgrade+0x990/0x990 [ 32.739515] ? handle_mm_fault+0x410/0x8d0 [ 32.743720] ? down_read_trylock+0xdb/0x170 [ 32.748014] ? __do_page_fault+0x2b8/0xb60 [ 32.752220] ? __handle_mm_fault+0x39c0/0x39c0 [ 32.756772] ? vmacache_find+0x61/0x270 [ 32.760728] SyS_sendto+0x40/0x50 [ 32.764152] ? SyS_getpeername+0x30/0x30 [ 32.768186] do_fast_syscall_32+0x3f2/0xeed [ 32.772488] ? do_int80_syscall_32+0x930/0x930 [ 32.777043] ? kasan_check_read+0x11/0x20 [ 32.781165] ? syscall_return_slowpath+0x500/0x500 [ 32.786067] ? SyS_rt_sigaction+0x94/0x1b0 [ 32.790278] ? lockdep_sys_exit+0x47/0xf0 [ 32.794400] ? retint_user+0x18/0x20 [ 32.798089] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.802914] entry_SYSENTER_compat+0x51/0x60 [ 32.807295] RIP: 0023:0xf7fe1c79 [ 32.810633] RSP: 002b:00000000fff9f65c EFLAGS: 00000286 ORIG_RAX: 0000000000000171 [ 32.818323] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020fdbfc0 [ 32.825563] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020fdbff0 [ 32.832804] RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000 [ 32.840326] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 32.847569] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 32.854830] [ 32.856431] The buggy address belongs to the page: [ 32.861333] page:ffffea00073849c0 count:0 mapcount:0 mapping: (null) index:0x0 [ 32.869448] flags: 0x200000000000000() [ 32.873307] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 32.881157] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 32.889005] page dumped because: kasan: bad access detected [ 32.894683] [ 32.896279] Memory state around the buggy address: [ 32.901176] ffff8801ce127800: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 [ 32.908505] ffff8801ce127880: f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 f2 [ 32.915833] >ffff8801ce127900: f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 [ 32.923160] ^ [ 32.929622] ffff8801ce127980: f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 f3 f3 f3 [ 32.936951] ffff8801ce127a00: f3 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 [ 32.944279] ================================================================== [ 32.951606] Disabling lock debugging due to kernel taint [ 32.957101] Kernel panic - not syncing: panic_on_warn set ... [ 32.957101] [ 32.964437] CPU: 0 PID: 2982 Comm: syzkaller331572 Tainted: G B 4.14.0-rc1+ #5 [ 32.972890] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.982215] Call Trace: [ 32.984784] dump_stack+0x194/0x257 [ 32.988385] ? arch_local_irq_restore+0x53/0x53 [ 32.993024] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.997748] ? xfrm_state_find+0x2fc0/0x3190 [ 33.002125] panic+0x1e4/0x417 [ 33.005283] ? __warn+0x1d9/0x1d9 [ 33.008706] ? xfrm_state_find+0x305b/0x3190 [ 33.013081] kasan_end_report+0x50/0x50 [ 33.017043] kasan_report+0x137/0x340 [ 33.020810] __asan_report_load4_noabort+0x14/0x20 [ 33.025702] xfrm_state_find+0x305b/0x3190 [ 33.029902] ? __save_stack_trace+0x61/0xd0 [ 33.034196] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 33.039268] ? copy_trace+0x1d0/0x1d0 [ 33.043036] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.048189] ? check_noncircular+0x20/0x20 [ 33.052389] ? lock_downgrade+0x990/0x990 [ 33.056507] ? find_held_lock+0x39/0x1d0 [ 33.060538] ? __lock_acquire+0x732/0x4620 [ 33.064748] ? find_held_lock+0x39/0x1d0 [ 33.068787] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.073945] ? depot_save_stack+0x1c2/0x490 [ 33.078235] ? do_raw_spin_trylock+0x190/0x190 [ 33.082787] ? check_noncircular+0x20/0x20 [ 33.086993] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 33.091200] ? __xfrm_decode_session+0x100/0x100 [ 33.095924] ? lock_downgrade+0x990/0x990 [ 33.100038] ? inet_sendmsg+0x11f/0x5e0 [ 33.103981] ? sock_sendmsg+0xca/0x110 [ 33.107834] ? SYSC_sendto+0x358/0x5a0 [ 33.111688] ? check_noncircular+0x20/0x20 [ 33.115890] ? rt_add_uncached_list+0xa2/0x240 [ 33.120438] ? check_noncircular+0x20/0x20 [ 33.124640] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 33.130068] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 33.134441] ? lock_downgrade+0x990/0x990 [ 33.138555] ? dst_init+0x4d9/0x6a0 [ 33.142149] ? xfrm_selector_match+0xe00/0xe00 [ 33.146696] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.151853] ? lock_release+0xd70/0xd70 [ 33.155794] ? refcount_inc_not_zero+0xfe/0x180 [ 33.160430] ? xfrm_selector_match+0x3b/0xe00 [ 33.164891] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 33.169613] ? xfrm_selector_match+0xe00/0xe00 [ 33.174170] ? check_noncircular+0x20/0x20 [ 33.178369] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 33.183786] xfrm_lookup+0xf0a/0x2540 [ 33.187575] ? xfrm_lookup+0xf0a/0x2540 [ 33.191514] ? ip_route_input_noref+0x1e0/0x1e0 [ 33.196157] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 33.202530] ? find_held_lock+0x39/0x1d0 [ 33.206564] ? lock_downgrade+0x990/0x990 [ 33.210680] ? ip_route_output_key_hash+0x1a6/0x370 [ 33.215660] ? find_held_lock+0x39/0x1d0 [ 33.219687] ? lock_release+0xd70/0xd70 [ 33.223626] ? lock_downgrade+0x990/0x990 [ 33.227747] ? ip_route_output_key_hash+0x252/0x370 [ 33.232727] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 33.238231] ? lock_release+0xd70/0xd70 [ 33.242172] xfrm_lookup_route+0x39/0x1a0 [ 33.246287] ip_route_output_flow+0x7c/0xa0 [ 33.250575] raw_sendmsg+0xc4f/0x38c0 [ 33.254348] ? raw_setsockopt+0xd0/0xd0 [ 33.258291] ? get_mem_cgroup_from_mm+0x49b/0x710 [ 33.263100] ? lock_page_memcg+0x3b0/0x3b0 [ 33.267299] ? __lock_is_held+0xbc/0x140 [ 33.271330] ? lru_cache_add+0x1c7/0x3a0 [ 33.275355] ? get_mem_cgroup_from_mm+0x710/0x710 [ 33.280159] ? lru_cache_add_file+0x20/0x20 [ 33.284455] ? lock_downgrade+0x990/0x990 [ 33.288572] ? __might_fault+0xe0/0x1d0 [ 33.292512] ? sock_has_perm+0x29c/0x400 [ 33.296539] ? selinux_tun_dev_create+0xc0/0xc0 [ 33.301170] ? lock_release+0xd70/0xd70 [ 33.305113] ? check_same_owner+0x320/0x320 [ 33.309401] ? __check_object_size+0x25d/0x4f0 [ 33.313950] inet_sendmsg+0x11f/0x5e0 [ 33.317714] ? __might_sleep+0x95/0x190 [ 33.321654] ? inet_recvmsg+0x5f0/0x5f0