[....] Starting enhanced syslogd: rsyslogd[ 12.778329] audit: type=1400 audit(1516509295.648:5): avc: denied { syslog } for pid=3499 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.332824] audit: type=1400 audit(1516509301.202:6): avc: denied { map } for pid=3640 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.200' (ECDSA) to the list of known hosts. executing program [ 29.091150] audit: type=1400 audit(1516509311.960:7): avc: denied { map } for pid=3655 comm="syzkaller940920" path="/root/syzkaller940920655" 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.119676] ================================================================== [ 29.127063] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 29.133710] Read of size 8 at addr ffff8801bc0203c8 by task syzkaller940920/3655 [ 29.141212] [ 29.142815] CPU: 1 PID: 3655 Comm: syzkaller940920 Not tainted 4.15.0-rc8+ #181 [ 29.150231] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.159557] Call Trace: [ 29.162128] dump_stack+0x194/0x257 [ 29.165728] ? arch_local_irq_restore+0x53/0x53 [ 29.170367] ? show_regs_print_info+0x18/0x18 [ 29.174839] ? __wake_up_common+0x670/0x780 [ 29.179134] print_address_description+0x73/0x250 [ 29.183945] ? __wake_up_common+0x670/0x780 [ 29.188239] kasan_report+0x25b/0x340 [ 29.192013] __asan_report_load8_noabort+0x14/0x20 [ 29.196910] __wake_up_common+0x670/0x780 [ 29.201031] ? do_wait_intr_irq+0x3e0/0x3e0 [ 29.205324] ? unwind_get_return_address+0x61/0xa0 [ 29.210233] ? check_noncircular+0x20/0x20 [ 29.214446] __wake_up_common_lock+0x1b4/0x310 [ 29.219001] ? locks_remove_file+0x3fa/0x5a0 [ 29.223381] ? __wake_up_common+0x780/0x780 [ 29.227669] ? fcntl_setlk+0x10c0/0x10c0 [ 29.231714] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.236275] ? eventfd_show_fdinfo+0x90/0x90 [ 29.240656] __wake_up+0xe/0x10 [ 29.243909] eventfd_release+0x4a/0x60 [ 29.247766] __fput+0x327/0x7e0 [ 29.251110] ? fput+0x140/0x140 [ 29.254362] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.258835] ____fput+0x15/0x20 [ 29.262097] task_work_run+0x199/0x270 [ 29.265960] ? task_work_cancel+0x210/0x210 [ 29.270254] ? _raw_spin_unlock+0x22/0x30 [ 29.274460] ? switch_task_namespaces+0x87/0xc0 [ 29.279104] do_exit+0x9bb/0x1ad0 [ 29.282548] ? mm_update_next_owner+0x930/0x930 [ 29.287188] ? lock_downgrade+0x980/0x980 [ 29.291311] ? lock_release+0xa40/0xa40 [ 29.295254] ? lock_downgrade+0x980/0x980 [ 29.299373] ? check_noncircular+0x20/0x20 [ 29.303588] ? mntput_no_expire+0x15e/0xa90 [ 29.307881] ? _raw_spin_unlock+0x22/0x30 [ 29.311999] ? mnt_get_count+0x150/0x150 [ 29.316031] ? find_held_lock+0x35/0x1d0 [ 29.320079] ? task_work_run+0x16c/0x270 [ 29.324110] ? lock_downgrade+0x980/0x980 [ 29.328232] ? lock_release+0xa40/0xa40 [ 29.332179] ? do_raw_spin_trylock+0x190/0x190 [ 29.336731] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.341195] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.346180] ? trace_hardirqs_on+0xd/0x10 [ 29.350305] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.354772] ? task_work_run+0x1f4/0x270 [ 29.358804] ? task_work_cancel+0x210/0x210 [ 29.363094] ? __close_fd+0x222/0x360 [ 29.366874] ? exit_to_usermode_loop+0x8c/0x310 [ 29.371522] do_group_exit+0x149/0x400 [ 29.375380] ? trace_hardirqs_off+0xd/0x10 [ 29.379583] ? exit_to_usermode_loop+0x198/0x310 [ 29.384310] ? SyS_exit+0x30/0x30 [ 29.387734] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.393244] ? do_fast_syscall_32+0x156/0xf9d [ 29.397709] ? do_group_exit+0x400/0x400 [ 29.401739] SyS_exit_group+0x1d/0x20 [ 29.405510] do_fast_syscall_32+0x3ee/0xf9d [ 29.409805] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.414360] ? kasan_check_read+0x11/0x20 [ 29.418479] ? syscall_return_slowpath+0x550/0x550 [ 29.423391] ? SyS_rt_sigaction+0x94/0x1b0 [ 29.427596] ? SyS_sigprocmask+0x4b0/0x4b0 [ 29.431802] ? SyS_read+0x184/0x220 [ 29.435401] ? sysret32_from_system_call+0x5/0x3b [ 29.440222] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.445042] entry_SYSENTER_compat+0x54/0x63 [ 29.449419] RIP: 0023:0xf7f78c79 [ 29.452754] RSP: 002b:00000000ffb7e64c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 29.460431] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 29.467674] RDX: 0000000000000000 RSI: 00000000080d57f8 RDI: 00000000080eb2a0 [ 29.474912] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.482155] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.489394] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.496647] [ 29.498246] Allocated by task 3655: [ 29.501841] save_stack+0x43/0xd0 [ 29.505265] kasan_kmalloc+0xad/0xe0 [ 29.508948] __kmalloc_node+0x47/0x70 [ 29.512717] kvmalloc_node+0x64/0xd0 [ 29.516401] vhost_net_open+0x27/0x670 [ 29.520257] misc_open+0x382/0x500 [ 29.523771] chrdev_open+0x257/0x730 [ 29.527452] do_dentry_open+0x667/0xd40 [ 29.531395] vfs_open+0x107/0x220 [ 29.535216] path_openat+0x1151/0x3530 [ 29.539074] do_filp_open+0x25b/0x3b0 [ 29.542841] do_sys_open+0x502/0x6d0 [ 29.546524] compat_SyS_openat+0x2d/0x40 [ 29.550551] do_fast_syscall_32+0x3ee/0xf9d [ 29.554841] entry_SYSENTER_compat+0x54/0x63 [ 29.559214] [ 29.560809] Freed by task 3655: [ 29.564064] save_stack+0x43/0xd0 [ 29.567489] kasan_slab_free+0x71/0xc0 [ 29.571344] kfree+0xd6/0x260 [ 29.574417] kvfree+0x36/0x60 [ 29.577493] vhost_net_release+0x159/0x190 [ 29.581695] __fput+0x327/0x7e0 [ 29.584943] ____fput+0x15/0x20 [ 29.588208] task_work_run+0x199/0x270 [ 29.592065] exit_to_usermode_loop+0x296/0x310 [ 29.596616] do_fast_syscall_32+0xbfd/0xf9d [ 29.600906] entry_SYSENTER_compat+0x54/0x63 [ 29.605287] [ 29.606884] The buggy address belongs to the object at ffff8801bc020140 [ 29.606884] which belongs to the cache kmalloc-65536 of size 65536 [ 29.619855] The buggy address is located 648 bytes inside of [ 29.619855] 65536-byte region [ffff8801bc020140, ffff8801bc030140) [ 29.631876] The buggy address belongs to the page: [ 29.636772] page:ffffea0006f00800 count:1 mapcount:0 mapping:ffff8801bc020140 index:0x0 compound_mapcount: 0 [ 29.646706] flags: 0x2fffc0000008100(slab|head) [ 29.651346] raw: 02fffc0000008100 ffff8801bc020140 0000000000000000 0000000100000001 [ 29.659196] raw: ffffea00074c1820 ffffea0006f3b020 ffff8801dac02500 0000000000000000 [ 29.667042] page dumped because: kasan: bad access detected [ 29.672721] [ 29.674318] Memory state around the buggy address: [ 29.679215] ffff8801bc020280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.686552] ffff8801bc020300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.693881] >ffff8801bc020380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.701210] ^ [ 29.706891] ffff8801bc020400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.714219] ffff8801bc020480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.721556] ================================================================== [ 29.728881] Disabling lock debugging due to kernel taint [ 29.734295] Kernel panic - not syncing: panic_on_warn set ... [ 29.734295] [ 29.741634] CPU: 1 PID: 3655 Comm: syzkaller940920 Tainted: G B 4.15.0-rc8+ #181 [ 29.750356] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.759677] Call Trace: [ 29.762238] dump_stack+0x194/0x257 [ 29.765843] ? arch_local_irq_restore+0x53/0x53 [ 29.770488] ? kasan_end_report+0x32/0x50 [ 29.774605] ? lock_downgrade+0x980/0x980 [ 29.778723] ? vsnprintf+0x1ed/0x1900 [ 29.782496] ? __wake_up_common+0x610/0x780 [ 29.786785] panic+0x1e4/0x41c [ 29.789945] ? refcount_error_report+0x214/0x214 [ 29.794675] ? add_taint+0x40/0x50 [ 29.798187] ? add_taint+0x1c/0x50 [ 29.801704] ? __wake_up_common+0x670/0x780 [ 29.805995] kasan_end_report+0x50/0x50 [ 29.809937] kasan_report+0x144/0x340 [ 29.813709] __asan_report_load8_noabort+0x14/0x20 [ 29.818609] __wake_up_common+0x670/0x780 [ 29.822730] ? do_wait_intr_irq+0x3e0/0x3e0 [ 29.827019] ? unwind_get_return_address+0x61/0xa0 [ 29.831918] ? check_noncircular+0x20/0x20 [ 29.836123] __wake_up_common_lock+0x1b4/0x310 [ 29.840676] ? locks_remove_file+0x3fa/0x5a0 [ 29.845051] ? __wake_up_common+0x780/0x780 [ 29.849340] ? fcntl_setlk+0x10c0/0x10c0 [ 29.853376] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.857931] ? eventfd_show_fdinfo+0x90/0x90 [ 29.862309] __wake_up+0xe/0x10 [ 29.865556] eventfd_release+0x4a/0x60 [ 29.869412] __fput+0x327/0x7e0 [ 29.872663] ? fput+0x140/0x140 [ 29.875911] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.880376] ____fput+0x15/0x20 [ 29.883636] task_work_run+0x199/0x270 [ 29.887502] ? task_work_cancel+0x210/0x210 [ 29.891791] ? _raw_spin_unlock+0x22/0x30 [ 29.895906] ? switch_task_namespaces+0x87/0xc0 [ 29.900544] do_exit+0x9bb/0x1ad0 [ 29.903984] ? mm_update_next_owner+0x930/0x930 [ 29.908640] ? lock_downgrade+0x980/0x980 [ 29.912760] ? lock_release+0xa40/0xa40 [ 29.916704] ? lock_downgrade+0x980/0x980 [ 29.920822] ? check_noncircular+0x20/0x20 [ 29.925032] ? mntput_no_expire+0x15e/0xa90 [ 29.929325] ? _raw_spin_unlock+0x22/0x30 [ 29.933441] ? mnt_get_count+0x150/0x150 [ 29.937474] ? find_held_lock+0x35/0x1d0 [ 29.941506] ? task_work_run+0x16c/0x270 [ 29.945532] ? lock_downgrade+0x980/0x980 [ 29.949651] ? lock_release+0xa40/0xa40 [ 29.953610] ? do_raw_spin_trylock+0x190/0x190 [ 29.958347] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.962813] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.967798] ? trace_hardirqs_on+0xd/0x10 [ 29.971915] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.976380] ? task_work_run+0x1f4/0x270 [ 29.980410] ? task_work_cancel+0x210/0x210 [ 29.984700] ? __close_fd+0x222/0x360 [ 29.988469] ? exit_to_usermode_loop+0x8c/0x310 [ 29.993106] do_group_exit+0x149/0x400 [ 29.996959] ? trace_hardirqs_off+0xd/0x10 [ 30.001167] ? exit_to_usermode_loop+0x198/0x310 [ 30.005889] ? SyS_exit+0x30/0x30 [ 30.009316] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 30.014821] ? do_fast_syscall_32+0x156/0xf9d [ 30.019282] ? do_group_exit+0x400/0x400 [ 30.023318] SyS_exit_group+0x1d/0x20 [ 30.027088] do_fast_syscall_32+0x3ee/0xf9d [ 30.031381] ? do_int80_syscall_32+0x9d0/0x9d0 [ 30.035935] ? kasan_check_read+0x11/0x20 [ 30.040053] ? syscall_return_slowpath+0x550/0x550 [ 30.044952] ? SyS_rt_sigaction+0x94/0x1b0 [ 30.049156] ? SyS_sigprocmask+0x4b0/0x4b0 [ 30.053357] ? SyS_read+0x184/0x220 [ 30.056954] ? sysret32_from_system_call+0x5/0x3b [ 30.061772] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.066583] entry_SYSENTER_compat+0x54/0x63 [ 30.070963] RIP: 0023:0xf7f78c79 [ 30.074301] RSP: 002b:00000000ffb7e64c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 30.081977] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 30.089222] RDX: 0000000000000000 RSI: 00000000080d57f8 RDI: 00000000080eb2a0 [ 30.096461] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 30.103701] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 30.110943] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 30.118566] Dumping ftrace buffer: [ 30.122074] (ftrace buffer empty) [ 30.125753] Kernel Offset: disabled [ 30.129351] Rebooting in 86400 seconds..