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-mmots-kasan-gce-1,10.128.15.215' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 51.515171] ================================================================== [ 51.516234] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 51.517182] Read of size 4 at addr ffff8801ceb27af8 by task syzkaller464714/2984 [ 51.518181] [ 51.518421] CPU: 1 PID: 2984 Comm: syzkaller464714 Not tainted 4.13.0-mm1+ #7 [ 51.519379] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.520601] Call Trace: [ 51.520978] dump_stack+0x194/0x257 [ 51.521474] ? arch_local_irq_restore+0x53/0x53 [ 51.522102] ? show_regs_print_info+0x65/0x65 [ 51.522711] ? lock_release+0xd70/0xd70 [ 51.523254] ? xfrm_state_find+0x305b/0x3190 [ 51.523849] print_address_description+0x73/0x250 [ 51.524499] ? xfrm_state_find+0x305b/0x3190 [ 51.525092] kasan_report+0x24e/0x340 [ 51.525611] __asan_report_load4_noabort+0x14/0x20 [ 51.526421] xfrm_state_find+0x305b/0x3190 [ 51.526992] ? unwind_get_return_address+0x61/0xa0 [ 51.527656] ? __save_stack_trace+0x61/0xd0 [ 51.528288] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 51.529092] ? copy_trace+0x1d0/0x1d0 [ 51.529629] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.530326] ? check_noncircular+0x20/0x20 [ 51.530898] ? lock_downgrade+0x990/0x990 [ 51.531468] ? find_held_lock+0x39/0x1d0 [ 51.532039] ? __lock_acquire+0x732/0x4620 [ 51.532609] ? find_held_lock+0x39/0x1d0 [ 51.533175] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 51.533881] ? depot_save_stack+0x1c2/0x490 [ 51.534480] ? do_raw_spin_trylock+0x190/0x190 [ 51.535096] ? check_noncircular+0x20/0x20 [ 51.538135] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 51.542358] ? __xfrm_decode_session+0x100/0x100 [ 51.547096] ? lock_downgrade+0x990/0x990 [ 51.551216] ? inet_sendmsg+0x11f/0x5e0 [ 51.555159] ? sock_sendmsg+0xca/0x110 [ 51.559018] ? SYSC_sendto+0x358/0x5a0 [ 51.562881] ? check_noncircular+0x20/0x20 [ 51.567086] ? rt_add_uncached_list+0xa2/0x240 [ 51.571644] ? check_noncircular+0x20/0x20 [ 51.575857] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 51.581278] ? kmem_cache_alloc+0x4a2/0x760 [ 51.585574] ? __local_bh_enable_ip+0x9d/0x160 [ 51.590140] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 51.594520] ? lock_downgrade+0x990/0x990 [ 51.598640] ? dst_init+0x4d9/0x6a0 [ 51.602246] ? xfrm_selector_match+0xe00/0xe00 [ 51.606807] ? lock_release+0xd70/0xd70 [ 51.610764] ? refcount_inc_not_zero+0xfe/0x180 [ 51.615439] ? xfrm_selector_match+0x3b/0xe00 [ 51.619910] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 51.624647] ? xfrm_selector_match+0xe00/0xe00 [ 51.629203] ? check_noncircular+0x20/0x20 [ 51.633408] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 51.638835] xfrm_lookup+0xf0a/0x2540 [ 51.642611] ? xfrm_lookup+0xf0a/0x2540 [ 51.646562] ? ip_route_input_noref+0x1e0/0x1e0 [ 51.651211] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 51.657590] ? find_held_lock+0x39/0x1d0 [ 51.661640] ? lock_downgrade+0x990/0x990 [ 51.665769] ? ip_route_output_key_hash+0x1a6/0x370 [ 51.670757] ? find_held_lock+0x39/0x1d0 [ 51.674803] ? lock_release+0xd70/0xd70 [ 51.678763] ? lock_downgrade+0x990/0x990 [ 51.682899] ? ip_route_output_key_hash+0x252/0x370 [ 51.687889] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 51.693396] ? lock_release+0xd70/0xd70 [ 51.697349] xfrm_lookup_route+0x39/0x1a0 [ 51.701473] ip_route_output_flow+0x7c/0xa0 [ 51.705770] raw_sendmsg+0xc4f/0x38c0 [ 51.709561] ? raw_setsockopt+0xd0/0xd0 [ 51.713509] ? lock_downgrade+0x990/0x990 [ 51.717638] ? lru_cache_add_active_or_unevictable+0x20e/0x540 [ 51.723584] ? add_page_to_unevictable_list+0x730/0x730 [ 51.728921] ? do_raw_spin_trylock+0x190/0x190 [ 51.733478] ? do_raw_spin_trylock+0x190/0x190 [ 51.738051] ? lock_downgrade+0x990/0x990 [ 51.742180] ? __might_fault+0xe0/0x1d0 [ 51.746134] ? sock_has_perm+0x29c/0x400 [ 51.750169] ? selinux_tun_dev_create+0xc0/0xc0 [ 51.754809] ? lock_release+0xd70/0xd70 [ 51.758757] ? check_same_owner+0x320/0x320 [ 51.763051] ? __check_object_size+0x25d/0x4f0 [ 51.767636] inet_sendmsg+0x11f/0x5e0 [ 51.771410] ? __might_sleep+0x95/0x190 [ 51.775355] ? inet_recvmsg+0x5f0/0x5f0 [ 51.779304] ? selinux_socket_sendmsg+0x36/0x40 [ 51.783952] ? security_socket_sendmsg+0x89/0xb0 [ 51.788679] ? inet_recvmsg+0x5f0/0x5f0 [ 51.792633] sock_sendmsg+0xca/0x110 [ 51.796322] SYSC_sendto+0x358/0x5a0 [ 51.800013] ? SYSC_connect+0x480/0x480 [ 51.803955] ? __handle_mm_fault+0x39c0/0x39c0 [ 51.808515] ? up_read+0x1a/0x40 [ 51.811850] ? __do_page_fault+0x35b/0xb60 [ 51.816066] ? __do_page_fault+0xb60/0xb60 [ 51.820277] ? SyS_setsockopt+0x215/0x360 [ 51.824401] ? lockdep_sys_exit+0x47/0xf0 [ 51.828520] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 51.833335] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 51.838325] SyS_sendto+0x40/0x50 [ 51.841762] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 51.846487] RIP: 0033:0x43ff79 [ 51.849646] RSP: 002b:00007ffe1962c898 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 51.857327] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff79 [ 51.864567] RDX: 0000000000000000 RSI: 0000000020fdbfc0 RDI: 0000000000000003 [ 51.871808] RBP: 0000000000000082 R08: 0000000020fdbff0 R09: 0000000000000010 [ 51.879049] R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004018e0 [ 51.886287] R13: 0000000000401970 R14: 0000000000000000 R15: 0000000000000000 [ 51.893548] [ 51.895144] The buggy address belongs to the page: [ 51.900042] page:ffffea00073ac9c0 count:0 mapcount:0 mapping: (null) index:0x0 [ 51.908157] flags: 0x200000000000000() [ 51.912700] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 51.920555] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 51.928403] page dumped because: kasan: bad access detected [ 51.934080] [ 51.935681] Memory state around the buggy address: [ 51.940580] ffff8801ceb27980: f2 f2 f2 f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 [ 51.947917] ffff8801ceb27a00: f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 [ 51.955246] >ffff8801ceb27a80: 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 [ 51.962574] ^ [ 51.969816] ffff8801ceb27b00: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 [ 51.977143] ffff8801ceb27b80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 f1 f1 [ 51.984470] ================================================================== [ 51.991803] Disabling lock debugging due to kernel taint [ 51.997272] Kernel panic - not syncing: panic_on_warn set ... [ 51.997272] [ 52.004603] CPU: 1 PID: 2984 Comm: syzkaller464714 Tainted: G B 4.13.0-mm1+ #7 [ 52.013056] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.022373] Call Trace: [ 52.024930] dump_stack+0x194/0x257 [ 52.028525] ? arch_local_irq_restore+0x53/0x53 [ 52.033159] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.037883] ? xfrm_state_find+0x2fe0/0x3190 [ 52.042257] panic+0x1e4/0x417 [ 52.045414] ? __warn+0x1d9/0x1d9 [ 52.048839] ? xfrm_state_find+0x305b/0x3190 [ 52.053211] kasan_end_report+0x50/0x50 [ 52.057147] kasan_report+0x137/0x340 [ 52.060915] __asan_report_load4_noabort+0x14/0x20 [ 52.065806] xfrm_state_find+0x305b/0x3190 [ 52.070003] ? unwind_get_return_address+0x61/0xa0 [ 52.074896] ? __save_stack_trace+0x61/0xd0 [ 52.079189] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 52.084262] ? copy_trace+0x1d0/0x1d0 [ 52.088029] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.093181] ? check_noncircular+0x20/0x20 [ 52.097382] ? lock_downgrade+0x990/0x990 [ 52.101501] ? find_held_lock+0x39/0x1d0 [ 52.105545] ? __lock_acquire+0x732/0x4620 [ 52.109742] ? find_held_lock+0x39/0x1d0 [ 52.113776] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.118932] ? depot_save_stack+0x1c2/0x490 [ 52.123220] ? do_raw_spin_trylock+0x190/0x190 [ 52.127769] ? check_noncircular+0x20/0x20 [ 52.131973] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 52.136180] ? __xfrm_decode_session+0x100/0x100 [ 52.140904] ? lock_downgrade+0x990/0x990 [ 52.145017] ? inet_sendmsg+0x11f/0x5e0 [ 52.148956] ? sock_sendmsg+0xca/0x110 [ 52.152804] ? SYSC_sendto+0x358/0x5a0 [ 52.156659] ? check_noncircular+0x20/0x20 [ 52.160858] ? rt_add_uncached_list+0xa2/0x240 [ 52.165402] ? check_noncircular+0x20/0x20 [ 52.169604] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 52.175021] ? kmem_cache_alloc+0x4a2/0x760 [ 52.179306] ? __local_bh_enable_ip+0x9d/0x160 [ 52.183860] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 52.188232] ? lock_downgrade+0x990/0x990 [ 52.192345] ? dst_init+0x4d9/0x6a0 [ 52.195939] ? xfrm_selector_match+0xe00/0xe00 [ 52.200489] ? lock_release+0xd70/0xd70 [ 52.204429] ? refcount_inc_not_zero+0xfe/0x180 [ 52.209067] ? xfrm_selector_match+0x3b/0xe00 [ 52.213527] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 52.218251] ? xfrm_selector_match+0xe00/0xe00 [ 52.222800] ? check_noncircular+0x20/0x20 [ 52.226996] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 52.232412] xfrm_lookup+0xf0a/0x2540 [ 52.236175] ? xfrm_lookup+0xf0a/0x2540 [ 52.240115] ? ip_route_input_noref+0x1e0/0x1e0 [ 52.244750] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 52.251120] ? find_held_lock+0x39/0x1d0 [ 52.255149] ? lock_downgrade+0x990/0x990 [ 52.259263] ? ip_route_output_key_hash+0x1a6/0x370 [ 52.264244] ? find_held_lock+0x39/0x1d0 [ 52.268273] ? lock_release+0xd70/0xd70 [ 52.272212] ? lock_downgrade+0x990/0x990 [ 52.276332] ? ip_route_output_key_hash+0x252/0x370 [ 52.281311] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 52.286811] ? lock_release+0xd70/0xd70 [ 52.290754] xfrm_lookup_route+0x39/0x1a0 [ 52.294868] ip_route_output_flow+0x7c/0xa0 [ 52.299156] raw_sendmsg+0xc4f/0x38c0 [ 52.302928] ? raw_setsockopt+0xd0/0xd0 [ 52.306868] ? lock_downgrade+0x990/0x990 [ 52.310983] ? lru_cache_add_active_or_unevictable+0x20e/0x540 [ 52.316919] ? add_page_to_unevictable_list+0x730/0x730 [ 52.322252] ? do_raw_spin_trylock+0x190/0x190 [ 52.326801] ? do_raw_spin_trylock+0x190/0x190 [ 52.331360] ? lock_downgrade+0x990/0x990 [ 52.335481] ? __might_fault+0xe0/0x1d0 [ 52.339424] ? sock_has_perm+0x29c/0x400 [ 52.343452] ? selinux_tun_dev_create+0xc0/0xc0 [ 52.348084] ? lock_release+0xd70/0xd70 [ 52.352024] ? check_same_owner+0x320/0x320 [ 52.356309] ? __check_object_size+0x25d/0x4f0 [ 52.360858] inet_sendmsg+0x11f/0x5e0 [ 52.364621] ? __might_sleep+0x95/0x190 [ 52.368561] ? inet_recvmsg+0x5f0/0x5f0 [ 52.372500] ? selinux_socket_sendmsg+0x36/0x40 [ 52.377134] ? security_socket_sendmsg+0x89/0xb0 [ 52.381854] ? inet_recvmsg+0x5f0/0x5f0 [ 52.385793] sock_sendmsg+0xca/0x110 [ 52.389472] SYSC_sendto+0x358/0x5a0 [ 52.393150] ? SYSC_connect+0x480/0x480 [ 52.397086] ? __handle_mm_fault+0x39c0/0x39c0 [ 52.401637] ? up_read+0x1a/0x40 [ 52.404970] ? __do_page_fault+0x35b/0xb60 [ 52.409176] ? __do_page_fault+0xb60/0xb60 [ 52.413379] ? SyS_setsockopt+0x215/0x360 [ 52.417493] ? lockdep_sys_exit+0x47/0xf0 [ 52.421610] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 52.426416] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.431396] SyS_sendto+0x40/0x50 [ 52.434815] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.439534] RIP: 0033:0x43ff79 [ 52.442686] RSP: 002b:00007ffe1962c898 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 52.450356] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff79 [ 52.457591] RDX: 0000000000000000 RSI: 0000000020fdbfc0 RDI: 0000000000000003 [ 52.464829] RBP: 0000000000000082 R08: 0000000020fdbff0 R09: 0000000000000010 [ 52.472064] R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004018e0 [ 52.479299] R13: 0000000000401970 R14: 0000000000000000 R15: 0000000000000000 [ 52.486579] Dumping ftrace buffer: [ 52.490081] (ftrace buffer empty) [ 52.493757] Kernel Offset: disabled [ 52.497349] Rebooting in 86400 seconds..