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-2,10.128.0.50' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 32.501216] ================================================================== [ 32.502304] BUG: KASAN: use-after-free in __internal_add_timer+0x275/0x2d0 [ 32.503226] Write of size 8 at addr ffff8801d1f9b600 by task syzkaller432994/2988 [ 32.504222] [ 32.504456] CPU: 1 PID: 2988 Comm: syzkaller432994 Not tainted 4.14.0-rc5+ #142 [ 32.505432] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.506649] Call Trace: [ 32.507006] dump_stack+0x194/0x257 [ 32.507745] ? arch_local_irq_restore+0x53/0x53 [ 32.508365] ? show_regs_print_info+0x65/0x65 [ 32.508968] ? __kernel_text_address+0xd/0x40 [ 32.509580] ? __internal_add_timer+0x275/0x2d0 [ 32.510201] print_address_description+0x73/0x250 [ 32.510867] ? __internal_add_timer+0x275/0x2d0 [ 32.511489] kasan_report+0x25b/0x340 [ 32.512003] __asan_report_store8_noabort+0x17/0x20 [ 32.512668] __internal_add_timer+0x275/0x2d0 [ 32.513272] ? calc_wheel_index+0x200/0x200 [ 32.513860] mod_timer+0x622/0x15b0 [ 32.514356] ? mod_timer_pending+0x14e0/0x14e0 [ 32.514965] ? __lock_is_held+0xb6/0x140 [ 32.515521] ? __lock_is_held+0xb6/0x140 [ 32.516070] ? __lockdep_init_map+0xe4/0x650 [ 32.516689] ? lockdep_init_map+0x9/0x10 [ 32.517234] ? init_timer_key+0x126/0x3b0 [ 32.517791] ? try_to_del_timer_sync+0x120/0x120 [ 32.518425] ? round_jiffies_up+0xce/0x100 [ 32.518991] ? __round_jiffies_up_relative+0x150/0x150 [ 32.519689] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 32.520347] ? selinux_tun_dev_alloc_security+0x124/0x170 [ 32.521086] __tun_chr_ioctl+0x1b17/0x3d20 [ 32.523644] ? tun_chr_read_iter+0x1e0/0x1e0 [ 32.528014] ? find_held_lock+0x35/0x1d0 [ 32.532050] ? __do_page_fault+0x64c/0xd60 [ 32.536255] ? lock_downgrade+0x990/0x990 [ 32.540379] ? handle_mm_fault+0x410/0x8d0 [ 32.544597] ? check_same_owner+0x320/0x320 [ 32.548884] ? up_read+0x1a/0x40 [ 32.552234] ? __do_page_fault+0x3d6/0xd60 [ 32.556482] ? tun_chr_compat_ioctl+0x30/0x30 [ 32.560956] tun_chr_ioctl+0x2a/0x40 [ 32.564637] ? tun_chr_ioctl+0x2a/0x40 [ 32.568494] do_vfs_ioctl+0x1b1/0x1520 [ 32.572352] ? ioctl_preallocate+0x2b0/0x2b0 [ 32.576731] ? selinux_capable+0x40/0x40 [ 32.580760] ? putname+0xf3/0x130 [ 32.584184] ? do_sys_open+0x320/0x6d0 [ 32.588051] ? security_file_ioctl+0x89/0xb0 [ 32.592432] SyS_ioctl+0x8f/0xc0 [ 32.595771] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.600494] RIP: 0033:0x443dc9 [ 32.603649] RSP: 002b:00007ffc51448528 EFLAGS: 00000207 ORIG_RAX: 0000000000000010 [ 32.611330] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000443dc9 [ 32.618568] RDX: 0000000020927fd8 RSI: 00000000400454ca RDI: 0000000000000006 [ 32.625806] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 32.633048] R10: 0000000000000000 R11: 0000000000000207 R12: e06f9881650b1748 [ 32.640284] R13: 74656e2f7665642f R14: 0000000000000000 R15: 0000000000000000 [ 32.647536] [ 32.649134] Allocated by task 2988: [ 32.652731] save_stack_trace+0x16/0x20 [ 32.656668] save_stack+0x43/0xd0 [ 32.660085] kasan_kmalloc+0xad/0xe0 [ 32.663764] __kmalloc_node+0x47/0x70 [ 32.667530] kvmalloc_node+0x64/0xd0 [ 32.671209] alloc_netdev_mqs+0x16e/0xed0 [ 32.675321] __tun_chr_ioctl+0x12b2/0x3d20 [ 32.679519] tun_chr_ioctl+0x2a/0x40 [ 32.683199] do_vfs_ioctl+0x1b1/0x1520 [ 32.687050] SyS_ioctl+0x8f/0xc0 [ 32.690384] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.695103] [ 32.696698] Freed by task 2988: [ 32.699943] save_stack_trace+0x16/0x20 [ 32.703882] save_stack+0x43/0xd0 [ 32.707300] kasan_slab_free+0x71/0xc0 [ 32.711153] kfree+0xca/0x250 [ 32.714224] kvfree+0x36/0x60 [ 32.717294] free_netdev+0x2cf/0x360 [ 32.720973] __tun_chr_ioctl+0x2cea/0x3d20 [ 32.725172] tun_chr_ioctl+0x2a/0x40 [ 32.728850] do_vfs_ioctl+0x1b1/0x1520 [ 32.732699] SyS_ioctl+0x8f/0xc0 [ 32.736033] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.740750] [ 32.742346] The buggy address belongs to the object at ffff8801d1f982c0 [ 32.742346] which belongs to the cache kmalloc-16384 of size 16384 [ 32.755312] The buggy address is located 13120 bytes inside of [ 32.755312] 16384-byte region [ffff8801d1f982c0, ffff8801d1f9c2c0) [ 32.767494] The buggy address belongs to the page: [ 32.772391] page:ffffea000747e600 count:1 mapcount:0 mapping:ffff8801d1f982c0 index:0x0 compound_mapcount: 0 [ 32.782323] flags: 0x200000000008100(slab|head) [ 32.786957] raw: 0200000000008100 ffff8801d1f982c0 0000000000000000 0000000100000001 [ 32.794804] raw: ffffea0007641220 ffffea000747d220 ffff8801dac02200 0000000000000000 [ 32.802645] page dumped because: kasan: bad access detected [ 32.808315] [ 32.810167] Memory state around the buggy address: [ 32.815061] ffff8801d1f9b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.822385] ffff8801d1f9b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.829706] >ffff8801d1f9b600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.837028] ^ [ 32.840356] ffff8801d1f9b680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.847676] ffff8801d1f9b700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.854997] ================================================================== [ 32.862318] Disabling lock debugging due to kernel taint [ 32.867728] Kernel panic - not syncing: panic_on_warn set ... [ 32.867728] [ 32.875054] CPU: 1 PID: 2988 Comm: syzkaller432994 Tainted: G B 4.14.0-rc5+ #142 [ 32.883677] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.892993] Call Trace: [ 32.895546] dump_stack+0x194/0x257 [ 32.899137] ? arch_local_irq_restore+0x53/0x53 [ 32.903768] ? kasan_end_report+0x32/0x50 [ 32.907880] ? lock_downgrade+0x990/0x990 [ 32.911994] ? __internal_add_timer+0x1f0/0x2d0 [ 32.916628] panic+0x1e4/0x417 [ 32.919784] ? __warn+0x1d9/0x1d9 [ 32.923207] ? __internal_add_timer+0x275/0x2d0 [ 32.927837] kasan_end_report+0x50/0x50 [ 32.931774] kasan_report+0x144/0x340 [ 32.935539] __asan_report_store8_noabort+0x17/0x20 [ 32.940516] __internal_add_timer+0x275/0x2d0 [ 32.944973] ? calc_wheel_index+0x200/0x200 [ 32.949263] mod_timer+0x622/0x15b0 [ 32.952858] ? mod_timer_pending+0x14e0/0x14e0 [ 32.957404] ? __lock_is_held+0xb6/0x140 [ 32.961435] ? __lock_is_held+0xb6/0x140 [ 32.965465] ? __lockdep_init_map+0xe4/0x650 [ 32.969838] ? lockdep_init_map+0x9/0x10 [ 32.973863] ? init_timer_key+0x126/0x3b0 [ 32.977975] ? try_to_del_timer_sync+0x120/0x120 [ 32.982695] ? round_jiffies_up+0xce/0x100 [ 32.986890] ? __round_jiffies_up_relative+0x150/0x150 [ 32.992131] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 32.997026] ? selinux_tun_dev_alloc_security+0x124/0x170 [ 33.002530] __tun_chr_ioctl+0x1b17/0x3d20 [ 33.006734] ? tun_chr_read_iter+0x1e0/0x1e0 [ 33.011108] ? find_held_lock+0x35/0x1d0 [ 33.015139] ? __do_page_fault+0x64c/0xd60 [ 33.019337] ? lock_downgrade+0x990/0x990 [ 33.023452] ? handle_mm_fault+0x410/0x8d0 [ 33.027658] ? check_same_owner+0x320/0x320 [ 33.031940] ? up_read+0x1a/0x40 [ 33.035269] ? __do_page_fault+0x3d6/0xd60 [ 33.039472] ? tun_chr_compat_ioctl+0x30/0x30 [ 33.043932] tun_chr_ioctl+0x2a/0x40 [ 33.047607] ? tun_chr_ioctl+0x2a/0x40 [ 33.051459] do_vfs_ioctl+0x1b1/0x1520 [ 33.055311] ? ioctl_preallocate+0x2b0/0x2b0 [ 33.059685] ? selinux_capable+0x40/0x40 [ 33.064076] ? putname+0xf3/0x130 [ 33.067512] ? do_sys_open+0x320/0x6d0 [ 33.071372] ? security_file_ioctl+0x89/0xb0 [ 33.075750] SyS_ioctl+0x8f/0xc0 [ 33.079087] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.083805] RIP: 0033:0x443dc9 [ 33.086960] RSP: 002b:00007ffc51448528 EFLAGS: 00000207 ORIG_RAX: 0000000000000010 [ 33.094630] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000443dc9 [ 33.101867] RDX: 0000000020927fd8 RSI: 00000000400454ca RDI: 0000000000000006 [ 33.109102] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 33.116336] R10: 0000000000000000 R11: 0000000000000207 R12: e06f9881650b1748 [ 33.123570] R13: 74656e2f7665642f R14: 0000000000000000 R15: 0000000000000000 [ 33.130860] Dumping ftrace buffer: [ 33.134364] (ftrace buffer empty) [ 33.138039] Kernel Offset: disabled [ 33.141634] Rebooting in 86400 seconds..