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-next-kasan-gce-1,10.128.0.38' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 33.924691] ================================================================== [ 33.925775] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x30fc/0x3230 [ 33.926720] Read of size 4 at addr ffff8801c0fb7af8 by task syzkaller622789/3053 [ 33.927705] [ 33.927939] CPU: 0 PID: 3053 Comm: syzkaller622789 Not tainted 4.14.0-next-20171122+ #49 [ 33.929014] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.930290] Call Trace: [ 33.930665] dump_stack+0x194/0x257 [ 33.931158] ? arch_local_irq_restore+0x53/0x53 [ 33.931784] ? show_regs_print_info+0x65/0x65 [ 33.932391] ? lock_release+0xda0/0xda0 [ 33.932926] ? xfrm_state_find+0x30fc/0x3230 [ 33.933535] print_address_description+0x73/0x250 [ 33.934181] ? xfrm_state_find+0x30fc/0x3230 [ 33.934771] kasan_report+0x25b/0x340 [ 33.935288] __asan_report_load4_noabort+0x14/0x20 [ 33.935945] xfrm_state_find+0x30fc/0x3230 [ 33.936534] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 33.937235] ? check_noncircular+0x20/0x20 [ 33.937815] ? find_held_lock+0x39/0x1d0 [ 33.938826] ? check_noncircular+0x20/0x20 [ 33.939394] ? lock_downgrade+0x980/0x980 [ 33.939997] ? __free_insn_slot+0x5c0/0x5c0 [ 33.940665] ? __lock_acquire+0x2727/0x47f0 [ 33.941245] ? find_held_lock+0x39/0x1d0 [ 33.941811] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.942505] ? print_usage_bug+0x3f0/0x3f0 [ 33.943105] ? lock_downgrade+0x980/0x980 [ 33.943667] ? depot_save_stack+0x1c2/0x490 [ 33.944253] ? lock_release+0xda0/0xda0 [ 33.944792] ? is_bpf_text_address+0xa4/0x120 [ 33.945421] ? __lock_acquire+0x6e9/0x47f0 [ 33.949625] ? check_noncircular+0x20/0x20 [ 33.953835] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.958827] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 33.963047] ? __xfrm_decode_session+0x110/0x110 [ 33.967777] ? lock_downgrade+0x980/0x980 [ 33.971898] ? rt_add_uncached_list+0xa2/0x240 [ 33.976463] ? check_noncircular+0x20/0x20 [ 33.980672] ? check_noncircular+0x20/0x20 [ 33.985003] xfrm_resolve_and_create_bundle+0x11b/0x2600 [ 33.990428] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.995411] ? rt_add_uncached_list+0x1b7/0x240 [ 34.000051] ? __local_bh_enable_ip+0x121/0x230 [ 34.004711] ? _raw_spin_unlock_bh+0x30/0x40 [ 34.009092] ? find_held_lock+0x39/0x1d0 [ 34.013121] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 34.017506] ? lock_downgrade+0x980/0x980 [ 34.021625] ? xfrm_selector_match+0xe00/0xe00 [ 34.026177] ? rt_cache_route+0x300/0x300 [ 34.030296] ? lock_release+0xda0/0xda0 [ 34.034243] ? refcount_inc_not_zero+0xfe/0x180 [ 34.038889] ? selinux_xfrm_policy_lookup+0xac/0xd0 [ 34.043882] ? security_xfrm_policy_lookup+0x92/0xc0 [ 34.048961] ? xfrm_sk_policy_lookup+0x334/0x490 [ 34.053690] ? xfrm_selector_match+0xe00/0xe00 [ 34.058245] ? check_noncircular+0x20/0x20 [ 34.062451] xfrm_lookup+0x1574/0x23f0 [ 34.066309] ? xfrm_lookup+0x1574/0x23f0 [ 34.070337] ? __mem_cgroup_threshold+0x8f0/0x8f0 [ 34.075158] ? xfrm_policy_lookup_bytype.constprop.47+0x960/0x960 [ 34.081360] ? find_held_lock+0x39/0x1d0 [ 34.085399] ? lock_downgrade+0x980/0x980 [ 34.089515] ? ip_route_output_key_hash+0x1a6/0x370 [ 34.094506] ? lock_release+0xda0/0xda0 [ 34.098635] ? lock_downgrade+0x980/0x980 [ 34.102755] ? ip_route_output_key_hash+0x252/0x370 [ 34.107740] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 34.113242] ? lock_release+0xda0/0xda0 [ 34.117195] xfrm_lookup_route+0x39/0x1a0 [ 34.121314] ip_route_output_flow+0x7c/0xa0 [ 34.125608] raw_sendmsg+0xc4f/0x3920 [ 34.129384] ? debug_check_no_locks_freed+0x2e0/0x3d0 [ 34.134547] ? raw_setsockopt+0xd0/0xd0 [ 34.138491] ? do_ip_setsockopt.isra.12+0x2a9/0x3200 [ 34.143568] ? alloc_file+0x26/0x3a0 [ 34.147250] ? sock_alloc_file+0x1fd/0x550 [ 34.151449] ? sock_map_fd+0x34/0x70 [ 34.155129] ? entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.160026] ? find_held_lock+0x39/0x1d0 [ 34.164055] ? check_noncircular+0x20/0x20 [ 34.168276] ? find_held_lock+0x39/0x1d0 [ 34.172321] ? __might_fault+0xe0/0x1d0 [ 34.176266] ? sock_has_perm+0x29c/0x400 [ 34.180301] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 34.185639] ? lock_release+0xda0/0xda0 [ 34.189585] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 34.195448] ? __check_object_size+0x25d/0x4f0 [ 34.200002] inet_sendmsg+0x11f/0x5e0 [ 34.203773] ? __might_sleep+0x95/0x190 [ 34.207715] ? inet_recvmsg+0x5f0/0x5f0 [ 34.211658] ? selinux_socket_sendmsg+0x36/0x40 [ 34.216293] ? security_socket_sendmsg+0x89/0xb0 [ 34.221017] ? inet_recvmsg+0x5f0/0x5f0 [ 34.224961] sock_sendmsg+0xca/0x110 [ 34.228646] SYSC_sendto+0x358/0x5a0 [ 34.232330] ? SYSC_connect+0x480/0x480 [ 34.236274] ? __do_page_fault+0x3d6/0xc90 [ 34.240483] ? mm_fault_error+0x2c0/0x2c0 [ 34.244602] ? ip_setsockopt+0x6f/0xb0 [ 34.248464] ? __do_page_fault+0xc90/0xc90 [ 34.252672] ? SyS_setsockopt+0x215/0x360 [ 34.256797] ? lockdep_sys_exit+0x47/0xf0 [ 34.260913] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 34.265724] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.270711] SyS_sendto+0x40/0x50 [ 34.274138] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.278860] RIP: 0033:0x43ff09 [ 34.282025] RSP: 002b:00007ffe84f0d4b8 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 34.289698] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff09 [ 34.296942] RDX: 0000000000000000 RSI: 0000000020098000 RDI: 0000000000000003 [ 34.304179] RBP: 0000000000000086 R08: 0000000020c24000 R09: 0000000000000010 [ 34.311415] R10: fffffffffffffffe R11: 0000000000000217 R12: 0000000000401870 [ 34.318650] R13: 0000000000401900 R14: 0000000000000000 R15: 0000000000000000 [ 34.325902] [ 34.327496] The buggy address belongs to the page: [ 34.332391] page:ffffea000703edc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 34.340502] flags: 0x2fffc0000000000() [ 34.344357] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 34.352204] raw: 0000000000000000 ffffea000703ede0 0000000000000000 0000000000000000 [ 34.360048] page dumped because: kasan: bad access detected [ 34.365719] [ 34.367311] Memory state around the buggy address: [ 34.372203] ffff8801c0fb7980: f2 f2 f2 f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 [ 34.379524] ffff8801c0fb7a00: f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 [ 34.386847] >ffff8801c0fb7a80: 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 [ 34.394171] ^ [ 34.401407] ffff8801c0fb7b00: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 [ 34.408729] ffff8801c0fb7b80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 f1 f1 [ 34.416052] ================================================================== [ 34.423375] Disabling lock debugging due to kernel taint [ 34.428859] Kernel panic - not syncing: panic_on_warn set ... [ 34.428859] [ 34.436194] CPU: 0 PID: 3053 Comm: syzkaller622789 Tainted: G B 4.14.0-next-20171122+ #49 [ 34.445690] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.455012] Call Trace: [ 34.457572] dump_stack+0x194/0x257 [ 34.461165] ? arch_local_irq_restore+0x53/0x53 [ 34.465804] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.470527] ? vsnprintf+0x1ed/0x1900 [ 34.474309] ? xfrm_state_find+0x30e0/0x3230 [ 34.478684] panic+0x1e4/0x41c [ 34.481842] ? refcount_error_report+0x214/0x214 [ 34.486563] ? add_taint+0x1c/0x50 [ 34.490067] ? add_taint+0x1c/0x50 [ 34.493572] ? xfrm_state_find+0x30fc/0x3230 [ 34.497949] kasan_end_report+0x50/0x50 [ 34.501887] kasan_report+0x144/0x340 [ 34.505666] __asan_report_load4_noabort+0x14/0x20 [ 34.510558] xfrm_state_find+0x30fc/0x3230 [ 34.514766] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 34.519842] ? check_noncircular+0x20/0x20 [ 34.524042] ? find_held_lock+0x39/0x1d0 [ 34.528071] ? check_noncircular+0x20/0x20 [ 34.532268] ? lock_downgrade+0x980/0x980 [ 34.536384] ? __free_insn_slot+0x5c0/0x5c0 [ 34.540675] ? __lock_acquire+0x2727/0x47f0 [ 34.544958] ? find_held_lock+0x39/0x1d0 [ 34.549001] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.554155] ? print_usage_bug+0x3f0/0x3f0 [ 34.558352] ? lock_downgrade+0x980/0x980 [ 34.562465] ? depot_save_stack+0x1c2/0x490 [ 34.566753] ? lock_release+0xda0/0xda0 [ 34.570694] ? is_bpf_text_address+0xa4/0x120 [ 34.575156] ? __lock_acquire+0x6e9/0x47f0 [ 34.579356] ? check_noncircular+0x20/0x20 [ 34.583554] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.588541] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 34.592749] ? __xfrm_decode_session+0x110/0x110 [ 34.597474] ? lock_downgrade+0x980/0x980 [ 34.601588] ? rt_add_uncached_list+0xa2/0x240 [ 34.606132] ? check_noncircular+0x20/0x20 [ 34.610508] ? check_noncircular+0x20/0x20 [ 34.614708] xfrm_resolve_and_create_bundle+0x11b/0x2600 [ 34.620124] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.625105] ? rt_add_uncached_list+0x1b7/0x240 [ 34.629740] ? __local_bh_enable_ip+0x121/0x230 [ 34.634374] ? _raw_spin_unlock_bh+0x30/0x40 [ 34.638747] ? find_held_lock+0x39/0x1d0 [ 34.642772] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 34.647154] ? lock_downgrade+0x980/0x980 [ 34.651272] ? xfrm_selector_match+0xe00/0xe00 [ 34.655819] ? rt_cache_route+0x300/0x300 [ 34.659932] ? lock_release+0xda0/0xda0 [ 34.663877] ? refcount_inc_not_zero+0xfe/0x180 [ 34.668519] ? selinux_xfrm_policy_lookup+0xac/0xd0 [ 34.673503] ? security_xfrm_policy_lookup+0x92/0xc0 [ 34.678573] ? xfrm_sk_policy_lookup+0x334/0x490 [ 34.683296] ? xfrm_selector_match+0xe00/0xe00 [ 34.687844] ? check_noncircular+0x20/0x20 [ 34.692049] xfrm_lookup+0x1574/0x23f0 [ 34.695900] ? xfrm_lookup+0x1574/0x23f0 [ 34.699932] ? __mem_cgroup_threshold+0x8f0/0x8f0 [ 34.704745] ? xfrm_policy_lookup_bytype.constprop.47+0x960/0x960 [ 34.710944] ? find_held_lock+0x39/0x1d0 [ 34.714976] ? lock_downgrade+0x980/0x980 [ 34.719098] ? ip_route_output_key_hash+0x1a6/0x370 [ 34.724080] ? lock_release+0xda0/0xda0 [ 34.728024] ? lock_downgrade+0x980/0x980 [ 34.732141] ? ip_route_output_key_hash+0x252/0x370 [ 34.737121] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 34.742637] ? lock_release+0xda0/0xda0 [ 34.746585] xfrm_lookup_route+0x39/0x1a0 [ 34.750701] ip_route_output_flow+0x7c/0xa0 [ 34.754992] raw_sendmsg+0xc4f/0x3920 [ 34.758773] ? debug_check_no_locks_freed+0x2e0/0x3d0 [ 34.763933] ? raw_setsockopt+0xd0/0xd0 [ 34.767872] ? do_ip_setsockopt.isra.12+0x2a9/0x3200 [ 34.772945] ? alloc_file+0x26/0x3a0 [ 34.776637] ? sock_alloc_file+0x1fd/0x550 [ 34.780837] ? sock_map_fd+0x34/0x70 [ 34.784520] ? entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.789415] ? find_held_lock+0x39/0x1d0 [ 34.793442] ? check_noncircular+0x20/0x20 [ 34.797650] ? find_held_lock+0x39/0x1d0 [ 34.801682] ? __might_fault+0xe0/0x1d0 [ 34.805624] ? sock_has_perm+0x29c/0x400 [ 34.809654] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 34.814982] ? lock_release+0xda0/0xda0 [ 34.818922] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 34.824774] ? __check_object_size+0x25d/0x4f0 [ 34.829324] inet_sendmsg+0x11f/0x5e0 [ 34.833099] ? __might_sleep+0x95/0x190 [ 34.837040] ? inet_recvmsg+0x5f0/0x5f0 [ 34.840985] ? selinux_socket_sendmsg+0x36/0x40 [ 34.845618] ? security_socket_sendmsg+0x89/0xb0 [ 34.850338] ? inet_recvmsg+0x5f0/0x5f0 [ 34.854280] sock_sendmsg+0xca/0x110 [ 34.857961] SYSC_sendto+0x358/0x5a0 [ 34.861641] ? SYSC_connect+0x480/0x480 [ 34.865582] ? __do_page_fault+0x3d6/0xc90 [ 34.869787] ? mm_fault_error+0x2c0/0x2c0 [ 34.873901] ? ip_setsockopt+0x6f/0xb0 [ 34.877758] ? __do_page_fault+0xc90/0xc90 [ 34.881961] ? SyS_setsockopt+0x215/0x360 [ 34.886080] ? lockdep_sys_exit+0x47/0xf0 [ 34.890193] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 34.895003] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.899986] SyS_sendto+0x40/0x50 [ 34.903405] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.908124] RIP: 0033:0x43ff09 [ 34.911278] RSP: 002b:00007ffe84f0d4b8 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 34.918950] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff09 [ 34.926187] RDX: 0000000000000000 RSI: 0000000020098000 RDI: 0000000000000003 [ 34.933421] RBP: 0000000000000086 R08: 0000000020c24000 R09: 0000000000000010 [ 34.940658] R10: fffffffffffffffe R11: 0000000000000217 R12: 0000000000401870 [ 34.947896] R13: 0000000000401900 R14: 0000000000000000 R15: 0000000000000000 [ 34.955502] Dumping ftrace buffer: [ 34.959012] (ftrace buffer empty) [ 34.962697] Kernel Offset: disabled [ 34.966295] Rebooting in 86400 seconds..