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-0,10.128.0.10' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 42.876007] ================================================================== [ 42.877065] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 42.878023] Read of size 4 at addr ffff8801ce0a7960 by task syzkaller285079/2984 [ 42.879010] [ 42.879244] CPU: 0 PID: 2984 Comm: syzkaller285079 Not tainted 4.14.0-rc3+ #23 [ 42.880213] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.881490] Call Trace: [ 42.881857] dump_stack+0x194/0x257 [ 42.882352] ? arch_local_irq_restore+0x53/0x53 [ 42.882979] ? show_regs_print_info+0x65/0x65 [ 42.883586] ? lock_release+0xd70/0xd70 [ 42.884125] ? xfrm_state_find+0x305b/0x3190 [ 42.884719] print_address_description+0x73/0x250 [ 42.885378] ? xfrm_state_find+0x305b/0x3190 [ 42.886000] kasan_report+0x25b/0x340 [ 42.886518] __asan_report_load4_noabort+0x14/0x20 [ 42.887176] xfrm_state_find+0x305b/0x3190 [ 42.887751] ? __save_stack_trace+0x61/0xd0 [ 42.888385] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 42.889070] ? copy_trace+0x1d0/0x1d0 [ 42.889592] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.890315] ? check_noncircular+0x20/0x20 [ 42.890882] ? lock_downgrade+0x990/0x990 [ 42.891451] ? find_held_lock+0x39/0x1d0 [ 42.892039] ? __lock_acquire+0x732/0x4620 [ 42.892607] ? find_held_lock+0x39/0x1d0 [ 42.893176] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.893870] ? depot_save_stack+0x1c2/0x490 [ 42.894461] ? do_raw_spin_trylock+0x190/0x190 [ 42.895077] ? check_noncircular+0x20/0x20 [ 42.895649] ? kernel_text_address+0x102/0x140 [ 42.897121] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 42.901341] ? __xfrm_decode_session+0x100/0x100 [ 42.906077] ? lock_downgrade+0x990/0x990 [ 42.910194] ? inet_sendmsg+0x11f/0x5e0 [ 42.914137] ? sock_sendmsg+0xca/0x110 [ 42.917992] ? SYSC_sendto+0x358/0x5a0 [ 42.921855] ? check_noncircular+0x20/0x20 [ 42.926060] ? rt_add_uncached_list+0xa2/0x240 [ 42.930614] ? check_noncircular+0x20/0x20 [ 42.934823] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 42.939815] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 42.945235] ? unwind_dump+0x4c0/0x4c0 [ 42.949090] ? SYSC_sendto+0x358/0x5a0 [ 42.952968] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 42.957348] ? lock_downgrade+0x990/0x990 [ 42.961469] ? dst_init+0x4d9/0x6a0 [ 42.965089] ? xfrm_selector_match+0xe00/0xe00 [ 42.969641] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.974803] ? __lock_acquire+0x20fd/0x4620 [ 42.979098] ? lock_release+0xd70/0xd70 [ 42.983049] ? refcount_inc_not_zero+0xfe/0x180 [ 42.987695] ? xfrm_selector_match+0x3b/0xe00 [ 42.992167] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 42.996898] ? xfrm_selector_match+0xe00/0xe00 [ 43.001451] ? check_noncircular+0x20/0x20 [ 43.005653] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 43.011076] xfrm_lookup+0xf0a/0x2540 [ 43.014849] ? xfrm_lookup+0xf0a/0x2540 [ 43.018795] ? ip_route_input_noref+0x1e0/0x1e0 [ 43.023438] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 43.029814] ? find_held_lock+0x39/0x1d0 [ 43.033858] ? lock_downgrade+0x990/0x990 [ 43.037977] ? check_noncircular+0x20/0x20 [ 43.042187] ? ip_route_output_key_hash+0x1a6/0x370 [ 43.047170] ? find_held_lock+0x39/0x1d0 [ 43.051204] ? lock_release+0xd70/0xd70 [ 43.055151] ? lock_downgrade+0x990/0x990 [ 43.059283] ? ip_route_output_key_hash+0x252/0x370 [ 43.064270] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 43.069775] ? lock_release+0xd70/0xd70 [ 43.073730] xfrm_lookup_route+0x39/0x1a0 [ 43.077854] ip_route_output_flow+0x7c/0xa0 [ 43.082147] udp_sendmsg+0x19b8/0x2cd0 [ 43.086009] ? ip_reply_glue_bits+0xb0/0xb0 [ 43.090312] ? udp_lib_get_port+0x1c00/0x1c00 [ 43.094781] ? ip4_datagram_connect+0x50/0x50 [ 43.099252] ? do_raw_spin_trylock+0x190/0x190 [ 43.103806] ? lock_acquire+0x1d5/0x580 [ 43.107753] ? inet_autobind+0x1f/0x180 [ 43.111699] ? __local_bh_enable_ip+0x9d/0x160 [ 43.116258] ? release_sock+0x1d4/0x2a0 [ 43.120201] ? trace_hardirqs_on+0xd/0x10 [ 43.124322] ? release_sock+0x1d4/0x2a0 [ 43.128267] ? __release_sock+0x360/0x360 [ 43.132389] ? udp_v4_get_port+0x132/0x180 [ 43.136603] inet_sendmsg+0x11f/0x5e0 [ 43.140372] ? __might_sleep+0x95/0x190 [ 43.144316] ? inet_recvmsg+0x5f0/0x5f0 [ 43.148264] ? selinux_socket_sendmsg+0x36/0x40 [ 43.152904] ? security_socket_sendmsg+0x89/0xb0 [ 43.157629] ? inet_recvmsg+0x5f0/0x5f0 [ 43.161577] sock_sendmsg+0xca/0x110 [ 43.165264] SYSC_sendto+0x358/0x5a0 [ 43.168951] ? SYSC_connect+0x480/0x480 [ 43.173014] ? __handle_mm_fault+0x39c0/0x39c0 [ 43.177564] ? vmacache_find+0x5f/0x280 [ 43.181515] ? up_read+0x1a/0x40 [ 43.184856] ? __do_page_fault+0x3d6/0xd60 [ 43.189070] SyS_sendto+0x40/0x50 [ 43.192493] ? SyS_getpeername+0x30/0x30 [ 43.196525] do_fast_syscall_32+0x3f2/0xf05 [ 43.200823] ? do_int80_syscall_32+0x940/0x940 [ 43.205378] ? kasan_check_read+0x11/0x20 [ 43.209496] ? syscall_return_slowpath+0x510/0x510 [ 43.214396] ? SyS_rt_sigaction+0x94/0x1b0 [ 43.218605] ? lockdep_sys_exit+0x47/0xf0 [ 43.222723] ? retint_user+0x18/0x20 [ 43.226412] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.231230] entry_SYSENTER_compat+0x51/0x60 [ 43.235612] RIP: 0023:0xf7fdcc79 [ 43.238946] RSP: 002b:00000000ffcc41dc EFLAGS: 00000282 ORIG_RAX: 0000000000000171 [ 43.246626] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000002010affe [ 43.254128] RDX: 0000000000000000 RSI: 000000002004487c RDI: 00000000202f9000 [ 43.261368] RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000 [ 43.268606] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 43.275846] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 43.283103] [ 43.284701] The buggy address belongs to the page: [ 43.289598] page:ffffea00073829c0 count:0 mapcount:0 mapping: (null) index:0x0 [ 43.297712] flags: 0x200000000000000() [ 43.301568] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 43.309416] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 43.317260] page dumped because: kasan: bad access detected [ 43.322935] [ 43.324531] Memory state around the buggy address: [ 43.329427] ffff8801ce0a7800: 00 f1 f1 f1 f1 04 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 [ 43.336752] ffff8801ce0a7880: f2 f2 f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 00 00 [ 43.344078] >ffff8801ce0a7900: 00 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 [ 43.351403] ^ [ 43.357863] ffff8801ce0a7980: f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 f3 f3 f3 [ 43.365188] ffff8801ce0a7a00: f3 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 [ 43.372515] ================================================================== [ 43.379840] Disabling lock debugging due to kernel taint [ 43.385301] Kernel panic - not syncing: panic_on_warn set ... [ 43.385301] [ 43.392628] CPU: 0 PID: 2984 Comm: syzkaller285079 Tainted: G B 4.14.0-rc3+ #23 [ 43.401166] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.410482] Call Trace: [ 43.413037] dump_stack+0x194/0x257 [ 43.416629] ? arch_local_irq_restore+0x53/0x53 [ 43.421262] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.425985] ? xfrm_state_find+0x2fc0/0x3190 [ 43.430357] panic+0x1e4/0x417 [ 43.433514] ? __warn+0x1d9/0x1d9 [ 43.436936] ? xfrm_state_find+0x305b/0x3190 [ 43.441307] kasan_end_report+0x50/0x50 [ 43.445245] kasan_report+0x144/0x340 [ 43.449015] __asan_report_load4_noabort+0x14/0x20 [ 43.453907] xfrm_state_find+0x305b/0x3190 [ 43.458116] ? __save_stack_trace+0x61/0xd0 [ 43.462409] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 43.467477] ? copy_trace+0x1d0/0x1d0 [ 43.471246] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.476397] ? check_noncircular+0x20/0x20 [ 43.480597] ? lock_downgrade+0x990/0x990 [ 43.484714] ? find_held_lock+0x39/0x1d0 [ 43.488745] ? __lock_acquire+0x732/0x4620 [ 43.492941] ? find_held_lock+0x39/0x1d0 [ 43.496973] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.502131] ? depot_save_stack+0x1c2/0x490 [ 43.506420] ? do_raw_spin_trylock+0x190/0x190 [ 43.510965] ? check_noncircular+0x20/0x20 [ 43.515164] ? kernel_text_address+0x102/0x140 [ 43.519714] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 43.523921] ? __xfrm_decode_session+0x100/0x100 [ 43.528646] ? lock_downgrade+0x990/0x990 [ 43.532760] ? inet_sendmsg+0x11f/0x5e0 [ 43.536698] ? sock_sendmsg+0xca/0x110 [ 43.540549] ? SYSC_sendto+0x358/0x5a0 [ 43.544402] ? check_noncircular+0x20/0x20 [ 43.548600] ? rt_add_uncached_list+0xa2/0x240 [ 43.553143] ? check_noncircular+0x20/0x20 [ 43.557340] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 43.562322] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 43.567736] ? unwind_dump+0x4c0/0x4c0 [ 43.571585] ? SYSC_sendto+0x358/0x5a0 [ 43.575442] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 43.579818] ? lock_downgrade+0x990/0x990 [ 43.583931] ? dst_init+0x4d9/0x6a0 [ 43.587526] ? xfrm_selector_match+0xe00/0xe00 [ 43.592069] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.597224] ? __lock_acquire+0x20fd/0x4620 [ 43.601510] ? lock_release+0xd70/0xd70 [ 43.605447] ? refcount_inc_not_zero+0xfe/0x180 [ 43.610084] ? xfrm_selector_match+0x3b/0xe00 [ 43.614542] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 43.619262] ? xfrm_selector_match+0xe00/0xe00 [ 43.623806] ? check_noncircular+0x20/0x20 [ 43.628002] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 43.633417] xfrm_lookup+0xf0a/0x2540 [ 43.637179] ? xfrm_lookup+0xf0a/0x2540 [ 43.641114] ? ip_route_input_noref+0x1e0/0x1e0 [ 43.645748] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 43.652115] ? find_held_lock+0x39/0x1d0 [ 43.656144] ? lock_downgrade+0x990/0x990 [ 43.660253] ? check_noncircular+0x20/0x20 [ 43.664452] ? ip_route_output_key_hash+0x1a6/0x370 [ 43.669429] ? find_held_lock+0x39/0x1d0 [ 43.673454] ? lock_release+0xd70/0xd70 [ 43.677396] ? lock_downgrade+0x990/0x990 [ 43.681511] ? ip_route_output_key_hash+0x252/0x370 [ 43.686493] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 43.691991] ? lock_release+0xd70/0xd70 [ 43.695934] xfrm_lookup_route+0x39/0x1a0 [ 43.700045] ip_route_output_flow+0x7c/0xa0 [ 43.704333] udp_sendmsg+0x19b8/0x2cd0 [ 43.708185] ? ip_reply_glue_bits+0xb0/0xb0 [ 43.712476] ? udp_lib_get_port+0x1c00/0x1c00 [ 43.716934] ? ip4_datagram_connect+0x50/0x50 [ 43.721396] ? do_raw_spin_trylock+0x190/0x190 [ 43.725944] ? lock_acquire+0x1d5/0x580 [ 43.729881] ? inet_autobind+0x1f/0x180 [ 43.733821] ? __local_bh_enable_ip+0x9d/0x160 [ 43.738366] ? release_sock+0x1d4/0x2a0 [ 43.742304] ? trace_hardirqs_on+0xd/0x10 [ 43.746419] ? release_sock+0x1d4/0x2a0 [ 43.750359] ? __release_sock+0x360/0x360 [ 43.754473] ? udp_v4_get_port+0x132/0x180 [ 43.758673] inet_sendmsg+0x11f/0x5e0 [ 43.762439] ? __might_sleep+0x95/0x190 [ 43.766376] ? inet_recvmsg+0x5f0/0x5f0 [ 43.770316] ? selinux_socket_sendmsg+0x36/0x40 [ 43.774950] ? security_socket_sendmsg+0x89/0xb0 [ 43.779668] ? inet_recvmsg+0x5f0/0x5f0 [ 43.783605] sock_sendmsg+0xca/0x110 [ 43.787281] SYSC_sendto+0x358/0x5a0 [ 43.790962] ? SYSC_connect+0x480/0x480 [ 43.794915] ? __handle_mm_fault+0x39c0/0x39c0 [ 43.799460] ? vmacache_find+0x5f/0x280 [ 43.803402] ? up_read+0x1a/0x40 [ 43.806734] ? __do_page_fault+0x3d6/0xd60 [ 43.810938] SyS_sendto+0x40/0x50 [ 43.814357] ? SyS_getpeername+0x30/0x30 [ 43.818382] do_fast_syscall_32+0x3f2/0xf05 [ 43.822672] ? do_int80_syscall_32+0x940/0x940 [ 43.827220] ? kasan_check_read+0x11/0x20 [ 43.831334] ? syscall_return_slowpath+0x510/0x510 [ 43.836226] ? SyS_rt_sigaction+0x94/0x1b0 [ 43.840426] ? lockdep_sys_exit+0x47/0xf0 [ 43.844539] ? retint_user+0x18/0x20 [ 43.848219] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.853027] entry_SYSENTER_compat+0x51/0x60 [ 43.857399] RIP: 0023:0xf7fdcc79 [ 43.860726] RSP: 002b:00000000ffcc41dc EFLAGS: 00000282 ORIG_RAX: 0000000000000171 [ 43.868396] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000002010affe