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.24' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 42.494439] ================================================================== [ 42.501909] BUG: KASAN: stack-out-of-bounds in __ip_tunnel_create+0xca/0x6b0 [ 42.509077] Write of size 20 at addr ffff8801b214f810 by task syzkaller585190/4440 [ 42.516759] [ 42.518371] CPU: 0 PID: 4440 Comm: syzkaller585190 Not tainted 4.16.0+ #1 [ 42.525275] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.534610] Call Trace: [ 42.537182] dump_stack+0x1b9/0x29f [ 42.540791] ? arch_local_irq_restore+0x52/0x52 [ 42.545444] ? printk+0x9e/0xba [ 42.548702] ? show_regs_print_info+0x18/0x18 [ 42.553191] ? kasan_check_write+0x14/0x20 [ 42.557407] print_address_description+0x6c/0x20b [ 42.562232] ? __ip_tunnel_create+0xca/0x6b0 [ 42.566622] kasan_report.cold.7+0xac/0x2f5 [ 42.570945] check_memory_region+0x13e/0x1b0 [ 42.575335] memcpy+0x37/0x50 [ 42.578422] __ip_tunnel_create+0xca/0x6b0 [ 42.582644] ? ip_tunnel_encap_del_ops+0x70/0x70 [ 42.587383] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.592901] ? ns_capable_common+0x13f/0x170 [ 42.597293] ip_tunnel_ioctl+0x818/0xd40 [ 42.601335] ? ip_tunnel_newlink+0x9f0/0x9f0 [ 42.605727] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.611243] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 42.616413] ipip_tunnel_ioctl+0x1c5/0x420 [ 42.620632] ? ipip_tunnel_setup+0x1d0/0x1d0 [ 42.625201] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.630722] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 42.635892] ? ipip_tunnel_setup+0x1d0/0x1d0 [ 42.640282] dev_ifsioc+0x43e/0xb90 [ 42.643891] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 42.649059] ? register_gifconf+0x70/0x70 [ 42.653193] dev_ioctl+0x69a/0xcc0 [ 42.656722] sock_ioctl+0x47e/0x680 [ 42.660329] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 42.665503] ? dlci_ioctl_set+0x40/0x40 [ 42.669474] ? get_unused_fd_flags+0x190/0x190 [ 42.674039] ? dlci_ioctl_set+0x40/0x40 [ 42.677997] do_vfs_ioctl+0x1cf/0x1650 [ 42.681869] ? ioctl_preallocate+0x2e0/0x2e0 [ 42.686257] ? fget_raw+0x20/0x20 [ 42.689701] ? get_unused_fd_flags+0x121/0x190 [ 42.694273] ? __alloc_fd+0x6e0/0x6e0 [ 42.698061] ? fd_install+0x4d/0x60 [ 42.701671] ? __sys_socket+0x19f/0x250 [ 42.705627] ? security_file_ioctl+0x9b/0xd0 [ 42.710019] ksys_ioctl+0xa9/0xd0 [ 42.713454] SyS_ioctl+0x24/0x30 [ 42.716799] ? ksys_ioctl+0xd0/0xd0 [ 42.720408] do_syscall_64+0x29e/0x9d0 [ 42.724275] ? vmalloc_sync_all+0x30/0x30 [ 42.728406] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.733143] ? syscall_return_slowpath+0x5c0/0x5c0 [ 42.738054] ? syscall_return_slowpath+0x30f/0x5c0 [ 42.742968] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 42.748316] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.753143] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.758309] RIP: 0033:0x43fe19 [ 42.761478] RSP: 002b:00007ffe8c79ff08 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 [ 42.769174] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fe19 [ 42.776424] RDX: 0000000020000200 RSI: 00000000000089f1 RDI: 0000000000000003 [ 42.783674] RBP: 00000000006ca018 R08: 000000000000001c R09: 00000000004002c8 [ 42.790924] R10: 000000000000001c R11: 0000000000000213 R12: 0000000000401740 [ 42.798171] R13: 00000000004017d0 R14: 0000000000000000 R15: 0000000000000000 [ 42.805427] [ 42.807031] The buggy address belongs to the page: [ 42.811942] page:ffffea0006c853c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 42.820061] flags: 0x2fffc0000000000() [ 42.823934] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 42.831797] raw: 0000000000000000 ffffea0006c80101 0000000000000000 0000000000000000 [ 42.839653] page dumped because: kasan: bad access detected [ 42.845340] [ 42.846944] Memory state around the buggy address: [ 42.851855] ffff8801b214f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.859190] ffff8801b214f780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 [ 42.866526] >ffff8801b214f800: f1 f1 00 00 f2 f2 00 00 00 00 00 00 00 00 00 00 [ 42.873858] ^ [ 42.878243] ffff8801b214f880: 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 f3 f3 f3 [ 42.885578] ffff8801b214f900: f3 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 [ 42.892915] ================================================================== [ 42.900247] Disabling lock debugging due to kernel taint [ 42.905779] Kernel panic - not syncing: panic_on_warn set ... [ 42.905779] [ 42.913129] CPU: 0 PID: 4440 Comm: syzkaller585190 Tainted: G B 4.16.0+ #1 [ 42.921333] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.930668] Call Trace: [ 42.933245] dump_stack+0x1b9/0x29f [ 42.936853] ? arch_local_irq_restore+0x52/0x52 [ 42.941508] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.946246] ? ip_tunnel_encap_del_ops+0x50/0x70 [ 42.950982] panic+0x22f/0x4de [ 42.954155] ? add_taint.cold.5+0x16/0x16 [ 42.958286] ? do_raw_spin_unlock+0x9e/0x2e0 [ 42.962673] ? do_raw_spin_unlock+0x9e/0x2e0 [ 42.967065] ? __ip_tunnel_create+0xca/0x6b0 [ 42.971455] kasan_end_report+0x47/0x4f [ 42.975411] kasan_report.cold.7+0xc9/0x2f5 [ 42.979713] check_memory_region+0x13e/0x1b0 [ 42.984100] memcpy+0x37/0x50 [ 42.987188] __ip_tunnel_create+0xca/0x6b0 [ 42.991401] ? ip_tunnel_encap_del_ops+0x70/0x70 [ 42.996136] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.001655] ? ns_capable_common+0x13f/0x170 [ 43.006043] ip_tunnel_ioctl+0x818/0xd40 [ 43.010087] ? ip_tunnel_newlink+0x9f0/0x9f0 [ 43.014479] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 43.019997] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 43.025165] ipip_tunnel_ioctl+0x1c5/0x420 [ 43.029379] ? ipip_tunnel_setup+0x1d0/0x1d0 [ 43.033767] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.039291] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 43.044456] ? ipip_tunnel_setup+0x1d0/0x1d0 [ 43.048844] dev_ifsioc+0x43e/0xb90 [ 43.052453] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 43.057622] ? register_gifconf+0x70/0x70 [ 43.061753] dev_ioctl+0x69a/0xcc0 [ 43.065273] sock_ioctl+0x47e/0x680 [ 43.068878] ? rcu_bh_force_quiescent_state+0x20/0x20 [ 43.074045] ? dlci_ioctl_set+0x40/0x40 [ 43.078000] ? get_unused_fd_flags+0x190/0x190 [ 43.082561] ? dlci_ioctl_set+0x40/0x40 [ 43.086512] do_vfs_ioctl+0x1cf/0x1650 [ 43.090377] ? ioctl_preallocate+0x2e0/0x2e0 [ 43.094762] ? fget_raw+0x20/0x20 [ 43.098191] ? get_unused_fd_flags+0x121/0x190 [ 43.102750] ? __alloc_fd+0x6e0/0x6e0 [ 43.106527] ? fd_install+0x4d/0x60 [ 43.110132] ? __sys_socket+0x19f/0x250 [ 43.114085] ? security_file_ioctl+0x9b/0xd0 [ 43.118476] ksys_ioctl+0xa9/0xd0 [ 43.121908] SyS_ioctl+0x24/0x30 [ 43.125253] ? ksys_ioctl+0xd0/0xd0 [ 43.128860] do_syscall_64+0x29e/0x9d0 [ 43.132735] ? vmalloc_sync_all+0x30/0x30 [ 43.136866] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.141599] ? syscall_return_slowpath+0x5c0/0x5c0 [ 43.146507] ? syscall_return_slowpath+0x30f/0x5c0 [ 43.151416] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 43.156767] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.161592] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.166762] RIP: 0033:0x43fe19 [ 43.169932] RSP: 002b:00007ffe8c79ff08 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 [ 43.177621] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fe19 [ 43.184869] RDX: 0000000020000200 RSI: 00000000000089f1 RDI: 0000000000000003 [ 43.192116] RBP: 00000000006ca018 R08: 000000000000001c R09: 00000000004002c8 [ 43.199368] R10: 000000000000001c R11: 0000000000000213 R12: 0000000000401740 [ 43.206616] R13: 00000000004017d0 R14: 0000000000000000 R15: 0000000000000000 [ 43.214257] Dumping ftrace buffer: [ 43.217777] (ftrace buffer empty) [ 43.221468] Kernel Offset: disabled [ 43.225075] Rebooting in 86400 seconds..