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-8,10.128.15.199' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 45.659466] ================================================================== [ 45.666856] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x303d/0x3170 [ 45.674012] Read of size 4 at addr ffff8801d28afaf8 by task syzkaller105035/3004 [ 45.681510] [ 45.683115] CPU: 1 PID: 3004 Comm: syzkaller105035 Not tainted 4.13.0-rc4+ #33 [ 45.690445] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.699765] Call Trace: [ 45.702329] dump_stack+0x194/0x257 [ 45.705926] ? arch_local_irq_restore+0x53/0x53 [ 45.710563] ? show_regs_print_info+0x65/0x65 [ 45.715035] ? lock_release+0xa40/0xa40 [ 45.718985] ? xfrm_state_find+0x303d/0x3170 [ 45.723380] print_address_description+0x73/0x250 [ 45.728193] ? xfrm_state_find+0x303d/0x3170 [ 45.732569] kasan_report+0x24e/0x340 [ 45.736346] __asan_report_load4_noabort+0x14/0x20 [ 45.741245] xfrm_state_find+0x303d/0x3170 [ 45.745452] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.750632] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 45.755708] ? find_held_lock+0x35/0x1d0 [ 45.759745] ? depot_save_stack+0x3b5/0x490 [ 45.764036] ? lock_downgrade+0x990/0x990 [ 45.768155] ? update_stack_state+0x700/0x700 [ 45.772633] ? do_raw_spin_trylock+0x190/0x190 [ 45.777197] ? __lock_acquire+0x6ef/0x3dc0 [ 45.781400] ? check_noncircular+0x20/0x20 [ 45.785601] ? trace_hardirqs_on+0xd/0x10 [ 45.789726] ? depot_save_stack+0x3b5/0x490 [ 45.794029] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.799187] ? kasan_kmalloc+0xad/0xe0 [ 45.803042] ? kasan_slab_alloc+0x12/0x20 [ 45.807164] ? find_held_lock+0x35/0x1d0 [ 45.811201] ? rt_add_uncached_list+0x1b7/0x240 [ 45.815839] ? lock_downgrade+0x990/0x990 [ 45.819962] xfrm_tmpl_resolve+0x309/0xbf0 [ 45.824183] ? __xfrm_dst_lookup+0x120/0x120 [ 45.828569] ? rt_add_uncached_list+0x1b7/0x240 [ 45.833222] ? ip_rt_bug+0x20/0x20 [ 45.836741] ? dst_init+0x4d9/0x6a0 [ 45.840343] ? check_noncircular+0x20/0x20 [ 45.844550] ? rt_set_nexthop.constprop.57+0x41d/0xfe0 [ 45.849808] xfrm_resolve_and_create_bundle+0x102/0x2080 [ 45.855231] ? rt_dst_alloc+0x40d/0x540 [ 45.859188] ? __xfrm_decode_session+0x100/0x100 [ 45.863908] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 45.868645] ? lock_downgrade+0x990/0x990 [ 45.872778] ? lock_release+0xa40/0xa40 [ 45.876726] ? refcount_inc_not_zero+0xfe/0x180 [ 45.881368] ? xfrm_selector_match+0x3b/0xe00 [ 45.885836] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 45.890565] ? xfrm_selector_match+0xe00/0xe00 [ 45.895123] xfrm_lookup+0xd39/0x11c0 [ 45.898888] ? xfrm_lookup+0xd39/0x11c0 [ 45.902834] ? xfrm_sk_policy_lookup+0x3d0/0x3d0 [ 45.907562] ? lock_release+0xa40/0xa40 [ 45.911523] ? kasan_check_write+0x14/0x20 [ 45.915726] ? ip_route_output_key_hash+0x252/0x370 [ 45.920717] ? ip_route_output_key_hash_rcu+0x2bb0/0x2bb0 [ 45.926231] xfrm_lookup_route+0x39/0x1a0 [ 45.930348] ip_route_output_flow+0x7c/0xa0 [ 45.934639] raw_sendmsg+0xc4b/0x38b0 [ 45.938420] ? raw_setsockopt+0xd0/0xd0 [ 45.942361] ? get_mem_cgroup_from_mm+0x49b/0x710 [ 45.947182] ? check_noncircular+0x20/0x20 [ 45.951382] ? unlock_page_memcg+0x130/0x130 [ 45.955757] ? lru_cache_add_file+0x20/0x20 [ 45.960046] ? check_noncircular+0x20/0x20 [ 45.964245] ? __mem_cgroup_threshold+0x8f0/0x8f0 [ 45.969069] ? find_held_lock+0x35/0x1d0 [ 45.973105] ? find_held_lock+0x35/0x1d0 [ 45.977143] ? __might_fault+0x110/0x1d0 [ 45.981171] ? sock_has_perm+0x29c/0x400 [ 45.985197] ? lock_downgrade+0x990/0x990 [ 45.989312] ? selinux_tun_dev_create+0xc0/0xc0 [ 45.993949] ? lock_release+0xa40/0xa40 [ 45.997902] ? check_same_owner+0x320/0x320 [ 46.002191] ? __check_object_size+0x25d/0x4f0 [ 46.006748] inet_sendmsg+0x11f/0x5e0 [ 46.010516] ? __might_sleep+0x95/0x190 [ 46.014456] ? inet_recvmsg+0x5f0/0x5f0 [ 46.018396] ? selinux_socket_sendmsg+0x36/0x40 [ 46.023039] ? security_socket_sendmsg+0x89/0xb0 [ 46.027763] ? inet_recvmsg+0x5f0/0x5f0 [ 46.031707] sock_sendmsg+0xca/0x110 [ 46.035390] SYSC_sendto+0x352/0x5a0 [ 46.039079] ? SYSC_connect+0x470/0x470 [ 46.043024] ? find_held_lock+0x35/0x1d0 [ 46.047072] ? lock_downgrade+0x990/0x990 [ 46.051209] ? handle_mm_fault+0x4e3/0x940 [ 46.055414] ? down_read_trylock+0xdb/0x170 [ 46.059730] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 46.064541] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.069527] SyS_sendto+0x40/0x50 [ 46.072953] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 46.077676] RIP: 0033:0x440069 [ 46.080832] RSP: 002b:00007ffd5d603cc8 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 46.088505] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440069 [ 46.095742] RDX: 0000000000000040 RSI: 0000000020fdbfc0 RDI: 0000000000000003 [ 46.102978] RBP: 0000000000000086 R08: 0000000020fdbff0 R09: 0000000000000010 [ 46.110216] R10: 0000000000000080 R11: 0000000000000217 R12: 00000000004019d0 [ 46.117451] R13: 0000000000401a60 R14: 0000000000000000 R15: 0000000000000000 [ 46.124702] [ 46.126299] The buggy address belongs to the page: [ 46.131203] page:ffffea00074a2bc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 46.139310] flags: 0x200000000000000() [ 46.143173] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 46.151543] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 46.159385] page dumped because: kasan: bad access detected [ 46.165056] [ 46.166645] Memory state around the buggy address: [ 46.171539] ffff8801d28af980: f2 f2 f2 f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 [ 46.178871] ffff8801d28afa00: f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 [ 46.186197] >ffff8801d28afa80: 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 [ 46.193519] ^ [ 46.200757] ffff8801d28afb00: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 [ 46.208080] ffff8801d28afb80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 f1 f1 [ 46.215401] ================================================================== [ 46.222723] Disabling lock debugging due to kernel taint [ 46.228188] Kernel panic - not syncing: panic_on_warn set ... [ 46.228188] [ 46.235525] CPU: 1 PID: 3004 Comm: syzkaller105035 Tainted: G B 4.13.0-rc4+ #33 [ 46.244073] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.253390] Call Trace: [ 46.255953] dump_stack+0x194/0x257 [ 46.259560] ? arch_local_irq_restore+0x53/0x53 [ 46.264192] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.268914] ? xfrm_state_find+0x3030/0x3170 [ 46.273286] panic+0x1e4/0x417 [ 46.276450] ? __warn+0x1d9/0x1d9 [ 46.279878] ? xfrm_state_find+0x303d/0x3170 [ 46.284258] kasan_end_report+0x50/0x50 [ 46.288198] kasan_report+0x137/0x340 [ 46.291964] __asan_report_load4_noabort+0x14/0x20 [ 46.296857] xfrm_state_find+0x303d/0x3170 [ 46.301058] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.306218] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 46.311289] ? find_held_lock+0x35/0x1d0 [ 46.315321] ? depot_save_stack+0x3b5/0x490 [ 46.319603] ? lock_downgrade+0x990/0x990 [ 46.323715] ? update_stack_state+0x700/0x700 [ 46.328177] ? do_raw_spin_trylock+0x190/0x190 [ 46.332734] ? __lock_acquire+0x6ef/0x3dc0 [ 46.336934] ? check_noncircular+0x20/0x20 [ 46.341133] ? trace_hardirqs_on+0xd/0x10 [ 46.345250] ? depot_save_stack+0x3b5/0x490 [ 46.349541] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.354697] ? kasan_kmalloc+0xad/0xe0 [ 46.358547] ? kasan_slab_alloc+0x12/0x20 [ 46.362665] ? find_held_lock+0x35/0x1d0 [ 46.366699] ? rt_add_uncached_list+0x1b7/0x240 [ 46.371332] ? lock_downgrade+0x990/0x990 [ 46.375446] xfrm_tmpl_resolve+0x309/0xbf0 [ 46.379663] ? __xfrm_dst_lookup+0x120/0x120 [ 46.384041] ? rt_add_uncached_list+0x1b7/0x240 [ 46.388679] ? ip_rt_bug+0x20/0x20 [ 46.392185] ? dst_init+0x4d9/0x6a0 [ 46.395784] ? check_noncircular+0x20/0x20 [ 46.399983] ? rt_set_nexthop.constprop.57+0x41d/0xfe0 [ 46.405231] xfrm_resolve_and_create_bundle+0x102/0x2080 [ 46.410647] ? rt_dst_alloc+0x40d/0x540 [ 46.414594] ? __xfrm_decode_session+0x100/0x100 [ 46.419312] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 46.424045] ? lock_downgrade+0x990/0x990 [ 46.428158] ? lock_release+0xa40/0xa40 [ 46.432102] ? refcount_inc_not_zero+0xfe/0x180 [ 46.436739] ? xfrm_selector_match+0x3b/0xe00 [ 46.441201] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 46.445922] ? xfrm_selector_match+0xe00/0xe00 [ 46.450485] xfrm_lookup+0xd39/0x11c0 [ 46.454249] ? xfrm_lookup+0xd39/0x11c0 [ 46.458188] ? xfrm_sk_policy_lookup+0x3d0/0x3d0 [ 46.462909] ? lock_release+0xa40/0xa40 [ 46.466859] ? kasan_check_write+0x14/0x20 [ 46.471061] ? ip_route_output_key_hash+0x252/0x370 [ 46.476044] ? ip_route_output_key_hash_rcu+0x2bb0/0x2bb0 [ 46.481548] xfrm_lookup_route+0x39/0x1a0 [ 46.485665] ip_route_output_flow+0x7c/0xa0 [ 46.489953] raw_sendmsg+0xc4b/0x38b0 [ 46.493727] ? raw_setsockopt+0xd0/0xd0 [ 46.497668] ? get_mem_cgroup_from_mm+0x49b/0x710 [ 46.502482] ? check_noncircular+0x20/0x20 [ 46.506679] ? unlock_page_memcg+0x130/0x130 [ 46.511053] ? lru_cache_add_file+0x20/0x20 [ 46.515343] ? check_noncircular+0x20/0x20 [ 46.519545] ? __mem_cgroup_threshold+0x8f0/0x8f0 [ 46.524358] ? find_held_lock+0x35/0x1d0 [ 46.528387] ? find_held_lock+0x35/0x1d0 [ 46.532416] ? __might_fault+0x110/0x1d0 [ 46.536439] ? sock_has_perm+0x29c/0x400 [ 46.540462] ? lock_downgrade+0x990/0x990 [ 46.544576] ? selinux_tun_dev_create+0xc0/0xc0 [ 46.549208] ? lock_release+0xa40/0xa40 [ 46.553153] ? check_same_owner+0x320/0x320 [ 46.557441] ? __check_object_size+0x25d/0x4f0 [ 46.562010] inet_sendmsg+0x11f/0x5e0 [ 46.565780] ? __might_sleep+0x95/0x190 [ 46.569719] ? inet_recvmsg+0x5f0/0x5f0 [ 46.573658] ? selinux_socket_sendmsg+0x36/0x40 [ 46.578292] ? security_socket_sendmsg+0x89/0xb0 [ 46.583012] ? inet_recvmsg+0x5f0/0x5f0 [ 46.586952] sock_sendmsg+0xca/0x110 [ 46.590631] SYSC_sendto+0x352/0x5a0 [ 46.594317] ? SYSC_connect+0x470/0x470 [ 46.598265] ? find_held_lock+0x35/0x1d0 [ 46.602293] ? lock_downgrade+0x990/0x990 [ 46.606411] ? handle_mm_fault+0x4e3/0x940 [ 46.610606] ? down_read_trylock+0xdb/0x170 [ 46.614899] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 46.619705] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.624687] SyS_sendto+0x40/0x50 [ 46.628108] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 46.632836] RIP: 0033:0x440069 [ 46.635988] RSP: 002b:00007ffd5d603cc8 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 46.643662] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440069 [ 46.650903] RDX: 0000000000000040 RSI: 0000000020fdbfc0 RDI: 0000000000000003