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-8,10.128.0.31' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 41.299931] ================================================================== [ 41.301035] BUG: KASAN: use-after-free in __internal_add_timer+0x275/0x2d0 [ 41.301957] Write of size 8 at addr ffff8801d218b500 by task syzkaller568273/2992 [ 41.302956] [ 41.303194] CPU: 1 PID: 2992 Comm: syzkaller568273 Not tainted 4.14.0-rc5+ #142 [ 41.304169] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.305398] Call Trace: [ 41.305758] dump_stack+0x194/0x257 [ 41.306289] ? arch_local_irq_restore+0x53/0x53 [ 41.306944] ? show_regs_print_info+0x65/0x65 [ 41.307569] ? __kernel_text_address+0xd/0x40 [ 41.308171] ? __internal_add_timer+0x275/0x2d0 [ 41.308800] print_address_description+0x73/0x250 [ 41.309445] ? __internal_add_timer+0x275/0x2d0 [ 41.310078] kasan_report+0x25b/0x340 [ 41.310592] __asan_report_store8_noabort+0x17/0x20 [ 41.311258] __internal_add_timer+0x275/0x2d0 [ 41.311886] ? calc_wheel_index+0x200/0x200 [ 41.312477] mod_timer+0x622/0x15b0 [ 41.312978] ? mod_timer_pending+0x14e0/0x14e0 [ 41.313608] ? __lock_is_held+0xb6/0x140 [ 41.314167] ? __lock_is_held+0xb6/0x140 [ 41.314718] ? __lockdep_init_map+0xe4/0x650 [ 41.315310] ? lockdep_init_map+0x9/0x10 [ 41.315854] ? init_timer_key+0x126/0x3b0 [ 41.316429] ? try_to_del_timer_sync+0x120/0x120 [ 41.317064] ? round_jiffies_up+0xce/0x100 [ 41.317635] ? __round_jiffies_up_relative+0x150/0x150 [ 41.318377] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 41.319037] ? selinux_tun_dev_alloc_security+0x124/0x170 [ 41.319781] __tun_chr_ioctl+0x1b17/0x3d20 [ 41.320377] ? tun_chr_read_iter+0x1e0/0x1e0 [ 41.324753] ? find_held_lock+0x35/0x1d0 [ 41.328792] ? __do_page_fault+0x64c/0xd60 [ 41.332996] ? lock_downgrade+0x990/0x990 [ 41.337121] ? handle_mm_fault+0x410/0x8d0 [ 41.341342] ? check_same_owner+0x320/0x320 [ 41.345632] ? up_read+0x1a/0x40 [ 41.348973] ? __do_page_fault+0x3d6/0xd60 [ 41.353179] ? tun_chr_compat_ioctl+0x30/0x30 [ 41.357642] tun_chr_ioctl+0x2a/0x40 [ 41.361323] ? tun_chr_ioctl+0x2a/0x40 [ 41.365182] do_vfs_ioctl+0x1b1/0x1520 [ 41.369051] ? ioctl_preallocate+0x2b0/0x2b0 [ 41.373432] ? selinux_capable+0x40/0x40 [ 41.377463] ? putname+0xf3/0x130 [ 41.380888] ? do_sys_open+0x320/0x6d0 [ 41.384751] ? security_file_ioctl+0x89/0xb0 [ 41.389132] SyS_ioctl+0x8f/0xc0 [ 41.392473] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.397194] RIP: 0033:0x443dc9 [ 41.400353] RSP: 002b:00007fffaada4d88 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 [ 41.408030] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000443dc9 [ 41.415266] RDX: 000000002003a000 RSI: 00000000400454ca RDI: 0000000000000004 [ 41.422502] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 41.429739] R10: 0000000000000000 R11: 0000000000000202 R12: f0f3b45b3b087d9b [ 41.436986] R13: 74656e2f7665642f R14: 0000000000000000 R15: 0000000000000000 [ 41.444241] [ 41.445835] Allocated by task 2992: [ 41.449438] save_stack_trace+0x16/0x20 [ 41.453381] save_stack+0x43/0xd0 [ 41.456802] kasan_kmalloc+0xad/0xe0 [ 41.460487] __kmalloc_node+0x47/0x70 [ 41.464259] kvmalloc_node+0x64/0xd0 [ 41.467941] alloc_netdev_mqs+0x16e/0xed0 [ 41.472055] __tun_chr_ioctl+0x12b2/0x3d20 [ 41.476254] tun_chr_ioctl+0x2a/0x40 [ 41.479937] do_vfs_ioctl+0x1b1/0x1520 [ 41.483791] SyS_ioctl+0x8f/0xc0 [ 41.487124] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.491849] [ 41.493446] Freed by task 2992: [ 41.496695] save_stack_trace+0x16/0x20 [ 41.500638] save_stack+0x43/0xd0 [ 41.504057] kasan_slab_free+0x71/0xc0 [ 41.507911] kfree+0xca/0x250 [ 41.510986] kvfree+0x36/0x60 [ 41.514062] free_netdev+0x2cf/0x360 [ 41.517743] __tun_chr_ioctl+0x2cea/0x3d20 [ 41.521943] tun_chr_ioctl+0x2a/0x40 [ 41.525625] do_vfs_ioctl+0x1b1/0x1520 [ 41.529480] SyS_ioctl+0x8f/0xc0 [ 41.532815] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.537537] [ 41.539150] The buggy address belongs to the object at ffff8801d21881c0 [ 41.539150] which belongs to the cache kmalloc-16384 of size 16384 [ 41.552120] The buggy address is located 13120 bytes inside of [ 41.552120] 16384-byte region [ffff8801d21881c0, ffff8801d218c1c0) [ 41.564307] The buggy address belongs to the page: [ 41.569207] page:ffffea0007486200 count:1 mapcount:0 mapping:ffff8801d21881c0 index:0x0 compound_mapcount: 0 [ 41.579145] flags: 0x200000000008100(slab|head) [ 41.583781] raw: 0200000000008100 ffff8801d21881c0 0000000000000000 0000000100000001 [ 41.591628] raw: ffffea0007645820 ffffea0007471820 ffff8801dac02200 0000000000000000 [ 41.599471] page dumped because: kasan: bad access detected [ 41.605144] [ 41.606739] Memory state around the buggy address: [ 41.611634] ffff8801d218b400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.618960] ffff8801d218b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.626288] >ffff8801d218b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.633615] ^ [ 41.636955] ffff8801d218b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.644282] ffff8801d218b600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.651605] ================================================================== [ 41.658931] Disabling lock debugging due to kernel taint [ 41.664348] Kernel panic - not syncing: panic_on_warn set ... [ 41.664348] [ 41.671677] CPU: 1 PID: 2992 Comm: syzkaller568273 Tainted: G B 4.14.0-rc5+ #142 [ 41.680298] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.689615] Call Trace: [ 41.692178] dump_stack+0x194/0x257 [ 41.695775] ? arch_local_irq_restore+0x53/0x53 [ 41.700410] ? kasan_end_report+0x32/0x50 [ 41.704527] ? lock_downgrade+0x990/0x990 [ 41.708645] ? __internal_add_timer+0x1f0/0x2d0 [ 41.713280] panic+0x1e4/0x417 [ 41.716440] ? __warn+0x1d9/0x1d9 [ 41.719865] ? __internal_add_timer+0x275/0x2d0 [ 41.724501] kasan_end_report+0x50/0x50 [ 41.728440] kasan_report+0x144/0x340 [ 41.732209] __asan_report_store8_noabort+0x17/0x20 [ 41.737192] __internal_add_timer+0x275/0x2d0 [ 41.741655] ? calc_wheel_index+0x200/0x200 [ 41.745950] mod_timer+0x622/0x15b0 [ 41.749548] ? mod_timer_pending+0x14e0/0x14e0 [ 41.754107] ? __lock_is_held+0xb6/0x140 [ 41.758144] ? __lock_is_held+0xb6/0x140 [ 41.762175] ? __lockdep_init_map+0xe4/0x650 [ 41.766552] ? lockdep_init_map+0x9/0x10 [ 41.770579] ? init_timer_key+0x126/0x3b0 [ 41.774698] ? try_to_del_timer_sync+0x120/0x120 [ 41.779420] ? round_jiffies_up+0xce/0x100 [ 41.783618] ? __round_jiffies_up_relative+0x150/0x150 [ 41.788865] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 41.793768] ? selinux_tun_dev_alloc_security+0x124/0x170 [ 41.799277] __tun_chr_ioctl+0x1b17/0x3d20 [ 41.803482] ? tun_chr_read_iter+0x1e0/0x1e0 [ 41.807854] ? find_held_lock+0x35/0x1d0 [ 41.811885] ? __do_page_fault+0x64c/0xd60 [ 41.816085] ? lock_downgrade+0x990/0x990 [ 41.820204] ? handle_mm_fault+0x410/0x8d0 [ 41.824413] ? check_same_owner+0x320/0x320 [ 41.828696] ? up_read+0x1a/0x40 [ 41.832028] ? __do_page_fault+0x3d6/0xd60 [ 41.836228] ? tun_chr_compat_ioctl+0x30/0x30 [ 41.840687] tun_chr_ioctl+0x2a/0x40 [ 41.844365] ? tun_chr_ioctl+0x2a/0x40 [ 41.848217] do_vfs_ioctl+0x1b1/0x1520 [ 41.852072] ? ioctl_preallocate+0x2b0/0x2b0 [ 41.856446] ? selinux_capable+0x40/0x40 [ 41.860473] ? putname+0xf3/0x130 [ 41.863896] ? do_sys_open+0x320/0x6d0 [ 41.867753] ? security_file_ioctl+0x89/0xb0 [ 41.872130] SyS_ioctl+0x8f/0xc0 [ 41.875463] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.880184] RIP: 0033:0x443dc9 [ 41.883341] RSP: 002b:00007fffaada4d88 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 [ 41.891013] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000443dc9 [ 41.898250] RDX: 000000002003a000 RSI: 00000000400454ca RDI: 0000000000000004 [ 41.905487] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 41.912723] R10: 0000000000000000 R11: 0000000000000202 R12: f0f3b45b3b087d9b [ 41.919959] R13: 74656e2f7665642f R14: 0000000000000000 R15: 0000000000000000 [ 41.927242] Dumping ftrace buffer: [ 41.930749] (ftrace buffer empty) [ 41.934427] Kernel Offset: disabled [ 41.938048] Rebooting in 86400 seconds..