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-6,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: [ 32.792659] ================================================================== [ 32.793785] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x303d/0x3170 [ 32.794747] Read of size 4 at addr ffff8801cf49e5e8 by task syzkaller069388/3040 [ 32.795816] [ 32.796065] CPU: 0 PID: 3040 Comm: syzkaller069388 Not tainted 4.13.0-rc5+ #42 [ 32.797096] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.798353] Call Trace: [ 32.798714] dump_stack+0x194/0x257 [ 32.799358] ? arch_local_irq_restore+0x53/0x53 [ 32.800023] ? show_regs_print_info+0x65/0x65 [ 32.800626] ? lock_release+0xa40/0xa40 [ 32.801163] ? xfrm_state_find+0x303d/0x3170 [ 32.801756] print_address_description+0x73/0x250 [ 32.802439] ? xfrm_state_find+0x303d/0x3170 [ 32.803078] kasan_report+0x24e/0x340 [ 32.803594] __asan_report_load4_noabort+0x14/0x20 [ 32.804250] xfrm_state_find+0x303d/0x3170 [ 32.804897] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 32.805592] ? __lock_acquire+0x6ef/0x3dc0 [ 32.806177] ? print_usage_bug+0x480/0x480 [ 32.806749] ? check_noncircular+0x20/0x20 [ 32.807316] ? check_noncircular+0x20/0x20 [ 32.807893] ? __lock_acquire+0x6ef/0x3dc0 [ 32.808461] ? print_usage_bug+0x480/0x480 [ 32.809089] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.809783] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.810452] ? fib_table_lookup+0xa07/0x1a30 [ 32.811058] xfrm_tmpl_resolve+0x309/0xbf0 [ 32.811642] ? __xfrm_dst_lookup+0x120/0x120 [ 32.812233] ? __lock_is_held+0xb6/0x140 [ 32.812785] ? check_noncircular+0x20/0x20 [ 32.817010] ? check_noncircular+0x20/0x20 [ 32.821247] ? rcu_read_lock_held+0xa9/0xc0 [ 32.825541] ? find_exception+0x3aa/0x520 [ 32.829670] xfrm_resolve_and_create_bundle+0x102/0x2080 [ 32.835093] ? lock_downgrade+0x990/0x990 [ 32.839228] ? __xfrm_decode_session+0x100/0x100 [ 32.843959] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 32.848689] ? lock_downgrade+0x990/0x990 [ 32.852810] ? lock_release+0xa40/0xa40 [ 32.856756] ? refcount_inc_not_zero+0xfe/0x180 [ 32.861399] ? xfrm_selector_match+0x3b/0xe00 [ 32.865867] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 32.870598] ? xfrm_selector_match+0xe00/0xe00 [ 32.875163] xfrm_lookup+0xd39/0x11c0 [ 32.878929] ? xfrm_lookup+0xd39/0x11c0 [ 32.882879] ? xfrm_sk_policy_lookup+0x3d0/0x3d0 [ 32.887610] ? lock_release+0xa40/0xa40 [ 32.891557] ? selinux_nf_register+0x30/0x30 [ 32.895944] ? selinux_sock_rcv_skb_compat+0x2f4/0x480 [ 32.901197] ? ip_route_output_key_hash+0x252/0x370 [ 32.906187] ? ip_route_output_key_hash_rcu+0x2bb0/0x2bb0 [ 32.911791] xfrm_lookup_route+0x39/0x1a0 [ 32.915915] ip_route_output_flow+0x7c/0xa0 [ 32.920218] inet_csk_route_req+0x5d8/0x990 [ 32.924513] ? selinux_socket_sock_rcv_skb+0x388/0x870 [ 32.929775] tcp_v4_send_synack+0x1e4/0x270 [ 32.934075] ? tcp_v4_send_check+0x90/0x90 [ 32.938293] ? sk_filter_trim_cap+0x3f3/0x9b0 [ 32.942762] ? prandom_u32_state+0x13/0x180 [ 32.947067] tcp_rtx_synack+0x119/0x2e0 [ 32.951013] ? tcp_event_new_data_sent+0x2e0/0x2e0 [ 32.955923] ? __lock_is_held+0xb6/0x140 [ 32.959966] inet_rtx_syn_ack+0x64/0xd0 [ 32.963915] tcp_check_req+0xae3/0x1620 [ 32.967864] ? tcp_openreq_init_rwin+0xae0/0xae0 [ 32.972861] ? refcount_inc_not_zero+0xfe/0x180 [ 32.977503] ? refcount_add+0x60/0x60 [ 32.981279] ? tcp_v4_reqsk_send_ack+0x3e0/0x3e0 [ 32.986019] ? tcp_filter+0x111/0x160 [ 32.989824] tcp_v4_rcv+0x1e60/0x2e20 [ 32.993601] ? lock_acquire+0x1d5/0x580 [ 32.997544] ? lock_acquire+0x1d5/0x580 [ 33.001517] ? tcp_v4_early_demux+0xa30/0xa30 [ 33.006001] ip_local_deliver_finish+0x2e2/0xba0 [ 33.010738] ? inet_del_offload+0x40/0x40 [ 33.014869] ip_local_deliver+0x1ce/0x6d0 [ 33.018988] ? ip_call_ra_chain+0x6d0/0x6d0 [ 33.023298] ? inet_del_offload+0x40/0x40 [ 33.027427] ip_rcv_finish+0x8db/0x19c0 [ 33.031379] ? iptable_nat_ipv4_fn+0x40/0x40 [ 33.035775] ? ip_local_deliver_finish+0xba0/0xba0 [ 33.040697] ? ip_rcv+0xf05/0x17d0 [ 33.044211] ? lock_downgrade+0x990/0x990 [ 33.048340] ? tcp_v4_send_synack+0x270/0x270 [ 33.052814] ? rcu_read_lock_held+0xa9/0xc0 [ 33.057116] ? nf_hook_slow+0x12d/0x290 [ 33.061082] ip_rcv+0xc3f/0x17d0 [ 33.064433] ? ip_local_deliver+0x6d0/0x6d0 [ 33.068757] ? ip_local_deliver_finish+0xba0/0xba0 [ 33.073670] ? ip_local_deliver+0x6d0/0x6d0 [ 33.077980] __netif_receive_skb_core+0x1b05/0x3230 [ 33.082998] ? nf_ingress+0x980/0x980 [ 33.086775] ? print_usage_bug+0x480/0x480 [ 33.090981] ? lock_downgrade+0x990/0x990 [ 33.095138] ? __free_insn_slot+0x5c0/0x5c0 [ 33.099449] ? is_bpf_text_address+0xa4/0x120 [ 33.103919] ? check_noncircular+0x20/0x20 [ 33.108133] ? unwind_get_return_address+0x61/0xa0 [ 33.113045] ? __save_stack_trace+0x7e/0xd0 [ 33.117348] ? depot_save_stack+0x12c/0x490 [ 33.121656] ? find_held_lock+0x35/0x1d0 [ 33.125705] ? lock_downgrade+0x990/0x990 [ 33.129824] ? __skb_flow_get_ports+0x151/0x400 [ 33.134482] ? pvclock_read_flags+0x160/0x160 [ 33.138957] ? lock_acquire+0x1d5/0x580 [ 33.142905] ? lock_acquire+0x1d5/0x580 [ 33.146854] ? netif_receive_skb_internal+0xf1/0x1a50 [ 33.152021] ? ktime_get_with_offset+0x2c1/0x420 [ 33.156758] ? lock_release+0xa40/0xa40 [ 33.160707] ? do_gettimeofday+0x190/0x190 [ 33.164926] ? netif_receive_skb_internal+0xf1/0x1a50 [ 33.170101] __netif_receive_skb+0x2c/0x1b0 [ 33.174404] ? __netif_receive_skb+0x2c/0x1b0 [ 33.178877] ? netif_receive_skb_internal+0xf1/0x1a50 [ 33.184051] netif_receive_skb_internal+0x16a/0x1a50 [ 33.189141] ? __alloc_skb+0x548/0x740 [ 33.193013] ? dev_queue_xmit_accel+0x30/0x30 [ 33.197495] ? lock_downgrade+0x990/0x990 [ 33.201622] ? do_raw_spin_trylock+0x190/0x190 [ 33.206187] ? __free_pages_ok+0x718/0x3150 [ 33.210499] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.215499] ? __free_pages_ok+0x1257/0x3150 [ 33.219893] ? find_held_lock+0x35/0x1d0 [ 33.223971] ? __might_fault+0x110/0x1d0 [ 33.228062] ? lock_downgrade+0x990/0x990 [ 33.232209] ? lock_release+0xa40/0xa40 [ 33.236173] ? check_same_owner+0x320/0x320 [ 33.240472] ? rcu_pm_notify+0xc0/0xc0 [ 33.244349] netif_receive_skb+0xae/0x390 [ 33.248474] ? netif_receive_skb_internal+0x1a50/0x1a50 [ 33.253816] ? _copy_from_iter+0x367/0xf30 [ 33.258035] ? __check_object_size+0x25d/0x4f0 [ 33.262609] ? tun_rx_batched.isra.42+0x5bd/0x860 [ 33.267433] tun_rx_batched.isra.42+0x5e7/0x860 [ 33.272081] ? skb_get_hash_perturb+0x9d0/0x9d0 [ 33.276731] ? tun_sock_write_space+0x370/0x370 [ 33.281378] ? tun_free_netdev+0x1b0/0x1b0 [ 33.285604] tun_get_user+0xde5/0x2910 [ 33.289513] ? tun_chr_ioctl+0x40/0x40 [ 33.293393] ? find_held_lock+0x35/0x1d0 [ 33.297442] ? __fget+0x333/0x570 [ 33.300879] ? find_held_lock+0x35/0x1d0 [ 33.304923] ? __tun_get+0x1ab/0x2e0 [ 33.308614] ? lock_downgrade+0x990/0x990 [ 33.312745] ? lock_release+0xa40/0xa40 [ 33.316702] ? __lock_is_held+0xb6/0x140 [ 33.320755] ? __tun_get+0x1d4/0x2e0 [ 33.324442] ? tun_chr_close+0x60/0x60 [ 33.328315] tun_chr_write_iter+0xd8/0x190 [ 33.332536] __vfs_write+0x684/0x970 [ 33.336235] ? default_llseek+0x290/0x290 [ 33.340375] ? avc_policy_seqno+0x9/0x20 [ 33.344415] ? selinux_file_permission+0x82/0x460 [ 33.349250] ? rw_verify_area+0xe5/0x2b0 [ 33.353289] ? __fdget_raw+0x20/0x20 [ 33.356984] vfs_write+0x189/0x510 [ 33.360507] SyS_write+0xef/0x220 [ 33.363942] ? SyS_read+0x220/0x220 [ 33.367541] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.372534] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.377270] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.382010] RIP: 0033:0x405b21 [ 33.385174] RSP: 002b:00007fdfc9d50d90 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 33.392855] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000405b21 [ 33.400098] RDX: 0000000000000036 RSI: 0000000020002000 RDI: 0000000000000003 [ 33.407340] RBP: 0000000000000086 R08: 0000000000000013 R09: 00007fdfc9d51700 [ 33.414583] R10: 00007fdfc9d519d0 R11: 0000000000000293 R12: 0000000000000000 [ 33.421836] R13: 00007ffebdd25bbf R14: 00007fdfc9d519c0 R15: 0000000000000000 [ 33.429096] [ 33.430696] The buggy address belongs to the page: [ 33.435601] page:ffffea00073d2780 count:0 mapcount:0 mapping: (null) index:0xffff8801cf49eb00 [ 33.445025] flags: 0x200000000000000() [ 33.448883] raw: 0200000000000000 0000000000000000 ffff8801cf49eb00 00000000ffffffff [ 33.456735] raw: dead000000000100 dead000000000200 0000000000000000 0000000000000000 [ 33.464593] page dumped because: kasan: bad access detected [ 33.470280] [ 33.471876] Memory state around the buggy address: [ 33.476775] ffff8801cf49e480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.484107] ffff8801cf49e500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.491444] >ffff8801cf49e580: 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 f2 f3 f3 [ 33.498776] ^ [ 33.505514] ffff8801cf49e600: f3 f3 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 [ 33.512854] ffff8801cf49e680: 00 00 00 00 00 00 00 f2 f2 f3 f3 f3 f3 00 00 00 [ 33.520183] ================================================================== [ 33.527510] Disabling lock debugging due to kernel taint [ 33.532978] Kernel panic - not syncing: panic_on_warn set ... [ 33.532978] [ 33.540323] CPU: 0 PID: 3040 Comm: syzkaller069388 Tainted: G B 4.13.0-rc5+ #42 [ 33.548863] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.558185] Call Trace: [ 33.560875] dump_stack+0x194/0x257 [ 33.564478] ? arch_local_irq_restore+0x53/0x53 [ 33.569126] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.573860] ? handle_irq_event+0xb2/0x140 [ 33.578067] ? xfrm_state_find+0x2ff0/0x3170 [ 33.582444] panic+0x1e4/0x417 [ 33.585606] ? __warn+0x1d9/0x1d9 [ 33.589036] ? xfrm_state_find+0x303d/0x3170 [ 33.593415] kasan_end_report+0x50/0x50 [ 33.597359] kasan_report+0x137/0x340 [ 33.601129] __asan_report_load4_noabort+0x14/0x20 [ 33.606036] xfrm_state_find+0x303d/0x3170 [ 33.610248] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 33.615326] ? __lock_acquire+0x6ef/0x3dc0 [ 33.619534] ? print_usage_bug+0x480/0x480 [ 33.623738] ? check_noncircular+0x20/0x20 [ 33.627937] ? check_noncircular+0x20/0x20 [ 33.632155] ? __lock_acquire+0x6ef/0x3dc0 [ 33.636357] ? print_usage_bug+0x480/0x480 [ 33.640564] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.645726] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.650712] ? fib_table_lookup+0xa07/0x1a30 [ 33.655096] xfrm_tmpl_resolve+0x309/0xbf0 [ 33.659311] ? __xfrm_dst_lookup+0x120/0x120 [ 33.663687] ? __lock_is_held+0xb6/0x140 [ 33.667725] ? check_noncircular+0x20/0x20 [ 33.671931] ? check_noncircular+0x20/0x20 [ 33.676141] ? rcu_read_lock_held+0xa9/0xc0 [ 33.680428] ? find_exception+0x3aa/0x520 [ 33.684546] xfrm_resolve_and_create_bundle+0x102/0x2080 [ 33.689963] ? lock_downgrade+0x990/0x990 [ 33.694084] ? __xfrm_decode_session+0x100/0x100 [ 33.698808] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 33.703535] ? lock_downgrade+0x990/0x990 [ 33.707661] ? lock_release+0xa40/0xa40 [ 33.711608] ? refcount_inc_not_zero+0xfe/0x180 [ 33.716252] ? xfrm_selector_match+0x3b/0xe00 [ 33.720721] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 33.725446] ? xfrm_selector_match+0xe00/0xe00 [ 33.730001] xfrm_lookup+0xd39/0x11c0 [ 33.733770] ? xfrm_lookup+0xd39/0x11c0 [ 33.737713] ? xfrm_sk_policy_lookup+0x3d0/0x3d0 [ 33.742438] ? lock_release+0xa40/0xa40 [ 33.746386] ? selinux_nf_register+0x30/0x30 [ 33.750768] ? selinux_sock_rcv_skb_compat+0x2f4/0x480 [ 33.756024] ? ip_route_output_key_hash+0x252/0x370 [ 33.761017] ? ip_route_output_key_hash_rcu+0x2bb0/0x2bb0 [ 33.766532] xfrm_lookup_route+0x39/0x1a0 [ 33.770649] ip_route_output_flow+0x7c/0xa0 [ 33.774939] inet_csk_route_req+0x5d8/0x990 [ 33.779232] ? selinux_socket_sock_rcv_skb+0x388/0x870 [ 33.784478] tcp_v4_send_synack+0x1e4/0x270 [ 33.788769] ? tcp_v4_send_check+0x90/0x90