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.43' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 20.752025] ================================================================== [ 20.759443] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 20.766601] Read of size 4 at addr ffff8801ce577960 by task syzkaller628489/2980 [ 20.774100] [ 20.775701] CPU: 1 PID: 2980 Comm: syzkaller628489 Not tainted 4.14.0-rc1+ #4 [ 20.782941] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 20.792267] Call Trace: [ 20.794827] dump_stack+0x194/0x257 [ 20.798428] ? arch_local_irq_restore+0x53/0x53 [ 20.803074] ? show_regs_print_info+0x65/0x65 [ 20.807549] ? lock_release+0xd70/0xd70 [ 20.811495] ? xfrm_state_find+0x305b/0x3190 [ 20.815878] print_address_description+0x73/0x250 [ 20.820691] ? xfrm_state_find+0x305b/0x3190 [ 20.825072] kasan_report+0x24e/0x340 [ 20.828846] __asan_report_load4_noabort+0x14/0x20 [ 20.833744] xfrm_state_find+0x305b/0x3190 [ 20.837950] ? __save_stack_trace+0x61/0xd0 [ 20.842260] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 20.847338] ? copy_trace+0x1d0/0x1d0 [ 20.851117] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 20.856277] ? check_noncircular+0x20/0x20 [ 20.860485] ? lock_downgrade+0x990/0x990 [ 20.864611] ? find_held_lock+0x39/0x1d0 [ 20.868651] ? __lock_acquire+0x732/0x4620 [ 20.872856] ? find_held_lock+0x39/0x1d0 [ 20.876905] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 20.882071] ? depot_save_stack+0x1c2/0x490 [ 20.886373] ? do_raw_spin_trylock+0x190/0x190 [ 20.890928] ? check_noncircular+0x20/0x20 [ 20.895144] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 20.899365] ? __xfrm_decode_session+0x100/0x100 [ 20.904100] ? lock_downgrade+0x990/0x990 [ 20.908217] ? inet_sendmsg+0x11f/0x5e0 [ 20.912164] ? sock_sendmsg+0xca/0x110 [ 20.916027] ? SYSC_sendto+0x358/0x5a0 [ 20.919895] ? check_noncircular+0x20/0x20 [ 20.924102] ? rt_add_uncached_list+0xa2/0x240 [ 20.928655] ? check_noncircular+0x20/0x20 [ 20.932868] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 20.938307] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 20.942688] ? lock_downgrade+0x990/0x990 [ 20.946807] ? dst_init+0x4d9/0x6a0 [ 20.950409] ? xfrm_selector_match+0xe00/0xe00 [ 20.954961] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 20.960131] ? lock_release+0xd70/0xd70 [ 20.964079] ? refcount_inc_not_zero+0xfe/0x180 [ 20.968724] ? xfrm_selector_match+0x3b/0xe00 [ 20.973193] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 20.977923] ? xfrm_selector_match+0xe00/0xe00 [ 20.982477] ? check_noncircular+0x20/0x20 [ 20.986681] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 20.992106] xfrm_lookup+0xf0a/0x2540 [ 20.995874] ? xfrm_lookup+0xf0a/0x2540 [ 20.999820] ? ip_route_input_noref+0x1e0/0x1e0 [ 21.004466] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 21.010842] ? find_held_lock+0x39/0x1d0 [ 21.014883] ? lock_downgrade+0x990/0x990 [ 21.019015] ? ip_route_output_key_hash+0x1a6/0x370 [ 21.024031] ? lock_release+0xd70/0xd70 [ 21.027998] ? kasan_check_write+0x14/0x20 [ 21.032211] ? ip_route_output_key_hash+0x252/0x370 [ 21.037198] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 21.042714] xfrm_lookup_route+0x39/0x1a0 [ 21.046837] ip_route_output_flow+0x7c/0xa0 [ 21.051133] raw_sendmsg+0xc4f/0x38c0 [ 21.054920] ? raw_setsockopt+0xd0/0xd0 [ 21.058867] ? get_mem_cgroup_from_mm+0x49b/0x710 [ 21.063686] ? lock_page_memcg+0x3b0/0x3b0 [ 21.067894] ? __lock_is_held+0xbc/0x140 [ 21.071933] ? lru_cache_add+0x1c7/0x3a0 [ 21.075963] ? get_mem_cgroup_from_mm+0x710/0x710 [ 21.080774] ? lru_cache_add_file+0x20/0x20 [ 21.085086] ? lock_downgrade+0x990/0x990 [ 21.089211] ? __might_fault+0xe0/0x1d0 [ 21.093158] ? sock_has_perm+0x29c/0x400 [ 21.097192] ? selinux_tun_dev_create+0xc0/0xc0 [ 21.101830] ? lock_release+0xd70/0xd70 [ 21.105773] ? check_same_owner+0x320/0x320 [ 21.110067] ? __check_object_size+0x25d/0x4f0 [ 21.114626] inet_sendmsg+0x11f/0x5e0 [ 21.118396] ? __might_sleep+0x95/0x190 [ 21.122340] ? inet_recvmsg+0x5f0/0x5f0 [ 21.126287] ? selinux_socket_sendmsg+0x36/0x40 [ 21.130926] ? security_socket_sendmsg+0x89/0xb0 [ 21.135650] ? inet_recvmsg+0x5f0/0x5f0 [ 21.139596] sock_sendmsg+0xca/0x110 [ 21.143281] SYSC_sendto+0x358/0x5a0 [ 21.146968] ? SYSC_connect+0x480/0x480 [ 21.150909] ? find_held_lock+0x39/0x1d0 [ 21.154951] ? lock_downgrade+0x990/0x990 [ 21.159100] ? handle_mm_fault+0x410/0x8d0 [ 21.163302] ? down_read_trylock+0xdb/0x170 [ 21.167595] ? __do_page_fault+0x2b8/0xb60 [ 21.171803] ? __handle_mm_fault+0x39c0/0x39c0 [ 21.176355] ? vmacache_find+0x61/0x270 [ 21.180309] SyS_sendto+0x40/0x50 [ 21.183734] ? SyS_getpeername+0x30/0x30 [ 21.187767] do_fast_syscall_32+0x3f2/0xeed [ 21.192070] ? do_int80_syscall_32+0x930/0x930 [ 21.196622] ? kasan_check_read+0x11/0x20 [ 21.200743] ? syscall_return_slowpath+0x500/0x500 [ 21.205646] ? SyS_rt_sigaction+0x94/0x1b0 [ 21.209853] ? lockdep_sys_exit+0x47/0xf0 [ 21.213972] ? retint_user+0x18/0x20 [ 21.217663] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 21.222483] entry_SYSENTER_compat+0x51/0x60 [ 21.226861] RIP: 0023:0xf7f39c79 [ 21.230195] RSP: 002b:00000000ffeca5fc EFLAGS: 00000286 ORIG_RAX: 0000000000000171 [ 21.237874] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020fdbfc0 [ 21.245115] RDX: 0000000000000040 RSI: 0000000000000080 RDI: 0000000020fdbff0 [ 21.252356] RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000 [ 21.259595] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 21.266835] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 21.274091] [ 21.275687] The buggy address belongs to the page: [ 21.280583] page:ffffea0007395dc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 21.288696] flags: 0x200000000000000() [ 21.292554] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 21.300404] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 21.308250] page dumped because: kasan: bad access detected [ 21.313926] [ 21.315525] Memory state around the buggy address: [ 21.320422] ffff8801ce577800: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 [ 21.327750] ffff8801ce577880: f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 f2 [ 21.335083] >ffff8801ce577900: f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 [ 21.342410] ^ [ 21.348869] ffff8801ce577980: f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 f3 f3 f3 [ 21.356196] ffff8801ce577a00: f3 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 [ 21.363523] ================================================================== [ 21.370848] Disabling lock debugging due to kernel taint [ 21.376320] Kernel panic - not syncing: panic_on_warn set ... [ 21.376320] [ 21.383659] CPU: 1 PID: 2980 Comm: syzkaller628489 Tainted: G B 4.14.0-rc1+ #4 [ 21.392110] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.401435] Call Trace: [ 21.403989] dump_stack+0x194/0x257 [ 21.407585] ? arch_local_irq_restore+0x53/0x53 [ 21.412219] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.416943] ? xfrm_state_find+0x2fc0/0x3190 [ 21.421315] panic+0x1e4/0x417 [ 21.424473] ? __warn+0x1d9/0x1d9 [ 21.427901] ? xfrm_state_find+0x305b/0x3190 [ 21.432273] kasan_end_report+0x50/0x50 [ 21.436212] kasan_report+0x137/0x340 [ 21.439978] __asan_report_load4_noabort+0x14/0x20 [ 21.444872] xfrm_state_find+0x305b/0x3190 [ 21.449075] ? __save_stack_trace+0x61/0xd0 [ 21.453369] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 21.458437] ? copy_trace+0x1d0/0x1d0 [ 21.462208] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 21.467359] ? check_noncircular+0x20/0x20 [ 21.471561] ? lock_downgrade+0x990/0x990 [ 21.475678] ? find_held_lock+0x39/0x1d0 [ 21.479706] ? __lock_acquire+0x732/0x4620 [ 21.483904] ? find_held_lock+0x39/0x1d0 [ 21.487937] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 21.493093] ? depot_save_stack+0x1c2/0x490 [ 21.497383] ? do_raw_spin_trylock+0x190/0x190 [ 21.501933] ? check_noncircular+0x20/0x20 [ 21.506143] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 21.510350] ? __xfrm_decode_session+0x100/0x100 [ 21.515075] ? lock_downgrade+0x990/0x990 [ 21.519188] ? inet_sendmsg+0x11f/0x5e0 [ 21.523129] ? sock_sendmsg+0xca/0x110 [ 21.526979] ? SYSC_sendto+0x358/0x5a0 [ 21.530832] ? check_noncircular+0x20/0x20 [ 21.535034] ? rt_add_uncached_list+0xa2/0x240 [ 21.539579] ? check_noncircular+0x20/0x20 [ 21.543780] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 21.549206] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 21.553579] ? lock_downgrade+0x990/0x990 [ 21.557691] ? dst_init+0x4d9/0x6a0 [ 21.561285] ? xfrm_selector_match+0xe00/0xe00 [ 21.565831] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 21.570985] ? lock_release+0xd70/0xd70 [ 21.574925] ? refcount_inc_not_zero+0xfe/0x180 [ 21.579564] ? xfrm_selector_match+0x3b/0xe00 [ 21.584030] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 21.588751] ? xfrm_selector_match+0xe00/0xe00 [ 21.593299] ? check_noncircular+0x20/0x20 [ 21.597497] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 21.602914] xfrm_lookup+0xf0a/0x2540 [ 21.606677] ? xfrm_lookup+0xf0a/0x2540 [ 21.610615] ? ip_route_input_noref+0x1e0/0x1e0 [ 21.615251] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 21.621622] ? find_held_lock+0x39/0x1d0 [ 21.626057] ? lock_downgrade+0x990/0x990 [ 21.630173] ? ip_route_output_key_hash+0x1a6/0x370 [ 21.635158] ? lock_release+0xd70/0xd70 [ 21.639104] ? kasan_check_write+0x14/0x20 [ 21.643304] ? ip_route_output_key_hash+0x252/0x370 [ 21.648284] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 21.653790] xfrm_lookup_route+0x39/0x1a0 [ 21.657904] ip_route_output_flow+0x7c/0xa0 [ 21.662191] raw_sendmsg+0xc4f/0x38c0 [ 21.665967] ? raw_setsockopt+0xd0/0xd0 [ 21.669907] ? get_mem_cgroup_from_mm+0x49b/0x710 [ 21.674716] ? lock_page_memcg+0x3b0/0x3b0 [ 21.678915] ? __lock_is_held+0xbc/0x140 [ 21.682946] ? lru_cache_add+0x1c7/0x3a0 [ 21.686974] ? get_mem_cgroup_from_mm+0x710/0x710 [ 21.691781] ? lru_cache_add_file+0x20/0x20 [ 21.696078] ? lock_downgrade+0x990/0x990 [ 21.700204] ? __might_fault+0xe0/0x1d0 [ 21.704144] ? sock_has_perm+0x29c/0x400 [ 21.708172] ? selinux_tun_dev_create+0xc0/0xc0 [ 21.712806] ? lock_release+0xd70/0xd70 [ 21.716745] ? check_same_owner+0x320/0x320 [ 21.721034] ? __check_object_size+0x25d/0x4f0 [ 21.725585] inet_sendmsg+0x11f/0x5e0 [ 21.729353] ? __might_sleep+0x95/0x190 [ 21.733291] ? inet_recvmsg+0x5f0/0x5f0 [ 21.737232] ? selinux_socket_sendmsg+0x36/0x40 [ 21.741864] ? security_socket_sendmsg+0x89/0xb0 [ 21.746589] ? inet_recvmsg+0x5f0/0x5f0 [ 21.750531] sock_sendmsg+0xca/0x110