[....] Starting enhanced syslogd: rsyslogd[ 13.958829] audit: type=1400 audit(1516785072.814:5): avc: denied { syslog } for pid=3514 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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.024381] audit: type=1400 audit(1516785076.880:6): avc: denied { map } for pid=3653 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.230' (ECDSA) to the list of known hosts. executing program [ 29.331697] audit: type=1400 audit(1516785088.187:7): avc: denied { map } for pid=3668 comm="syzkaller997583" path="/root/syzkaller997583529" 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 [ 29.359679] ================================================================== [ 29.367068] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 29.373721] Read of size 8 at addr ffff8801bf7c03c8 by task syzkaller997583/3668 [ 29.381225] [ 29.382828] CPU: 1 PID: 3668 Comm: syzkaller997583 Not tainted 4.15.0-rc9+ #277 [ 29.390244] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.399576] Call Trace: [ 29.402145] dump_stack+0x194/0x257 [ 29.405757] ? arch_local_irq_restore+0x53/0x53 [ 29.410400] ? show_regs_print_info+0x18/0x18 [ 29.414886] ? __wake_up_common+0x670/0x780 [ 29.419187] print_address_description+0x73/0x250 [ 29.424012] ? __wake_up_common+0x670/0x780 [ 29.428307] kasan_report+0x25b/0x340 [ 29.432082] __asan_report_load8_noabort+0x14/0x20 [ 29.436984] __wake_up_common+0x670/0x780 [ 29.441109] ? do_wait_intr_irq+0x3e0/0x3e0 [ 29.445406] ? unwind_get_return_address+0x61/0xa0 [ 29.450309] ? __save_stack_trace+0x7e/0xd0 [ 29.454603] ? check_noncircular+0x20/0x20 [ 29.458822] __wake_up_common_lock+0x1b4/0x310 [ 29.463385] ? locks_remove_file+0x3fa/0x5a0 [ 29.467780] ? __wake_up_common+0x780/0x780 [ 29.472077] ? fcntl_setlk+0x10c0/0x10c0 [ 29.476126] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.480686] ? eventfd_show_fdinfo+0x90/0x90 [ 29.485066] __wake_up+0xe/0x10 [ 29.488316] eventfd_release+0x4a/0x60 [ 29.492186] __fput+0x327/0x7e0 [ 29.495443] ? fput+0x140/0x140 [ 29.498699] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.503176] ____fput+0x15/0x20 [ 29.506429] task_work_run+0x199/0x270 [ 29.510294] ? task_work_cancel+0x210/0x210 [ 29.514589] ? _raw_spin_unlock+0x22/0x30 [ 29.518709] ? switch_task_namespaces+0x87/0xc0 [ 29.523356] do_exit+0x9bb/0x1ad0 [ 29.526780] ? check_noncircular+0x20/0x20 [ 29.530990] ? mm_update_next_owner+0x930/0x930 [ 29.535643] ? mntput_no_expire+0x15e/0xa90 [ 29.539939] ? _raw_spin_unlock+0x22/0x30 [ 29.544079] ? mnt_get_count+0x150/0x150 [ 29.548117] ? find_held_lock+0x35/0x1d0 [ 29.552159] ? task_work_run+0x16c/0x270 [ 29.556192] ? lock_downgrade+0x980/0x980 [ 29.560307] ? mntput+0x66/0x90 [ 29.563564] ? lock_release+0xa40/0xa40 [ 29.567514] ? do_raw_spin_trylock+0x190/0x190 [ 29.572070] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.576538] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.581525] ? trace_hardirqs_on+0xd/0x10 [ 29.585656] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.590124] ? task_work_run+0x1f4/0x270 [ 29.594169] ? task_work_cancel+0x210/0x210 [ 29.598465] ? exit_to_usermode_loop+0x8c/0x310 [ 29.603123] ? trace_hardirqs_off+0xd/0x10 [ 29.607341] ? exit_to_usermode_loop+0x198/0x310 [ 29.612073] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.617585] ? __close_fd+0x222/0x360 [ 29.621361] do_group_exit+0x149/0x400 [ 29.625223] ? prepare_exit_to_usermode+0x340/0x340 [ 29.630212] ? SyS_exit+0x30/0x30 [ 29.633651] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.638665] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.643425] SyS_exit_group+0x1d/0x20 [ 29.647202] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.651926] RIP: 0033:0x43e978 [ 29.655086] RSP: 002b:00007fff6e709a38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 29.662770] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043e978 [ 29.670047] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 29.677298] RBP: 00000000006ca018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.684544] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004016a0 [ 29.691785] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 29.699045] [ 29.700653] Allocated by task 3668: [ 29.704262] save_stack+0x43/0xd0 [ 29.707697] kasan_kmalloc+0xad/0xe0 [ 29.711391] __kmalloc_node+0x47/0x70 [ 29.715165] kvmalloc_node+0x64/0xd0 [ 29.718849] vhost_net_open+0x27/0x670 [ 29.722704] misc_open+0x382/0x500 [ 29.726213] chrdev_open+0x257/0x730 [ 29.729895] do_dentry_open+0x667/0xd40 [ 29.733838] vfs_open+0x107/0x220 [ 29.737264] path_openat+0x1151/0x3530 [ 29.741119] do_filp_open+0x25b/0x3b0 [ 29.744887] do_sys_open+0x502/0x6d0 [ 29.748568] SyS_openat+0x30/0x40 [ 29.751990] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.756712] [ 29.758309] Freed by task 3668: [ 29.761560] save_stack+0x43/0xd0 [ 29.764982] kasan_slab_free+0x71/0xc0 [ 29.768836] kfree+0xd6/0x260 [ 29.771925] kvfree+0x36/0x60 [ 29.775013] vhost_net_release+0x159/0x190 [ 29.779227] __fput+0x327/0x7e0 [ 29.782486] ____fput+0x15/0x20 [ 29.785747] task_work_run+0x199/0x270 [ 29.789612] exit_to_usermode_loop+0x296/0x310 [ 29.794175] syscall_return_slowpath+0x490/0x550 [ 29.798910] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 29.803635] [ 29.805235] The buggy address belongs to the object at ffff8801bf7c0140 [ 29.805235] which belongs to the cache kmalloc-65536 of size 65536 [ 29.818215] The buggy address is located 648 bytes inside of [ 29.818215] 65536-byte region [ffff8801bf7c0140, ffff8801bf7d0140) [ 29.830234] The buggy address belongs to the page: [ 29.835135] page:ffffea0006fdf000 count:1 mapcount:0 mapping:ffff8801bf7c0140 index:0x0 compound_mapcount: 0 [ 29.845074] flags: 0x2fffc0000008100(slab|head) [ 29.849717] raw: 02fffc0000008100 ffff8801bf7c0140 0000000000000000 0000000100000001 [ 29.857576] raw: ffffea00074c4820 ffffea0006f93820 ffff8801dac02500 0000000000000000 [ 29.865424] page dumped because: kasan: bad access detected [ 29.871103] [ 29.872700] Memory state around the buggy address: [ 29.877597] ffff8801bf7c0280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.884925] ffff8801bf7c0300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.892252] >ffff8801bf7c0380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.899579] ^ [ 29.905278] ffff8801bf7c0400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.912626] ffff8801bf7c0480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.919955] ================================================================== [ 29.927295] Disabling lock debugging due to kernel taint [ 29.932713] Kernel panic - not syncing: panic_on_warn set ... [ 29.932713] [ 29.940060] CPU: 1 PID: 3668 Comm: syzkaller997583 Tainted: G B 4.15.0-rc9+ #277 [ 29.948792] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.958117] Call Trace: [ 29.960679] dump_stack+0x194/0x257 [ 29.964279] ? arch_local_irq_restore+0x53/0x53 [ 29.968920] ? kasan_end_report+0x32/0x50 [ 29.973040] ? lock_downgrade+0x980/0x980 [ 29.977160] ? vsnprintf+0x1ed/0x1900 [ 29.980937] ? __wake_up_common+0x670/0x780 [ 29.985229] panic+0x1e4/0x41c [ 29.988390] ? refcount_error_report+0x214/0x214 [ 29.993115] ? add_taint+0x40/0x50 [ 29.996622] ? add_taint+0x1c/0x50 [ 30.000145] ? __wake_up_common+0x670/0x780 [ 30.004446] kasan_end_report+0x50/0x50 [ 30.008391] kasan_report+0x144/0x340 [ 30.012173] __asan_report_load8_noabort+0x14/0x20 [ 30.017085] __wake_up_common+0x670/0x780 [ 30.021206] ? do_wait_intr_irq+0x3e0/0x3e0 [ 30.025503] ? unwind_get_return_address+0x61/0xa0 [ 30.030404] ? __save_stack_trace+0x7e/0xd0 [ 30.034697] ? check_noncircular+0x20/0x20 [ 30.038905] __wake_up_common_lock+0x1b4/0x310 [ 30.043457] ? locks_remove_file+0x3fa/0x5a0 [ 30.047839] ? __wake_up_common+0x780/0x780 [ 30.052138] ? fcntl_setlk+0x10c0/0x10c0 [ 30.056175] ? fsnotify_first_mark+0x2b0/0x2b0 [ 30.060732] ? eventfd_show_fdinfo+0x90/0x90 [ 30.065113] __wake_up+0xe/0x10 [ 30.068370] eventfd_release+0x4a/0x60 [ 30.072231] __fput+0x327/0x7e0 [ 30.075486] ? fput+0x140/0x140 [ 30.078739] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.083208] ____fput+0x15/0x20 [ 30.086458] task_work_run+0x199/0x270 [ 30.090317] ? task_work_cancel+0x210/0x210 [ 30.094610] ? _raw_spin_unlock+0x22/0x30 [ 30.098732] ? switch_task_namespaces+0x87/0xc0 [ 30.103382] do_exit+0x9bb/0x1ad0 [ 30.106815] ? check_noncircular+0x20/0x20 [ 30.111034] ? mm_update_next_owner+0x930/0x930 [ 30.115692] ? mntput_no_expire+0x15e/0xa90 [ 30.119987] ? _raw_spin_unlock+0x22/0x30 [ 30.124105] ? mnt_get_count+0x150/0x150 [ 30.128140] ? find_held_lock+0x35/0x1d0 [ 30.132176] ? task_work_run+0x16c/0x270 [ 30.136206] ? lock_downgrade+0x980/0x980 [ 30.140321] ? mntput+0x66/0x90 [ 30.143570] ? lock_release+0xa40/0xa40 [ 30.147519] ? do_raw_spin_trylock+0x190/0x190 [ 30.152076] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.156542] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.161539] ? trace_hardirqs_on+0xd/0x10 [ 30.165741] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.170216] ? task_work_run+0x1f4/0x270 [ 30.174248] ? task_work_cancel+0x210/0x210 [ 30.178548] ? exit_to_usermode_loop+0x8c/0x310 [ 30.183188] ? trace_hardirqs_off+0xd/0x10 [ 30.187403] ? exit_to_usermode_loop+0x198/0x310 [ 30.192132] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 30.197644] ? __close_fd+0x222/0x360 [ 30.201418] do_group_exit+0x149/0x400 [ 30.205285] ? prepare_exit_to_usermode+0x340/0x340 [ 30.210286] ? SyS_exit+0x30/0x30 [ 30.213733] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.218735] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.223479] SyS_exit_group+0x1d/0x20 [ 30.227255] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.231985] RIP: 0033:0x43e978 [ 30.235147] RSP: 002b:00007fff6e709a38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 30.242827] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043e978 [ 30.250068] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 30.257310] RBP: 00000000006ca018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 30.264549] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004016a0 [ 30.271788] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 30.279408] Dumping ftrace buffer: [ 30.282918] (ftrace buffer empty) [ 30.286597] Kernel Offset: disabled [ 30.290194] Rebooting in 86400 seconds..