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-3,10.128.0.19' (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: [ 30.052714] ================================================================== [ 30.060125] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 30.067282] Read of size 4 at addr ffff8801ce296898 by task syzkaller041715/3018 [ 30.074782] [ 30.076385] CPU: 0 PID: 3018 Comm: syzkaller041715 Not tainted 4.14.0-rc2+ #105 [ 30.083801] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.093128] Call Trace: [ 30.095690] dump_stack+0x194/0x257 [ 30.099293] ? arch_local_irq_restore+0x53/0x53 [ 30.103933] ? show_regs_print_info+0x65/0x65 [ 30.108404] ? lock_release+0xd70/0xd70 [ 30.112348] ? xfrm_state_find+0x305b/0x3190 [ 30.116728] print_address_description+0x73/0x250 [ 30.121540] ? xfrm_state_find+0x305b/0x3190 [ 30.125929] kasan_report+0x25b/0x340 [ 30.129702] __asan_report_load4_noabort+0x14/0x20 [ 30.134604] xfrm_state_find+0x305b/0x3190 [ 30.138837] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 30.143912] ? print_usage_bug+0x480/0x480 [ 30.148123] ? __lock_acquire+0x732/0x4620 [ 30.152354] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 30.157524] ? __lock_acquire+0x732/0x4620 [ 30.161740] ? __lock_acquire+0x732/0x4620 [ 30.165951] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 30.171136] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 30.176296] ? check_noncircular+0x20/0x20 [ 30.180498] ? check_noncircular+0x20/0x20 [ 30.184713] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 30.188935] ? __xfrm_decode_session+0x100/0x100 [ 30.193668] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.198656] ? fib_table_lookup+0xa07/0x1a30 [ 30.203043] ? check_noncircular+0x20/0x20 [ 30.207259] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 30.212686] ? inet_netconf_get_devconf+0x4f0/0x4f0 [ 30.217689] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 30.222071] ? lock_downgrade+0x990/0x990 [ 30.226197] ? xfrm_selector_match+0xe00/0xe00 [ 30.230748] ? rcu_read_lock_held+0xa9/0xc0 [ 30.235041] ? find_exception+0x3aa/0x520 [ 30.239164] ? lock_release+0xd70/0xd70 [ 30.243113] ? refcount_inc_not_zero+0xfe/0x180 [ 30.247758] ? xfrm_selector_match+0x3b/0xe00 [ 30.252228] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 30.256960] ? xfrm_selector_match+0xe00/0xe00 [ 30.261516] ? check_noncircular+0x20/0x20 [ 30.265719] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 30.271144] xfrm_lookup+0xf0a/0x2540 [ 30.274924] ? xfrm_lookup+0xf0a/0x2540 [ 30.278873] ? ip_route_input_noref+0x1e0/0x1e0 [ 30.283518] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 30.289896] ? find_held_lock+0x39/0x1d0 [ 30.293942] ? lock_downgrade+0x990/0x990 [ 30.298063] ? selinux_netlbl_sock_rcv_skb+0x9e/0x730 [ 30.303227] ? ip_route_output_key_hash+0x1a6/0x370 [ 30.308222] ? lock_release+0xd70/0xd70 [ 30.312166] ? selinux_nf_register+0x30/0x30 [ 30.316543] ? __lock_acquire+0x732/0x4620 [ 30.320755] ? selinux_sock_rcv_skb_compat+0x2f4/0x480 [ 30.326007] ? ip_route_output_key_hash+0x252/0x370 [ 30.331000] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 30.336518] xfrm_lookup_route+0x39/0x1a0 [ 30.340638] ip_route_output_flow+0x7c/0xa0 [ 30.344932] inet_csk_route_req+0x5d8/0x990 [ 30.349232] tcp_v4_send_synack+0x1e4/0x270 [ 30.353524] ? tcp_v4_send_check+0x90/0x90 [ 30.357737] ? prandom_u32_state+0x13/0x180 [ 30.362031] tcp_rtx_synack+0x119/0x2e0 [ 30.365977] ? tcp_event_new_data_sent+0x2e0/0x2e0 [ 30.370878] ? __lock_is_held+0xbc/0x140 [ 30.374920] inet_rtx_syn_ack+0x64/0xd0 [ 30.378865] tcp_check_req+0xaf5/0x1630 [ 30.382817] ? tcp_openreq_init_rwin+0xae0/0xae0 [ 30.387542] ? refcount_inc_not_zero+0xfe/0x180 [ 30.392179] ? refcount_add+0x60/0x60 [ 30.395950] ? tcp_v4_reqsk_send_ack+0x3e0/0x3e0 [ 30.400680] ? tcp_filter+0x111/0x160 [ 30.404456] tcp_v4_rcv+0x17b0/0x2f20 [ 30.408227] ? lock_acquire+0x1d5/0x580 [ 30.412186] ? tcp_v4_early_demux+0xa30/0xa30 [ 30.416665] ip_local_deliver_finish+0x2e2/0xba0 [ 30.421397] ? inet_del_offload+0x40/0x40 [ 30.425521] ? nf_hook_slow+0xd3/0x1a0 [ 30.429383] ip_local_deliver+0x1ce/0x6e0 [ 30.433505] ? ip_call_ra_chain+0x6d0/0x6d0 [ 30.437809] ? inet_del_offload+0x40/0x40 [ 30.441936] ip_rcv_finish+0x8db/0x19c0 [ 30.445889] ? ip_local_deliver_finish+0xba0/0xba0 [ 30.450787] ? iptable_nat_ipv4_fn+0x40/0x40 [ 30.455168] ? nf_nat_ipv4_in_range+0xf0/0xf0 [ 30.459633] ? ip_rcv+0xc20/0x17d0 [ 30.463145] ? tcp_v4_send_synack+0x270/0x270 [ 30.467614] ? nf_nat_ipv4_in+0x1cd/0x270 [ 30.471730] ? iptable_nat_ipv4_fn+0x40/0x40 [ 30.476120] ? nf_hook_slow+0xd3/0x1a0 [ 30.479989] ip_rcv+0xc3f/0x17d0 [ 30.483336] ? ip_local_deliver+0x6e0/0x6e0 [ 30.487631] ? __lock_acquire+0x732/0x4620 [ 30.491852] ? ip_local_deliver_finish+0xba0/0xba0 [ 30.496757] ? ip_local_deliver+0x6e0/0x6e0 [ 30.501056] __netif_receive_skb_core+0x19af/0x33d0 [ 30.506044] ? print_usage_bug+0x480/0x480 [ 30.510257] ? nf_ingress+0x9f0/0x9f0 [ 30.514029] ? save_stack+0x43/0xd0 [ 30.517625] ? kasan_slab_alloc+0x12/0x20 [ 30.521742] ? kmem_cache_alloc+0x12e/0x760 [ 30.526035] ? __build_skb+0x9d/0x450 [ 30.529806] ? build_skb+0x6f/0x260 [ 30.533403] ? tun_build_skb.isra.42+0x92f/0x1690 [ 30.538213] ? tun_get_user+0x1dad/0x2150 [ 30.542330] ? tun_chr_write_iter+0xde/0x190 [ 30.546710] ? vfs_write+0x18f/0x510 [ 30.550396] ? __skb_flow_get_ports+0x151/0x400 [ 30.555036] ? skb_flow_dissector_init+0x280/0x280 [ 30.559938] ? check_noncircular+0x20/0x20 [ 30.564144] ? __skb_flow_get_ports+0x151/0x400 [ 30.568788] ? __skb_flow_dissect+0x85b/0x3bc0 [ 30.573341] ? print_usage_bug+0x480/0x480 [ 30.577560] ? find_held_lock+0x39/0x1d0 [ 30.581605] ? lock_downgrade+0x990/0x990 [ 30.585725] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 30.590892] ? netif_receive_skb_internal+0x1d7/0x670 [ 30.596066] ? pvclock_read_flags+0x160/0x160 [ 30.600532] ? tun_build_skb.isra.42+0x455/0x1690 [ 30.605355] ? lock_acquire+0x1d5/0x580 [ 30.609299] ? netif_receive_skb_internal+0xa2/0x670 [ 30.614373] ? ktime_get_with_offset+0x2c1/0x420 [ 30.619106] ? lock_release+0xd70/0xd70 [ 30.623058] ? ktime_get+0x3a0/0x3a0 [ 30.626740] ? skb_put+0x149/0x1c0 [ 30.630260] __netif_receive_skb+0x2c/0x1b0 [ 30.634552] ? __netif_receive_skb+0x2c/0x1b0 [ 30.639019] netif_receive_skb_internal+0x10b/0x670 [ 30.644007] ? dev_cpu_dead+0xb00/0xb00 [ 30.647953] ? save_stack_trace+0x16/0x20 [ 30.652071] ? __lock_acquire+0x20fd/0x4620 [ 30.656365] ? kernel_text_address+0x102/0x140 [ 30.660922] ? rcu_pm_notify+0xc0/0xc0 [ 30.664782] ? unwind_get_return_address+0x61/0xa0 [ 30.669691] netif_receive_skb+0xae/0x390 [ 30.673810] ? netif_receive_skb_internal+0x670/0x670 [ 30.678975] ? lock_downgrade+0x990/0x990 [ 30.683098] ? tun_rx_batched.isra.43+0x5c3/0x860 [ 30.687917] tun_rx_batched.isra.43+0x5ed/0x860 [ 30.692559] ? skb_get_hash_perturb+0x9d0/0x9d0 [ 30.697198] ? tun_sock_write_space+0x370/0x370 [ 30.701855] tun_get_user+0x11dd/0x2150 [ 30.705815] ? tun_build_skb.isra.42+0x1690/0x1690 [ 30.710715] ? lock_release+0xd70/0xd70 [ 30.714665] ? tun_chr_close+0x60/0x60 [ 30.718530] ? lock_release+0xd70/0xd70 [ 30.722479] ? __lock_is_held+0xbc/0x140 [ 30.726523] ? __tun_get+0x1d4/0x2e0 [ 30.730207] ? tun_chr_close+0x60/0x60 [ 30.734076] tun_chr_write_iter+0xde/0x190 [ 30.738284] __vfs_write+0x68a/0x970 [ 30.741976] ? kernel_read+0x120/0x120 [ 30.745847] ? avc_policy_seqno+0x9/0x20 [ 30.749880] ? selinux_file_permission+0x82/0x460 [ 30.754705] ? rw_verify_area+0xe5/0x2b0 [ 30.758735] ? __fdget_raw+0x20/0x20 [ 30.762425] vfs_write+0x18f/0x510 [ 30.765951] SyS_write+0xef/0x220 [ 30.769383] ? SyS_read+0x220/0x220 [ 30.772983] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.777974] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.782709] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 30.787435] RIP: 0033:0x405b21 [ 30.790595] RSP: 002b:00007f0bb051cd90 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 30.798285] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000405b21 [ 30.805535] RDX: 0000000000000036 RSI: 0000000020002000 RDI: 0000000000000003 [ 30.812777] RBP: 0000000000000086 R08: 0000000000000013 R09: 00007f0bb051d700 [ 30.820022] R10: 00007f0bb051d9d0 R11: 0000000000000293 R12: 0000000000000000 [ 30.827263] R13: 00007ffdecc3324f R14: 00007f0bb051d9c0 R15: 0000000000000000 [ 30.834522] [ 30.836121] The buggy address belongs to the page: [ 30.841021] page:ffffea000738a580 count:0 mapcount:0 mapping: (null) index:0xffff8801ce296a80 [ 30.850440] flags: 0x200000000000000() [ 30.854299] raw: 0200000000000000 0000000000000000 ffff8801ce296a80 00000000ffffffff [ 30.862147] raw: dead000000000100 dead000000000200 ffff8801dac00dc0 0000000000000000 [ 30.870001] page dumped because: kasan: bad access detected [ 30.875678] [ 30.877273] Memory state around the buggy address: [ 30.882169] ffff8801ce296780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.889494] ffff8801ce296800: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 [ 30.896830] >ffff8801ce296880: 00 00 00 f2 f3 f3 f3 f3 00 00 00 00 00 00 00 f1 [ 30.904158] ^ [ 30.908272] ffff8801ce296900: f1 f1 f1 00 00 00 00 00 00 00 00 00 00 00 f2 f3 [ 30.915615] ffff8801ce296980: f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.922944] ================================================================== [ 30.930271] Disabling lock debugging due to kernel taint [ 30.935724] Kernel panic - not syncing: panic_on_warn set ... [ 30.935724] [ 30.943050] CPU: 0 PID: 3018 Comm: syzkaller041715 Tainted: G B 4.14.0-rc2+ #105 [ 30.951677] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.960996] Call Trace: [ 30.963551] dump_stack+0x194/0x257 [ 30.967145] ? arch_local_irq_restore+0x53/0x53 [ 30.971780] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.976504] ? xfrm_state_find+0x2fc0/0x3190 [ 30.980877] panic+0x1e4/0x417 [ 30.984043] ? __warn+0x1d9/0x1d9 [ 30.987469] ? xfrm_state_find+0x305b/0x3190 [ 30.991841] kasan_end_report+0x50/0x50 [ 30.995780] kasan_report+0x144/0x340 [ 30.999546] __asan_report_load4_noabort+0x14/0x20 [ 31.004437] xfrm_state_find+0x305b/0x3190 [ 31.008648] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 31.013716] ? print_usage_bug+0x480/0x480 [ 31.017919] ? __lock_acquire+0x732/0x4620 [ 31.022128] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.027295] ? __lock_acquire+0x732/0x4620 [ 31.031499] ? __lock_acquire+0x732/0x4620 [ 31.035700] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.040859] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.046014] ? check_noncircular+0x20/0x20 [ 31.050219] ? check_noncircular+0x20/0x20