[....] Starting enhanced syslogd: rsyslogd[ 14.253767] audit: type=1400 audit(1516785856.806:5): avc: denied { syslog } for pid=3505 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 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. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.056474] audit: type=1400 audit(1516785860.609:6): avc: denied { map } for pid=3645 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.197' (ECDSA) to the list of known hosts. executing program [ 24.316629] audit: type=1400 audit(1516785866.869:7): avc: denied { map } for pid=3659 comm="syzkaller914187" path="/root/syzkaller914187405" 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 [ 24.350652] ================================================================== [ 24.358058] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 24.364702] Read of size 8 at addr ffff8801bd3603c8 by task syzkaller914187/3659 [ 24.372210] [ 24.373817] CPU: 1 PID: 3659 Comm: syzkaller914187 Not tainted 4.15.0-rc9+ #187 [ 24.381236] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.390566] Call Trace: [ 24.393154] dump_stack+0x194/0x257 [ 24.396778] ? arch_local_irq_restore+0x53/0x53 [ 24.401430] ? show_regs_print_info+0x18/0x18 [ 24.405914] ? __wake_up_common+0x670/0x780 [ 24.410224] print_address_description+0x73/0x250 [ 24.415045] ? __wake_up_common+0x670/0x780 [ 24.419340] kasan_report+0x25b/0x340 [ 24.423136] __asan_report_load8_noabort+0x14/0x20 [ 24.428046] __wake_up_common+0x670/0x780 [ 24.432177] ? do_wait_intr_irq+0x3e0/0x3e0 [ 24.436481] ? unwind_get_return_address+0x61/0xa0 [ 24.441391] ? check_noncircular+0x20/0x20 [ 24.445608] __wake_up_common_lock+0x1b4/0x310 [ 24.450172] ? locks_remove_file+0x3fa/0x5a0 [ 24.454557] ? __wake_up_common+0x780/0x780 [ 24.458853] ? fcntl_setlk+0x10c0/0x10c0 [ 24.462899] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.467466] ? eventfd_show_fdinfo+0x90/0x90 [ 24.471869] __wake_up+0xe/0x10 [ 24.475132] eventfd_release+0x4a/0x60 [ 24.479009] __fput+0x327/0x7e0 [ 24.482276] ? fput+0x140/0x140 [ 24.485532] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.490020] ____fput+0x15/0x20 [ 24.493281] task_work_run+0x199/0x270 [ 24.497147] ? task_work_cancel+0x210/0x210 [ 24.501442] ? _raw_spin_unlock+0x22/0x30 [ 24.505574] ? switch_task_namespaces+0x87/0xc0 [ 24.510230] do_exit+0x9bb/0x1ad0 [ 24.513665] ? mm_update_next_owner+0x930/0x930 [ 24.518313] ? lock_downgrade+0x980/0x980 [ 24.522436] ? lock_release+0xa40/0xa40 [ 24.526385] ? lock_downgrade+0x980/0x980 [ 24.530515] ? check_noncircular+0x20/0x20 [ 24.534741] ? mntput_no_expire+0x15e/0xa90 [ 24.539046] ? _raw_spin_unlock+0x22/0x30 [ 24.543178] ? mnt_get_count+0x150/0x150 [ 24.547219] ? find_held_lock+0x35/0x1d0 [ 24.551268] ? task_work_run+0x16c/0x270 [ 24.555311] ? lock_downgrade+0x980/0x980 [ 24.559433] ? lock_release+0xa40/0xa40 [ 24.563395] ? do_raw_spin_trylock+0x190/0x190 [ 24.567964] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.572435] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.577425] ? trace_hardirqs_on+0xd/0x10 [ 24.581557] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.586035] ? task_work_run+0x1f4/0x270 [ 24.590118] ? task_work_cancel+0x210/0x210 [ 24.594421] ? __close_fd+0x222/0x360 [ 24.598202] ? exit_to_usermode_loop+0x8c/0x310 [ 24.602851] do_group_exit+0x149/0x400 [ 24.606713] ? trace_hardirqs_off+0xd/0x10 [ 24.610931] ? exit_to_usermode_loop+0x198/0x310 [ 24.615662] ? SyS_exit+0x30/0x30 [ 24.619089] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 24.624612] ? do_fast_syscall_32+0x156/0xf9d [ 24.629085] ? do_group_exit+0x400/0x400 [ 24.633124] SyS_exit_group+0x1d/0x20 [ 24.636903] do_fast_syscall_32+0x3ee/0xf9d [ 24.641215] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.645781] ? kasan_check_read+0x11/0x20 [ 24.649909] ? syscall_return_slowpath+0x550/0x550 [ 24.654819] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.659040] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.663252] ? SyS_read+0x184/0x220 [ 24.666858] ? sysret32_from_system_call+0x5/0x3b [ 24.671688] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.676521] entry_SYSENTER_compat+0x54/0x63 [ 24.680912] RIP: 0023:0xf7f89c79 [ 24.684251] RSP: 002b:00000000ff83048c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 24.691933] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 24.699178] RDX: 0000000000000000 RSI: 00000000080d57f8 RDI: 00000000080eb2a0 [ 24.706435] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.713690] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.720944] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.728221] [ 24.729834] Allocated by task 3659: [ 24.733447] save_stack+0x43/0xd0 [ 24.736877] kasan_kmalloc+0xad/0xe0 [ 24.740563] __kmalloc_node+0x47/0x70 [ 24.744349] kvmalloc_node+0x64/0xd0 [ 24.748043] vhost_net_open+0x27/0x670 [ 24.751917] misc_open+0x382/0x500 [ 24.755436] chrdev_open+0x257/0x730 [ 24.759126] do_dentry_open+0x667/0xd40 [ 24.763206] vfs_open+0x107/0x220 [ 24.766631] path_openat+0x1151/0x3530 [ 24.770492] do_filp_open+0x25b/0x3b0 [ 24.774267] do_sys_open+0x502/0x6d0 [ 24.777954] compat_SyS_openat+0x2d/0x40 [ 24.781991] do_fast_syscall_32+0x3ee/0xf9d [ 24.786294] entry_SYSENTER_compat+0x54/0x63 [ 24.790673] [ 24.792283] Freed by task 3659: [ 24.795548] save_stack+0x43/0xd0 [ 24.798976] kasan_slab_free+0x71/0xc0 [ 24.802844] kfree+0xd6/0x260 [ 24.805931] kvfree+0x36/0x60 [ 24.809011] vhost_net_release+0x159/0x190 [ 24.813224] __fput+0x327/0x7e0 [ 24.816482] ____fput+0x15/0x20 [ 24.819737] task_work_run+0x199/0x270 [ 24.823598] exit_to_usermode_loop+0x296/0x310 [ 24.828154] do_fast_syscall_32+0xbfd/0xf9d [ 24.832450] entry_SYSENTER_compat+0x54/0x63 [ 24.836831] [ 24.838439] The buggy address belongs to the object at ffff8801bd360140 [ 24.838439] which belongs to the cache kmalloc-65536 of size 65536 [ 24.851421] The buggy address is located 648 bytes inside of [ 24.851421] 65536-byte region [ffff8801bd360140, ffff8801bd370140) [ 24.863440] The buggy address belongs to the page: [ 24.868344] page:ffffea0006f4d800 count:1 mapcount:0 mapping:ffff8801bd360140 index:0x0 compound_mapcount: 0 [ 24.878288] flags: 0x2fffc0000008100(slab|head) [ 24.882934] raw: 02fffc0000008100 ffff8801bd360140 0000000000000000 0000000100000001 [ 24.890789] raw: ffffea00074c4820 ffffea0006f5d020 ffff8801dac02500 0000000000000000 [ 24.898640] page dumped because: kasan: bad access detected [ 24.904320] [ 24.905920] Memory state around the buggy address: [ 24.910823] ffff8801bd360280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.918156] ffff8801bd360300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.925487] >ffff8801bd360380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.932826] ^ [ 24.938510] ffff8801bd360400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.945841] ffff8801bd360480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.953174] ================================================================== [ 24.960504] Disabling lock debugging due to kernel taint [ 24.965926] Kernel panic - not syncing: panic_on_warn set ... [ 24.965926] [ 24.973262] CPU: 1 PID: 3659 Comm: syzkaller914187 Tainted: G B 4.15.0-rc9+ #187 [ 24.981996] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.992029] Call Trace: [ 24.994610] dump_stack+0x194/0x257 [ 24.998214] ? arch_local_irq_restore+0x53/0x53 [ 25.002865] ? kasan_end_report+0x32/0x50 [ 25.006990] ? lock_downgrade+0x980/0x980 [ 25.011112] ? vsnprintf+0x1ed/0x1900 [ 25.014893] ? __wake_up_common+0x670/0x780 [ 25.019186] panic+0x1e4/0x41c [ 25.022355] ? refcount_error_report+0x214/0x214 [ 25.027084] ? add_taint+0x40/0x50 [ 25.030594] ? add_taint+0x1c/0x50 [ 25.034122] ? __wake_up_common+0x670/0x780 [ 25.038417] kasan_end_report+0x50/0x50 [ 25.042366] kasan_report+0x144/0x340 [ 25.046153] __asan_report_load8_noabort+0x14/0x20 [ 25.051068] __wake_up_common+0x670/0x780 [ 25.055195] ? do_wait_intr_irq+0x3e0/0x3e0 [ 25.059504] ? unwind_get_return_address+0x61/0xa0 [ 25.064415] ? check_noncircular+0x20/0x20 [ 25.068629] __wake_up_common_lock+0x1b4/0x310 [ 25.073188] ? locks_remove_file+0x3fa/0x5a0 [ 25.077580] ? __wake_up_common+0x780/0x780 [ 25.081878] ? fcntl_setlk+0x10c0/0x10c0 [ 25.085926] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.090485] ? eventfd_show_fdinfo+0x90/0x90 [ 25.094867] __wake_up+0xe/0x10 [ 25.098120] eventfd_release+0x4a/0x60 [ 25.101991] __fput+0x327/0x7e0 [ 25.105248] ? fput+0x140/0x140 [ 25.108501] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.113000] ____fput+0x15/0x20 [ 25.116258] task_work_run+0x199/0x270 [ 25.120122] ? task_work_cancel+0x210/0x210 [ 25.124426] ? _raw_spin_unlock+0x22/0x30 [ 25.128552] ? switch_task_namespaces+0x87/0xc0 [ 25.133197] do_exit+0x9bb/0x1ad0 [ 25.136627] ? mm_update_next_owner+0x930/0x930 [ 25.141270] ? lock_downgrade+0x980/0x980 [ 25.145394] ? lock_release+0xa40/0xa40 [ 25.149342] ? lock_downgrade+0x980/0x980 [ 25.153474] ? check_noncircular+0x20/0x20 [ 25.157688] ? mntput_no_expire+0x15e/0xa90 [ 25.161984] ? _raw_spin_unlock+0x22/0x30 [ 25.166117] ? mnt_get_count+0x150/0x150 [ 25.170168] ? find_held_lock+0x35/0x1d0 [ 25.174206] ? task_work_run+0x16c/0x270 [ 25.178240] ? lock_downgrade+0x980/0x980 [ 25.182365] ? lock_release+0xa40/0xa40 [ 25.186315] ? do_raw_spin_trylock+0x190/0x190 [ 25.190873] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.195354] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.200352] ? trace_hardirqs_on+0xd/0x10 [ 25.204478] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.208952] ? task_work_run+0x1f4/0x270 [ 25.212986] ? task_work_cancel+0x210/0x210 [ 25.217280] ? __close_fd+0x222/0x360 [ 25.221053] ? exit_to_usermode_loop+0x8c/0x310 [ 25.225697] do_group_exit+0x149/0x400 [ 25.229560] ? trace_hardirqs_off+0xd/0x10 [ 25.233769] ? exit_to_usermode_loop+0x198/0x310 [ 25.238499] ? SyS_exit+0x30/0x30 [ 25.241930] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.247443] ? do_fast_syscall_32+0x156/0xf9d [ 25.251917] ? do_group_exit+0x400/0x400 [ 25.255962] SyS_exit_group+0x1d/0x20 [ 25.259736] do_fast_syscall_32+0x3ee/0xf9d [ 25.264036] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.268593] ? kasan_check_read+0x11/0x20 [ 25.272720] ? syscall_return_slowpath+0x550/0x550 [ 25.277643] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.281863] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.286077] ? SyS_read+0x184/0x220 [ 25.289678] ? sysret32_from_system_call+0x5/0x3b [ 25.294494] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.299326] entry_SYSENTER_compat+0x54/0x63 [ 25.303708] RIP: 0023:0xf7f89c79 [ 25.307043] RSP: 002b:00000000ff83048c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.314721] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 25.321963] RDX: 0000000000000000 RSI: 00000000080d57f8 RDI: 00000000080eb2a0 [ 25.329210] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.336456] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.343700] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.351488] Dumping ftrace buffer: [ 25.355012] (ftrace buffer empty) [ 25.358699] Kernel Offset: disabled [ 25.362296] Rebooting in 86400 seconds..