[....] Starting enhanced syslogd: rsyslogd[ 12.137940] audit: type=1400 audit(1516509480.525:5): avc: denied { syslog } for pid=3495 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: [ 20.622105] audit: type=1400 audit(1516509489.009:6): avc: denied { map } for pid=3635 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.213' (ECDSA) to the list of known hosts. executing program [ 26.890770] audit: type=1400 audit(1516509495.278:7): avc: denied { map } for pid=3649 comm="syzkaller162672" path="/root/syzkaller162672860" 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 [ 26.918964] ================================================================== [ 26.926339] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 26.932977] Read of size 8 at addr ffff8801bc7403c8 by task syzkaller162672/3649 [ 26.940475] [ 26.942075] CPU: 1 PID: 3649 Comm: syzkaller162672 Not tainted 4.15.0-rc8+ #271 [ 26.949490] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.958812] Call Trace: [ 26.961376] dump_stack+0x194/0x257 [ 26.964978] ? arch_local_irq_restore+0x53/0x53 [ 26.969621] ? show_regs_print_info+0x18/0x18 [ 26.974096] ? __wake_up_common+0x670/0x780 [ 26.978392] print_address_description+0x73/0x250 [ 26.983207] ? __wake_up_common+0x670/0x780 [ 26.987500] kasan_report+0x25b/0x340 [ 26.991274] __asan_report_load8_noabort+0x14/0x20 [ 26.996178] __wake_up_common+0x670/0x780 [ 27.000304] ? do_wait_intr_irq+0x3e0/0x3e0 [ 27.004600] ? unwind_get_return_address+0x61/0xa0 [ 27.009502] ? __save_stack_trace+0x7e/0xd0 [ 27.013799] ? check_noncircular+0x20/0x20 [ 27.018014] __wake_up_common_lock+0x1b4/0x310 [ 27.022570] ? locks_remove_file+0x3fa/0x5a0 [ 27.026950] ? __wake_up_common+0x780/0x780 [ 27.031248] ? fcntl_setlk+0x10c0/0x10c0 [ 27.035292] ? fsnotify_first_mark+0x2b0/0x2b0 [ 27.039849] ? eventfd_show_fdinfo+0x90/0x90 [ 27.044226] __wake_up+0xe/0x10 [ 27.047477] eventfd_release+0x4a/0x60 [ 27.051335] __fput+0x327/0x7e0 [ 27.054590] ? fput+0x140/0x140 [ 27.057843] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.062311] ____fput+0x15/0x20 [ 27.065562] task_work_run+0x199/0x270 [ 27.069425] ? task_work_cancel+0x210/0x210 [ 27.073716] ? _raw_spin_unlock+0x22/0x30 [ 27.077832] ? switch_task_namespaces+0x87/0xc0 [ 27.082477] do_exit+0x9bb/0x1ad0 [ 27.085901] ? check_noncircular+0x20/0x20 [ 27.090120] ? mm_update_next_owner+0x930/0x930 [ 27.094773] ? mntput_no_expire+0x15e/0xa90 [ 27.099068] ? _raw_spin_unlock+0x22/0x30 [ 27.103192] ? mnt_get_count+0x150/0x150 [ 27.107235] ? find_held_lock+0x35/0x1d0 [ 27.111281] ? task_work_run+0x16c/0x270 [ 27.115315] ? lock_downgrade+0x980/0x980 [ 27.119431] ? mntput+0x66/0x90 [ 27.122685] ? lock_release+0xa40/0xa40 [ 27.126635] ? do_raw_spin_trylock+0x190/0x190 [ 27.131192] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.136071] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.141058] ? trace_hardirqs_on+0xd/0x10 [ 27.145177] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.149642] ? task_work_run+0x1f4/0x270 [ 27.153674] ? task_work_cancel+0x210/0x210 [ 27.157970] ? exit_to_usermode_loop+0x8c/0x310 [ 27.162614] ? trace_hardirqs_off+0xd/0x10 [ 27.166817] ? exit_to_usermode_loop+0x198/0x310 [ 27.171544] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 27.177063] ? __close_fd+0x222/0x360 [ 27.180840] do_group_exit+0x149/0x400 [ 27.184701] ? prepare_exit_to_usermode+0x340/0x340 [ 27.189688] ? SyS_exit+0x30/0x30 [ 27.193111] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.198095] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.202827] SyS_exit_group+0x1d/0x20 [ 27.206599] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.211325] RIP: 0033:0x43e978 [ 27.214484] RSP: 002b:00007ffc4ef044e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 27.222172] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043e978 [ 27.229412] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 27.236652] RBP: 00000000006ca018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 27.243890] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004016a0 [ 27.251130] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 27.258388] [ 27.259985] Allocated by task 3649: [ 27.263590] save_stack+0x43/0xd0 [ 27.267016] kasan_kmalloc+0xad/0xe0 [ 27.270697] __kmalloc_node+0x47/0x70 [ 27.274469] kvmalloc_node+0x64/0xd0 [ 27.278153] vhost_net_open+0x27/0x670 [ 27.282010] misc_open+0x382/0x500 [ 27.285517] chrdev_open+0x257/0x730 [ 27.289199] do_dentry_open+0x667/0xd40 [ 27.293143] vfs_open+0x107/0x220 [ 27.296571] path_openat+0x1151/0x3530 [ 27.300429] do_filp_open+0x25b/0x3b0 [ 27.304205] do_sys_open+0x502/0x6d0 [ 27.307890] SyS_openat+0x30/0x40 [ 27.311316] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.316043] [ 27.317641] Freed by task 3649: [ 27.320893] save_stack+0x43/0xd0 [ 27.324314] kasan_slab_free+0x71/0xc0 [ 27.328171] kfree+0xd6/0x260 [ 27.331246] kvfree+0x36/0x60 [ 27.334322] vhost_net_release+0x159/0x190 [ 27.338527] __fput+0x327/0x7e0 [ 27.341774] ____fput+0x15/0x20 [ 27.345021] task_work_run+0x199/0x270 [ 27.348879] exit_to_usermode_loop+0x296/0x310 [ 27.353430] syscall_return_slowpath+0x490/0x550 [ 27.358155] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 27.362875] [ 27.364477] The buggy address belongs to the object at ffff8801bc740140 [ 27.364477] which belongs to the cache kmalloc-65536 of size 65536 [ 27.377451] The buggy address is located 648 bytes inside of [ 27.377451] 65536-byte region [ffff8801bc740140, ffff8801bc750140) [ 27.389466] The buggy address belongs to the page: [ 27.394367] page:ffffea0006f1d000 count:1 mapcount:0 mapping:ffff8801bc740140 index:0x0 compound_mapcount: 0 [ 27.404306] flags: 0x2fffc0000008100(slab|head) [ 27.408947] raw: 02fffc0000008100 ffff8801bc740140 0000000000000000 0000000100000001 [ 27.416796] raw: ffffea00074c4020 ffffea0006f1c820 ffff8801dac02500 0000000000000000 [ 27.424643] page dumped because: kasan: bad access detected [ 27.430320] [ 27.431915] Memory state around the buggy address: [ 27.436811] ffff8801bc740280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.444137] ffff8801bc740300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.451463] >ffff8801bc740380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.458790] ^ [ 27.464470] ffff8801bc740400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.471799] ffff8801bc740480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.479128] ================================================================== [ 27.486452] Disabling lock debugging due to kernel taint [ 27.491868] Kernel panic - not syncing: panic_on_warn set ... [ 27.491868] [ 27.499197] CPU: 1 PID: 3649 Comm: syzkaller162672 Tainted: G B 4.15.0-rc8+ #271 [ 27.507910] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.517233] Call Trace: [ 27.519795] dump_stack+0x194/0x257 [ 27.523393] ? arch_local_irq_restore+0x53/0x53 [ 27.528030] ? kasan_end_report+0x32/0x50 [ 27.532148] ? lock_downgrade+0x980/0x980 [ 27.536264] ? vsnprintf+0x1ed/0x1900 [ 27.540050] ? __wake_up_common+0x610/0x780 [ 27.544340] panic+0x1e4/0x41c [ 27.547499] ? refcount_error_report+0x214/0x214 [ 27.552225] ? add_taint+0x40/0x50 [ 27.555731] ? add_taint+0x1c/0x50 [ 27.559251] ? __wake_up_common+0x670/0x780 [ 27.563544] kasan_end_report+0x50/0x50 [ 27.567492] kasan_report+0x144/0x340 [ 27.571264] __asan_report_load8_noabort+0x14/0x20 [ 27.576162] __wake_up_common+0x670/0x780 [ 27.580281] ? do_wait_intr_irq+0x3e0/0x3e0 [ 27.584571] ? unwind_get_return_address+0x61/0xa0 [ 27.589470] ? __save_stack_trace+0x7e/0xd0 [ 27.593765] ? check_noncircular+0x20/0x20 [ 27.597970] __wake_up_common_lock+0x1b4/0x310 [ 27.602522] ? locks_remove_file+0x3fa/0x5a0 [ 27.606899] ? __wake_up_common+0x780/0x780 [ 27.611188] ? fcntl_setlk+0x10c0/0x10c0 [ 27.615223] ? fsnotify_first_mark+0x2b0/0x2b0 [ 27.619779] ? eventfd_show_fdinfo+0x90/0x90 [ 27.624157] __wake_up+0xe/0x10 [ 27.627404] eventfd_release+0x4a/0x60 [ 27.631262] __fput+0x327/0x7e0 [ 27.634523] ? fput+0x140/0x140 [ 27.637774] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.642241] ____fput+0x15/0x20 [ 27.645490] task_work_run+0x199/0x270 [ 27.649344] ? task_work_cancel+0x210/0x210 [ 27.653643] ? _raw_spin_unlock+0x22/0x30 [ 27.657761] ? switch_task_namespaces+0x87/0xc0 [ 27.662401] do_exit+0x9bb/0x1ad0 [ 27.665822] ? check_noncircular+0x20/0x20 [ 27.670026] ? mm_update_next_owner+0x930/0x930 [ 27.674668] ? mntput_no_expire+0x15e/0xa90 [ 27.678955] ? _raw_spin_unlock+0x22/0x30 [ 27.683071] ? mnt_get_count+0x150/0x150 [ 27.687101] ? find_held_lock+0x35/0x1d0 [ 27.691138] ? task_work_run+0x16c/0x270 [ 27.695168] ? lock_downgrade+0x980/0x980 [ 27.699293] ? mntput+0x66/0x90 [ 27.702555] ? lock_release+0xa40/0xa40 [ 27.706498] ? do_raw_spin_trylock+0x190/0x190 [ 27.711051] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.715513] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.720499] ? trace_hardirqs_on+0xd/0x10 [ 27.724612] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.729084] ? task_work_run+0x1f4/0x270 [ 27.733113] ? task_work_cancel+0x210/0x210 [ 27.737413] ? exit_to_usermode_loop+0x8c/0x310 [ 27.742055] ? trace_hardirqs_off+0xd/0x10 [ 27.746267] ? exit_to_usermode_loop+0x198/0x310 [ 27.750992] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 27.756501] ? __close_fd+0x222/0x360 [ 27.760275] do_group_exit+0x149/0x400 [ 27.764131] ? prepare_exit_to_usermode+0x340/0x340 [ 27.769118] ? SyS_exit+0x30/0x30 [ 27.772543] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.777527] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.782255] SyS_exit_group+0x1d/0x20 [ 27.786028] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.790751] RIP: 0033:0x43e978 [ 27.793910] RSP: 002b:00007ffc4ef044e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 27.801589] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043e978 [ 27.808827] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 27.816067] RBP: 00000000006ca018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 27.823304] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004016a0 [ 27.830549] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 27.838179] Dumping ftrace buffer: [ 27.841688] (ftrace buffer empty) [ 27.845365] Kernel Offset: disabled [ 27.848960] Rebooting in 86400 seconds..