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.44' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 30.201578] ================================================================== [ 30.209043] BUG: KASAN: stack-out-of-bounds in __ip_tunnel_create+0xca/0x6b0 [ 30.216212] Write of size 20 at addr ffff8801aeec7810 by task syzkaller392378/4491 [ 30.223892] [ 30.225499] CPU: 0 PID: 4491 Comm: syzkaller392378 Not tainted 4.16.0+ #1 [ 30.232398] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.241725] Call Trace: [ 30.244292] dump_stack+0x1b9/0x29f [ 30.247897] ? arch_local_irq_restore+0x52/0x52 [ 30.252542] ? printk+0x9e/0xba [ 30.255796] ? show_regs_print_info+0x18/0x18 [ 30.260273] ? kasan_check_write+0x14/0x20 [ 30.264488] print_address_description+0x6c/0x20b [ 30.269310] ? __ip_tunnel_create+0xca/0x6b0 [ 30.273696] kasan_report.cold.7+0xac/0x2f5 [ 30.278013] check_memory_region+0x13e/0x1b0 [ 30.282410] memcpy+0x37/0x50 [ 30.285495] __ip_tunnel_create+0xca/0x6b0 [ 30.289711] ? ip_tunnel_encap_del_ops+0x70/0x70 [ 30.294448] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.299966] ? ns_capable_common+0x13f/0x170 [ 30.304355] ip_tunnel_ioctl+0x818/0xd40 [ 30.308395] ? ip_tunnel_newlink+0x9f0/0x9f0 [ 30.312785] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.318309] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 30.323480] ipip_tunnel_ioctl+0x1c5/0x420 [ 30.327692] ? ipip_tunnel_setup+0x1d0/0x1d0 [ 30.332084] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.337596] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 30.342761] ? ipip_tunnel_setup+0x1d0/0x1d0 [ 30.347146] dev_ifsioc+0x43e/0xb90 [ 30.350751] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 30.355917] ? register_gifconf+0x70/0x70 [ 30.360057] dev_ioctl+0x69a/0xcc0 [ 30.363580] sock_ioctl+0x47e/0x680 [ 30.367185] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 30.372350] ? dlci_ioctl_set+0x40/0x40 [ 30.376307] ? get_unused_fd_flags+0x190/0x190 [ 30.380866] ? dlci_ioctl_set+0x40/0x40 [ 30.384818] do_vfs_ioctl+0x1cf/0x1650 [ 30.388684] ? ioctl_preallocate+0x2e0/0x2e0 [ 30.393067] ? fget_raw+0x20/0x20 [ 30.396497] ? get_unused_fd_flags+0x121/0x190 [ 30.401056] ? __alloc_fd+0x6e0/0x6e0 [ 30.404834] ? fd_install+0x4d/0x60 [ 30.408442] ? __sys_socket+0x19f/0x250 [ 30.412396] ? security_file_ioctl+0x9b/0xd0 [ 30.416780] ksys_ioctl+0xa9/0xd0 [ 30.420212] SyS_ioctl+0x24/0x30 [ 30.423552] ? ksys_ioctl+0xd0/0xd0 [ 30.427161] do_syscall_64+0x29e/0x9d0 [ 30.431036] ? vmalloc_sync_all+0x30/0x30 [ 30.435174] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.439906] ? syscall_return_slowpath+0x5c0/0x5c0 [ 30.444812] ? syscall_return_slowpath+0x30f/0x5c0 [ 30.449721] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 30.455065] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.459889] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.465055] RIP: 0033:0x43fe19 [ 30.468221] RSP: 002b:00007ffe1842ed38 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 [ 30.475907] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fe19 [ 30.483153] RDX: 0000000020000240 RSI: 00000000000089f1 RDI: 0000000000000003 [ 30.490400] RBP: 00000000006ca018 R08: 000000000000001c R09: 00000000004002c8 [ 30.497645] R10: 000000000000001c R11: 0000000000000213 R12: 0000000000401740 [ 30.504888] R13: 00000000004017d0 R14: 0000000000000000 R15: 0000000000000000 [ 30.512139] [ 30.513741] The buggy address belongs to the page: [ 30.518645] page:ffffea0006bbb1c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 30.526760] flags: 0x2fffc0000000000() [ 30.530712] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 30.538572] raw: 0000000000000000 ffffea0006bb0101 0000000000000000 0000000000000000 [ 30.546426] page dumped because: kasan: bad access detected [ 30.552105] [ 30.553703] Memory state around the buggy address: [ 30.558607] ffff8801aeec7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.565948] ffff8801aeec7780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 [ 30.573370] >ffff8801aeec7800: f1 f1 00 00 f2 f2 00 00 00 00 00 00 00 00 00 00 [ 30.580700] ^ [ 30.585085] ffff8801aeec7880: 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 f3 f3 f3 [ 30.592426] ffff8801aeec7900: f3 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 [ 30.599756] ================================================================== [ 30.607085] Disabling lock debugging due to kernel taint [ 30.612576] Kernel panic - not syncing: panic_on_warn set ... [ 30.612576] [ 30.620029] CPU: 0 PID: 4491 Comm: syzkaller392378 Tainted: G B 4.16.0+ #1 [ 30.628234] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.637561] Call Trace: [ 30.640129] dump_stack+0x1b9/0x29f [ 30.643737] ? arch_local_irq_restore+0x52/0x52 [ 30.648383] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.653119] ? __ip_tunnel_create+0x30/0x6b0 [ 30.657510] panic+0x22f/0x4de [ 30.660679] ? add_taint.cold.5+0x16/0x16 [ 30.664803] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.669190] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.673573] ? __ip_tunnel_create+0xca/0x6b0 [ 30.677959] kasan_end_report+0x47/0x4f [ 30.681907] kasan_report.cold.7+0xc9/0x2f5 [ 30.686205] check_memory_region+0x13e/0x1b0 [ 30.690586] memcpy+0x37/0x50 [ 30.693670] __ip_tunnel_create+0xca/0x6b0 [ 30.697881] ? ip_tunnel_encap_del_ops+0x70/0x70 [ 30.702612] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.708127] ? ns_capable_common+0x13f/0x170 [ 30.712514] ip_tunnel_ioctl+0x818/0xd40 [ 30.716556] ? ip_tunnel_newlink+0x9f0/0x9f0 [ 30.720956] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.726480] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 30.731647] ipip_tunnel_ioctl+0x1c5/0x420 [ 30.735867] ? ipip_tunnel_setup+0x1d0/0x1d0 [ 30.740258] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.745774] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 30.750942] ? ipip_tunnel_setup+0x1d0/0x1d0 [ 30.755324] dev_ifsioc+0x43e/0xb90 [ 30.758927] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 30.764091] ? register_gifconf+0x70/0x70 [ 30.768223] dev_ioctl+0x69a/0xcc0 [ 30.771744] sock_ioctl+0x47e/0x680 [ 30.775359] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 30.780537] ? dlci_ioctl_set+0x40/0x40 [ 30.784493] ? get_unused_fd_flags+0x190/0x190 [ 30.789064] ? dlci_ioctl_set+0x40/0x40 [ 30.793024] do_vfs_ioctl+0x1cf/0x1650 [ 30.796895] ? ioctl_preallocate+0x2e0/0x2e0 [ 30.801282] ? fget_raw+0x20/0x20 [ 30.804708] ? get_unused_fd_flags+0x121/0x190 [ 30.809264] ? __alloc_fd+0x6e0/0x6e0 [ 30.813046] ? fd_install+0x4d/0x60 [ 30.816651] ? __sys_socket+0x19f/0x250 [ 30.820605] ? security_file_ioctl+0x9b/0xd0 [ 30.824987] ksys_ioctl+0xa9/0xd0 [ 30.828418] SyS_ioctl+0x24/0x30 [ 30.831756] ? ksys_ioctl+0xd0/0xd0 [ 30.835359] do_syscall_64+0x29e/0x9d0 [ 30.839223] ? vmalloc_sync_all+0x30/0x30 [ 30.843346] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.848084] ? syscall_return_slowpath+0x5c0/0x5c0 [ 30.852991] ? syscall_return_slowpath+0x30f/0x5c0 [ 30.857900] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 30.863240] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.868060] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.873222] RIP: 0033:0x43fe19 [ 30.876386] RSP: 002b:00007ffe1842ed38 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 [ 30.884071] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fe19 [ 30.891314] RDX: 0000000020000240 RSI: 00000000000089f1 RDI: 0000000000000003 [ 30.898557] RBP: 00000000006ca018 R08: 000000000000001c R09: 00000000004002c8 [ 30.905799] R10: 000000000000001c R11: 0000000000000213 R12: 0000000000401740 [ 30.913047] R13: 00000000004017d0 R14: 0000000000000000 R15: 0000000000000000 [ 30.920728] Dumping ftrace buffer: [ 30.924242] (ftrace buffer empty) [ 30.927925] Kernel Offset: disabled [ 30.931542] Rebooting in 86400 seconds..