[....] Starting enhanced syslogd: rsyslogd[ 13.289369] audit: type=1400 audit(1516627467.506: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.584537] audit: type=1400 audit(1516627472.801: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.0.37' (ECDSA) to the list of known hosts. [ 24.922439] audit: type=1400 audit(1516627479.139:7): avc: denied { map } for pid=3654 comm="syzkaller587108" path="/root/syzkaller587108333" 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.948443] audit: type=1400 audit(1516627479.139:8): avc: denied { sys_admin } for pid=3654 comm="syzkaller587108" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 executing program executing program executing program [ 25.136677] audit: type=1400 audit(1516627479.353:9): avc: denied { sys_chroot } for pid=3655 comm="syzkaller587108" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 35.935212] ================================================================== [ 35.942628] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 35.949268] Read of size 8 at addr ffff8801b8daa960 by task syzkaller587108/6099 [ 35.956770] [ 35.958376] CPU: 1 PID: 6099 Comm: syzkaller587108 Not tainted 4.15.0-rc9+ #184 [ 35.965791] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.975126] Call Trace: [ 35.977694] dump_stack+0x194/0x257 [ 35.981295] ? arch_local_irq_restore+0x53/0x53 [ 35.985936] ? show_regs_print_info+0x18/0x18 [ 35.990409] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 35.995489] ? __wake_up_common+0x670/0x780 [ 35.999789] print_address_description+0x73/0x250 [ 36.004613] ? __wake_up_common+0x670/0x780 [ 36.008905] kasan_report+0x25b/0x340 [ 36.012682] __asan_report_load8_noabort+0x14/0x20 [ 36.017582] __wake_up_common+0x670/0x780 [ 36.021707] ? do_wait_intr_irq+0x3e0/0x3e0 [ 36.026001] ? lock_release+0xa40/0xa40 [ 36.029947] ? lock_downgrade+0x980/0x980 [ 36.034090] __wake_up_common_lock+0x1b4/0x310 [ 36.038648] ? locks_remove_file+0x3fa/0x5a0 [ 36.043031] ? __wake_up_common+0x780/0x780 [ 36.047320] ? fcntl_setlk+0x10c0/0x10c0 [ 36.051373] ? fsnotify_first_mark+0x2b0/0x2b0 [ 36.055940] ? eventfd_show_fdinfo+0x90/0x90 [ 36.060326] __wake_up+0xe/0x10 [ 36.063578] eventfd_release+0x4a/0x60 [ 36.067438] __fput+0x327/0x7e0 [ 36.070694] ? fput+0x140/0x140 [ 36.073946] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.079801] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.084274] ____fput+0x15/0x20 [ 36.087527] task_work_run+0x199/0x270 [ 36.091390] ? task_work_cancel+0x210/0x210 [ 36.095684] ? _raw_spin_unlock+0x22/0x30 [ 36.099802] ? switch_task_namespaces+0x87/0xc0 [ 36.105254] do_exit+0x9bb/0x1ad0 [ 36.108690] ? lock_downgrade+0x980/0x980 [ 36.112818] ? mm_update_next_owner+0x930/0x930 [ 36.117465] ? do_raw_spin_trylock+0x190/0x190 [ 36.122016] ? do_raw_spin_trylock+0x190/0x190 [ 36.126577] ? trace_hardirqs_off+0xd/0x10 [ 36.130783] ? _raw_spin_unlock_irqrestore+0xa6/0xba [ 36.135871] ? try_to_wake_up+0xf9/0x1600 [ 36.140000] ? find_held_lock+0x35/0x1d0 [ 36.144038] ? check_noncircular+0x20/0x20 [ 36.148248] ? migrate_swap_stop+0x970/0x970 [ 36.152631] ? lock_downgrade+0x980/0x980 [ 36.156763] ? find_held_lock+0x35/0x1d0 [ 36.160805] ? do_group_exit+0x318/0x400 [ 36.164839] ? lock_downgrade+0x980/0x980 [ 36.168960] ? wake_up_state+0xb/0x10 [ 36.172736] ? signal_wake_up_state+0x3a/0x40 [ 36.177206] ? zap_other_threads+0x1ca/0x240 [ 36.181590] ? do_raw_spin_trylock+0x190/0x190 [ 36.186143] ? force_sig+0x30/0x30 [ 36.189662] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.194134] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.199133] do_group_exit+0x149/0x400 [ 36.202991] ? compat_SyS_get_robust_list+0x300/0x300 [ 36.208153] ? SyS_exit+0x30/0x30 [ 36.211578] ? SyS_nanosleep+0x1f0/0x1f0 [ 36.215616] ? do_fast_syscall_32+0x156/0xf9d [ 36.220099] ? do_group_exit+0x400/0x400 [ 36.224134] SyS_exit_group+0x1d/0x20 [ 36.227909] do_fast_syscall_32+0x3ee/0xf9d [ 36.232208] ? do_int80_syscall_32+0x9d0/0x9d0 [ 36.236761] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.241489] ? do_syscall_64+0x920/0x920 [ 36.245523] ? syscall_return_slowpath+0x2ad/0x550 [ 36.250424] ? prepare_exit_to_usermode+0x340/0x340 [ 36.255423] ? sysret32_from_system_call+0x5/0x3b [ 36.260251] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.265072] entry_SYSENTER_compat+0x54/0x63 [ 36.269463] RIP: 0023:0xf7f10c79 [ 36.272809] RSP: 002b:000000000821fdec EFLAGS: 00000206 ORIG_RAX: 00000000000000fc [ 36.280487] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 [ 36.287728] RDX: 000000005af21800 RSI: 0000000000000012 RDI: 00000000080c8ae1 [ 36.294971] RBP: 0000000008074146 R08: 0000000000000000 R09: 0000000000000000 [ 36.302214] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 36.309463] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.316722] [ 36.318320] Allocated by task 6100: [ 36.321920] save_stack+0x43/0xd0 [ 36.325349] kasan_kmalloc+0xad/0xe0 [ 36.329031] __kmalloc_node+0x47/0x70 [ 36.332803] kvmalloc_node+0x64/0xd0 [ 36.336490] vhost_net_open+0x27/0x670 [ 36.340350] misc_open+0x382/0x500 [ 36.343962] chrdev_open+0x257/0x730 [ 36.347644] do_dentry_open+0x667/0xd40 [ 36.351585] vfs_open+0x107/0x220 [ 36.355009] path_openat+0x1151/0x3530 [ 36.358874] do_filp_open+0x25b/0x3b0 [ 36.362647] do_sys_open+0x502/0x6d0 [ 36.366340] compat_SyS_openat+0x2d/0x40 [ 36.370375] do_fast_syscall_32+0x3ee/0xf9d [ 36.374672] entry_SYSENTER_compat+0x54/0x63 [ 36.379049] [ 36.380650] Freed by task 6099: [ 36.383902] save_stack+0x43/0xd0 [ 36.387324] kasan_slab_free+0x71/0xc0 [ 36.391179] kfree+0xd6/0x260 [ 36.394255] kvfree+0x36/0x60 [ 36.397342] vhost_net_release+0x159/0x190 [ 36.401548] __fput+0x327/0x7e0 [ 36.404800] ____fput+0x15/0x20 [ 36.408052] task_work_run+0x199/0x270 [ 36.411913] do_exit+0x9bb/0x1ad0 [ 36.415343] do_group_exit+0x149/0x400 [ 36.419200] SyS_exit_group+0x1d/0x20 [ 36.422988] do_fast_syscall_32+0x3ee/0xf9d [ 36.427290] entry_SYSENTER_compat+0x54/0x63 [ 36.431662] [ 36.433258] The buggy address belongs to the object at ffff8801b8da6080 [ 36.433258] which belongs to the cache kmalloc-65536 of size 65536 [ 36.446230] The buggy address is located 18656 bytes inside of [ 36.446230] 65536-byte region [ffff8801b8da6080, ffff8801b8db6080) [ 36.458425] The buggy address belongs to the page: [ 36.463345] page:ffffea0006e36800 count:1 mapcount:0 mapping:ffff8801b8da6080 index:0x0 compound_mapcount: 0 [ 36.473309] flags: 0x2fffc0000008100(slab|head) [ 36.477954] raw: 02fffc0000008100 ffff8801b8da6080 0000000000000000 0000000100000001 [ 36.485813] raw: ffffea0006e4c820 ffffea0006e49820 ffff8801dac02500 0000000000000000 [ 36.493663] page dumped because: kasan: bad access detected [ 36.499342] [ 36.500945] Memory state around the buggy address: [ 36.505849] ffff8801b8daa800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.513176] ffff8801b8daa880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.520506] >ffff8801b8daa900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.527836] ^ [ 36.534297] ffff8801b8daa980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.541628] ffff8801b8daaa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.548955] ================================================================== [ 36.556283] Disabling lock debugging due to kernel taint [ 36.561699] Kernel panic - not syncing: panic_on_warn set ... [ 36.561699] [ 36.569050] CPU: 1 PID: 6099 Comm: syzkaller587108 Tainted: G B 4.15.0-rc9+ #184 [ 36.577773] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.587105] Call Trace: [ 36.589673] dump_stack+0x194/0x257 [ 36.593283] ? arch_local_irq_restore+0x53/0x53 [ 36.597928] ? kasan_end_report+0x32/0x50 [ 36.602050] ? lock_downgrade+0x980/0x980 [ 36.606172] ? vsnprintf+0x1ed/0x1900 [ 36.609944] ? __wake_up_common+0x670/0x780 [ 36.614235] panic+0x1e4/0x41c [ 36.617405] ? refcount_error_report+0x214/0x214 [ 36.622132] ? add_taint+0x40/0x50 [ 36.625640] ? add_taint+0x1c/0x50 [ 36.629152] ? __wake_up_common+0x670/0x780 [ 36.633444] kasan_end_report+0x50/0x50 [ 36.637389] kasan_report+0x144/0x340 [ 36.641159] __asan_report_load8_noabort+0x14/0x20 [ 36.646061] __wake_up_common+0x670/0x780 [ 36.650185] ? do_wait_intr_irq+0x3e0/0x3e0 [ 36.654486] ? lock_release+0xa40/0xa40 [ 36.658429] ? lock_downgrade+0x980/0x980 [ 36.662559] __wake_up_common_lock+0x1b4/0x310 [ 36.667114] ? locks_remove_file+0x3fa/0x5a0 [ 36.671495] ? __wake_up_common+0x780/0x780 [ 36.675784] ? fcntl_setlk+0x10c0/0x10c0 [ 36.679820] ? fsnotify_first_mark+0x2b0/0x2b0 [ 36.684376] ? eventfd_show_fdinfo+0x90/0x90 [ 36.688754] __wake_up+0xe/0x10 [ 36.692013] eventfd_release+0x4a/0x60 [ 36.695870] __fput+0x327/0x7e0 [ 36.699123] ? fput+0x140/0x140 [ 36.702373] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.708227] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.712696] ____fput+0x15/0x20 [ 36.715948] task_work_run+0x199/0x270 [ 36.719809] ? task_work_cancel+0x210/0x210 [ 36.724101] ? _raw_spin_unlock+0x22/0x30 [ 36.728222] ? switch_task_namespaces+0x87/0xc0 [ 36.732863] do_exit+0x9bb/0x1ad0 [ 36.736298] ? lock_downgrade+0x980/0x980 [ 36.740418] ? mm_update_next_owner+0x930/0x930 [ 36.745069] ? do_raw_spin_trylock+0x190/0x190 [ 36.749627] ? do_raw_spin_trylock+0x190/0x190 [ 36.754192] ? trace_hardirqs_off+0xd/0x10 [ 36.758395] ? _raw_spin_unlock_irqrestore+0xa6/0xba [ 36.763467] ? try_to_wake_up+0xf9/0x1600 [ 36.767592] ? find_held_lock+0x35/0x1d0 [ 36.771624] ? check_noncircular+0x20/0x20 [ 36.775835] ? migrate_swap_stop+0x970/0x970 [ 36.780214] ? lock_downgrade+0x980/0x980 [ 36.784340] ? find_held_lock+0x35/0x1d0 [ 36.788377] ? do_group_exit+0x318/0x400 [ 36.792418] ? lock_downgrade+0x980/0x980 [ 36.796538] ? wake_up_state+0xb/0x10 [ 36.800308] ? signal_wake_up_state+0x3a/0x40 [ 36.804772] ? zap_other_threads+0x1ca/0x240 [ 36.809151] ? do_raw_spin_trylock+0x190/0x190 [ 36.813707] ? force_sig+0x30/0x30 [ 36.817220] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.821684] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.826670] do_group_exit+0x149/0x400 [ 36.830528] ? compat_SyS_get_robust_list+0x300/0x300 [ 36.835687] ? SyS_exit+0x30/0x30 [ 36.839111] ? SyS_nanosleep+0x1f0/0x1f0 [ 36.843317] ? do_fast_syscall_32+0x156/0xf9d [ 36.847782] ? do_group_exit+0x400/0x400 [ 36.851813] SyS_exit_group+0x1d/0x20 [ 36.855583] do_fast_syscall_32+0x3ee/0xf9d [ 36.859879] ? do_int80_syscall_32+0x9d0/0x9d0 [ 36.864436] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.869164] ? do_syscall_64+0x920/0x920 [ 36.873196] ? syscall_return_slowpath+0x2ad/0x550 [ 36.878094] ? prepare_exit_to_usermode+0x340/0x340 [ 36.883081] ? sysret32_from_system_call+0x5/0x3b [ 36.887893] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.892709] entry_SYSENTER_compat+0x54/0x63 [ 36.897085] RIP: 0023:0xf7f10c79 [ 36.900421] RSP: 002b:000000000821fdec EFLAGS: 00000206 ORIG_RAX: 00000000000000fc [ 36.908106] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 [ 36.915347] RDX: 000000005af21800 RSI: 0000000000000012 RDI: 00000000080c8ae1 [ 36.922597] RBP: 0000000008074146 R08: 0000000000000000 R09: 0000000000000000 [ 36.929845] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 36.937099] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.944739] Dumping ftrace buffer: [ 36.948251] (ftrace buffer empty) [ 36.951934] Kernel Offset: disabled [ 36.955618] Rebooting in 86400 seconds..