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-5,10.128.15.213' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 executing program syzkaller login: [ 42.207974] ================================================================== [ 42.209181] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x303d/0x3170 [ 42.210174] Read of size 4 at addr ffff8801ce35e898 by task syzkaller251772/3061 [ 42.211440] [ 42.211709] CPU: 0 PID: 3061 Comm: syzkaller251772 Not tainted 4.13.0-rc5-next-20170817+ #5 [ 42.212998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.214454] Call Trace: [ 42.214823] dump_stack+0x194/0x257 [ 42.215367] ? arch_local_irq_restore+0x53/0x53 [ 42.216079] ? show_regs_print_info+0x65/0x65 [ 42.216695] ? lock_release+0xa40/0xa40 [ 42.217278] ? xfrm_state_find+0x303d/0x3170 [ 42.217938] print_address_description+0x73/0x250 [ 42.218656] ? xfrm_state_find+0x303d/0x3170 [ 42.219297] kasan_report+0x24e/0x340 [ 42.219884] __asan_report_load4_noabort+0x14/0x20 [ 42.220645] xfrm_state_find+0x303d/0x3170 [ 42.221251] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 42.222053] ? print_usage_bug+0x480/0x480 [ 42.222718] ? __lock_acquire+0x6aa/0x3bc0 [ 42.223391] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.224188] ? __lock_acquire+0x6aa/0x3bc0 [ 42.224866] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.225630] ? print_usage_bug+0x480/0x480 [ 42.226239] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.227010] ? check_noncircular+0x20/0x20 [ 42.227640] xfrm_tmpl_resolve+0x309/0xc00 [ 42.229092] ? __xfrm_decode_session+0x100/0x100 [ 42.233822] ? __lock_is_held+0xb6/0x140 [ 42.237869] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.242865] ? fib_table_lookup+0xa07/0x1a30 [ 42.247264] xfrm_resolve_and_create_bundle+0x186/0x24a0 [ 42.252696] ? check_noncircular+0x20/0x20 [ 42.256925] ? check_noncircular+0x20/0x20 [ 42.261133] ? xfrm_tmpl_resolve+0xc00/0xc00 [ 42.265524] ? find_held_lock+0x35/0x1d0 [ 42.269584] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 42.274329] ? lock_downgrade+0x990/0x990 [ 42.279336] ? lock_release+0xa40/0xa40 [ 42.283294] ? refcount_inc_not_zero+0xfe/0x180 [ 42.287950] ? xfrm_selector_match+0x3b/0xe00 [ 42.292431] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 42.297179] ? xfrm_selector_match+0xe00/0xe00 [ 42.301750] xfrm_lookup+0xefb/0x2540 [ 42.305528] ? xfrm_lookup+0xefb/0x2540 [ 42.309494] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 42.315893] ? __fib_validate_source+0x72d/0x1a10 [ 42.320723] ? netlbl_enabled+0x52/0xe0 [ 42.324666] ? netlbl_catmap_setrng+0xb0/0xb0 [ 42.329149] ? print_usage_bug+0x480/0x480 [ 42.333367] ? find_held_lock+0x35/0x1d0 [ 42.337421] ? ip_route_output_key_hash+0x229/0x370 [ 42.342419] ? lock_downgrade+0x990/0x990 [ 42.346555] ? lock_release+0xa40/0xa40 [ 42.350507] ? selinux_nf_register+0x30/0x30 [ 42.354896] ? __lock_acquire+0x6aa/0x3bc0 [ 42.359117] ? selinux_sock_rcv_skb_compat+0x2f4/0x480 [ 42.364375] ? ip_route_output_key_hash+0x252/0x370 [ 42.369383] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 42.374905] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.380086] xfrm_lookup_route+0x39/0x1a0 [ 42.384209] ip_route_output_flow+0x7c/0xa0 [ 42.388505] inet_csk_route_req+0x5d8/0x990 [ 42.392797] ? selinux_socket_sock_rcv_skb+0x388/0x870 [ 42.398061] tcp_v4_send_synack+0x1e4/0x270 [ 42.402357] ? tcp_v4_send_check+0x90/0x90 [ 42.406595] ? sk_filter_trim_cap+0x3f3/0x9b0 [ 42.411059] ? prandom_u32_state+0x13/0x180 [ 42.415355] tcp_rtx_synack+0x119/0x2e0 [ 42.419299] ? tcp_event_new_data_sent+0x2e0/0x2e0 [ 42.424207] ? __lock_is_held+0xb6/0x140 [ 42.428281] inet_rtx_syn_ack+0x64/0xd0 [ 42.432228] tcp_check_req+0xae3/0x1620 [ 42.436174] ? tcp_openreq_init_rwin+0xae0/0xae0 [ 42.440894] ? refcount_inc_not_zero+0xfe/0x180 [ 42.445529] ? refcount_add+0x60/0x60 [ 42.449296] ? tcp_v4_reqsk_send_ack+0x3e0/0x3e0 [ 42.454033] ? tcp_filter+0x111/0x160 [ 42.457805] tcp_v4_rcv+0x1e67/0x2e10 [ 42.461586] ? lock_acquire+0x1d5/0x580 [ 42.465532] ? lock_acquire+0x1d5/0x580 [ 42.469525] ? tcp_v4_early_demux+0xa30/0xa30 [ 42.474000] ip_local_deliver_finish+0x2e2/0xba0 [ 42.478728] ? inet_del_offload+0x40/0x40 [ 42.482852] ip_local_deliver+0x1ce/0x6d0 [ 42.486975] ? ip_call_ra_chain+0x6d0/0x6d0 [ 42.491273] ? inet_del_offload+0x40/0x40 [ 42.495396] ip_rcv_finish+0x8db/0x19c0 [ 42.499344] ? iptable_nat_ipv4_fn+0x40/0x40 [ 42.503750] ? ip_local_deliver_finish+0xba0/0xba0 [ 42.508670] ? ip_rcv+0xf05/0x17d0 [ 42.512177] ? lock_downgrade+0x990/0x990 [ 42.516295] ? tcp_v4_send_synack+0x270/0x270 [ 42.520766] ? rcu_read_lock_held+0xa9/0xc0 [ 42.525055] ? nf_hook_slow+0x12d/0x290 [ 42.529037] ip_rcv+0xc3f/0x17d0 [ 42.532378] ? ip_local_deliver+0x6d0/0x6d0 [ 42.536671] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.541841] ? __lock_acquire+0x6aa/0x3bc0 [ 42.546056] ? ip_local_deliver_finish+0xba0/0xba0 [ 42.550956] ? ip_local_deliver+0x6d0/0x6d0 [ 42.555252] __netif_receive_skb_core+0x19af/0x33d0 [ 42.560240] ? unwind_get_return_address+0x61/0xa0 [ 42.565176] ? nf_ingress+0x9f0/0x9f0 [ 42.568966] ? save_stack+0xa3/0xd0 [ 42.572565] ? save_stack_trace+0x16/0x20 [ 42.576678] ? save_stack+0x43/0xd0 [ 42.580275] ? kasan_kmalloc+0xad/0xe0 [ 42.584135] ? kasan_slab_alloc+0x12/0x20 [ 42.588259] ? kmem_cache_alloc+0x12e/0x760 [ 42.592556] ? __build_skb+0x9d/0x450 [ 42.596330] ? build_skb+0x6f/0x260 [ 42.599927] ? tun_get_user+0x1daf/0x2150 [ 42.604040] ? tun_chr_write_iter+0xd8/0x190 [ 42.608420] ? __vfs_write+0x684/0x970 [ 42.612272] ? vfs_write+0x189/0x510 [ 42.615954] ? __skb_flow_get_ports+0x151/0x400 [ 42.620604] ? flow_get_u32_dst+0x130/0x130 [ 42.624898] ? __skb_flow_get_ports+0x151/0x400 [ 42.629550] ? check_noncircular+0x20/0x20 [ 42.633759] ? __skb_flow_dissect+0xfa6/0x3ad0 [ 42.638345] ? __skb_flow_get_ports+0x400/0x400 [ 42.642989] ? find_held_lock+0x35/0x1d0 [ 42.647025] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 42.652184] ? lock_downgrade+0x990/0x990 [ 42.656308] ? pvclock_read_flags+0x160/0x160 [ 42.660776] ? lock_acquire+0x1d5/0x580 [ 42.664716] ? lock_acquire+0x1d5/0x580 [ 42.668656] ? netif_receive_skb_internal+0x93/0x5e0 [ 42.673737] ? ktime_get_with_offset+0x2c1/0x420 [ 42.678467] ? lock_release+0xa40/0xa40 [ 42.682408] ? do_gettimeofday+0x190/0x190 [ 42.686620] __netif_receive_skb+0x2c/0x1b0 [ 42.690915] ? __netif_receive_skb+0x2c/0x1b0 [ 42.695383] netif_receive_skb_internal+0x10b/0x5e0 [ 42.700392] ? dev_cpu_dead+0xb00/0xb00 [ 42.704338] ? tun_net_xmit+0x1280/0x1280 [ 42.708460] ? rcu_pm_notify+0xc0/0xc0 [ 42.712325] netif_receive_skb+0xae/0x390 [ 42.716451] ? netif_receive_skb_internal+0x5e0/0x5e0 [ 42.721615] ? __lock_acquire+0x6aa/0x3bc0 [ 42.725831] ? tun_rx_batched.isra.43+0x5bd/0x860 [ 42.730656] tun_rx_batched.isra.43+0x5e7/0x860 [ 42.735301] ? skb_get_hash_perturb+0x9d0/0x9d0 [ 42.739939] ? tun_sock_write_space+0x370/0x370 [ 42.744585] ? tun_free_netdev+0x1b0/0x1b0 [ 42.748797] ? check_noncircular+0x20/0x20 [ 42.753008] tun_get_user+0x11dd/0x2150 [ 42.756964] ? tun_flow_update+0xf70/0xf70 [ 42.761177] ? __tun_get+0x1ab/0x2e0 [ 42.764863] ? lock_downgrade+0x990/0x990 [ 42.768990] ? lock_release+0xa40/0xa40 [ 42.772940] ? __lock_is_held+0xb6/0x140 [ 42.776983] ? __tun_get+0x1d4/0x2e0 [ 42.780663] ? tun_chr_close+0x60/0x60 [ 42.784526] tun_chr_write_iter+0xd8/0x190 [ 42.788735] __vfs_write+0x684/0x970 [ 42.792432] ? default_llseek+0x290/0x290 [ 42.796556] ? _cond_resched+0x14/0x30 [ 42.800414] ? avc_policy_seqno+0x9/0x20 [ 42.804442] ? selinux_file_permission+0x82/0x460 [ 42.809271] ? rw_verify_area+0xe5/0x2b0 [ 42.813297] ? __fdget_raw+0x20/0x20 [ 42.816983] vfs_write+0x189/0x510 [ 42.820498] SyS_write+0xef/0x220 [ 42.823937] ? SyS_read+0x220/0x220 [ 42.827554] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.832551] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.837284] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.842008] RIP: 0033:0x405b91 [ 42.845167] RSP: 002b:00007ff3688a1d90 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 42.853233] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000405b91 [ 42.860480] RDX: 0000000000000036 RSI: 0000000020002000 RDI: 0000000000000003 [ 42.867741] RBP: 0000000000000086 R08: 0000000000000013 R09: 00007ff3688a2700 [ 42.874978] R10: 00007ff3688a29d0 R11: 0000000000000293 R12: 0000000000000000 [ 42.882213] R13: 00007ffeac0f249f R14: 00007ff3688a29c0 R15: 0000000000000000 [ 42.889468] [ 42.891063] The buggy address belongs to the page: [ 42.895960] page:ffffea000738d780 count:0 mapcount:0 mapping: (null) index:0xffff8801ce35e540 [ 42.905378] flags: 0x200000000000000() [ 42.909241] raw: 0200000000000000 0000000000000000 ffff8801ce35e540 00000000ffffffff [ 42.917096] raw: dead000000000100 dead000000000200 0000000000000000 0000000000000000 [ 42.924954] page dumped because: kasan: bad access detected [ 42.930625] [ 42.932219] Memory state around the buggy address: [ 42.937113] ffff8801ce35e780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.944437] ffff8801ce35e800: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 [ 42.951766] >ffff8801ce35e880: 00 00 00 f2 f3 f3 f3 f3 00 00 00 00 00 00 00 f1 [ 42.959107] ^ [ 42.963224] ffff8801ce35e900: f1 f1 f1 00 00 00 00 00 00 00 00 00 00 f2 f2 f3 [ 42.970552] ffff8801ce35e980: f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.977878] ================================================================== [ 42.985199] Disabling lock debugging due to kernel taint [ 42.990665] Kernel panic - not syncing: panic_on_warn set ... [ 42.990665] [ 42.997999] CPU: 0 PID: 3061 Comm: syzkaller251772 Tainted: G B 4.13.0-rc5-next-20170817+ #5 [ 43.007666] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.016983] Call Trace: [ 43.019538] dump_stack+0x194/0x257 [ 43.023135] ? arch_local_irq_restore+0x53/0x53 [ 43.027772] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.032497] ? xfrm_state_find+0x3010/0x3170 [ 43.036889] panic+0x1e4/0x417 [ 43.040048] ? __warn+0x1d9/0x1d9 [ 43.043485] ? xfrm_state_find+0x303d/0x3170 [ 43.047857] kasan_end_report+0x50/0x50 [ 43.051793] kasan_report+0x137/0x340 [ 43.055561] __asan_report_load4_noabort+0x14/0x20 [ 43.060453] xfrm_state_find+0x303d/0x3170 [ 43.064674] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 43.069746] ? print_usage_bug+0x480/0x480 [ 43.073948] ? __lock_acquire+0x6aa/0x3bc0 [ 43.078159] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.083315] ? __lock_acquire+0x6aa/0x3bc0 [ 43.087521] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.092673] ? print_usage_bug+0x480/0x480 [ 43.096878] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.102032] ? check_noncircular+0x20/0x20 [ 43.106241] xfrm_tmpl_resolve+0x309/0xc00 [ 43.110447] ? __xfrm_decode_session+0x100/0x100 [ 43.115168] ? __lock_is_held+0xb6/0x140 [ 43.119203] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.124194] ? fib_table_lookup+0xa07/0x1a30 [ 43.128581] xfrm_resolve_and_create_bundle+0x186/0x24a0 [ 43.134011] ? check_noncircular+0x20/0x20 [ 43.138231] ? check_noncircular+0x20/0x20 [ 43.142437] ? xfrm_tmpl_resolve+0xc00/0xc00 [ 43.146821] ? find_held_lock+0x35/0x1d0 [ 43.150865] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 43.155617] ? lock_downgrade+0x990/0x990 [ 43.159729] ? lock_release+0xa40/0xa40 [ 43.163672] ? refcount_inc_not_zero+0xfe/0x180 [ 43.168309] ? xfrm_selector_match+0x3b/0xe00 [ 43.172770] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 43.177493] ? xfrm_selector_match+0xe00/0xe00 [ 43.182045] xfrm_lookup+0xefb/0x2540 [ 43.185813] ? xfrm_lookup+0xefb/0x2540 [ 43.189770] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 43.196148] ? __fib_validate_source+0x72d/0x1a10 [ 43.200958] ? netlbl_enabled+0x52/0xe0 [ 43.204899] ? netlbl_catmap_setrng+0xb0/0xb0