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.4' (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: [ 41.131356] ================================================================== [ 41.138768] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x305b/0x3190 [ 41.145926] Read of size 4 at addr ffff8801cc89e708 by task syzkaller225926/3020 [ 41.153424] [ 41.155024] CPU: 0 PID: 3020 Comm: syzkaller225926 Not tainted 4.14.0-rc2+ #10 [ 41.162352] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.171677] Call Trace: [ 41.174240] dump_stack+0x194/0x257 [ 41.177845] ? arch_local_irq_restore+0x53/0x53 [ 41.182485] ? show_regs_print_info+0x65/0x65 [ 41.186956] ? lock_release+0xd70/0xd70 [ 41.190900] ? print_usage_bug+0x480/0x480 [ 41.195106] ? xfrm_state_find+0x305b/0x3190 [ 41.199494] print_address_description+0x73/0x250 [ 41.204307] ? xfrm_state_find+0x305b/0x3190 [ 41.208689] kasan_report+0x25b/0x340 [ 41.212464] __asan_report_load4_noabort+0x14/0x20 [ 41.217366] xfrm_state_find+0x305b/0x3190 [ 41.221594] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 41.226669] ? print_usage_bug+0x480/0x480 [ 41.230879] ? __lock_acquire+0x732/0x4620 [ 41.235104] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.240273] ? __lock_acquire+0x732/0x4620 [ 41.244492] ? __lock_acquire+0x732/0x4620 [ 41.248703] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.253877] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.259056] ? check_noncircular+0x20/0x20 [ 41.263260] ? check_noncircular+0x20/0x20 [ 41.267479] xfrm_tmpl_resolve+0x2fb/0xbd0 [ 41.271702] ? __xfrm_decode_session+0x100/0x100 [ 41.276434] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.281431] ? fib_table_lookup+0xa07/0x1a30 [ 41.285814] ? check_noncircular+0x20/0x20 [ 41.290032] xfrm_resolve_and_create_bundle+0x186/0x24b0 [ 41.295458] ? inet_netconf_get_devconf+0x4f0/0x4f0 [ 41.300462] ? xfrm_tmpl_resolve+0xbd0/0xbd0 [ 41.304842] ? lock_downgrade+0x990/0x990 [ 41.308971] ? xfrm_selector_match+0xe00/0xe00 [ 41.313526] ? rcu_read_lock_held+0xa9/0xc0 [ 41.317819] ? find_exception+0x3aa/0x520 [ 41.321943] ? lock_release+0xd70/0xd70 [ 41.325892] ? refcount_inc_not_zero+0xfe/0x180 [ 41.330538] ? xfrm_selector_match+0x3b/0xe00 [ 41.335009] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 41.339744] ? xfrm_selector_match+0xe00/0xe00 [ 41.344299] ? check_noncircular+0x20/0x20 [ 41.348506] ? ip_route_output_key_hash_rcu+0x604/0x2c20 [ 41.353935] xfrm_lookup+0xf0a/0x2540 [ 41.357710] ? xfrm_lookup+0xf0a/0x2540 [ 41.361661] ? ip_route_input_noref+0x1e0/0x1e0 [ 41.366316] ? xfrm_policy_lookup_bytype.constprop.49+0x16f0/0x16f0 [ 41.372697] ? find_held_lock+0x39/0x1d0 [ 41.376749] ? lock_downgrade+0x990/0x990 [ 41.380878] ? selinux_netlbl_sock_rcv_skb+0x9e/0x730 [ 41.386050] ? ip_route_output_key_hash+0x1a6/0x370 [ 41.391051] ? lock_release+0xd70/0xd70 [ 41.395012] ? selinux_nf_register+0x30/0x30 [ 41.399409] ? __lock_acquire+0x732/0x4620 [ 41.403624] ? selinux_sock_rcv_skb_compat+0x2f4/0x480 [ 41.408881] ? ip_route_output_key_hash+0x252/0x370 [ 41.413870] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 41.419390] xfrm_lookup_route+0x39/0x1a0 [ 41.423515] ip_route_output_flow+0x7c/0xa0 [ 41.427810] inet_csk_route_req+0x5d8/0x990 [ 41.432113] tcp_v4_send_synack+0x1e4/0x270 [ 41.436408] ? tcp_v4_send_check+0x90/0x90 [ 41.440623] ? prandom_u32_state+0x13/0x180 [ 41.444929] tcp_rtx_synack+0x119/0x2e0 [ 41.448878] ? tcp_event_new_data_sent+0x2e0/0x2e0 [ 41.453781] ? tcp_parse_fastopen_option+0xc1/0xf0 [ 41.458694] ? tcp_parse_options+0x188/0xa10 [ 41.463085] inet_rtx_syn_ack+0x64/0xd0 [ 41.467040] tcp_check_req+0xaf5/0x1630 [ 41.471010] ? tcp_openreq_init_rwin+0xae0/0xae0 [ 41.475754] ? refcount_inc_not_zero+0xfe/0x180 [ 41.480395] ? refcount_add+0x60/0x60 [ 41.484170] ? tcp_v4_reqsk_send_ack+0x3e0/0x3e0 [ 41.488913] ? tcp_filter+0x111/0x160 [ 41.492691] tcp_v4_rcv+0x17b0/0x2f20 [ 41.496486] ? lock_acquire+0x1d5/0x580 [ 41.500447] ? tcp_v4_early_demux+0xa30/0xa30 [ 41.504928] ip_local_deliver_finish+0x2e2/0xba0 [ 41.509660] ? inet_del_offload+0x40/0x40 [ 41.513783] ? nf_hook_slow+0xd3/0x1a0 [ 41.517648] ip_local_deliver+0x1ce/0x6e0 [ 41.521771] ? ip_call_ra_chain+0x6d0/0x6d0 [ 41.526076] ? inet_del_offload+0x40/0x40 [ 41.530205] ip_rcv_finish+0x8db/0x19c0 [ 41.534157] ? ip_local_deliver_finish+0xba0/0xba0 [ 41.539060] ? iptable_nat_ipv4_fn+0x40/0x40 [ 41.543443] ? nf_nat_ipv4_in_range+0xf0/0xf0 [ 41.547919] ? ip_rcv+0xc20/0x17d0 [ 41.551432] ? tcp_v4_send_synack+0x270/0x270 [ 41.555899] ? nf_nat_ipv4_in+0x1cd/0x270 [ 41.560020] ? iptable_nat_ipv4_fn+0x40/0x40 [ 41.564408] ? nf_hook_slow+0xd3/0x1a0 [ 41.568290] ip_rcv+0xc3f/0x17d0 [ 41.571636] ? ip_local_deliver+0x6e0/0x6e0 [ 41.575935] ? __lock_acquire+0x732/0x4620 [ 41.580159] ? ip_local_deliver_finish+0xba0/0xba0 [ 41.585066] ? ip_local_deliver+0x6e0/0x6e0 [ 41.589371] __netif_receive_skb_core+0x19af/0x33d0 [ 41.594363] ? print_usage_bug+0x480/0x480 [ 41.598587] ? nf_ingress+0x9f0/0x9f0 [ 41.602359] ? kasan_kmalloc+0xad/0xe0 [ 41.606220] ? kmem_cache_alloc+0x12e/0x760 [ 41.610512] ? __build_skb+0x9d/0x450 [ 41.614283] ? build_skb+0x6f/0x260 [ 41.617880] ? tun_build_skb.isra.42+0x92f/0x1690 [ 41.622692] ? tun_get_user+0x1dad/0x2150 [ 41.626811] ? tun_chr_write_iter+0xde/0x190 [ 41.631188] ? __vfs_write+0x68a/0x970 [ 41.635050] ? __skb_flow_get_ports+0x151/0x400 [ 41.639691] ? skb_flow_dissector_init+0x280/0x280 [ 41.644594] ? check_noncircular+0x20/0x20 [ 41.648797] ? __skb_flow_get_ports+0x151/0x400 [ 41.653440] ? __skb_flow_dissect+0x85b/0x3bc0 [ 41.658012] ? find_held_lock+0x39/0x1d0 [ 41.662055] ? lock_downgrade+0x990/0x990 [ 41.666176] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.671341] ? lock_acquire+0x1d5/0x580 [ 41.675289] ? netif_receive_skb_internal+0x1d7/0x670 [ 41.680465] ? pvclock_read_flags+0x160/0x160 [ 41.684935] ? tun_build_skb.isra.42+0x455/0x1690 [ 41.689756] ? lock_acquire+0x1d5/0x580 [ 41.693700] ? netif_receive_skb_internal+0xa2/0x670 [ 41.698775] ? ktime_get_with_offset+0x2c1/0x420 [ 41.703507] ? lock_release+0xd70/0xd70 [ 41.707452] ? ktime_get+0x3a0/0x3a0 [ 41.711140] ? skb_put+0x149/0x1c0 [ 41.714663] __netif_receive_skb+0x2c/0x1b0 [ 41.718957] ? __netif_receive_skb+0x2c/0x1b0 [ 41.723424] netif_receive_skb_internal+0x10b/0x670 [ 41.728420] ? dev_cpu_dead+0xb00/0xb00 [ 41.732457] ? lock_release+0xd70/0xd70 [ 41.736401] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 41.742255] ? is_bpf_text_address+0x7b/0x120 [ 41.746724] ? rcu_pm_notify+0xc0/0xc0 [ 41.750595] netif_receive_skb+0xae/0x390 [ 41.754716] ? netif_receive_skb_internal+0x670/0x670 [ 41.759883] ? lock_downgrade+0x990/0x990 [ 41.764009] ? tun_rx_batched.isra.43+0x5c3/0x860 [ 41.769698] tun_rx_batched.isra.43+0x5ed/0x860 [ 41.774354] ? skb_get_hash_perturb+0x9d0/0x9d0 [ 41.778999] ? tun_sock_write_space+0x370/0x370 [ 41.783745] tun_get_user+0x11dd/0x2150 [ 41.787706] ? tun_build_skb.isra.42+0x1690/0x1690 [ 41.792609] ? lock_release+0xd70/0xd70 [ 41.796561] ? tun_chr_close+0x60/0x60 [ 41.800429] ? lock_release+0xd70/0xd70 [ 41.804380] ? __lock_is_held+0xbc/0x140 [ 41.808431] ? __tun_get+0x1d4/0x2e0 [ 41.812113] ? tun_chr_close+0x60/0x60 [ 41.815982] tun_chr_write_iter+0xde/0x190 [ 41.820203] __vfs_write+0x68a/0x970 [ 41.823901] ? kernel_read+0x120/0x120 [ 41.827776] ? avc_policy_seqno+0x9/0x20 [ 41.831825] ? selinux_file_permission+0x82/0x460 [ 41.836648] ? rw_verify_area+0xe5/0x2b0 [ 41.840681] ? __fdget_raw+0x20/0x20 [ 41.844370] vfs_write+0x18f/0x510 [ 41.847887] SyS_write+0xef/0x220 [ 41.851321] ? SyS_read+0x220/0x220 [ 41.854918] ? lock_acquire+0x1d5/0x580 [ 41.858870] ? finish_task_switch+0x1aa/0x740 [ 41.863341] ? do_fast_syscall_32+0x158/0xf05 [ 41.867812] ? SyS_read+0x220/0x220 [ 41.871413] do_fast_syscall_32+0x3f2/0xf05 [ 41.875710] ? compat_start_thread+0x80/0x80 [ 41.880101] ? do_int80_syscall_32+0x940/0x940 [ 41.884662] ? lockdep_sys_exit+0x47/0xf0 [ 41.888791] ? syscall_return_slowpath+0x2b3/0x510 [ 41.893691] ? finish_task_switch+0x1aa/0x740 [ 41.898160] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 41.903152] ? sysret32_from_system_call+0x5/0x3b [ 41.907971] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.912809] entry_SYSENTER_compat+0x51/0x60 [ 41.917190] RIP: 0023:0xf7f42c79 [ 41.920525] RSP: 002b:00000000f2f341f4 EFLAGS: 00000292 ORIG_RAX: 0000000000000004 [ 41.928213] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020002000 [ 41.935453] RDX: 0000000000000046 RSI: 0000000000000000 RDI: 00000000003d0f00 [ 41.942696] RBP: 00000000f2f342e8 R08: 0000000000000000 R09: 0000000000000000 [ 41.949938] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 41.957183] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 41.964454] [ 41.966058] The buggy address belongs to the page: [ 41.970959] page:ffffea0007322780 count:0 mapcount:0 mapping: (null) index:0xffff8801cc89ee80 [ 41.980385] flags: 0x200000000000000() [ 41.984246] raw: 0200000000000000 0000000000000000 ffff8801cc89ee80 00000000ffffffff [ 41.992100] raw: dead000000000100 dead000000000200 ffff8801dac00dc0 0000000000000000 [ 41.999948] page dumped because: kasan: bad access detected [ 42.005627] [ 42.007226] Memory state around the buggy address: [ 42.012126] ffff8801cc89e600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.019463] ffff8801cc89e680: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 [ 42.026797] >ffff8801cc89e700: 00 f2 f3 f3 f3 f3 00 00 00 00 00 00 00 f1 f1 f1 [ 42.034125] ^ [ 42.037728] ffff8801cc89e780: f1 00 00 00 00 00 00 00 00 00 00 00 f2 f3 f3 f3 [ 42.045932] ffff8801cc89e800: f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.053268] ================================================================== [ 42.060596] Disabling lock debugging due to kernel taint [ 42.066039] Kernel panic - not syncing: panic_on_warn set ... [ 42.066039] [ 42.073368] CPU: 0 PID: 3020 Comm: syzkaller225926 Tainted: G B 4.14.0-rc2+ #10 [ 42.081906] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.091221] Call Trace: [ 42.093776] dump_stack+0x194/0x257 [ 42.097370] ? arch_local_irq_restore+0x53/0x53 [ 42.102006] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.106727] ? xfrm_state_find+0x2fc0/0x3190 [ 42.111103] panic+0x1e4/0x417 [ 42.114260] ? __warn+0x1d9/0x1d9 [ 42.117683] ? xfrm_state_find+0x305b/0x3190 [ 42.122056] kasan_end_report+0x50/0x50 [ 42.125996] kasan_report+0x144/0x340 [ 42.129762] __asan_report_load4_noabort+0x14/0x20