[....] Starting enhanced syslogd: rsyslogd[ 13.366089] audit: type=1400 audit(1516863604.392:5): avc: denied { syslog } for pid=3512 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.614597] audit: type=1400 audit(1516863609.641:6): avc: denied { map } for pid=3651 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.216' (ECDSA) to the list of known hosts. executing program [ 24.853918] audit: type=1400 audit(1516863615.880:7): avc: denied { map } for pid=3665 comm="syzkaller670605" path="/root/syzkaller670605489" 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.887429] ================================================================== [ 24.894828] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 24.901468] Read of size 8 at addr ffff8801bade4a20 by task syzkaller670605/3665 [ 24.908974] [ 24.910582] CPU: 1 PID: 3665 Comm: syzkaller670605 Not tainted 4.15.0-rc9+ #188 [ 24.917999] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.927334] Call Trace: [ 24.929902] dump_stack+0x194/0x257 [ 24.933520] ? arch_local_irq_restore+0x53/0x53 [ 24.939119] ? show_regs_print_info+0x18/0x18 [ 24.944642] ? __wake_up_common+0x670/0x780 [ 24.948943] print_address_description+0x73/0x250 [ 24.953779] ? __wake_up_common+0x670/0x780 [ 24.958080] kasan_report+0x25b/0x340 [ 24.961864] __asan_report_load8_noabort+0x14/0x20 [ 24.967040] __wake_up_common+0x670/0x780 [ 24.971167] ? do_wait_intr_irq+0x3e0/0x3e0 [ 24.975469] ? unwind_get_return_address+0x61/0xa0 [ 24.980396] ? check_noncircular+0x20/0x20 [ 24.984616] __wake_up_common_lock+0x1b4/0x310 [ 24.989353] ? locks_remove_file+0x3fa/0x5a0 [ 24.993739] ? __wake_up_common+0x780/0x780 [ 24.998039] ? fcntl_setlk+0x10c0/0x10c0 [ 25.002083] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.006643] ? eventfd_show_fdinfo+0x90/0x90 [ 25.011031] __wake_up+0xe/0x10 [ 25.014284] eventfd_release+0x4a/0x60 [ 25.018148] __fput+0x327/0x7e0 [ 25.021408] ? fput+0x140/0x140 [ 25.024669] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.029144] ____fput+0x15/0x20 [ 25.032399] task_work_run+0x199/0x270 [ 25.036268] ? task_work_cancel+0x210/0x210 [ 25.040566] ? _raw_spin_unlock+0x22/0x30 [ 25.044702] ? switch_task_namespaces+0x87/0xc0 [ 25.049351] do_exit+0x9bb/0x1ad0 [ 25.052784] ? mm_update_next_owner+0x930/0x930 [ 25.057429] ? lock_downgrade+0x980/0x980 [ 25.061553] ? lock_release+0xa40/0xa40 [ 25.065501] ? lock_downgrade+0x980/0x980 [ 25.069623] ? check_noncircular+0x20/0x20 [ 25.073844] ? mntput_no_expire+0x15e/0xa90 [ 25.078146] ? _raw_spin_unlock+0x22/0x30 [ 25.082275] ? mnt_get_count+0x150/0x150 [ 25.086315] ? find_held_lock+0x35/0x1d0 [ 25.090619] ? task_work_run+0x16c/0x270 [ 25.094657] ? lock_downgrade+0x980/0x980 [ 25.098801] ? lock_release+0xa40/0xa40 [ 25.102755] ? do_raw_spin_trylock+0x190/0x190 [ 25.107313] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.111788] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.116790] ? trace_hardirqs_on+0xd/0x10 [ 25.120916] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.125385] ? task_work_run+0x1f4/0x270 [ 25.129421] ? task_work_cancel+0x210/0x210 [ 25.133717] ? vmacache_find+0x5f/0x280 [ 25.137664] ? exit_to_usermode_loop+0x8c/0x310 [ 25.143092] do_group_exit+0x149/0x400 [ 25.146950] ? trace_hardirqs_off+0xd/0x10 [ 25.151169] ? exit_to_usermode_loop+0x198/0x310 [ 25.155898] ? SyS_exit+0x30/0x30 [ 25.159329] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.166231] ? do_fast_syscall_32+0x156/0xf9d [ 25.170706] ? do_group_exit+0x400/0x400 [ 25.174835] SyS_exit_group+0x1d/0x20 [ 25.178874] do_fast_syscall_32+0x3ee/0xf9d [ 25.185180] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.189747] ? kasan_check_read+0x11/0x20 [ 25.193881] ? syscall_return_slowpath+0x550/0x550 [ 25.198800] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.203020] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.207235] ? SyS_read+0x184/0x220 [ 25.212317] ? sysret32_from_system_call+0x5/0x3b [ 25.218272] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.223103] entry_SYSENTER_compat+0x54/0x63 [ 25.227490] RIP: 0023:0xf7fccc79 [ 25.230828] RSP: 002b:00000000ff8e21dc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.239390] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 25.246634] RDX: 0000000000000000 RSI: 00000000080d5818 RDI: 00000000080eb2a0 [ 25.255444] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.262696] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.269947] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.277216] [ 25.278822] Allocated by task 3665: [ 25.282432] save_stack+0x43/0xd0 [ 25.285867] kasan_kmalloc+0xad/0xe0 [ 25.289552] __kmalloc_node+0x47/0x70 [ 25.293325] kvmalloc_node+0x64/0xd0 [ 25.297016] vhost_net_open+0x27/0x670 [ 25.300882] misc_open+0x382/0x500 [ 25.304396] chrdev_open+0x257/0x730 [ 25.308083] do_dentry_open+0x667/0xd40 [ 25.312034] vfs_open+0x107/0x220 [ 25.315481] path_openat+0x1151/0x3530 [ 25.319342] do_filp_open+0x25b/0x3b0 [ 25.323114] do_sys_open+0x502/0x6d0 [ 25.326799] compat_SyS_openat+0x2d/0x40 [ 25.330844] do_fast_syscall_32+0x3ee/0xf9d [ 25.335150] entry_SYSENTER_compat+0x54/0x63 [ 25.339529] [ 25.341137] Freed by task 3665: [ 25.344394] save_stack+0x43/0xd0 [ 25.347820] kasan_slab_free+0x71/0xc0 [ 25.351683] kfree+0xd6/0x260 [ 25.354766] kvfree+0x36/0x60 [ 25.357854] vhost_net_release+0x159/0x190 [ 25.362162] __fput+0x327/0x7e0 [ 25.365418] ____fput+0x15/0x20 [ 25.368679] task_work_run+0x199/0x270 [ 25.372555] exit_to_usermode_loop+0x296/0x310 [ 25.377118] do_fast_syscall_32+0xbfd/0xf9d [ 25.381417] entry_SYSENTER_compat+0x54/0x63 [ 25.385810] [ 25.387414] The buggy address belongs to the object at ffff8801bade0140 [ 25.387414] which belongs to the cache kmalloc-65536 of size 65536 [ 25.400409] The buggy address is located 18656 bytes inside of [ 25.400409] 65536-byte region [ffff8801bade0140, ffff8801badf0140) [ 25.412961] The buggy address belongs to the page: [ 25.417886] page:ffffea0006eb7800 count:1 mapcount:0 mapping:ffff8801bade0140 index:0x0 compound_mapcount: 0 [ 25.427838] flags: 0x2fffc0000008100(slab|head) [ 25.432486] raw: 02fffc0000008100 ffff8801bade0140 0000000000000000 0000000100000001 [ 25.440356] raw: ffffea00074c4020 ffffea0006efe820 ffff8801dac02500 0000000000000000 [ 25.448213] page dumped because: kasan: bad access detected [ 25.454346] [ 25.456381] Memory state around the buggy address: [ 25.463793] ffff8801bade4900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.471134] ffff8801bade4980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.478478] >ffff8801bade4a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.485820] ^ [ 25.490207] ffff8801bade4a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.498156] ffff8801bade4b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.505493] ================================================================== [ 25.513196] Disabling lock debugging due to kernel taint [ 25.518628] Kernel panic - not syncing: panic_on_warn set ... [ 25.518628] [ 25.525969] CPU: 1 PID: 3665 Comm: syzkaller670605 Tainted: G B 4.15.0-rc9+ #188 [ 25.534693] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.544038] Call Trace: [ 25.546624] dump_stack+0x194/0x257 [ 25.550230] ? arch_local_irq_restore+0x53/0x53 [ 25.554878] ? kasan_end_report+0x32/0x50 [ 25.559005] ? lock_downgrade+0x980/0x980 [ 25.563146] ? vsnprintf+0x1ed/0x1900 [ 25.566923] ? __wake_up_common+0x670/0x780 [ 25.571227] panic+0x1e4/0x41c [ 25.574402] ? refcount_error_report+0x214/0x214 [ 25.579140] ? add_taint+0x40/0x50 [ 25.582655] ? add_taint+0x1c/0x50 [ 25.586176] ? __wake_up_common+0x670/0x780 [ 25.590480] kasan_end_report+0x50/0x50 [ 25.594864] kasan_report+0x144/0x340 [ 25.598820] __asan_report_load8_noabort+0x14/0x20 [ 25.604255] __wake_up_common+0x670/0x780 [ 25.608641] ? do_wait_intr_irq+0x3e0/0x3e0 [ 25.612971] ? unwind_get_return_address+0x61/0xa0 [ 25.618310] ? check_noncircular+0x20/0x20 [ 25.624840] __wake_up_common_lock+0x1b4/0x310 [ 25.629849] ? locks_remove_file+0x3fa/0x5a0 [ 25.634241] ? __wake_up_common+0x780/0x780 [ 25.638550] ? fcntl_setlk+0x10c0/0x10c0 [ 25.642605] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.647167] ? eventfd_show_fdinfo+0x90/0x90 [ 25.651554] __wake_up+0xe/0x10 [ 25.654824] eventfd_release+0x4a/0x60 [ 25.658961] __fput+0x327/0x7e0 [ 25.662225] ? fput+0x140/0x140 [ 25.665483] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.669960] ____fput+0x15/0x20 [ 25.673775] task_work_run+0x199/0x270 [ 25.677638] ? task_work_cancel+0x210/0x210 [ 25.681961] ? _raw_spin_unlock+0x22/0x30 [ 25.686087] ? switch_task_namespaces+0x87/0xc0 [ 25.690751] do_exit+0x9bb/0x1ad0 [ 25.694188] ? mm_update_next_owner+0x930/0x930 [ 25.698830] ? lock_downgrade+0x980/0x980 [ 25.702980] ? lock_release+0xa40/0xa40 [ 25.706929] ? lock_downgrade+0x980/0x980 [ 25.711057] ? check_noncircular+0x20/0x20 [ 25.715276] ? mntput_no_expire+0x15e/0xa90 [ 25.719837] ? _raw_spin_unlock+0x22/0x30 [ 25.724225] ? mnt_get_count+0x150/0x150 [ 25.728262] ? find_held_lock+0x35/0x1d0 [ 25.732315] ? task_work_run+0x16c/0x270 [ 25.736357] ? lock_downgrade+0x980/0x980 [ 25.740490] ? lock_release+0xa40/0xa40 [ 25.744788] ? do_raw_spin_trylock+0x190/0x190 [ 25.749357] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.753842] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.758837] ? trace_hardirqs_on+0xd/0x10 [ 25.762975] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.767452] ? task_work_run+0x1f4/0x270 [ 25.771491] ? task_work_cancel+0x210/0x210 [ 25.775798] ? vmacache_find+0x5f/0x280 [ 25.779752] ? exit_to_usermode_loop+0x8c/0x310 [ 25.784399] do_group_exit+0x149/0x400 [ 25.788870] ? trace_hardirqs_off+0xd/0x10 [ 25.793433] ? exit_to_usermode_loop+0x198/0x310 [ 25.798172] ? SyS_exit+0x30/0x30 [ 25.801604] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.807120] ? do_fast_syscall_32+0x156/0xf9d [ 25.811591] ? do_group_exit+0x400/0x400 [ 25.815985] SyS_exit_group+0x1d/0x20 [ 25.819766] do_fast_syscall_32+0x3ee/0xf9d [ 25.824069] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.828629] ? kasan_check_read+0x11/0x20 [ 25.832755] ? syscall_return_slowpath+0x550/0x550 [ 25.837706] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.841937] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.846147] ? SyS_read+0x184/0x220 [ 25.849754] ? sysret32_from_system_call+0x5/0x3b [ 25.854577] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.859408] entry_SYSENTER_compat+0x54/0x63 [ 25.864406] RIP: 0023:0xf7fccc79 [ 25.867744] RSP: 002b:00000000ff8e21dc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.875428] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 25.883802] RDX: 0000000000000000 RSI: 00000000080d5818 RDI: 00000000080eb2a0 [ 25.891223] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.898469] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.905714] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.913781] Dumping ftrace buffer: [ 25.917318] (ftrace buffer empty) [ 25.921016] Kernel Offset: disabled [ 25.924622] Rebooting in 86400 seconds..