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-386-0,10.128.0.46' (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: [ 31.973365] ================================================================== [ 31.980782] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 31.987946] Read of size 4 at addr ffff8801cc8f6708 by task syzkaller202277/3019 [ 31.995449] [ 31.997061] CPU: 0 PID: 3019 Comm: syzkaller202277 Not tainted 4.14.0-rc2+ #13 [ 32.004393] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.013737] Call Trace: [ 32.016302] dump_stack+0x194/0x257 [ 32.019911] ? arch_local_irq_restore+0x53/0x53 [ 32.024556] ? show_regs_print_info+0x65/0x65 [ 32.029028] ? lock_release+0xd70/0xd70 [ 32.032975] ? print_usage_bug+0x480/0x480 [ 32.037185] ? xfrm_state_find+0x305b/0x3190 [ 32.041570] print_address_description+0x73/0x250 [ 32.046386] ? xfrm_state_find+0x305b/0x3190 [ 32.050770] kasan_report+0x25b/0x340 [ 32.054548] __asan_report_load4_noabort+0x14/0x20 [ 32.059452] xfrm_state_find+0x305b/0x3190 [ 32.063685] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 32.068769] ? print_usage_bug+0x480/0x480 [ 32.072985] ? __lock_acquire+0x732/0x4620 [ 32.077217] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.082392] ? __lock_acquire+0x732/0x4620 [ 32.086615] ? __lock_acquire+0x732/0x4620 [ 32.090835] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.096012] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.101176] ? check_noncircular+0x20/0x20 [ 32.105381] ? check_noncircular+0x20/0x20 [ 32.109603] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 32.113846] ? __xfrm_decode_session+0x100/0x100 [ 32.118583] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.123577] ? fib_table_lookup+0xa07/0x1a30 [ 32.127967] ? check_noncircular+0x20/0x20 [ 32.132197] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 32.137622] ? inet_netconf_get_devconf+0x4f0/0x4f0 [ 32.142631] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 32.147019] ? lock_downgrade+0x990/0x990 [ 32.151150] ? xfrm_selector_match+0xe00/0xe00 [ 32.155715] ? rcu_read_lock_held+0xa9/0xc0 [ 32.160022] ? find_exception+0x3aa/0x520 [ 32.164153] ? lock_release+0xd70/0xd70 [ 32.168110] ? refcount_inc_not_zero+0xfe/0x180 [ 32.172770] ? xfrm_selector_match+0x3b/0xe00 [ 32.177249] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 32.182001] ? xfrm_selector_match+0xe00/0xe00 [ 32.186561] ? check_noncircular+0x20/0x20 [ 32.190786] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 32.196214] xfrm_lookup+0xf0a/0x2540 [ 32.199994] ? xfrm_lookup+0xf0a/0x2540 [ 32.203953] ? ip_route_input_noref+0x1e0/0x1e0 [ 32.208601] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 32.215079] ? find_held_lock+0x39/0x1d0 [ 32.219123] ? lock_downgrade+0x990/0x990 [ 32.223246] ? selinux_netlbl_sock_rcv_skb+0x9e/0x730 [ 32.228415] ? ip_route_output_key_hash+0x1a6/0x370 [ 32.233413] ? lock_release+0xd70/0xd70 [ 32.237361] ? selinux_nf_register+0x30/0x30 [ 32.241743] ? __lock_acquire+0x732/0x4620 [ 32.245958] ? selinux_sock_rcv_skb_compat+0x2f4/0x480 [ 32.251214] ? ip_route_output_key_hash+0x252/0x370 [ 32.256210] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 32.261741] xfrm_lookup_route+0x39/0x1a0 [ 32.265867] ip_route_output_flow+0x7c/0xa0 [ 32.270167] inet_csk_route_req+0x5d8/0x990 [ 32.274470] tcp_v4_send_synack+0x1e4/0x270 [ 32.278780] ? tcp_v4_send_check+0x90/0x90 [ 32.283009] ? prandom_u32_state+0x13/0x180 [ 32.287309] tcp_rtx_synack+0x119/0x2e0 [ 32.291257] ? tcp_event_new_data_sent+0x2e0/0x2e0 [ 32.296163] ? __lock_is_held+0xbc/0x140 [ 32.300211] inet_rtx_syn_ack+0x64/0xd0 [ 32.304158] tcp_check_req+0xaf5/0x1630 [ 32.308112] ? tcp_openreq_init_rwin+0xae0/0xae0 [ 32.312844] ? refcount_inc_not_zero+0xfe/0x180 [ 32.317500] ? refcount_add+0x60/0x60 [ 32.321275] ? tcp_v4_reqsk_send_ack+0x3e0/0x3e0 [ 32.326009] ? tcp_filter+0x111/0x160 [ 32.329799] tcp_v4_rcv+0x17b0/0x2f20 [ 32.333584] ? lock_acquire+0x1d5/0x580 [ 32.337551] ? tcp_v4_early_demux+0xa30/0xa30 [ 32.342036] ip_local_deliver_finish+0x2e2/0xba0 [ 32.346773] ? inet_del_offload+0x40/0x40 [ 32.350907] ? nf_hook_slow+0xd3/0x1a0 [ 32.354774] ip_local_deliver+0x1ce/0x6e0 [ 32.358902] ? ip_call_ra_chain+0x6d0/0x6d0 [ 32.363212] ? inet_del_offload+0x40/0x40 [ 32.367344] ip_rcv_finish+0x8db/0x19c0 [ 32.371312] ? ip_local_deliver_finish+0xba0/0xba0 [ 32.376224] ? iptable_nat_ipv4_fn+0x40/0x40 [ 32.380611] ? nf_nat_ipv4_in_range+0xf0/0xf0 [ 32.385087] ? ip_rcv+0xc20/0x17d0 [ 32.388604] ? tcp_v4_send_synack+0x270/0x270 [ 32.393076] ? nf_nat_ipv4_in+0x1cd/0x270 [ 32.397203] ? iptable_nat_ipv4_fn+0x40/0x40 [ 32.401594] ? nf_hook_slow+0xd3/0x1a0 [ 32.405474] ip_rcv+0xc3f/0x17d0 [ 32.408826] ? ip_local_deliver+0x6e0/0x6e0 [ 32.413135] ? __lock_acquire+0x732/0x4620 [ 32.417360] ? ip_local_deliver_finish+0xba0/0xba0 [ 32.422271] ? ip_local_deliver+0x6e0/0x6e0 [ 32.426575] __netif_receive_skb_core+0x19af/0x33d0 [ 32.431568] ? print_usage_bug+0x480/0x480 [ 32.435791] ? nf_ingress+0x9f0/0x9f0 [ 32.439563] ? kasan_kmalloc+0xad/0xe0 [ 32.443425] ? kmem_cache_alloc+0x12e/0x760 [ 32.447721] ? __build_skb+0x9d/0x450 [ 32.451497] ? build_skb+0x6f/0x260 [ 32.455102] ? tun_build_skb.isra.42+0x92f/0x1690 [ 32.459917] ? tun_get_user+0x1dad/0x2150 [ 32.464036] ? tun_chr_write_iter+0xde/0x190 [ 32.468418] ? __vfs_write+0x68a/0x970 [ 32.472282] ? __skb_flow_get_ports+0x151/0x400 [ 32.476930] ? skb_flow_dissector_init+0x280/0x280 [ 32.481847] ? check_noncircular+0x20/0x20 [ 32.486053] ? __skb_flow_get_ports+0x151/0x400 [ 32.490703] ? __skb_flow_dissect+0x85b/0x3bc0 [ 32.495277] ? find_held_lock+0x39/0x1d0 [ 32.499323] ? lock_downgrade+0x990/0x990 [ 32.503445] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.508614] ? lock_acquire+0x1d5/0x580 [ 32.512564] ? netif_receive_skb_internal+0x1d7/0x670 [ 32.517743] ? pvclock_read_flags+0x160/0x160 [ 32.522221] ? tun_build_skb.isra.42+0x455/0x1690 [ 32.527057] ? lock_acquire+0x1d5/0x580 [ 32.531011] ? netif_receive_skb_internal+0xa2/0x670 [ 32.536092] ? ktime_get_with_offset+0x2c1/0x420 [ 32.540831] ? lock_release+0xd70/0xd70 [ 32.544777] ? ktime_get+0x3a0/0x3a0 [ 32.548468] ? skb_put+0x149/0x1c0 [ 32.551995] __netif_receive_skb+0x2c/0x1b0 [ 32.556289] ? __netif_receive_skb+0x2c/0x1b0 [ 32.560761] netif_receive_skb_internal+0x10b/0x670 [ 32.565753] ? dev_cpu_dead+0xb00/0xb00 [ 32.569705] ? lock_release+0xd70/0xd70 [ 32.573660] ? is_bpf_text_address+0x7b/0x120 [ 32.578132] ? lock_downgrade+0x990/0x990 [ 32.582260] ? rcu_pm_notify+0xc0/0xc0 [ 32.586120] ? bpf_prog_alloc+0x310/0x310 [ 32.590259] netif_receive_skb+0xae/0x390 [ 32.594389] ? netif_receive_skb_internal+0x670/0x670 [ 32.599560] ? lock_downgrade+0x990/0x990 [ 32.603687] ? tun_rx_batched.isra.43+0x5c3/0x860 [ 32.608507] tun_rx_batched.isra.43+0x5ed/0x860 [ 32.613150] ? skb_get_hash_perturb+0x9d0/0x9d0 [ 32.617804] ? tun_sock_write_space+0x370/0x370 [ 32.622466] tun_get_user+0x11dd/0x2150 [ 32.626428] ? tun_build_skb.isra.42+0x1690/0x1690 [ 32.631332] ? lock_release+0xd70/0xd70 [ 32.635288] ? tun_chr_close+0x60/0x60 [ 32.639157] ? lock_release+0xd70/0xd70 [ 32.643107] ? __lock_is_held+0xbc/0x140 [ 32.647156] ? __tun_get+0x1d4/0x2e0 [ 32.650847] ? tun_chr_close+0x60/0x60 [ 32.654720] tun_chr_write_iter+0xde/0x190 [ 32.659028] __vfs_write+0x68a/0x970 [ 32.662737] ? kernel_read+0x120/0x120 [ 32.666609] ? avc_policy_seqno+0x9/0x20 [ 32.670643] ? selinux_file_permission+0x82/0x460 [ 32.675471] ? rw_verify_area+0xe5/0x2b0 [ 32.679506] ? __fdget_raw+0x20/0x20 [ 32.683196] vfs_write+0x18f/0x510 [ 32.686714] SyS_write+0xef/0x220 [ 32.690145] ? SyS_read+0x220/0x220 [ 32.693751] ? lock_acquire+0x1d5/0x580 [ 32.697706] ? finish_task_switch+0x1aa/0x740 [ 32.702177] ? do_fast_syscall_32+0x158/0xf05 [ 32.706647] ? SyS_read+0x220/0x220 [ 32.710256] do_fast_syscall_32+0x3f2/0xf05 [ 32.714551] ? compat_start_thread+0x80/0x80 [ 32.718939] ? do_int80_syscall_32+0x940/0x940 [ 32.723500] ? lockdep_sys_exit+0x47/0xf0 [ 32.727622] ? syscall_return_slowpath+0x2b3/0x510 [ 32.732535] ? finish_task_switch+0x1aa/0x740 [ 32.737004] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 32.741996] ? sysret32_from_system_call+0x5/0x3b [ 32.746818] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.751641] entry_SYSENTER_compat+0x51/0x60 [ 32.756022] RIP: 0023:0xf7f4bc79 [ 32.759367] RSP: 002b:00000000f2f3d1f4 EFLAGS: 00000292 ORIG_RAX: 0000000000000004 [ 32.767070] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020002000 [ 32.774402] RDX: 0000000000000036 RSI: 0000000000000000 RDI: 00000000003d0f00 [ 32.781646] RBP: 00000000f2f3d2e8 R08: 0000000000000000 R09: 0000000000000000 [ 32.788898] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 32.796144] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 32.803413] [ 32.805014] The buggy address belongs to the page: [ 32.809918] page:ffffea0007323d80 count:0 mapcount:0 mapping: (null) index:0xffff8801cc8f6000 [ 32.819346] flags: 0x200000000000000() [ 32.823206] raw: 0200000000000000 0000000000000000 ffff8801cc8f6000 00000000ffffffff [ 32.831077] raw: dead000000000100 dead000000000200 0000000000000000 0000000000000000 [ 32.839102] page dumped because: kasan: bad access detected [ 32.844788] [ 32.846393] Memory state around the buggy address: [ 32.851308] ffff8801cc8f6600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.858649] ffff8801cc8f6680: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 [ 32.865980] >ffff8801cc8f6700: 00 f2 f3 f3 f3 f3 00 00 00 00 00 00 00 f1 f1 f1 [ 32.873313] ^ [ 32.876912] ffff8801cc8f6780: f1 00 00 00 00 00 00 00 00 00 00 00 f2 f3 f3 f3 [ 32.884242] ffff8801cc8f6800: f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.891571] ================================================================== [ 32.898898] Disabling lock debugging due to kernel taint [ 32.904359] Kernel panic - not syncing: panic_on_warn set ... [ 32.904359] [ 32.911691] CPU: 0 PID: 3019 Comm: syzkaller202277 Tainted: G B 4.14.0-rc2+ #13 [ 32.920237] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.929564] Call Trace: [ 32.932122] dump_stack+0x194/0x257 [ 32.935731] ? arch_local_irq_restore+0x53/0x53 [ 32.940368] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.945094] ? xfrm_state_find+0x2fc0/0x3190 [ 32.949472] panic+0x1e4/0x417 [ 32.952632] ? __warn+0x1d9/0x1d9 [ 32.956058] ? xfrm_state_find+0x305b/0x3190 [ 32.960444] kasan_end_report+0x50/0x50 [ 32.964382] kasan_report+0x144/0x340 [ 32.968152] __asan_report_load4_noabort+0x14/0x20 [ 32.973052] xfrm_state_find+0x305b/0x3190