[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 18.226140] audit: type=1400 audit(1517409394.040:6): avc: denied { map } for pid=4150 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.15.200' (ECDSA) to the list of known hosts. executing program executing program executing program syzkaller login: [ 24.534514] audit: type=1400 audit(1517409400.349:7): avc: denied { map } for pid=4164 comm="syzkaller271366" path="/root/syzkaller271366245" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 28.348253] ================================================================== [ 28.355674] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 28.362327] Read of size 8 at addr ffff8801a4731420 by task syzkaller271366/5171 [ 28.369850] [ 28.371457] CPU: 1 PID: 5171 Comm: syzkaller271366 Not tainted 4.15.0+ #288 [ 28.378545] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.387883] Call Trace: [ 28.390464] dump_stack+0x194/0x257 [ 28.394077] ? arch_local_irq_restore+0x53/0x53 [ 28.398725] ? show_regs_print_info+0x18/0x18 [ 28.403205] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 28.408286] ? __wake_up_common+0x670/0x780 [ 28.412594] print_address_description+0x73/0x250 [ 28.417412] ? __wake_up_common+0x670/0x780 [ 28.421719] kasan_report+0x25b/0x340 [ 28.425506] __asan_report_load8_noabort+0x14/0x20 [ 28.430406] __wake_up_common+0x670/0x780 [ 28.434531] ? do_wait_intr_irq+0x3e0/0x3e0 [ 28.438825] ? lock_release+0xa40/0xa40 [ 28.442778] ? lock_downgrade+0x980/0x980 [ 28.446907] __wake_up_common_lock+0x1b4/0x310 [ 28.451464] ? locks_remove_file+0x3fa/0x5a0 [ 28.455849] ? __wake_up_common+0x780/0x780 [ 28.460140] ? fcntl_setlk+0x10c0/0x10c0 [ 28.464182] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.468741] ? eventfd_show_fdinfo+0x90/0x90 [ 28.473123] __wake_up+0xe/0x10 [ 28.476373] eventfd_release+0x4a/0x60 [ 28.480231] __fput+0x327/0x7e0 [ 28.483491] ? fput+0x140/0x140 [ 28.486753] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.492623] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.497096] ____fput+0x15/0x20 [ 28.500347] task_work_run+0x199/0x270 [ 28.504208] ? task_work_cancel+0x210/0x210 [ 28.508506] ? _raw_spin_unlock+0x22/0x30 [ 28.512627] ? switch_task_namespaces+0x87/0xc0 [ 28.517273] do_exit+0x9bb/0x1ad0 [ 28.520699] ? lock_downgrade+0x980/0x980 [ 28.524821] ? mm_update_next_owner+0x930/0x930 [ 28.529464] ? do_raw_spin_trylock+0x190/0x190 [ 28.534025] ? do_raw_spin_trylock+0x190/0x190 [ 28.538592] ? trace_hardirqs_off+0xd/0x10 [ 28.542796] ? _raw_spin_unlock_irqrestore+0xa6/0xba [ 28.547870] ? try_to_wake_up+0xf9/0x1600 [ 28.551988] ? find_held_lock+0x35/0x1d0 [ 28.556041] ? check_noncircular+0x20/0x20 [ 28.560253] ? lock_downgrade+0x980/0x980 [ 28.564389] ? find_held_lock+0x35/0x1d0 [ 28.568431] ? do_group_exit+0x318/0x400 [ 28.572463] ? lock_downgrade+0x980/0x980 [ 28.576586] ? wake_up_state+0xb/0x10 [ 28.580361] ? signal_wake_up_state+0x3a/0x40 [ 28.584827] ? zap_other_threads+0x1ca/0x240 [ 28.589206] ? do_raw_spin_trylock+0x190/0x190 [ 28.593759] ? force_sig+0x30/0x30 [ 28.597278] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.601750] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.606741] do_group_exit+0x149/0x400 [ 28.610608] ? do_futex+0x22a0/0x22a0 [ 28.614380] ? SyS_exit+0x30/0x30 [ 28.617806] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.622796] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.627529] SyS_exit_group+0x1d/0x20 [ 28.631304] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 28.636033] RIP: 0033:0x4462c9 [ 28.639192] RSP: 002b:00007ffedaec08e8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 28.646871] RAX: ffffffffffffffda RBX: 00007f6576f23700 RCX: 00000000004462c9 [ 28.654116] RDX: 00000000004462c9 RSI: 0000000000000001 RDI: 0000000000000000 [ 28.661355] RBP: 00007ffedaec0890 R08: 0000000000000000 R09: 0000000000000003 [ 28.668596] R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 [ 28.675837] R13: 00007ffedaec07ef R14: 00007f6576f239c0 R15: 0000000000000007 [ 28.683094] [ 28.684695] Allocated by task 5172: [ 28.688305] save_stack+0x43/0xd0 [ 28.691731] kasan_kmalloc+0xad/0xe0 [ 28.695413] __kmalloc_node+0x47/0x70 [ 28.699183] kvmalloc_node+0x64/0xd0 [ 28.702868] vhost_net_open+0x27/0x670 [ 28.706726] misc_open+0x382/0x500 [ 28.710235] chrdev_open+0x257/0x730 [ 28.713919] do_dentry_open+0x667/0xd40 [ 28.717877] vfs_open+0x107/0x220 [ 28.721389] path_openat+0x1151/0x3530 [ 28.725245] do_filp_open+0x25b/0x3b0 [ 28.729021] do_sys_open+0x502/0x6d0 [ 28.732715] SyS_openat+0x30/0x40 [ 28.736145] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 28.740868] [ 28.742474] Freed by task 5171: [ 28.745728] save_stack+0x43/0xd0 [ 28.749161] kasan_slab_free+0x71/0xc0 [ 28.753034] kfree+0xd6/0x260 [ 28.756124] kvfree+0x36/0x60 [ 28.759221] vhost_net_release+0x159/0x190 [ 28.763434] __fput+0x327/0x7e0 [ 28.766702] ____fput+0x15/0x20 [ 28.769953] task_work_run+0x199/0x270 [ 28.773812] do_exit+0x9bb/0x1ad0 [ 28.777234] do_group_exit+0x149/0x400 [ 28.781096] SyS_exit_group+0x1d/0x20 [ 28.784874] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 28.789597] [ 28.791209] The buggy address belongs to the object at ffff8801a472cb40 [ 28.791209] which belongs to the cache kmalloc-65536 of size 65536 [ 28.804201] The buggy address is located 18656 bytes inside of [ 28.804201] 65536-byte region [ffff8801a472cb40, ffff8801a473cb40) [ 28.816398] The buggy address belongs to the page: [ 28.821317] page:ffffea000691c800 count:1 mapcount:0 mapping:ffff8801a472cb40 index:0x0 compound_mapcount: 0 [ 28.831259] flags: 0x2fffc0000008100(slab|head) [ 28.835910] raw: 02fffc0000008100 ffff8801a472cb40 0000000000000000 0000000100000001 [ 28.843764] raw: ffffea000691c020 ffffea000691d020 ffff8801db002500 0000000000000000 [ 28.851613] page dumped because: kasan: bad access detected [ 28.857294] [ 28.858898] Memory state around the buggy address: [ 28.863797] ffff8801a4731300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.871132] ffff8801a4731380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.878460] >ffff8801a4731400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.885785] ^ [ 28.890162] ffff8801a4731480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.897496] ffff8801a4731500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.904822] ================================================================== [ 28.912147] Disabling lock debugging due to kernel taint [ 28.917564] Kernel panic - not syncing: panic_on_warn set ... [ 28.917564] [ 28.924894] CPU: 1 PID: 5171 Comm: syzkaller271366 Tainted: G B 4.15.0+ #288 [ 28.933261] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.942585] Call Trace: [ 28.945147] dump_stack+0x194/0x257 [ 28.948747] ? arch_local_irq_restore+0x53/0x53 [ 28.953387] ? kasan_end_report+0x32/0x50 [ 28.957514] ? lock_downgrade+0x980/0x980 [ 28.961638] ? vsnprintf+0x1ed/0x1900 [ 28.965413] ? __wake_up_common+0x5b0/0x780 [ 28.969702] panic+0x1e4/0x41c [ 28.972866] ? refcount_error_report+0x214/0x214 [ 28.977593] ? add_taint+0x40/0x50 [ 28.981108] ? add_taint+0x1c/0x50 [ 28.984627] ? __wake_up_common+0x670/0x780 [ 28.988920] kasan_end_report+0x50/0x50 [ 28.992863] kasan_report+0x144/0x340 [ 28.996635] __asan_report_load8_noabort+0x14/0x20 [ 29.001533] __wake_up_common+0x670/0x780 [ 29.005654] ? do_wait_intr_irq+0x3e0/0x3e0 [ 29.009945] ? lock_release+0xa40/0xa40 [ 29.013891] ? lock_downgrade+0x980/0x980 [ 29.018021] __wake_up_common_lock+0x1b4/0x310 [ 29.022597] ? locks_remove_file+0x3fa/0x5a0 [ 29.026978] ? __wake_up_common+0x780/0x780 [ 29.031356] ? fcntl_setlk+0x10c0/0x10c0 [ 29.035393] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.039946] ? eventfd_show_fdinfo+0x90/0x90 [ 29.044331] __wake_up+0xe/0x10 [ 29.047580] eventfd_release+0x4a/0x60 [ 29.051439] __fput+0x327/0x7e0 [ 29.054692] ? fput+0x140/0x140 [ 29.057944] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.063799] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.068269] ____fput+0x15/0x20 [ 29.071519] task_work_run+0x199/0x270 [ 29.075381] ? task_work_cancel+0x210/0x210 [ 29.079686] ? _raw_spin_unlock+0x22/0x30 [ 29.083806] ? switch_task_namespaces+0x87/0xc0 [ 29.088794] do_exit+0x9bb/0x1ad0 [ 29.092219] ? lock_downgrade+0x980/0x980 [ 29.096345] ? mm_update_next_owner+0x930/0x930 [ 29.100985] ? do_raw_spin_trylock+0x190/0x190 [ 29.105539] ? do_raw_spin_trylock+0x190/0x190 [ 29.110095] ? trace_hardirqs_off+0xd/0x10 [ 29.114298] ? _raw_spin_unlock_irqrestore+0xa6/0xba [ 29.119373] ? try_to_wake_up+0xf9/0x1600 [ 29.123492] ? find_held_lock+0x35/0x1d0 [ 29.127530] ? check_noncircular+0x20/0x20 [ 29.131736] ? lock_downgrade+0x980/0x980 [ 29.135867] ? find_held_lock+0x35/0x1d0 [ 29.139907] ? do_group_exit+0x318/0x400 [ 29.143943] ? lock_downgrade+0x980/0x980 [ 29.148061] ? wake_up_state+0xb/0x10 [ 29.151837] ? signal_wake_up_state+0x3a/0x40 [ 29.156301] ? zap_other_threads+0x1ca/0x240 [ 29.160677] ? do_raw_spin_trylock+0x190/0x190 [ 29.165226] ? force_sig+0x30/0x30 [ 29.168735] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.173198] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.178186] do_group_exit+0x149/0x400 [ 29.182043] ? do_futex+0x22a0/0x22a0 [ 29.185811] ? SyS_exit+0x30/0x30 [ 29.189234] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.194224] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.198951] SyS_exit_group+0x1d/0x20 [ 29.202722] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.207446] RIP: 0033:0x4462c9 [ 29.210606] RSP: 002b:00007ffedaec08e8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 29.218282] RAX: ffffffffffffffda RBX: 00007f6576f23700 RCX: 00000000004462c9 [ 29.225522] RDX: 00000000004462c9 RSI: 0000000000000001 RDI: 0000000000000000 [ 29.232769] RBP: 00007ffedaec0890 R08: 0000000000000000 R09: 0000000000000003 [ 29.240011] R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 [ 29.247253] R13: 00007ffedaec07ef R14: 00007f6576f239c0 R15: 0000000000000007 [ 29.254906] Dumping ftrace buffer: [ 29.258421] (ftrace buffer empty) [ 29.262100] Kernel Offset: disabled [ 29.265696] Rebooting in 86400 seconds..