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.25' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 33.582801] ================================================================== [ 33.590195] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 33.597352] Read of size 4 at addr ffff8801ce687960 by task syzkaller587655/2981 [ 33.604850] [ 33.606451] CPU: 0 PID: 2981 Comm: syzkaller587655 Not tainted 4.14.0-rc1+ #6 [ 33.613691] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.623018] Call Trace: [ 33.625576] dump_stack+0x194/0x257 [ 33.629179] ? arch_local_irq_restore+0x53/0x53 [ 33.633817] ? show_regs_print_info+0x65/0x65 [ 33.638288] ? lock_release+0xd70/0xd70 [ 33.642232] ? xfrm_state_find+0x305b/0x3190 [ 33.646611] print_address_description+0x73/0x250 [ 33.651422] ? xfrm_state_find+0x305b/0x3190 [ 33.655800] kasan_report+0x24e/0x340 [ 33.659573] __asan_report_load4_noabort+0x14/0x20 [ 33.664473] xfrm_state_find+0x305b/0x3190 [ 33.668678] ? __save_stack_trace+0x61/0xd0 [ 33.672989] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 33.678066] ? copy_trace+0x1d0/0x1d0 [ 33.681859] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.687017] ? check_noncircular+0x20/0x20 [ 33.691223] ? lock_downgrade+0x990/0x990 [ 33.695365] ? find_held_lock+0x39/0x1d0 [ 33.699407] ? __lock_acquire+0x732/0x4620 [ 33.703610] ? find_held_lock+0x39/0x1d0 [ 33.707658] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.712829] ? depot_save_stack+0x1c2/0x490 [ 33.717152] ? do_raw_spin_trylock+0x190/0x190 [ 33.721711] ? check_noncircular+0x20/0x20 [ 33.725926] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 33.730149] ? __xfrm_decode_session+0x100/0x100 [ 33.734882] ? lock_downgrade+0x990/0x990 [ 33.738997] ? inet_sendmsg+0x11f/0x5e0 [ 33.742943] ? sock_sendmsg+0xca/0x110 [ 33.746928] ? SYSC_sendto+0x358/0x5a0 [ 33.750790] ? check_noncircular+0x20/0x20 [ 33.754996] ? rt_add_uncached_list+0xa2/0x240 [ 33.759549] ? check_noncircular+0x20/0x20 [ 33.763761] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 33.769181] ? kmem_cache_alloc+0x4a2/0x760 [ 33.773491] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 33.777870] ? lock_downgrade+0x990/0x990 [ 33.781986] ? dst_init+0x4d9/0x6a0 [ 33.785590] ? xfrm_selector_match+0xe00/0xe00 [ 33.790149] ? lock_release+0xd70/0xd70 [ 33.794097] ? refcount_inc_not_zero+0xfe/0x180 [ 33.798740] ? xfrm_selector_match+0x3b/0xe00 [ 33.803210] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 33.807941] ? xfrm_selector_match+0xe00/0xe00 [ 33.812496] ? check_noncircular+0x20/0x20 [ 33.816699] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 33.822123] xfrm_lookup+0xf0a/0x2540 [ 33.825892] ? xfrm_lookup+0xf0a/0x2540 [ 33.829840] ? ip_route_input_noref+0x1e0/0x1e0 [ 33.834486] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 33.840866] ? find_held_lock+0x39/0x1d0 [ 33.844908] ? lock_downgrade+0x990/0x990 [ 33.849033] ? ip_route_output_key_hash+0x1a6/0x370 [ 33.854026] ? lock_release+0xd70/0xd70 [ 33.857985] ? kasan_check_write+0x14/0x20 [ 33.862192] ? ip_route_output_key_hash+0x252/0x370 [ 33.867181] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 33.872699] xfrm_lookup_route+0x39/0x1a0 [ 33.876822] ip_route_output_flow+0x7c/0xa0 [ 33.881119] raw_sendmsg+0xc4f/0x38c0 [ 33.884907] ? raw_setsockopt+0xd0/0xd0 [ 33.888849] ? get_mem_cgroup_from_mm+0x49b/0x710 [ 33.893669] ? lock_page_memcg+0x3b0/0x3b0 [ 33.897876] ? __lock_is_held+0xbc/0x140 [ 33.901916] ? lru_cache_add+0x1c7/0x3a0 [ 33.905946] ? get_mem_cgroup_from_mm+0x710/0x710 [ 33.910761] ? lru_cache_add_file+0x20/0x20 [ 33.915073] ? lock_downgrade+0x990/0x990 [ 33.919198] ? __might_fault+0xe0/0x1d0 [ 33.923145] ? sock_has_perm+0x29c/0x400 [ 33.927178] ? selinux_tun_dev_create+0xc0/0xc0 [ 33.931815] ? lock_release+0xd70/0xd70 [ 33.935758] ? check_same_owner+0x320/0x320 [ 33.940050] ? __check_object_size+0x25d/0x4f0 [ 33.944608] inet_sendmsg+0x11f/0x5e0 [ 33.948378] ? __might_sleep+0x95/0x190 [ 33.952323] ? inet_recvmsg+0x5f0/0x5f0 [ 33.956273] ? selinux_socket_sendmsg+0x36/0x40 [ 33.960913] ? security_socket_sendmsg+0x89/0xb0 [ 33.965638] ? inet_recvmsg+0x5f0/0x5f0 [ 33.969585] sock_sendmsg+0xca/0x110 [ 33.973270] SYSC_sendto+0x358/0x5a0 [ 33.976959] ? SYSC_connect+0x480/0x480 [ 33.980899] ? find_held_lock+0x39/0x1d0 [ 33.984938] ? lock_downgrade+0x990/0x990 [ 33.989078] ? handle_mm_fault+0x410/0x8d0 [ 33.993281] ? down_read_trylock+0xdb/0x170 [ 33.997571] ? __do_page_fault+0x2b8/0xb60 [ 34.001776] ? __handle_mm_fault+0x39c0/0x39c0 [ 34.006327] ? vmacache_find+0x61/0x270 [ 34.010305] SyS_sendto+0x40/0x50 [ 34.013731] ? SyS_getpeername+0x30/0x30 [ 34.017764] do_fast_syscall_32+0x3f2/0xeed [ 34.022064] ? do_int80_syscall_32+0x930/0x930 [ 34.026620] ? kasan_check_read+0x11/0x20 [ 34.030741] ? syscall_return_slowpath+0x500/0x500 [ 34.035642] ? SyS_rt_sigaction+0x94/0x1b0 [ 34.039848] ? lockdep_sys_exit+0x47/0xf0 [ 34.043966] ? retint_user+0x18/0x20 [ 34.047654] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.052477] entry_SYSENTER_compat+0x51/0x60 [ 34.056855] RIP: 0023:0xf7fa2c79 [ 34.060188] RSP: 002b:00000000ff9b347c EFLAGS: 00000282 ORIG_RAX: 0000000000000171 [ 34.067868] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020fdbfc0 [ 34.075109] RDX: 0000000000000040 RSI: 0000000000000080 RDI: 0000000020fdbff0 [ 34.082350] RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000 [ 34.089589] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 34.096830] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 34.104087] [ 34.105686] The buggy address belongs to the page: [ 34.110585] page:ffffea000739a1c0 count:0 mapcount:0 mapping: (null) index:0x0 [ 34.118697] flags: 0x200000000000000() [ 34.122553] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 34.130406] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 34.138260] page dumped because: kasan: bad access detected [ 34.143939] [ 34.145533] Memory state around the buggy address: [ 34.150429] ffff8801ce687800: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 [ 34.157756] ffff8801ce687880: f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 f2 [ 34.165082] >ffff8801ce687900: f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 [ 34.172410] ^ [ 34.178869] ffff8801ce687980: f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 f3 f3 f3 [ 34.186197] ffff8801ce687a00: f3 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 [ 34.193521] ================================================================== [ 34.200849] Disabling lock debugging due to kernel taint [ 34.206307] Kernel panic - not syncing: panic_on_warn set ... [ 34.206307] [ 34.213636] CPU: 0 PID: 2981 Comm: syzkaller587655 Tainted: G B 4.14.0-rc1+ #6 [ 34.222086] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.231405] Call Trace: [ 34.233961] dump_stack+0x194/0x257 [ 34.237552] ? arch_local_irq_restore+0x53/0x53 [ 34.242185] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.246906] ? xfrm_state_find+0x2fc0/0x3190 [ 34.251287] panic+0x1e4/0x417 [ 34.254448] ? __warn+0x1d9/0x1d9 [ 34.257873] ? xfrm_state_find+0x305b/0x3190 [ 34.262244] kasan_end_report+0x50/0x50 [ 34.266180] kasan_report+0x137/0x340 [ 34.269947] __asan_report_load4_noabort+0x14/0x20 [ 34.274839] xfrm_state_find+0x305b/0x3190 [ 34.279037] ? __save_stack_trace+0x61/0xd0 [ 34.283332] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 34.288405] ? copy_trace+0x1d0/0x1d0 [ 34.292172] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.297327] ? check_noncircular+0x20/0x20 [ 34.301527] ? lock_downgrade+0x990/0x990 [ 34.305641] ? find_held_lock+0x39/0x1d0 [ 34.309670] ? __lock_acquire+0x732/0x4620 [ 34.313868] ? find_held_lock+0x39/0x1d0 [ 34.317905] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.323060] ? depot_save_stack+0x1c2/0x490 [ 34.327350] ? do_raw_spin_trylock+0x190/0x190 [ 34.331896] ? check_noncircular+0x20/0x20 [ 34.336107] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 34.340316] ? __xfrm_decode_session+0x100/0x100 [ 34.345037] ? lock_downgrade+0x990/0x990 [ 34.349148] ? inet_sendmsg+0x11f/0x5e0 [ 34.353088] ? sock_sendmsg+0xca/0x110 [ 34.356937] ? SYSC_sendto+0x358/0x5a0 [ 34.360789] ? check_noncircular+0x20/0x20 [ 34.364986] ? rt_add_uncached_list+0xa2/0x240 [ 34.369530] ? check_noncircular+0x20/0x20 [ 34.373730] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 34.379146] ? kmem_cache_alloc+0x4a2/0x760 [ 34.383440] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 34.387811] ? lock_downgrade+0x990/0x990 [ 34.391920] ? dst_init+0x4d9/0x6a0 [ 34.395512] ? xfrm_selector_match+0xe00/0xe00 [ 34.400059] ? lock_release+0xd70/0xd70 [ 34.404001] ? refcount_inc_not_zero+0xfe/0x180 [ 34.408635] ? xfrm_selector_match+0x3b/0xe00 [ 34.413095] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 34.417816] ? xfrm_selector_match+0xe00/0xe00 [ 34.422362] ? check_noncircular+0x20/0x20 [ 34.426560] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 34.431993] xfrm_lookup+0xf0a/0x2540 [ 34.435755] ? xfrm_lookup+0xf0a/0x2540 [ 34.439693] ? ip_route_input_noref+0x1e0/0x1e0 [ 34.444330] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 34.450701] ? find_held_lock+0x39/0x1d0 [ 34.454730] ? lock_downgrade+0x990/0x990 [ 34.458844] ? ip_route_output_key_hash+0x1a6/0x370 [ 34.463825] ? lock_release+0xd70/0xd70 [ 34.467769] ? kasan_check_write+0x14/0x20 [ 34.471971] ? ip_route_output_key_hash+0x252/0x370 [ 34.476952] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 34.482460] xfrm_lookup_route+0x39/0x1a0 [ 34.486579] ip_route_output_flow+0x7c/0xa0 [ 34.490866] raw_sendmsg+0xc4f/0x38c0 [ 34.494637] ? raw_setsockopt+0xd0/0xd0 [ 34.498577] ? get_mem_cgroup_from_mm+0x49b/0x710 [ 34.503384] ? lock_page_memcg+0x3b0/0x3b0 [ 34.507585] ? __lock_is_held+0xbc/0x140 [ 34.511613] ? lru_cache_add+0x1c7/0x3a0 [ 34.515637] ? get_mem_cgroup_from_mm+0x710/0x710 [ 34.520445] ? lru_cache_add_file+0x20/0x20 [ 34.524743] ? lock_downgrade+0x990/0x990 [ 34.528860] ? __might_fault+0xe0/0x1d0 [ 34.532801] ? sock_has_perm+0x29c/0x400 [ 34.536829] ? selinux_tun_dev_create+0xc0/0xc0 [ 34.541462] ? lock_release+0xd70/0xd70 [ 34.545400] ? check_same_owner+0x320/0x320 [ 34.549687] ? __check_object_size+0x25d/0x4f0 [ 34.554244] inet_sendmsg+0x11f/0x5e0 [ 34.558012] ? __might_sleep+0x95/0x190 [ 34.561951] ? inet_recvmsg+0x5f0/0x5f0 [ 34.565893] ? selinux_socket_sendmsg+0x36/0x40 [ 34.570524] ? security_socket_sendmsg+0x89/0xb0 [ 34.575245] ? inet_recvmsg+0x5f0/0x5f0 [ 34.579184] sock_sendmsg+0xca/0x110 [ 34.582865] SYSC_sendto+0x358/0x5a0