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-3,10.128.15.235' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 30.492118] ================================================================== [ 30.499521] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 30.506675] Read of size 4 at addr ffff8801d59bf960 by task syzkaller652617/2981 [ 30.514171] [ 30.515772] CPU: 1 PID: 2981 Comm: syzkaller652617 Not tainted 4.14.0-rc2+ #16 [ 30.523096] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.532416] Call Trace: [ 30.534974] dump_stack+0x194/0x257 [ 30.538573] ? arch_local_irq_restore+0x53/0x53 [ 30.543211] ? show_regs_print_info+0x65/0x65 [ 30.547682] ? lock_release+0xd70/0xd70 [ 30.551626] ? xfrm_state_find+0x305b/0x3190 [ 30.556006] print_address_description+0x73/0x250 [ 30.560819] ? xfrm_state_find+0x305b/0x3190 [ 30.565197] kasan_report+0x25b/0x340 [ 30.568971] __asan_report_load4_noabort+0x14/0x20 [ 30.573871] xfrm_state_find+0x305b/0x3190 [ 30.578098] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 30.583175] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 30.589030] ? is_bpf_text_address+0x7b/0x120 [ 30.593492] ? lock_downgrade+0x990/0x990 [ 30.597609] ? show_initstate+0xb0/0xb0 [ 30.601556] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 30.606544] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 30.611529] ? unwind_dump+0x4c0/0x4c0 [ 30.615386] ? unwind_dump+0x4c0/0x4c0 [ 30.619247] ? __lock_acquire+0x732/0x4620 [ 30.623461] ? __lock_acquire+0x732/0x4620 [ 30.627671] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 30.632840] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 30.638002] ? check_noncircular+0x20/0x20 [ 30.642204] ? check_noncircular+0x20/0x20 [ 30.646410] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 30.651400] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 30.655620] ? __xfrm_decode_session+0x100/0x100 [ 30.660350] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.665336] ? fib_table_lookup+0xa07/0x1a30 [ 30.669718] ? check_noncircular+0x20/0x20 [ 30.673933] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 30.679350] ? __unwind_start+0x169/0x330 [ 30.683485] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 30.687865] ? lock_downgrade+0x990/0x990 [ 30.691989] ? xfrm_selector_match+0xe00/0xe00 [ 30.696539] ? rcu_read_lock_held+0xa9/0xc0 [ 30.700830] ? find_exception+0x3aa/0x520 [ 30.704948] ? lock_release+0xd70/0xd70 [ 30.708899] ? refcount_inc_not_zero+0xfe/0x180 [ 30.713543] ? xfrm_selector_match+0x3b/0xe00 [ 30.718013] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 30.722743] ? xfrm_selector_match+0xe00/0xe00 [ 30.727297] ? check_noncircular+0x20/0x20 [ 30.731500] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 30.736924] xfrm_lookup+0xf0a/0x2540 [ 30.740693] ? xfrm_lookup+0xf0a/0x2540 [ 30.744638] ? ip_route_input_noref+0x1e0/0x1e0 [ 30.749282] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 30.755659] ? find_held_lock+0x39/0x1d0 [ 30.759701] ? lock_downgrade+0x990/0x990 [ 30.763828] ? ip_route_output_key_hash+0x1a6/0x370 [ 30.768814] ? find_held_lock+0x39/0x1d0 [ 30.772851] ? lock_release+0xd70/0xd70 [ 30.776804] ? lock_downgrade+0x990/0x990 [ 30.780933] ? ip_route_output_key_hash+0x252/0x370 [ 30.785924] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 30.791431] ? lock_release+0xd70/0xd70 [ 30.795383] xfrm_lookup_route+0x39/0x1a0 [ 30.799505] ip_route_output_flow+0x7c/0xa0 [ 30.803804] raw_sendmsg+0xc4f/0x38c0 [ 30.807586] ? _raw_spin_trylock_bh+0x50/0x70 [ 30.812062] ? raw_setsockopt+0xd0/0xd0 [ 30.816005] ? ns_capable_common+0xcf/0x160 [ 30.820303] ? do_ip_setsockopt.isra.12+0x2a9/0x31f0 [ 30.825390] ? __thp_get_unmapped_area+0x130/0x130 [ 30.830293] ? lock_downgrade+0x990/0x990 [ 30.834434] ? lock_downgrade+0x990/0x990 [ 30.838562] ? __might_fault+0xe0/0x1d0 [ 30.842508] ? sock_has_perm+0x29c/0x400 [ 30.846544] ? selinux_tun_dev_create+0xc0/0xc0 [ 30.851184] ? lock_release+0xd70/0xd70 [ 30.855129] ? check_same_owner+0x320/0x320 [ 30.859421] ? __check_object_size+0x25d/0x4f0 [ 30.863979] inet_sendmsg+0x11f/0x5e0 [ 30.867750] ? __might_sleep+0x95/0x190 [ 30.871693] ? inet_recvmsg+0x5f0/0x5f0 [ 30.875638] ? selinux_socket_sendmsg+0x36/0x40 [ 30.880279] ? security_socket_sendmsg+0x89/0xb0 [ 30.885005] ? inet_recvmsg+0x5f0/0x5f0 [ 30.888954] sock_sendmsg+0xca/0x110 [ 30.892639] SYSC_sendto+0x358/0x5a0 [ 30.896329] ? SYSC_connect+0x480/0x480 [ 30.900270] ? find_held_lock+0x39/0x1d0 [ 30.904301] ? sock_has_perm+0x29c/0x400 [ 30.908339] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 30.914039] ? compat_raw_setsockopt+0x90/0xd0 [ 30.918594] ? compat_sock_common_setsockopt+0xb9/0x140 [ 30.923926] ? raw_seticmpfilter+0x70/0x70 [ 30.928132] ? fput+0xd2/0x140 [ 30.931297] ? compat_SyS_setsockopt+0x200/0x410 [ 30.936019] ? sock_common_setsockopt+0xd0/0xd0 [ 30.940661] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 30.945391] SyS_sendto+0x40/0x50 [ 30.948815] ? SyS_getpeername+0x30/0x30 [ 30.952847] do_fast_syscall_32+0x3f2/0xf05 [ 30.957144] ? do_int80_syscall_32+0x940/0x940 [ 30.961694] ? kasan_check_read+0x11/0x20 [ 30.965813] ? syscall_return_slowpath+0x510/0x510 [ 30.970712] ? SyS_rt_sigaction+0x94/0x1b0 [ 30.974924] ? sysret32_from_system_call+0x5/0x3b [ 30.979744] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.984564] entry_SYSENTER_compat+0x51/0x60 [ 30.988940] RIP: 0023:0xf7fd3c79 [ 30.992271] RSP: 002b:00000000fffeb0ec EFLAGS: 00000282 ORIG_RAX: 0000000000000171 [ 30.999950] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000002089b000 [ 31.007189] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000002000e000 [ 31.014427] RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000 [ 31.021665] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 31.028910] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 31.036167] [ 31.037768] The buggy address belongs to the page: [ 31.042665] page:ffffea0007566fc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 31.050781] flags: 0x200000000000000() [ 31.054638] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 31.062488] raw: 0000000000000000 ffffea0007566fe0 0000000000000000 0000000000000000 [ 31.070346] page dumped because: kasan: bad access detected [ 31.076021] [ 31.077616] Memory state around the buggy address: [ 31.082510] ffff8801d59bf800: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 [ 31.089838] ffff8801d59bf880: f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 f2 [ 31.097165] >ffff8801d59bf900: f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 [ 31.104493] ^ [ 31.110949] ffff8801d59bf980: f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 f3 f3 f3 [ 31.118274] ffff8801d59bfa00: f3 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 [ 31.125598] ================================================================== [ 31.132922] Disabling lock debugging due to kernel taint [ 31.138391] Kernel panic - not syncing: panic_on_warn set ... [ 31.138391] [ 31.145723] CPU: 1 PID: 2981 Comm: syzkaller652617 Tainted: G B 4.14.0-rc2+ #16 [ 31.154261] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.163578] Call Trace: [ 31.166131] dump_stack+0x194/0x257 [ 31.169723] ? arch_local_irq_restore+0x53/0x53 [ 31.174357] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.179080] ? xfrm_state_find+0x2fc0/0x3190 [ 31.183455] panic+0x1e4/0x417 [ 31.186611] ? __warn+0x1d9/0x1d9 [ 31.190037] ? xfrm_state_find+0x305b/0x3190 [ 31.194407] kasan_end_report+0x50/0x50 [ 31.198344] kasan_report+0x144/0x340 [ 31.202109] __asan_report_load4_noabort+0x14/0x20 [ 31.207002] xfrm_state_find+0x305b/0x3190 [ 31.211218] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 31.216288] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 31.222134] ? is_bpf_text_address+0x7b/0x120 [ 31.226591] ? lock_downgrade+0x990/0x990 [ 31.230702] ? show_initstate+0xb0/0xb0 [ 31.234643] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 31.239624] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 31.244613] ? unwind_dump+0x4c0/0x4c0 [ 31.248466] ? unwind_dump+0x4c0/0x4c0 [ 31.252319] ? __lock_acquire+0x732/0x4620 [ 31.256519] ? __lock_acquire+0x732/0x4620 [ 31.260721] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.265878] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.271032] ? check_noncircular+0x20/0x20 [ 31.275232] ? check_noncircular+0x20/0x20 [ 31.279431] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 31.284414] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 31.288622] ? __xfrm_decode_session+0x100/0x100 [ 31.293343] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.298323] ? fib_table_lookup+0xa07/0x1a30 [ 31.302699] ? check_noncircular+0x20/0x20 [ 31.306904] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 31.312316] ? __unwind_start+0x169/0x330 [ 31.316436] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 31.320809] ? lock_downgrade+0x990/0x990 [ 31.324926] ? xfrm_selector_match+0xe00/0xe00 [ 31.329474] ? rcu_read_lock_held+0xa9/0xc0 [ 31.333758] ? find_exception+0x3aa/0x520 [ 31.337872] ? lock_release+0xd70/0xd70 [ 31.341813] ? refcount_inc_not_zero+0xfe/0x180 [ 31.346450] ? xfrm_selector_match+0x3b/0xe00 [ 31.350914] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 31.355635] ? xfrm_selector_match+0xe00/0xe00 [ 31.360180] ? check_noncircular+0x20/0x20 [ 31.364377] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 31.369796] xfrm_lookup+0xf0a/0x2540 [ 31.373561] ? xfrm_lookup+0xf0a/0x2540 [ 31.377503] ? ip_route_input_noref+0x1e0/0x1e0 [ 31.382138] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 31.388506] ? find_held_lock+0x39/0x1d0 [ 31.392536] ? lock_downgrade+0x990/0x990 [ 31.396650] ? ip_route_output_key_hash+0x1a6/0x370 [ 31.401631] ? find_held_lock+0x39/0x1d0 [ 31.405656] ? lock_release+0xd70/0xd70 [ 31.409595] ? lock_downgrade+0x990/0x990 [ 31.413710] ? ip_route_output_key_hash+0x252/0x370 [ 31.418689] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 31.424190] ? lock_release+0xd70/0xd70 [ 31.428133] xfrm_lookup_route+0x39/0x1a0 [ 31.432244] ip_route_output_flow+0x7c/0xa0 [ 31.436532] raw_sendmsg+0xc4f/0x38c0 [ 31.440299] ? _raw_spin_trylock_bh+0x50/0x70 [ 31.444764] ? raw_setsockopt+0xd0/0xd0 [ 31.448705] ? ns_capable_common+0xcf/0x160 [ 31.452991] ? do_ip_setsockopt.isra.12+0x2a9/0x31f0 [ 31.458061] ? __thp_get_unmapped_area+0x130/0x130 [ 31.462958] ? lock_downgrade+0x990/0x990 [ 31.467079] ? lock_downgrade+0x990/0x990 [ 31.471195] ? __might_fault+0xe0/0x1d0 [ 31.475136] ? sock_has_perm+0x29c/0x400 [ 31.479161] ? selinux_tun_dev_create+0xc0/0xc0 [ 31.483792] ? lock_release+0xd70/0xd70 [ 31.487731] ? check_same_owner+0x320/0x320