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-0,10.128.0.6' (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.001273] ================================================================== [ 42.008665] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x303d/0x3170 [ 42.015818] Read of size 4 at addr ffff8801cfc9e5e8 by task syzkaller170165/3043 [ 42.023344] [ 42.024940] CPU: 0 PID: 3043 Comm: syzkaller170165 Not tainted 4.13.0-rc5+ #41 [ 42.032264] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.041590] Call Trace: [ 42.044151] dump_stack+0x194/0x257 [ 42.047757] ? arch_local_irq_restore+0x53/0x53 [ 42.052402] ? show_regs_print_info+0x65/0x65 [ 42.056870] ? lock_release+0xa40/0xa40 [ 42.060816] ? xfrm_state_find+0x303d/0x3170 [ 42.065204] print_address_description+0x73/0x250 [ 42.070017] ? xfrm_state_find+0x303d/0x3170 [ 42.074396] kasan_report+0x24e/0x340 [ 42.078169] __asan_report_load4_noabort+0x14/0x20 [ 42.083064] xfrm_state_find+0x303d/0x3170 [ 42.087287] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 42.092373] ? __lock_acquire+0x6ef/0x3dc0 [ 42.096575] ? print_usage_bug+0x480/0x480 [ 42.100796] ? check_noncircular+0x20/0x20 [ 42.105012] ? check_noncircular+0x20/0x20 [ 42.109245] ? __lock_acquire+0x6ef/0x3dc0 [ 42.113458] ? print_usage_bug+0x480/0x480 [ 42.117675] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.122837] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.127821] ? fib_table_lookup+0xa07/0x1a30 [ 42.132229] xfrm_tmpl_resolve+0x309/0xbf0 [ 42.136453] ? __xfrm_dst_lookup+0x120/0x120 [ 42.140833] ? __lock_is_held+0xb6/0x140 [ 42.144871] ? check_noncircular+0x20/0x20 [ 42.149074] ? check_noncircular+0x20/0x20 [ 42.153280] ? rcu_read_lock_held+0xa9/0xc0 [ 42.157568] ? find_exception+0x3aa/0x520 [ 42.161693] xfrm_resolve_and_create_bundle+0x102/0x2080 [ 42.167117] ? lock_downgrade+0x990/0x990 [ 42.171250] ? __xfrm_decode_session+0x100/0x100 [ 42.175974] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 42.180699] ? lock_downgrade+0x990/0x990 [ 42.184830] ? lock_release+0xa40/0xa40 [ 42.188776] ? refcount_inc_not_zero+0xfe/0x180 [ 42.193418] ? xfrm_selector_match+0x3b/0xe00 [ 42.197886] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 42.202613] ? xfrm_selector_match+0xe00/0xe00 [ 42.207173] xfrm_lookup+0xd39/0x11c0 [ 42.210946] ? xfrm_lookup+0xd39/0x11c0 [ 42.214909] ? xfrm_sk_policy_lookup+0x3d0/0x3d0 [ 42.219646] ? lock_release+0xa40/0xa40 [ 42.223590] ? selinux_nf_register+0x30/0x30 [ 42.227975] ? selinux_sock_rcv_skb_compat+0x2f4/0x480 [ 42.233224] ? ip_route_output_key_hash+0x252/0x370 [ 42.238209] ? ip_route_output_key_hash_rcu+0x2bb0/0x2bb0 [ 42.243721] xfrm_lookup_route+0x39/0x1a0 [ 42.247847] ip_route_output_flow+0x7c/0xa0 [ 42.252139] inet_csk_route_req+0x5d8/0x990 [ 42.256517] ? selinux_socket_sock_rcv_skb+0x388/0x870 [ 42.261765] tcp_v4_send_synack+0x1e4/0x270 [ 42.266058] ? tcp_v4_send_check+0x90/0x90 [ 42.270268] ? sk_filter_trim_cap+0x3f3/0x9b0 [ 42.274727] ? prandom_u32_state+0x13/0x180 [ 42.279021] tcp_rtx_synack+0x119/0x2e0 [ 42.282963] ? tcp_event_new_data_sent+0x2e0/0x2e0 [ 42.287863] ? tcp_parse_fastopen_option+0xc1/0xf0 [ 42.292765] ? tcp_parse_options+0x188/0xa10 [ 42.297161] inet_rtx_syn_ack+0x64/0xd0 [ 42.301110] tcp_check_req+0xae3/0x1620 [ 42.305059] ? tcp_openreq_init_rwin+0xae0/0xae0 [ 42.309816] ? refcount_inc_not_zero+0xfe/0x180 [ 42.314457] ? refcount_add+0x60/0x60 [ 42.318227] ? tcp_v4_reqsk_send_ack+0x3e0/0x3e0 [ 42.322963] ? tcp_filter+0x111/0x160 [ 42.326740] tcp_v4_rcv+0x1e60/0x2e20 [ 42.330514] ? lock_acquire+0x1d5/0x580 [ 42.334473] ? lock_acquire+0x1d5/0x580 [ 42.338438] ? tcp_v4_early_demux+0xa30/0xa30 [ 42.342919] ip_local_deliver_finish+0x2e2/0xba0 [ 42.347653] ? inet_del_offload+0x40/0x40 [ 42.351781] ip_local_deliver+0x1ce/0x6d0 [ 42.355902] ? ip_call_ra_chain+0x6d0/0x6d0 [ 42.360205] ? inet_del_offload+0x40/0x40 [ 42.364330] ip_rcv_finish+0x8db/0x19c0 [ 42.368285] ? iptable_nat_ipv4_fn+0x40/0x40 [ 42.372672] ? ip_local_deliver_finish+0xba0/0xba0 [ 42.377581] ? ip_rcv+0xf05/0x17d0 [ 42.381100] ? lock_downgrade+0x990/0x990 [ 42.385219] ? tcp_v4_send_synack+0x270/0x270 [ 42.389699] ? rcu_read_lock_held+0xa9/0xc0 [ 42.393995] ? nf_hook_slow+0x12d/0x290 [ 42.397956] ip_rcv+0xc3f/0x17d0 [ 42.401298] ? ip_local_deliver+0x6d0/0x6d0 [ 42.405605] ? ip_local_deliver_finish+0xba0/0xba0 [ 42.410510] ? ip_local_deliver+0x6d0/0x6d0 [ 42.414803] __netif_receive_skb_core+0x1b05/0x3230 [ 42.419802] ? nf_ingress+0x980/0x980 [ 42.423574] ? print_usage_bug+0x480/0x480 [ 42.427780] ? lock_downgrade+0x990/0x990 [ 42.431907] ? __free_insn_slot+0x5c0/0x5c0 [ 42.436224] ? is_bpf_text_address+0xa4/0x120 [ 42.440695] ? check_noncircular+0x20/0x20 [ 42.444904] ? unwind_get_return_address+0x61/0xa0 [ 42.449810] ? __save_stack_trace+0x7e/0xd0 [ 42.454107] ? depot_save_stack+0x12c/0x490 [ 42.458412] ? find_held_lock+0x35/0x1d0 [ 42.462457] ? lock_downgrade+0x990/0x990 [ 42.466575] ? __skb_flow_get_ports+0x151/0x400 [ 42.471221] ? pvclock_read_flags+0x160/0x160 [ 42.475694] ? lock_acquire+0x1d5/0x580 [ 42.479638] ? lock_acquire+0x1d5/0x580 [ 42.483582] ? netif_receive_skb_internal+0xf1/0x1a50 [ 42.488744] ? ktime_get_with_offset+0x2c1/0x420 [ 42.493471] ? lock_release+0xa40/0xa40 [ 42.497411] ? do_gettimeofday+0x190/0x190 [ 42.501622] ? netif_receive_skb_internal+0xf1/0x1a50 [ 42.506779] __netif_receive_skb+0x2c/0x1b0 [ 42.511075] ? __netif_receive_skb+0x2c/0x1b0 [ 42.515539] ? netif_receive_skb_internal+0xf1/0x1a50 [ 42.520696] netif_receive_skb_internal+0x16a/0x1a50 [ 42.525768] ? __alloc_skb+0x548/0x740 [ 42.529630] ? dev_queue_xmit_accel+0x30/0x30 [ 42.534093] ? lock_downgrade+0x990/0x990 [ 42.538212] ? do_raw_spin_trylock+0x190/0x190 [ 42.542766] ? __free_pages_ok+0x718/0x3150 [ 42.547055] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.552040] ? __free_pages_ok+0x1257/0x3150 [ 42.556420] ? find_held_lock+0x35/0x1d0 [ 42.560459] ? __might_fault+0x110/0x1d0 [ 42.564487] ? lock_downgrade+0x990/0x990 [ 42.568604] ? lock_release+0xa40/0xa40 [ 42.572544] ? check_same_owner+0x320/0x320 [ 42.576834] ? rcu_pm_notify+0xc0/0xc0 [ 42.580705] netif_receive_skb+0xae/0x390 [ 42.584824] ? netif_receive_skb_internal+0x1a50/0x1a50 [ 42.590164] ? _copy_from_iter+0x367/0xf30 [ 42.594367] ? __check_object_size+0x25d/0x4f0 [ 42.598922] ? tun_rx_batched.isra.42+0x5bd/0x860 [ 42.603737] tun_rx_batched.isra.42+0x5e7/0x860 [ 42.608378] ? skb_get_hash_perturb+0x9d0/0x9d0 [ 42.613015] ? tun_sock_write_space+0x370/0x370 [ 42.617653] ? tun_free_netdev+0x1b0/0x1b0 [ 42.621867] tun_get_user+0xde5/0x2910 [ 42.625734] ? tun_chr_ioctl+0x40/0x40 [ 42.629595] ? find_held_lock+0x35/0x1d0 [ 42.633632] ? __fget+0x333/0x570 [ 42.637059] ? find_held_lock+0x35/0x1d0 [ 42.641096] ? __tun_get+0x1ab/0x2e0 [ 42.644780] ? lock_downgrade+0x990/0x990 [ 42.648896] ? lock_release+0xa40/0xa40 [ 42.652840] ? __lock_is_held+0xb6/0x140 [ 42.656883] ? __tun_get+0x1d4/0x2e0 [ 42.660566] ? tun_chr_close+0x60/0x60 [ 42.664433] tun_chr_write_iter+0xd8/0x190 [ 42.668639] __vfs_write+0x684/0x970 [ 42.672331] ? default_llseek+0x290/0x290 [ 42.676461] ? avc_policy_seqno+0x9/0x20 [ 42.680492] ? selinux_file_permission+0x82/0x460 [ 42.685311] ? rw_verify_area+0xe5/0x2b0 [ 42.689335] ? __fdget_raw+0x20/0x20 [ 42.693019] vfs_write+0x189/0x510 [ 42.696538] SyS_write+0xef/0x220 [ 42.699965] ? SyS_read+0x220/0x220 [ 42.703560] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.708553] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.713299] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.718022] RIP: 0033:0x405b81 [ 42.721179] RSP: 002b:00007fee7d5e2d90 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 42.728857] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000405b81 [ 42.736096] RDX: 0000000000000046 RSI: 0000000020002000 RDI: 0000000000000003 [ 42.743333] RBP: 0000000000000086 R08: 0000000000000013 R09: 00007fee7d5e3700 [ 42.750571] R10: 00007fee7d5e39d0 R11: 0000000000000293 R12: 0000000000000000 [ 42.757809] R13: 00007fffe1afde4f R14: 00007fee7d5e39c0 R15: 0000000000000000 [ 42.765063] [ 42.766656] The buggy address belongs to the page: [ 42.771552] page:ffffea00073f2780 count:0 mapcount:0 mapping: (null) index:0xffff8801cfc9ebc0 [ 42.780968] flags: 0x200000000000000() [ 42.784826] raw: 0200000000000000 0000000000000000 ffff8801cfc9ebc0 00000000ffffffff [ 42.792704] raw: dead000000000100 dead000000000200 0000000000000000 0000000000000000 [ 42.800552] page dumped because: kasan: bad access detected [ 42.806229] [ 42.807820] Memory state around the buggy address: [ 42.812714] ffff8801cfc9e480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.820048] ffff8801cfc9e500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.827374] >ffff8801cfc9e580: 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 f2 f3 f3 [ 42.834699] ^ [ 42.841423] ffff8801cfc9e600: f3 f3 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 [ 42.848766] ffff8801cfc9e680: 00 00 00 00 00 00 00 f2 f2 f3 f3 f3 f3 00 00 00 [ 42.856091] ================================================================== [ 42.863414] Disabling lock debugging due to kernel taint [ 42.868879] Kernel panic - not syncing: panic_on_warn set ... [ 42.868879] [ 42.876211] CPU: 0 PID: 3043 Comm: syzkaller170165 Tainted: G B 4.13.0-rc5+ #41 [ 42.884748] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.894066] Call Trace: [ 42.896622] dump_stack+0x194/0x257 [ 42.900217] ? arch_local_irq_restore+0x53/0x53 [ 42.904910] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.909650] ? xfrm_state_find+0x2ff0/0x3170 [ 42.914026] panic+0x1e4/0x417 [ 42.917185] ? __warn+0x1d9/0x1d9 [ 42.920611] ? xfrm_state_find+0x303d/0x3170 [ 42.924990] kasan_end_report+0x50/0x50 [ 42.928941] kasan_report+0x137/0x340 [ 42.932713] __asan_report_load4_noabort+0x14/0x20 [ 42.937616] xfrm_state_find+0x303d/0x3170 [ 42.941835] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 42.946919] ? __lock_acquire+0x6ef/0x3dc0 [ 42.951127] ? print_usage_bug+0x480/0x480 [ 42.955340] ? check_noncircular+0x20/0x20 [ 42.959545] ? check_noncircular+0x20/0x20 [ 42.963752] ? __lock_acquire+0x6ef/0x3dc0 [ 42.967984] ? print_usage_bug+0x480/0x480 [ 42.972193] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.977355] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.982341] ? fib_table_lookup+0xa07/0x1a30 [ 42.986725] xfrm_tmpl_resolve+0x309/0xbf0 [ 42.990932] ? __xfrm_dst_lookup+0x120/0x120 [ 42.995315] ? __lock_is_held+0xb6/0x140 [ 42.999361] ? check_noncircular+0x20/0x20