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-3,10.128.0.35' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 46.919473] ================================================================== [ 46.920614] BUG: KASAN: use-after-free in __internal_add_timer+0x275/0x2d0 [ 46.921557] Write of size 8 at addr ffff8801d228b600 by task syzkaller952077/2985 [ 46.922553] [ 46.922801] CPU: 1 PID: 2985 Comm: syzkaller952077 Not tainted 4.14.0-rc5+ #48 [ 46.923765] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.924983] Call Trace: [ 46.925339] dump_stack+0x194/0x257 [ 46.925832] ? arch_local_irq_restore+0x53/0x53 [ 46.926454] ? show_regs_print_info+0x65/0x65 [ 46.927094] ? __kernel_text_address+0xd/0x40 [ 46.927710] ? __internal_add_timer+0x275/0x2d0 [ 46.928333] print_address_description+0x73/0x250 [ 46.928995] ? __internal_add_timer+0x275/0x2d0 [ 46.929617] kasan_report+0x25b/0x340 [ 46.930131] __asan_report_store8_noabort+0x17/0x20 [ 46.930823] __internal_add_timer+0x275/0x2d0 [ 46.931443] ? calc_wheel_index+0x200/0x200 [ 46.932086] mod_timer+0x622/0x15b0 [ 46.932583] ? mod_timer_pending+0x14e0/0x14e0 [ 46.933236] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.933956] ? trace_hardirqs_on+0xd/0x10 [ 46.934518] ? _crng_backtrack_protect+0xd9/0x130 [ 46.935168] ? __lock_is_held+0xb6/0x140 [ 46.935720] ? __lockdep_init_map+0xe4/0x650 [ 46.936347] ? lockdep_init_map+0x9/0x10 [ 46.936892] ? init_timer_key+0x126/0x3b0 [ 46.937450] ? try_to_del_timer_sync+0x120/0x120 [ 46.938088] ? round_jiffies_up+0xce/0x100 [ 46.938657] ? __round_jiffies_up_relative+0x150/0x150 [ 46.939359] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 46.942541] __tun_chr_ioctl+0x1b17/0x3d20 [ 46.946753] ? tun_chr_read_iter+0x1e0/0x1e0 [ 46.951125] ? find_held_lock+0x35/0x1d0 [ 46.955161] ? __might_sleep+0x95/0x190 [ 46.959099] ? handle_mm_fault+0x248/0x8d0 [ 46.963307] ? selinux_file_ioctl+0x444/0x690 [ 46.967767] ? __fget_light+0x297/0x380 [ 46.971710] ? selinux_capable+0x40/0x40 [ 46.975747] ? handle_mm_fault+0x410/0x8d0 [ 46.979959] tun_chr_compat_ioctl+0x29/0x30 [ 46.984947] ? tun_chr_compat_ioctl+0x29/0x30 [ 46.989413] compat_SyS_ioctl+0x1d7/0x3290 [ 46.993614] ? up_read+0x1a/0x40 [ 46.996946] ? __tun_chr_ioctl+0x3d20/0x3d20 [ 47.001321] ? do_ioctl+0x60/0x60 [ 47.004743] ? do_fast_syscall_32+0x158/0xf05 [ 47.009208] ? do_ioctl+0x60/0x60 [ 47.012628] do_fast_syscall_32+0x3f2/0xf05 [ 47.016923] ? do_int80_syscall_32+0x940/0x940 [ 47.021470] ? kasan_check_read+0x11/0x20 [ 47.025587] ? syscall_return_slowpath+0x510/0x510 [ 47.030485] ? SyS_rt_sigaction+0x94/0x1b0 [ 47.034691] ? SyS_sigprocmask+0x4b0/0x4b0 [ 47.038891] ? SyS_read+0x184/0x220 [ 47.042486] ? retint_user+0x18/0x20 [ 47.046189] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.051007] entry_SYSENTER_compat+0x51/0x60 [ 47.055380] RIP: 0023:0xf7f53c79 [ 47.058712] RSP: 002b:00000000ff86078c EFLAGS: 00000207 ORIG_RAX: 0000000000000036 [ 47.066386] RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00000000400454ca [ 47.073620] RDX: 0000000020fc3fd8 RSI: 0000000000000029 RDI: 0000000000000005 [ 47.080854] RBP: 00000000ff8607e8 R08: 0000000000000000 R09: 0000000000000000 [ 47.088089] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 47.095324] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 47.102578] [ 47.104172] Allocated by task 2985: [ 47.107767] save_stack_trace+0x16/0x20 [ 47.111707] save_stack+0x43/0xd0 [ 47.115126] kasan_kmalloc+0xad/0xe0 [ 47.118804] __kmalloc_node+0x47/0x70 [ 47.122569] kvmalloc_node+0x64/0xd0 [ 47.126250] alloc_netdev_mqs+0x16e/0xed0 [ 47.130360] __tun_chr_ioctl+0x12b2/0x3d20 [ 47.134560] tun_chr_compat_ioctl+0x29/0x30 [ 47.138846] compat_SyS_ioctl+0x1d7/0x3290 [ 47.143043] do_fast_syscall_32+0x3f2/0xf05 [ 47.147330] entry_SYSENTER_compat+0x51/0x60 [ 47.151708] [ 47.153310] Freed by task 2985: [ 47.156563] save_stack_trace+0x16/0x20 [ 47.160502] save_stack+0x43/0xd0 [ 47.163920] kasan_slab_free+0x71/0xc0 [ 47.167772] kfree+0xca/0x250 [ 47.170842] kvfree+0x36/0x60 [ 47.173913] free_netdev+0x2cf/0x360 [ 47.177589] __tun_chr_ioctl+0x2cea/0x3d20 [ 47.181786] tun_chr_compat_ioctl+0x29/0x30 [ 47.186072] compat_SyS_ioctl+0x1d7/0x3290 [ 47.190271] do_fast_syscall_32+0x3f2/0xf05 [ 47.194561] entry_SYSENTER_compat+0x51/0x60 [ 47.198930] [ 47.200525] The buggy address belongs to the object at ffff8801d22882c0 [ 47.200525] which belongs to the cache kmalloc-16384 of size 16384 [ 47.213494] The buggy address is located 13120 bytes inside of [ 47.213494] 16384-byte region [ffff8801d22882c0, ffff8801d228c2c0) [ 47.225677] The buggy address belongs to the page: [ 47.230571] page:ffffea000748a200 count:1 mapcount:0 mapping:ffff8801d22882c0 index:0x0 compound_mapcount: 0 [ 47.240503] flags: 0x200000000008100(slab|head) [ 47.245136] raw: 0200000000008100 ffff8801d22882c0 0000000000000000 0000000100000001 [ 47.253090] raw: ffffea0007656020 ffffea000747fa20 ffff8801dac02200 0000000000000000 [ 47.260932] page dumped because: kasan: bad access detected [ 47.266605] [ 47.268199] Memory state around the buggy address: [ 47.273092] ffff8801d228b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.280418] ffff8801d228b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.287741] >ffff8801d228b600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.295062] ^ [ 47.298391] ffff8801d228b680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.305713] ffff8801d228b700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.313035] ================================================================== [ 47.320355] Disabling lock debugging due to kernel taint [ 47.325770] Kernel panic - not syncing: panic_on_warn set ... [ 47.325770] [ 47.333097] CPU: 1 PID: 2985 Comm: syzkaller952077 Tainted: G B 4.14.0-rc5+ #48 [ 47.341634] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.350950] Call Trace: [ 47.353507] dump_stack+0x194/0x257 [ 47.357101] ? arch_local_irq_restore+0x53/0x53 [ 47.361733] ? kasan_end_report+0x32/0x50 [ 47.365845] ? lock_downgrade+0x990/0x990 [ 47.369957] ? __internal_add_timer+0x1c0/0x2d0 [ 47.374592] panic+0x1e4/0x417 [ 47.377749] ? __warn+0x1d9/0x1d9 [ 47.381172] ? __internal_add_timer+0x275/0x2d0 [ 47.385805] kasan_end_report+0x50/0x50 [ 47.389741] kasan_report+0x144/0x340 [ 47.393508] __asan_report_store8_noabort+0x17/0x20 [ 47.398487] __internal_add_timer+0x275/0x2d0 [ 47.402945] ? calc_wheel_index+0x200/0x200 [ 47.407234] mod_timer+0x622/0x15b0 [ 47.410828] ? mod_timer_pending+0x14e0/0x14e0 [ 47.415374] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.420355] ? trace_hardirqs_on+0xd/0x10 [ 47.424471] ? _crng_backtrack_protect+0xd9/0x130 [ 47.429281] ? __lock_is_held+0xb6/0x140 [ 47.433307] ? __lockdep_init_map+0xe4/0x650 [ 47.437682] ? lockdep_init_map+0x9/0x10 [ 47.441706] ? init_timer_key+0x126/0x3b0 [ 47.445818] ? try_to_del_timer_sync+0x120/0x120 [ 47.450538] ? round_jiffies_up+0xce/0x100 [ 47.454739] ? __round_jiffies_up_relative+0x150/0x150 [ 47.459980] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 47.464876] __tun_chr_ioctl+0x1b17/0x3d20 [ 47.469079] ? tun_chr_read_iter+0x1e0/0x1e0 [ 47.473453] ? find_held_lock+0x35/0x1d0 [ 47.477658] ? __might_sleep+0x95/0x190 [ 47.481597] ? handle_mm_fault+0x248/0x8d0 [ 47.485802] ? selinux_file_ioctl+0x444/0x690 [ 47.490260] ? __fget_light+0x297/0x380 [ 47.494198] ? selinux_capable+0x40/0x40 [ 47.498226] ? handle_mm_fault+0x410/0x8d0 [ 47.502426] tun_chr_compat_ioctl+0x29/0x30 [ 47.506712] ? tun_chr_compat_ioctl+0x29/0x30 [ 47.511172] compat_SyS_ioctl+0x1d7/0x3290 [ 47.515369] ? up_read+0x1a/0x40 [ 47.518702] ? __tun_chr_ioctl+0x3d20/0x3d20 [ 47.523074] ? do_ioctl+0x60/0x60 [ 47.526492] ? do_fast_syscall_32+0x158/0xf05 [ 47.530953] ? do_ioctl+0x60/0x60 [ 47.534370] do_fast_syscall_32+0x3f2/0xf05 [ 47.538667] ? do_int80_syscall_32+0x940/0x940 [ 47.543213] ? kasan_check_read+0x11/0x20 [ 47.547326] ? syscall_return_slowpath+0x510/0x510 [ 47.552219] ? SyS_rt_sigaction+0x94/0x1b0 [ 47.556418] ? SyS_sigprocmask+0x4b0/0x4b0 [ 47.560617] ? SyS_read+0x184/0x220 [ 47.564213] ? retint_user+0x18/0x20 [ 47.567891] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.572703] entry_SYSENTER_compat+0x51/0x60 [ 47.577083] RIP: 0023:0xf7f53c79 [ 47.580411] RSP: 002b:00000000ff86078c EFLAGS: 00000207 ORIG_RAX: 0000000000000036 [ 47.588083] RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00000000400454ca [ 47.595665] RDX: 0000000020fc3fd8 RSI: 0000000000000029 RDI: 0000000000000005 [ 47.602900] RBP: 00000000ff8607e8 R08: 0000000000000000 R09: 0000000000000000 [ 47.610135] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 47.617368] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 47.624645] Dumping ftrace buffer: [ 47.628150] (ftrace buffer empty) [ 47.631829] Kernel Offset: disabled [ 47.635421] Rebooting in 86400 seconds..