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 '10.128.0.60' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 46.613751] ================================================================== [ 46.621193] BUG: KASAN: stack-out-of-bounds in ipip6_tunnel_locate+0x63b/0xaa0 [ 46.628532] Write of size 33 at addr ffff8801b64076d8 by task syzkaller932654/4453 [ 46.636209] [ 46.637817] CPU: 0 PID: 4453 Comm: syzkaller932654 Not tainted 4.16.0+ #1 [ 46.644721] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.654050] Call Trace: [ 46.656616] dump_stack+0x1b9/0x29f [ 46.660222] ? arch_local_irq_restore+0x52/0x52 [ 46.664866] ? printk+0x9e/0xba [ 46.668121] ? show_regs_print_info+0x18/0x18 [ 46.672593] ? kasan_check_write+0x14/0x20 [ 46.676816] print_address_description+0x6c/0x20b [ 46.681638] ? ipip6_tunnel_locate+0x63b/0xaa0 [ 46.686209] kasan_report.cold.7+0xac/0x2f5 [ 46.690508] check_memory_region+0x13e/0x1b0 [ 46.694895] memcpy+0x37/0x50 [ 46.697979] ipip6_tunnel_locate+0x63b/0xaa0 [ 46.702367] ? ipip6_tunnel_update+0xaa0/0xaa0 [ 46.706939] ? __might_sleep+0x95/0x190 [ 46.710896] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.716412] ? _copy_from_user+0xdf/0x150 [ 46.720536] ipip6_tunnel_ioctl+0xe71/0x241b [ 46.724925] ? sit_tunnel_xmit+0x30b0/0x30b0 [ 46.729313] ? save_stack+0xa9/0xd0 [ 46.732921] ? kasan_kmalloc+0xc4/0xe0 [ 46.736787] ? kasan_slab_alloc+0x12/0x20 [ 46.740912] ? kmem_cache_alloc+0x12e/0x760 [ 46.745210] ? get_empty_filp+0x125/0x520 [ 46.749333] ? alloc_file+0x24/0x3e0 [ 46.753023] ? sock_alloc_file+0x1f3/0x4e0 [ 46.757236] ? __sys_socket+0x16f/0x250 [ 46.761184] ? SyS_socket+0x24/0x30 [ 46.764789] ? graph_lock+0x170/0x170 [ 46.768569] ? find_held_lock+0x36/0x1c0 [ 46.772611] ? find_held_lock+0x36/0x1c0 [ 46.776661] ? sit_tunnel_xmit+0x30b0/0x30b0 [ 46.781046] dev_ifsioc+0x43e/0xb90 [ 46.784658] ? sit_tunnel_xmit+0x30b0/0x30b0 [ 46.789043] ? dev_ifsioc+0x43e/0xb90 [ 46.792822] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 46.797986] ? register_gifconf+0x70/0x70 [ 46.802114] dev_ioctl+0x69a/0xcc0 [ 46.805632] sock_ioctl+0x47e/0x680 [ 46.809237] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 46.814404] ? dlci_ioctl_set+0x40/0x40 [ 46.818359] ? get_unused_fd_flags+0x190/0x190 [ 46.822920] ? dlci_ioctl_set+0x40/0x40 [ 46.826872] do_vfs_ioctl+0x1cf/0x1650 [ 46.830738] ? ioctl_preallocate+0x2e0/0x2e0 [ 46.835123] ? fget_raw+0x20/0x20 [ 46.838552] ? get_unused_fd_flags+0x121/0x190 [ 46.843110] ? __alloc_fd+0x6e0/0x6e0 [ 46.846891] ? fd_install+0x4d/0x60 [ 46.850493] ? __sys_socket+0x19f/0x250 [ 46.854451] ? security_file_ioctl+0x9b/0xd0 [ 46.858838] ksys_ioctl+0xa9/0xd0 [ 46.862271] SyS_ioctl+0x24/0x30 [ 46.865613] ? ksys_ioctl+0xd0/0xd0 [ 46.869216] do_syscall_64+0x29e/0x9d0 [ 46.873082] ? vmalloc_sync_all+0x30/0x30 [ 46.877818] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 46.882640] ? syscall_return_slowpath+0x5c0/0x5c0 [ 46.887549] ? syscall_return_slowpath+0x30f/0x5c0 [ 46.892462] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 46.897809] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.902633] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.907799] RIP: 0033:0x43fe09 [ 46.910966] RSP: 002b:00007fff1291df58 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 [ 46.918654] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fe09 [ 46.925908] RDX: 00000000200001c0 RSI: 00000000000089f1 RDI: 0000000000000003 [ 46.933159] RBP: 00000000006ca018 R08: 000000000000001c R09: 00000000004002c8 [ 46.940405] R10: 000000000000001c R11: 0000000000000213 R12: 0000000000401730 [ 46.947651] R13: 00000000004017c0 R14: 0000000000000000 R15: 0000000000000000 [ 46.954903] [ 46.956506] The buggy address belongs to the page: [ 46.961411] page:ffffea0006d901c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 46.969527] flags: 0x2fffc0000000000() [ 46.973404] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 46.981264] raw: 0000000000000000 ffffea0006d90101 0000000000000000 0000000000000000 [ 46.989116] page dumped because: kasan: bad access detected [ 46.994797] [ 46.996396] Memory state around the buggy address: [ 47.001301] ffff8801b6407580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 47.008635] ffff8801b6407600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 47.015966] >ffff8801b6407680: f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 00 f2 f2 00 [ 47.023297] ^ [ 47.030022] ffff8801b6407700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 47.037355] ffff8801b6407780: 00 00 f1 f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 [ 47.044689] ================================================================== [ 47.052019] Disabling lock debugging due to kernel taint [ 47.057522] Kernel panic - not syncing: panic_on_warn set ... [ 47.057522] [ 47.064874] CPU: 0 PID: 4453 Comm: syzkaller932654 Tainted: G B 4.16.0+ #1 [ 47.073075] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.082403] Call Trace: [ 47.084970] dump_stack+0x1b9/0x29f [ 47.088574] ? arch_local_irq_restore+0x52/0x52 [ 47.093217] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.097947] ? ipip6_tunnel_locate+0x550/0xaa0 [ 47.102502] panic+0x22f/0x4de [ 47.105669] ? add_taint.cold.5+0x16/0x16 [ 47.109794] ? do_raw_spin_unlock+0x9e/0x2e0 [ 47.114175] ? do_raw_spin_unlock+0x9e/0x2e0 [ 47.118560] ? ipip6_tunnel_locate+0x63b/0xaa0 [ 47.123117] kasan_end_report+0x47/0x4f [ 47.127067] kasan_report.cold.7+0xc9/0x2f5 [ 47.131361] check_memory_region+0x13e/0x1b0 [ 47.135744] memcpy+0x37/0x50 [ 47.138823] ipip6_tunnel_locate+0x63b/0xaa0 [ 47.143204] ? ipip6_tunnel_update+0xaa0/0xaa0 [ 47.147770] ? __might_sleep+0x95/0x190 [ 47.151721] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.157236] ? _copy_from_user+0xdf/0x150 [ 47.161359] ipip6_tunnel_ioctl+0xe71/0x241b [ 47.165741] ? sit_tunnel_xmit+0x30b0/0x30b0 [ 47.170124] ? save_stack+0xa9/0xd0 [ 47.173726] ? kasan_kmalloc+0xc4/0xe0 [ 47.177588] ? kasan_slab_alloc+0x12/0x20 [ 47.181712] ? kmem_cache_alloc+0x12e/0x760 [ 47.186010] ? get_empty_filp+0x125/0x520 [ 47.190133] ? alloc_file+0x24/0x3e0 [ 47.193826] ? sock_alloc_file+0x1f3/0x4e0 [ 47.198033] ? __sys_socket+0x16f/0x250 [ 47.201979] ? SyS_socket+0x24/0x30 [ 47.205581] ? graph_lock+0x170/0x170 [ 47.209357] ? find_held_lock+0x36/0x1c0 [ 47.213392] ? find_held_lock+0x36/0x1c0 [ 47.217433] ? sit_tunnel_xmit+0x30b0/0x30b0 [ 47.221815] dev_ifsioc+0x43e/0xb90 [ 47.225414] ? sit_tunnel_xmit+0x30b0/0x30b0 [ 47.229795] ? dev_ifsioc+0x43e/0xb90 [ 47.233570] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 47.238734] ? register_gifconf+0x70/0x70 [ 47.242858] dev_ioctl+0x69a/0xcc0 [ 47.246371] sock_ioctl+0x47e/0x680 [ 47.249971] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 47.255133] ? dlci_ioctl_set+0x40/0x40 [ 47.259093] ? get_unused_fd_flags+0x190/0x190 [ 47.263650] ? dlci_ioctl_set+0x40/0x40 [ 47.267602] do_vfs_ioctl+0x1cf/0x1650 [ 47.271465] ? ioctl_preallocate+0x2e0/0x2e0 [ 47.275847] ? fget_raw+0x20/0x20 [ 47.279274] ? get_unused_fd_flags+0x121/0x190 [ 47.283829] ? __alloc_fd+0x6e0/0x6e0 [ 47.287604] ? fd_install+0x4d/0x60 [ 47.291207] ? __sys_socket+0x19f/0x250 [ 47.295156] ? security_file_ioctl+0x9b/0xd0 [ 47.299536] ksys_ioctl+0xa9/0xd0 [ 47.302966] SyS_ioctl+0x24/0x30 [ 47.306306] ? ksys_ioctl+0xd0/0xd0 [ 47.309907] do_syscall_64+0x29e/0x9d0 [ 47.313767] ? vmalloc_sync_all+0x30/0x30 [ 47.317890] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 47.322709] ? syscall_return_slowpath+0x5c0/0x5c0 [ 47.327610] ? syscall_return_slowpath+0x30f/0x5c0 [ 47.332519] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 47.337858] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.342688] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.347851] RIP: 0033:0x43fe09 [ 47.351015] RSP: 002b:00007fff1291df58 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 [ 47.358697] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fe09 [ 47.365939] RDX: 00000000200001c0 RSI: 00000000000089f1 RDI: 0000000000000003 [ 47.373182] RBP: 00000000006ca018 R08: 000000000000001c R09: 00000000004002c8 [ 47.380426] R10: 000000000000001c R11: 0000000000000213 R12: 0000000000401730 [ 47.387670] R13: 00000000004017c0 R14: 0000000000000000 R15: 0000000000000000 [ 47.395308] Dumping ftrace buffer: [ 47.398818] (ftrace buffer empty) [ 47.402500] Kernel Offset: disabled [ 47.406104] Rebooting in 86400 seconds..