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-7,10.128.0.38' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 30.345010] ================================================================== [ 30.346122] BUG: KASAN: use-after-free in __internal_add_timer+0x275/0x2d0 [ 30.347043] Write of size 8 at addr ffff8801d18e3600 by task syzkaller216083/2988 [ 30.348088] [ 30.348320] CPU: 1 PID: 2988 Comm: syzkaller216083 Not tainted 4.14.0-rc5+ #142 [ 30.349293] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.350526] Call Trace: [ 30.350886] dump_stack+0x194/0x257 [ 30.351380] ? arch_local_irq_restore+0x53/0x53 [ 30.352000] ? show_regs_print_info+0x65/0x65 [ 30.352627] ? __kernel_text_address+0xd/0x40 [ 30.353225] ? __internal_add_timer+0x275/0x2d0 [ 30.353847] print_address_description+0x73/0x250 [ 30.354522] ? __internal_add_timer+0x275/0x2d0 [ 30.355142] kasan_report+0x25b/0x340 [ 30.355674] __asan_report_store8_noabort+0x17/0x20 [ 30.356338] __internal_add_timer+0x275/0x2d0 [ 30.356938] ? calc_wheel_index+0x200/0x200 [ 30.357524] mod_timer+0x622/0x15b0 [ 30.358031] ? mod_timer_pending+0x14e0/0x14e0 [ 30.358641] ? __lock_is_held+0xb6/0x140 [ 30.359200] ? __lock_is_held+0xb6/0x140 [ 30.359751] ? __lockdep_init_map+0xe4/0x650 [ 30.360343] ? lockdep_init_map+0x9/0x10 [ 30.360884] ? init_timer_key+0x126/0x3b0 [ 30.361441] ? try_to_del_timer_sync+0x120/0x120 [ 30.362075] ? round_jiffies_up+0xce/0x100 [ 30.362639] ? __round_jiffies_up_relative+0x150/0x150 [ 30.363348] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 30.364029] ? selinux_tun_dev_alloc_security+0x124/0x170 [ 30.364815] __tun_chr_ioctl+0x1b17/0x3d20 [ 30.366926] ? tun_chr_read_iter+0x1e0/0x1e0 [ 30.371297] ? find_held_lock+0x35/0x1d0 [ 30.375337] ? __do_page_fault+0x64c/0xd60 [ 30.379539] ? lock_downgrade+0x990/0x990 [ 30.383661] ? handle_mm_fault+0x410/0x8d0 [ 30.387874] ? check_same_owner+0x320/0x320 [ 30.392158] ? up_read+0x1a/0x40 [ 30.395491] ? __do_page_fault+0x3d6/0xd60 [ 30.399692] ? tun_chr_compat_ioctl+0x30/0x30 [ 30.404152] tun_chr_ioctl+0x2a/0x40 [ 30.407830] ? tun_chr_ioctl+0x2a/0x40 [ 30.411686] do_vfs_ioctl+0x1b1/0x1520 [ 30.415546] ? ioctl_preallocate+0x2b0/0x2b0 [ 30.419925] ? selinux_capable+0x40/0x40 [ 30.423954] ? putname+0xf3/0x130 [ 30.427380] ? do_sys_open+0x320/0x6d0 [ 30.431242] ? security_file_ioctl+0x89/0xb0 [ 30.435623] SyS_ioctl+0x8f/0xc0 [ 30.438962] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 30.443682] RIP: 0033:0x443dc9 [ 30.446837] RSP: 002b:00007ffeaa0d1a98 EFLAGS: 00000207 ORIG_RAX: 0000000000000010 [ 30.454509] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000443dc9 [ 30.461743] RDX: 0000000020927fd8 RSI: 00000000400454ca RDI: 0000000000000006 [ 30.468977] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 30.476212] R10: 0000000000000000 R11: 0000000000000207 R12: 74510301d31222e1 [ 30.483447] R13: 74656e2f7665642f R14: 0000000000000000 R15: 0000000000000000 [ 30.490699] [ 30.492290] Allocated by task 2988: [ 30.495885] save_stack_trace+0x16/0x20 [ 30.499833] save_stack+0x43/0xd0 [ 30.503257] kasan_kmalloc+0xad/0xe0 [ 30.506935] __kmalloc_node+0x47/0x70 [ 30.510699] kvmalloc_node+0x64/0xd0 [ 30.514378] alloc_netdev_mqs+0x16e/0xed0 [ 30.518489] __tun_chr_ioctl+0x12b2/0x3d20 [ 30.522689] tun_chr_ioctl+0x2a/0x40 [ 30.526369] do_vfs_ioctl+0x1b1/0x1520 [ 30.530221] SyS_ioctl+0x8f/0xc0 [ 30.533552] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 30.538269] [ 30.539863] Freed by task 2988: [ 30.543109] save_stack_trace+0x16/0x20 [ 30.547047] save_stack+0x43/0xd0 [ 30.550463] kasan_slab_free+0x71/0xc0 [ 30.554313] kfree+0xca/0x250 [ 30.557386] kvfree+0x36/0x60 [ 30.560453] free_netdev+0x2cf/0x360 [ 30.564128] __tun_chr_ioctl+0x2cea/0x3d20 [ 30.568325] tun_chr_ioctl+0x2a/0x40 [ 30.572001] do_vfs_ioctl+0x1b1/0x1520 [ 30.575852] SyS_ioctl+0x8f/0xc0 [ 30.579182] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 30.583898] [ 30.585491] The buggy address belongs to the object at ffff8801d18e02c0 [ 30.585491] which belongs to the cache kmalloc-16384 of size 16384 [ 30.598455] The buggy address is located 13120 bytes inside of [ 30.598455] 16384-byte region [ffff8801d18e02c0, ffff8801d18e42c0) [ 30.610647] The buggy address belongs to the page: [ 30.615552] page:ffffea0007463800 count:1 mapcount:0 mapping:ffff8801d18e02c0 index:0x0 compound_mapcount: 0 [ 30.625484] flags: 0x200000000008100(slab|head) [ 30.630121] raw: 0200000000008100 ffff8801d18e02c0 0000000000000000 0000000100000001 [ 30.637965] raw: ffffea0007653420 ffffea000747ee20 ffff8801dac02200 0000000000000000 [ 30.645806] page dumped because: kasan: bad access detected [ 30.651479] [ 30.653073] Memory state around the buggy address: [ 30.657965] ffff8801d18e3500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.665288] ffff8801d18e3580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.672608] >ffff8801d18e3600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.680366] ^ [ 30.683697] ffff8801d18e3680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.691018] ffff8801d18e3700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.698336] ================================================================== [ 30.705659] Disabling lock debugging due to kernel taint [ 30.711076] Kernel panic - not syncing: panic_on_warn set ... [ 30.711076] [ 30.718400] CPU: 1 PID: 2988 Comm: syzkaller216083 Tainted: G B 4.14.0-rc5+ #142 [ 30.727023] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.736345] Call Trace: [ 30.738900] dump_stack+0x194/0x257 [ 30.742495] ? arch_local_irq_restore+0x53/0x53 [ 30.747125] ? kasan_end_report+0x32/0x50 [ 30.751239] ? lock_downgrade+0x990/0x990 [ 30.755358] ? __internal_add_timer+0x1f0/0x2d0 [ 30.759991] panic+0x1e4/0x417 [ 30.763147] ? __warn+0x1d9/0x1d9 [ 30.766569] ? __internal_add_timer+0x275/0x2d0 [ 30.771200] kasan_end_report+0x50/0x50 [ 30.775135] kasan_report+0x144/0x340 [ 30.778900] __asan_report_store8_noabort+0x17/0x20 [ 30.783879] __internal_add_timer+0x275/0x2d0 [ 30.788341] ? calc_wheel_index+0x200/0x200 [ 30.792630] mod_timer+0x622/0x15b0 [ 30.796224] ? mod_timer_pending+0x14e0/0x14e0 [ 30.800771] ? __lock_is_held+0xb6/0x140 [ 30.804802] ? __lock_is_held+0xb6/0x140 [ 30.808828] ? __lockdep_init_map+0xe4/0x650 [ 30.813203] ? lockdep_init_map+0x9/0x10 [ 30.817226] ? init_timer_key+0x126/0x3b0 [ 30.821341] ? try_to_del_timer_sync+0x120/0x120 [ 30.826062] ? round_jiffies_up+0xce/0x100 [ 30.830258] ? __round_jiffies_up_relative+0x150/0x150 [ 30.835498] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 30.840392] ? selinux_tun_dev_alloc_security+0x124/0x170 [ 30.845895] __tun_chr_ioctl+0x1b17/0x3d20 [ 30.850097] ? tun_chr_read_iter+0x1e0/0x1e0 [ 30.854469] ? find_held_lock+0x35/0x1d0 [ 30.858498] ? __do_page_fault+0x64c/0xd60 [ 30.862696] ? lock_downgrade+0x990/0x990 [ 30.866812] ? handle_mm_fault+0x410/0x8d0 [ 30.871016] ? check_same_owner+0x320/0x320 [ 30.875300] ? up_read+0x1a/0x40 [ 30.878632] ? __do_page_fault+0x3d6/0xd60 [ 30.882832] ? tun_chr_compat_ioctl+0x30/0x30 [ 30.887289] tun_chr_ioctl+0x2a/0x40 [ 30.890964] ? tun_chr_ioctl+0x2a/0x40 [ 30.894815] do_vfs_ioctl+0x1b1/0x1520 [ 30.898669] ? ioctl_preallocate+0x2b0/0x2b0 [ 30.903042] ? selinux_capable+0x40/0x40 [ 30.907066] ? putname+0xf3/0x130 [ 30.910485] ? do_sys_open+0x320/0x6d0 [ 30.914343] ? security_file_ioctl+0x89/0xb0 [ 30.918715] SyS_ioctl+0x8f/0xc0 [ 30.922050] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 30.926769] RIP: 0033:0x443dc9 [ 30.929922] RSP: 002b:00007ffeaa0d1a98 EFLAGS: 00000207 ORIG_RAX: 0000000000000010 [ 30.937591] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000443dc9 [ 30.944825] RDX: 0000000020927fd8 RSI: 00000000400454ca RDI: 0000000000000006 [ 30.952057] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 30.959291] R10: 0000000000000000 R11: 0000000000000207 R12: 74510301d31222e1 [ 30.966527] R13: 74656e2f7665642f R14: 0000000000000000 R15: 0000000000000000 [ 30.973805] Dumping ftrace buffer: [ 30.977312] (ftrace buffer empty) [ 30.980988] Kernel Offset: disabled [ 30.984582] Rebooting in 86400 seconds..