[....] Starting enhanced syslogd: rsyslogd[ 12.841593] audit: type=1400 audit(1516996678.628:5): avc: denied { syslog } for pid=3502 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.390886] audit: type=1400 audit(1516996684.177:6): avc: denied { map } for pid=3641 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 Warning: Permanently added '10.128.15.220' (ECDSA) to the list of known hosts. executing program [ 31.612881] audit: type=1400 audit(1516996697.399:7): avc: denied { map } for pid=3657 comm="syzkaller414294" path="/root/syzkaller414294223" 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 [ 31.647951] ================================================================== [ 31.655363] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 31.662013] Read of size 8 at addr ffff8801bdd803c8 by task syzkaller414294/3657 [ 31.669518] [ 31.671124] CPU: 0 PID: 3657 Comm: syzkaller414294 Not tainted 4.15.0-rc9+ #281 [ 31.678553] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.687878] Call Trace: [ 31.690444] dump_stack+0x194/0x257 [ 31.694047] ? arch_local_irq_restore+0x53/0x53 [ 31.698703] ? show_regs_print_info+0x18/0x18 [ 31.703183] ? __wake_up_common+0x670/0x780 [ 31.707480] print_address_description+0x73/0x250 [ 31.712294] ? __wake_up_common+0x670/0x780 [ 31.716590] kasan_report+0x25b/0x340 [ 31.720367] __asan_report_load8_noabort+0x14/0x20 [ 31.725280] __wake_up_common+0x670/0x780 [ 31.729410] ? do_wait_intr_irq+0x3e0/0x3e0 [ 31.733715] ? unwind_get_return_address+0x61/0xa0 [ 31.738620] ? __save_stack_trace+0x7e/0xd0 [ 31.742929] ? check_noncircular+0x20/0x20 [ 31.747146] __wake_up_common_lock+0x1b4/0x310 [ 31.751702] ? locks_remove_file+0x3fa/0x5a0 [ 31.756091] ? __wake_up_common+0x780/0x780 [ 31.760398] ? fcntl_setlk+0x10c0/0x10c0 [ 31.764446] ? fsnotify_first_mark+0x2b0/0x2b0 [ 31.769008] ? eventfd_show_fdinfo+0x90/0x90 [ 31.773391] __wake_up+0xe/0x10 [ 31.776647] eventfd_release+0x4a/0x60 [ 31.780514] __fput+0x327/0x7e0 [ 31.783787] ? fput+0x140/0x140 [ 31.787046] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.791523] ____fput+0x15/0x20 [ 31.794788] task_work_run+0x199/0x270 [ 31.798655] ? task_work_cancel+0x210/0x210 [ 31.802951] ? _raw_spin_unlock+0x22/0x30 [ 31.807071] ? switch_task_namespaces+0x87/0xc0 [ 31.811723] do_exit+0x9bb/0x1ad0 [ 31.815148] ? check_noncircular+0x20/0x20 [ 31.819361] ? mm_update_next_owner+0x930/0x930 [ 31.824010] ? mntput_no_expire+0x15e/0xa90 [ 31.828306] ? _raw_spin_unlock+0x22/0x30 [ 31.832427] ? mnt_get_count+0x150/0x150 [ 31.836465] ? find_held_lock+0x35/0x1d0 [ 31.840512] ? task_work_run+0x16c/0x270 [ 31.844547] ? lock_downgrade+0x980/0x980 [ 31.848669] ? mntput+0x66/0x90 [ 31.851927] ? lock_release+0xa40/0xa40 [ 31.855883] ? do_raw_spin_trylock+0x190/0x190 [ 31.860452] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.864926] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.869939] ? trace_hardirqs_on+0xd/0x10 [ 31.874063] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.878532] ? task_work_run+0x1f4/0x270 [ 31.882574] ? task_work_cancel+0x210/0x210 [ 31.886875] ? exit_to_usermode_loop+0x8c/0x310 [ 31.891521] ? trace_hardirqs_off+0xd/0x10 [ 31.895729] ? exit_to_usermode_loop+0x198/0x310 [ 31.900463] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 31.905978] ? __close_fd+0x222/0x360 [ 31.909761] do_group_exit+0x149/0x400 [ 31.913624] ? prepare_exit_to_usermode+0x340/0x340 [ 31.918614] ? SyS_exit+0x30/0x30 [ 31.922047] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.927039] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.931777] SyS_exit_group+0x1d/0x20 [ 31.935562] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 31.940291] RIP: 0033:0x43e978 [ 31.943453] RSP: 002b:00007fff5447d778 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.951145] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043e978 [ 31.958388] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.965632] RBP: 00000000006ca018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.972876] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004016a0 [ 31.980120] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 31.987380] [ 31.988982] Allocated by task 3657: [ 31.992583] save_stack+0x43/0xd0 [ 31.996009] kasan_kmalloc+0xad/0xe0 [ 31.999699] __kmalloc_node+0x47/0x70 [ 32.003474] kvmalloc_node+0x64/0xd0 [ 32.007163] vhost_net_open+0x27/0x670 [ 32.011022] misc_open+0x382/0x500 [ 32.014549] chrdev_open+0x257/0x730 [ 32.018244] do_dentry_open+0x667/0xd40 [ 32.022207] vfs_open+0x107/0x220 [ 32.025635] path_openat+0x1151/0x3530 [ 32.029493] do_filp_open+0x25b/0x3b0 [ 32.033264] do_sys_open+0x502/0x6d0 [ 32.036949] SyS_openat+0x30/0x40 [ 32.040375] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 32.045709] [ 32.047310] Freed by task 3657: [ 32.050654] save_stack+0x43/0xd0 [ 32.054078] kasan_slab_free+0x71/0xc0 [ 32.057937] kfree+0xd6/0x260 [ 32.061018] kvfree+0x36/0x60 [ 32.064099] vhost_net_release+0x159/0x190 [ 32.068306] __fput+0x327/0x7e0 [ 32.071557] ____fput+0x15/0x20 [ 32.074820] task_work_run+0x199/0x270 [ 32.078769] exit_to_usermode_loop+0x296/0x310 [ 32.083323] syscall_return_slowpath+0x490/0x550 [ 32.088049] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 32.092783] [ 32.094387] The buggy address belongs to the object at ffff8801bdd80140 [ 32.094387] which belongs to the cache kmalloc-65536 of size 65536 [ 32.107374] The buggy address is located 648 bytes inside of [ 32.107374] 65536-byte region [ffff8801bdd80140, ffff8801bdd90140) [ 32.119403] The buggy address belongs to the page: [ 32.124306] page:ffffea0006f76000 count:1 mapcount:0 mapping:ffff8801bdd80140 index:0x0 compound_mapcount: 0 [ 32.134247] flags: 0x2fffc0000008100(slab|head) [ 32.138906] raw: 02fffc0000008100 ffff8801bdd80140 0000000000000000 0000000100000001 [ 32.146771] raw: ffffea00074c4020 ffffea0006f49820 ffff8801dac02500 0000000000000000 [ 32.154628] page dumped because: kasan: bad access detected [ 32.160320] [ 32.161918] Memory state around the buggy address: [ 32.166820] ffff8801bdd80280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.174151] ffff8801bdd80300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.181483] >ffff8801bdd80380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.189363] ^ [ 32.195051] ffff8801bdd80400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.202383] ffff8801bdd80480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.209714] ================================================================== [ 32.217058] Disabling lock debugging due to kernel taint [ 32.222478] Kernel panic - not syncing: panic_on_warn set ... [ 32.222478] [ 32.229817] CPU: 0 PID: 3657 Comm: syzkaller414294 Tainted: G B 4.15.0-rc9+ #281 [ 32.238545] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.247868] Call Trace: [ 32.250434] dump_stack+0x194/0x257 [ 32.254033] ? arch_local_irq_restore+0x53/0x53 [ 32.258677] ? kasan_end_report+0x32/0x50 [ 32.262799] ? lock_downgrade+0x980/0x980 [ 32.266922] ? vsnprintf+0x1ed/0x1900 [ 32.270695] ? __wake_up_common+0x670/0x780 [ 32.274986] panic+0x1e4/0x41c [ 32.278147] ? refcount_error_report+0x214/0x214 [ 32.282874] ? add_taint+0x40/0x50 [ 32.286381] ? add_taint+0x1c/0x50 [ 32.289893] ? __wake_up_common+0x670/0x780 [ 32.294184] kasan_end_report+0x50/0x50 [ 32.298128] kasan_report+0x144/0x340 [ 32.301901] __asan_report_load8_noabort+0x14/0x20 [ 32.306800] __wake_up_common+0x670/0x780 [ 32.310923] ? do_wait_intr_irq+0x3e0/0x3e0 [ 32.315217] ? unwind_get_return_address+0x61/0xa0 [ 32.320126] ? __save_stack_trace+0x7e/0xd0 [ 32.324421] ? check_noncircular+0x20/0x20 [ 32.328632] __wake_up_common_lock+0x1b4/0x310 [ 32.333186] ? locks_remove_file+0x3fa/0x5a0 [ 32.337565] ? __wake_up_common+0x780/0x780 [ 32.341868] ? fcntl_setlk+0x10c0/0x10c0 [ 32.345905] ? fsnotify_first_mark+0x2b0/0x2b0 [ 32.350459] ? eventfd_show_fdinfo+0x90/0x90 [ 32.354837] __wake_up+0xe/0x10 [ 32.358086] eventfd_release+0x4a/0x60 [ 32.361952] __fput+0x327/0x7e0 [ 32.365205] ? fput+0x140/0x140 [ 32.368456] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.372932] ____fput+0x15/0x20 [ 32.376182] task_work_run+0x199/0x270 [ 32.380054] ? task_work_cancel+0x210/0x210 [ 32.384358] ? _raw_spin_unlock+0x22/0x30 [ 32.388475] ? switch_task_namespaces+0x87/0xc0 [ 32.393115] do_exit+0x9bb/0x1ad0 [ 32.396537] ? check_noncircular+0x20/0x20 [ 32.400745] ? mm_update_next_owner+0x930/0x930 [ 32.405396] ? mntput_no_expire+0x15e/0xa90 [ 32.409687] ? _raw_spin_unlock+0x22/0x30 [ 32.413805] ? mnt_get_count+0x150/0x150 [ 32.417837] ? find_held_lock+0x35/0x1d0 [ 32.421870] ? task_work_run+0x16c/0x270 [ 32.425900] ? lock_downgrade+0x980/0x980 [ 32.430017] ? mntput+0x66/0x90 [ 32.433268] ? lock_release+0xa40/0xa40 [ 32.437212] ? do_raw_spin_trylock+0x190/0x190 [ 32.441764] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.446229] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.451226] ? trace_hardirqs_on+0xd/0x10 [ 32.455344] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.459819] ? task_work_run+0x1f4/0x270 [ 32.463863] ? task_work_cancel+0x210/0x210 [ 32.468157] ? exit_to_usermode_loop+0x8c/0x310 [ 32.472805] ? trace_hardirqs_off+0xd/0x10 [ 32.477012] ? exit_to_usermode_loop+0x198/0x310 [ 32.481737] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 32.487257] ? __close_fd+0x222/0x360 [ 32.491031] do_group_exit+0x149/0x400 [ 32.494886] ? prepare_exit_to_usermode+0x340/0x340 [ 32.499872] ? SyS_exit+0x30/0x30 [ 32.503297] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.508372] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.513101] SyS_exit_group+0x1d/0x20 [ 32.516871] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 32.521599] RIP: 0033:0x43e978 [ 32.524761] RSP: 002b:00007fff5447d778 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.532542] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043e978 [ 32.539800] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.547038] RBP: 00000000006ca018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.554277] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004016a0 [ 32.561517] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 32.569136] Dumping ftrace buffer: [ 32.572650] (ftrace buffer empty) [ 32.576332] Kernel Offset: disabled [ 32.579931] Rebooting in 86400 seconds..