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.18' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 32.625863] ================================================================== [ 32.626944] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x303d/0x3170 [ 32.627892] Read of size 4 at addr ffff8801d2257760 by task syzkaller539513/2990 [ 32.628879] [ 32.629111] CPU: 1 PID: 2990 Comm: syzkaller539513 Not tainted 4.14.0-rc5-next-20171018+ #36 [ 32.630230] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.631448] Call Trace: [ 32.631808] dump_stack+0x194/0x257 [ 32.632344] ? arch_local_irq_restore+0x53/0x53 [ 32.632981] ? show_regs_print_info+0x65/0x65 [ 32.633584] ? lock_release+0xa40/0xa40 [ 32.634139] ? xfrm_state_find+0x303d/0x3170 [ 32.634729] print_address_description+0x73/0x250 [ 32.635390] ? xfrm_state_find+0x303d/0x3170 [ 32.636007] kasan_report+0x25b/0x340 [ 32.636525] __asan_report_load4_noabort+0x14/0x20 [ 32.637206] xfrm_state_find+0x303d/0x3170 [ 32.637793] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 32.638496] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.639194] ? __is_insn_slot_addr+0x1fc/0x330 [ 32.639806] ? check_noncircular+0x20/0x20 [ 32.640371] ? lock_downgrade+0x990/0x990 [ 32.640937] ? __lock_acquire+0x6aa/0x3d50 [ 32.641507] ? is_bpf_text_address+0x7b/0x120 [ 32.642115] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.642807] ? depot_save_stack+0x3b5/0x490 [ 32.643383] ? lock_downgrade+0x990/0x990 [ 32.643942] ? do_raw_spin_trylock+0x190/0x190 [ 32.644556] ? is_bpf_text_address+0xa4/0x120 [ 32.645173] ? kernel_text_address+0x102/0x140 [ 32.645791] xfrm_tmpl_resolve+0x309/0xc00 [ 32.648903] ? __xfrm_decode_session+0x100/0x100 [ 32.653624] ? save_stack+0x43/0xd0 [ 32.657217] ? kasan_kmalloc+0xad/0xe0 [ 32.661071] ? kasan_slab_alloc+0x12/0x20 [ 32.665183] ? kmem_cache_alloc+0x12e/0x760 [ 32.669476] ? find_held_lock+0x35/0x1d0 [ 32.673514] ? rt_add_uncached_list+0x1b7/0x240 [ 32.678153] ? lock_downgrade+0x990/0x990 [ 32.682272] xfrm_resolve_and_create_bundle+0x186/0x24a0 [ 32.687690] ? kmem_cache_alloc+0x4e9/0x760 [ 32.691980] ? lock_downgrade+0x990/0x990 [ 32.696099] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.701081] ? rt_add_uncached_list+0x1b7/0x240 [ 32.705722] ? _raw_spin_unlock_bh+0x30/0x40 [ 32.710098] ? xfrm_tmpl_resolve+0xc00/0xc00 [ 32.714474] ? find_held_lock+0x35/0x1d0 [ 32.718509] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 32.723233] ? lock_downgrade+0x990/0x990 [ 32.727350] ? lock_release+0xa40/0xa40 [ 32.731295] ? refcount_inc_not_zero+0xfe/0x180 [ 32.735940] ? xfrm_selector_match+0x3b/0xe00 [ 32.740405] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 32.745137] ? xfrm_selector_match+0xe00/0xe00 [ 32.749691] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 32.755118] xfrm_lookup+0xf0a/0x2540 [ 32.758887] ? xfrm_lookup+0xf0a/0x2540 [ 32.762843] ? check_noncircular+0x20/0x20 [ 32.767057] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 32.773432] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.778589] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.783580] ? find_held_lock+0x35/0x1d0 [ 32.787614] ? ip_route_output_key_hash+0x229/0x370 [ 32.792597] ? lock_downgrade+0x990/0x990 [ 32.796713] ? lock_release+0xa40/0xa40 [ 32.800661] ? find_held_lock+0x35/0x1d0 [ 32.804703] ? ip_route_output_key_hash+0x252/0x370 [ 32.809688] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 32.815194] ? lock_release+0xa40/0xa40 [ 32.819148] xfrm_lookup_route+0x39/0x1a0 [ 32.823269] ip_route_output_flow+0x7c/0xa0 [ 32.827561] udp_sendmsg+0x19b8/0x2cd0 [ 32.831419] ? ip_reply_glue_bits+0xb0/0xb0 [ 32.835716] ? udp_lib_get_port+0x1c00/0x1c00 [ 32.840183] ? find_held_lock+0x35/0x1d0 [ 32.844221] ? udp_lib_get_port+0x793/0x1c00 [ 32.848598] ? lock_downgrade+0x990/0x990 [ 32.852725] ? __local_bh_enable_ip+0x9d/0x160 [ 32.857275] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.862256] ? udp_lib_get_port+0x793/0x1c00 [ 32.866633] ? trace_hardirqs_on+0xd/0x10 [ 32.870746] ? __local_bh_enable_ip+0x9d/0x160 [ 32.875299] ? check_noncircular+0x20/0x20 [ 32.879497] ? udp_lib_get_port+0x798/0x1c00 [ 32.883879] udpv6_sendmsg+0x743/0x3380 [ 32.887822] ? check_noncircular+0x20/0x20 [ 32.892033] ? udpv6_setsockopt+0x80/0x80 [ 32.896150] ? reacquire_held_locks+0x1fd/0x3d0 [ 32.900784] ? reacquire_held_locks+0x1fd/0x3d0 [ 32.905424] ? find_held_lock+0x35/0x1d0 [ 32.909462] ? release_sock+0x1d4/0x2a0 [ 32.913403] ? lock_downgrade+0x990/0x990 [ 32.917515] ? lock_downgrade+0x990/0x990 [ 32.921633] ? do_raw_spin_trylock+0x190/0x190 [ 32.926187] ? __local_bh_enable_ip+0x9d/0x160 [ 32.930739] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.935720] ? release_sock+0x1d4/0x2a0 [ 32.939659] ? trace_hardirqs_on+0xd/0x10 [ 32.943772] ? __local_bh_enable_ip+0x9d/0x160 [ 32.948321] ? _raw_spin_unlock_bh+0x30/0x40 [ 32.952697] ? release_sock+0x1d4/0x2a0 [ 32.956641] ? __release_sock+0x360/0x360 [ 32.960756] ? udp6_portaddr_hash+0x146/0x2f0 [ 32.965223] ? udp_v6_get_port+0x9c/0xc0 [ 32.969258] inet_sendmsg+0x11f/0x5e0 [ 32.973023] ? inet_sendmsg+0x11f/0x5e0 [ 32.976964] ? __might_sleep+0x95/0x190 [ 32.980908] ? inet_recvmsg+0x5f0/0x5f0 [ 32.984854] ? selinux_socket_sendmsg+0x36/0x40 [ 32.989488] ? security_socket_sendmsg+0x89/0xb0 [ 32.994208] ? inet_recvmsg+0x5f0/0x5f0 [ 32.998150] sock_sendmsg+0xca/0x110 [ 33.001840] SYSC_sendto+0x352/0x5a0 [ 33.005524] ? SYSC_connect+0x470/0x470 [ 33.009475] ? mm_fault_error+0x2c0/0x2c0 [ 33.013594] ? ipv6_setsockopt+0xa8/0x150 [ 33.017717] ? __do_page_fault+0xd60/0xd60 [ 33.021929] ? SyS_recv+0x40/0x40 [ 33.025350] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 33.030160] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.035147] SyS_sendto+0x40/0x50 [ 33.038575] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.043295] RIP: 0033:0x43ff99 [ 33.046451] RSP: 002b:00007ffe79365478 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 33.054124] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff99 [ 33.061361] RDX: 0000000000000000 RSI: 0000000020a9f000 RDI: 0000000000000003 [ 33.068601] RBP: 0000000000000082 R08: 00000000204e3fe4 R09: 000000000000001c [ 33.075839] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401900 [ 33.083077] R13: 0000000000401990 R14: 0000000000000000 R15: 0000000000000000 [ 33.090330] [ 33.091922] The buggy address belongs to the page: [ 33.096819] page:ffffea00074895c0 count:0 mapcount:0 mapping: (null) index:0x0 [ 33.104928] flags: 0x200000000000000() [ 33.108786] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 33.116634] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 33.124478] page dumped because: kasan: bad access detected [ 33.130151] [ 33.131745] Memory state around the buggy address: [ 33.136639] ffff8801d2257600: 00 f1 f1 f1 f1 04 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 [ 33.143963] ffff8801d2257680: f2 f2 f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 00 00 [ 33.151289] >ffff8801d2257700: 00 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 [ 33.158614] ^ [ 33.165069] ffff8801d2257780: f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 f3 f3 f3 [ 33.172392] ffff8801d2257800: f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.179718] ================================================================== [ 33.187042] Disabling lock debugging due to kernel taint [ 33.192510] Kernel panic - not syncing: panic_on_warn set ... [ 33.192510] [ 33.199842] CPU: 1 PID: 2990 Comm: syzkaller539513 Tainted: G B 4.14.0-rc5-next-20171018+ #36 [ 33.209681] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.218998] Call Trace: [ 33.221553] dump_stack+0x194/0x257 [ 33.225146] ? arch_local_irq_restore+0x53/0x53 [ 33.229783] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.234506] ? vsnprintf+0x1ed/0x1900 [ 33.238275] ? xfrm_state_find+0x2f60/0x3170 [ 33.242648] panic+0x1e4/0x41c [ 33.245806] ? refcount_error_report+0x214/0x214 [ 33.250531] ? add_taint+0x1c/0x50 [ 33.254037] ? add_taint+0x1c/0x50 [ 33.257544] ? xfrm_state_find+0x303d/0x3170 [ 33.261917] kasan_end_report+0x50/0x50 [ 33.265854] kasan_report+0x144/0x340 [ 33.269621] __asan_report_load4_noabort+0x14/0x20 [ 33.274515] xfrm_state_find+0x303d/0x3170 [ 33.278725] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 33.283803] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.288965] ? __is_insn_slot_addr+0x1fc/0x330 [ 33.293512] ? check_noncircular+0x20/0x20 [ 33.297709] ? lock_downgrade+0x990/0x990 [ 33.301829] ? __lock_acquire+0x6aa/0x3d50 [ 33.306031] ? is_bpf_text_address+0x7b/0x120 [ 33.310504] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.315660] ? depot_save_stack+0x3b5/0x490 [ 33.319947] ? lock_downgrade+0x990/0x990 [ 33.324064] ? do_raw_spin_trylock+0x190/0x190 [ 33.328614] ? is_bpf_text_address+0xa4/0x120 [ 33.333076] ? kernel_text_address+0x102/0x140 [ 33.337627] xfrm_tmpl_resolve+0x309/0xc00 [ 33.341835] ? __xfrm_decode_session+0x100/0x100 [ 33.346554] ? save_stack+0x43/0xd0 [ 33.350145] ? kasan_kmalloc+0xad/0xe0 [ 33.353994] ? kasan_slab_alloc+0x12/0x20 [ 33.358106] ? kmem_cache_alloc+0x12e/0x760 [ 33.362403] ? find_held_lock+0x35/0x1d0 [ 33.366431] ? rt_add_uncached_list+0x1b7/0x240 [ 33.371066] ? lock_downgrade+0x990/0x990 [ 33.375182] xfrm_resolve_and_create_bundle+0x186/0x24a0 [ 33.380597] ? kmem_cache_alloc+0x4e9/0x760 [ 33.384884] ? lock_downgrade+0x990/0x990 [ 33.388999] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.393978] ? rt_add_uncached_list+0x1b7/0x240 [ 33.398614] ? _raw_spin_unlock_bh+0x30/0x40 [ 33.402988] ? xfrm_tmpl_resolve+0xc00/0xc00 [ 33.407362] ? find_held_lock+0x35/0x1d0 [ 33.411391] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 33.416110] ? lock_downgrade+0x990/0x990 [ 33.420223] ? lock_release+0xa40/0xa40 [ 33.424334] ? refcount_inc_not_zero+0xfe/0x180 [ 33.428976] ? xfrm_selector_match+0x3b/0xe00 [ 33.433437] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 33.438158] ? xfrm_selector_match+0xe00/0xe00 [ 33.442709] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 33.448126] xfrm_lookup+0xf0a/0x2540 [ 33.451890] ? xfrm_lookup+0xf0a/0x2540 [ 33.455832] ? check_noncircular+0x20/0x20 [ 33.460034] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 33.466404] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.471557] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.476541] ? find_held_lock+0x35/0x1d0 [ 33.480570] ? ip_route_output_key_hash+0x229/0x370 [ 33.485552] ? lock_downgrade+0x990/0x990 [ 33.489666] ? lock_release+0xa40/0xa40 [ 33.493606] ? find_held_lock+0x35/0x1d0 [ 33.497638] ? ip_route_output_key_hash+0x252/0x370 [ 33.502617] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 33.508116] ? lock_release+0xa40/0xa40 [ 33.512056] xfrm_lookup_route+0x39/0x1a0 [ 33.516170] ip_route_output_flow+0x7c/0xa0 [ 33.520456] udp_sendmsg+0x19b8/0x2cd0 [ 33.524311] ? ip_reply_glue_bits+0xb0/0xb0 [ 33.528605] ? udp_lib_get_port+0x1c00/0x1c00 [ 33.533069] ? find_held_lock+0x35/0x1d0 [ 33.537096] ? udp_lib_get_port+0x793/0x1c00 [ 33.541469] ? lock_downgrade+0x990/0x990 [ 33.545588] ? __local_bh_enable_ip+0x9d/0x160 [ 33.550137] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.555116] ? udp_lib_get_port+0x793/0x1c00 [ 33.559493] ? trace_hardirqs_on+0xd/0x10 [ 33.563605] ? __local_bh_enable_ip+0x9d/0x160 [ 33.568152] ? check_noncircular+0x20/0x20 [ 33.572350] ? udp_lib_get_port+0x798/0x1c00 [ 33.576724] udpv6_sendmsg+0x743/0x3380 [ 33.580665] ? check_noncircular+0x20/0x20 [ 33.584868] ? udpv6_setsockopt+0x80/0x80 [ 33.588981] ? reacquire_held_locks+0x1fd/0x3d0 [ 33.593612] ? reacquire_held_locks+0x1fd/0x3d0 [ 33.598245] ? find_held_lock+0x35/0x1d0 [ 33.602274] ? release_sock+0x1d4/0x2a0 [ 33.606213] ? lock_downgrade+0x990/0x990 [ 33.610324] ? lock_downgrade+0x990/0x990 [ 33.614437] ? do_raw_spin_trylock+0x190/0x190 [ 33.618984] ? __local_bh_enable_ip+0x9d/0x160 [ 33.623534] ? trace_hardirqs_on_caller+0x421/0x5c0