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-next-kasan-gce-2,10.128.0.60' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 34.448295] ================================================================== [ 34.449659] BUG: KASAN: use-after-free in __internal_add_timer+0x275/0x2d0 [ 34.450709] Write of size 8 at addr ffff8801ce0536c8 by task syzkaller030238/2985 [ 34.451897] [ 34.452145] CPU: 0 PID: 2985 Comm: syzkaller030238 Not tainted 4.13.0-next-20170906+ #16 [ 34.453395] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.454645] Call Trace: [ 34.455010] dump_stack+0x194/0x257 [ 34.455508] ? arch_local_irq_restore+0x53/0x53 [ 34.456159] ? show_regs_print_info+0x65/0x65 [ 34.456773] ? __internal_add_timer+0x275/0x2d0 [ 34.457405] print_address_description+0x73/0x250 [ 34.458055] ? __internal_add_timer+0x275/0x2d0 [ 34.458714] kasan_report+0x24e/0x340 [ 34.459251] __asan_report_store8_noabort+0x17/0x20 [ 34.459923] __internal_add_timer+0x275/0x2d0 [ 34.460591] ? calc_wheel_index+0x200/0x200 [ 34.461183] mod_timer+0x622/0x15b0 [ 34.461687] ? mod_timer_pending+0x14e0/0x14e0 [ 34.462336] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.463068] ? trace_hardirqs_on+0xd/0x10 [ 34.463647] ? _crng_backtrack_protect+0xd9/0x130 [ 34.464317] ? __lock_is_held+0xbc/0x140 [ 34.464914] ? __lockdep_init_map+0xe4/0x650 [ 34.465530] ? lockdep_init_map+0x3d/0x70 [ 34.466093] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.466873] ? init_timer_key+0x126/0x3b0 [ 34.467453] ? try_to_del_timer_sync+0x120/0x120 [ 34.468133] ? round_jiffies_up+0xce/0x100 [ 34.470167] ? __round_jiffies_up_relative+0x150/0x150 [ 34.475418] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 34.480340] __tun_chr_ioctl+0x1b23/0x3d20 [ 34.484558] ? tun_chr_read_iter+0x1e0/0x1e0 [ 34.488952] ? lock_downgrade+0x990/0x990 [ 34.493098] ? check_same_owner+0x320/0x320 [ 34.497398] ? __handle_mm_fault+0x39c0/0x39c0 [ 34.501972] ? vmacache_find+0x61/0x270 [ 34.505927] ? tun_chr_compat_ioctl+0x30/0x30 [ 34.510394] tun_chr_ioctl+0x2a/0x40 [ 34.514081] ? tun_chr_ioctl+0x2a/0x40 [ 34.518032] do_vfs_ioctl+0x1b1/0x1530 [ 34.521903] ? ioctl_preallocate+0x2b0/0x2b0 [ 34.526292] ? selinux_capable+0x40/0x40 [ 34.530345] ? putname+0xf3/0x130 [ 34.533775] ? do_sys_open+0x320/0x6d0 [ 34.537646] ? security_file_ioctl+0x7d/0xb0 [ 34.542025] ? security_file_ioctl+0x89/0xb0 [ 34.546410] SyS_ioctl+0x8f/0xc0 [ 34.549757] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.554485] RIP: 0033:0x443d89 [ 34.557648] RSP: 002b:00007ffd6ba8dc68 EFLAGS: 00000206 ORIG_RAX: 0000000000000010 [ 34.565433] RAX: ffffffffffffffda RBX: b6094372c0b880ce RCX: 0000000000443d89 [ 34.572675] RDX: 0000000020001fd8 RSI: 00000000400454ca RDI: 0000000000000004 [ 34.579928] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 34.587170] R10: 0000000000000000 R11: 0000000000000206 R12: 74656e2f7665642f [ 34.594424] R13: 0000000000401b00 R14: 0000000000000000 R15: 0000000000000000 [ 34.601687] [ 34.603296] Allocated by task 2985: [ 34.606904] save_stack_trace+0x16/0x20 [ 34.610861] save_stack+0x43/0xd0 [ 34.614284] kasan_kmalloc+0xad/0xe0 [ 34.617972] __kmalloc_node+0x47/0x70 [ 34.621834] kvmalloc_node+0x64/0xd0 [ 34.625521] alloc_netdev_mqs+0x16e/0xed0 [ 34.629639] __tun_chr_ioctl+0x12be/0x3d20 [ 34.633854] tun_chr_ioctl+0x2a/0x40 [ 34.637550] do_vfs_ioctl+0x1b1/0x1530 [ 34.641408] SyS_ioctl+0x8f/0xc0 [ 34.644745] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.649473] [ 34.651074] Freed by task 2985: [ 34.654329] save_stack_trace+0x16/0x20 [ 34.658281] save_stack+0x43/0xd0 [ 34.661721] kasan_slab_free+0x71/0xc0 [ 34.665605] kfree+0xca/0x250 [ 34.668693] kvfree+0x36/0x60 [ 34.671772] free_netdev+0x2cf/0x360 [ 34.675474] __tun_chr_ioctl+0x2cf6/0x3d20 [ 34.679681] tun_chr_ioctl+0x2a/0x40 [ 34.683374] do_vfs_ioctl+0x1b1/0x1530 [ 34.687234] SyS_ioctl+0x8f/0xc0 [ 34.690576] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.695331] [ 34.696941] The buggy address belongs to the object at ffff8801ce0502c0 [ 34.696941] which belongs to the cache kmalloc-16384 of size 16384 [ 34.709926] The buggy address is located 13320 bytes inside of [ 34.709926] 16384-byte region [ffff8801ce0502c0, ffff8801ce0542c0) [ 34.722143] The buggy address belongs to the page: [ 34.727058] page:ffffea0007381400 count:1 mapcount:0 mapping:ffff8801ce0502c0 index:0x0 compound_mapcount: 0 [ 34.737023] flags: 0x200000000008100(slab|head) [ 34.743059] raw: 0200000000008100 ffff8801ce0502c0 0000000000000000 0000000100000001 [ 34.750913] raw: ffffea0007556a20 ffffea0007380220 ffff8801dac02200 0000000000000000 [ 34.758779] page dumped because: kasan: bad access detected [ 34.764463] [ 34.766061] Memory state around the buggy address: [ 34.770966] ffff8801ce053580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.778298] ffff8801ce053600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.785636] >ffff8801ce053680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.792967] ^ [ 34.798668] ffff8801ce053700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.806012] ffff8801ce053780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.813341] ================================================================== [ 34.820930] Disabling lock debugging due to kernel taint [ 34.826349] Kernel panic - not syncing: panic_on_warn set ... [ 34.826349] [ 34.833688] CPU: 0 PID: 2985 Comm: syzkaller030238 Tainted: G B 4.13.0-next-20170906+ #16 [ 34.843098] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.852418] Call Trace: [ 34.854984] dump_stack+0x194/0x257 [ 34.858580] ? arch_local_irq_restore+0x53/0x53 [ 34.863221] ? vprintk_default+0x28/0x30 [ 34.867251] ? __internal_add_timer+0x1e0/0x2d0 [ 34.871975] panic+0x1e4/0x417 [ 34.875134] ? __warn+0x1d9/0x1d9 [ 34.878561] ? __internal_add_timer+0x275/0x2d0 [ 34.883196] kasan_end_report+0x50/0x50 [ 34.887137] kasan_report+0x137/0x340 [ 34.890907] __asan_report_store8_noabort+0x17/0x20 [ 34.895890] __internal_add_timer+0x275/0x2d0 [ 34.900353] ? calc_wheel_index+0x200/0x200 [ 34.904647] mod_timer+0x622/0x15b0 [ 34.908246] ? mod_timer_pending+0x14e0/0x14e0 [ 34.912798] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.917781] ? trace_hardirqs_on+0xd/0x10 [ 34.921897] ? _crng_backtrack_protect+0xd9/0x130 [ 34.926709] ? __lock_is_held+0xbc/0x140 [ 34.930765] ? __lockdep_init_map+0xe4/0x650 [ 34.935231] ? lockdep_init_map+0x3d/0x70 [ 34.939347] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.944339] ? init_timer_key+0x126/0x3b0 [ 34.948456] ? try_to_del_timer_sync+0x120/0x120 [ 34.953182] ? round_jiffies_up+0xce/0x100 [ 34.957385] ? __round_jiffies_up_relative+0x150/0x150 [ 34.962628] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 34.967531] __tun_chr_ioctl+0x1b23/0x3d20 [ 34.971739] ? tun_chr_read_iter+0x1e0/0x1e0 [ 34.976124] ? lock_downgrade+0x990/0x990 [ 34.980348] ? check_same_owner+0x320/0x320 [ 34.984638] ? __handle_mm_fault+0x39c0/0x39c0 [ 34.989186] ? vmacache_find+0x61/0x270 [ 34.993145] ? tun_chr_compat_ioctl+0x30/0x30 [ 34.997609] tun_chr_ioctl+0x2a/0x40 [ 35.001289] ? tun_chr_ioctl+0x2a/0x40 [ 35.005149] do_vfs_ioctl+0x1b1/0x1530 [ 35.009051] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.013434] ? selinux_capable+0x40/0x40 [ 35.017462] ? putname+0xf3/0x130 [ 35.020885] ? do_sys_open+0x320/0x6d0 [ 35.024748] ? security_file_ioctl+0x7d/0xb0 [ 35.029122] ? security_file_ioctl+0x89/0xb0 [ 35.033504] SyS_ioctl+0x8f/0xc0 [ 35.036847] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 35.041582] RIP: 0033:0x443d89 [ 35.045089] RSP: 002b:00007ffd6ba8dc68 EFLAGS: 00000206 ORIG_RAX: 0000000000000010 [ 35.052764] RAX: ffffffffffffffda RBX: b6094372c0b880ce RCX: 0000000000443d89 [ 35.060001] RDX: 0000000020001fd8 RSI: 00000000400454ca RDI: 0000000000000004 [ 35.067256] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 35.074504] R10: 0000000000000000 R11: 0000000000000206 R12: 74656e2f7665642f [ 35.081760] R13: 0000000000401b00 R14: 0000000000000000 R15: 0000000000000000 [ 35.089071] Dumping ftrace buffer: [ 35.092589] (ftrace buffer empty) [ 35.096452] Kernel Offset: disabled [ 35.100656] Rebooting in 86400 seconds..