[....] Starting enhanced syslogd: rsyslogd[ 12.702287] audit: type=1400 audit(1516706197.934:5): avc: denied { syslog } for pid=3501 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: [ 19.783993] audit: type=1400 audit(1516706205.016:6): avc: denied { map } for pid=3639 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.6' (ECDSA) to the list of known hosts. executing program executing program executing program executing program [ 26.059637] audit: type=1400 audit(1516706211.292:7): avc: denied { map } for pid=3653 comm="syzkaller539070" path="/root/syzkaller539070753" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 27.746164] ================================================================== [ 27.753560] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 27.760197] Read of size 8 at addr ffff8801b898b7a0 by task syzkaller539070/4201 [ 27.767696] [ 27.769299] CPU: 0 PID: 4201 Comm: syzkaller539070 Not tainted 4.15.0-rc9+ #275 [ 27.776715] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.786042] Call Trace: [ 27.788611] dump_stack+0x194/0x257 [ 27.792213] ? arch_local_irq_restore+0x53/0x53 [ 27.796857] ? show_regs_print_info+0x18/0x18 [ 27.801334] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 27.806413] ? __wake_up_common+0x670/0x780 [ 27.810714] print_address_description+0x73/0x250 [ 27.815534] ? __wake_up_common+0x670/0x780 [ 27.819832] kasan_report+0x25b/0x340 [ 27.823611] __asan_report_load8_noabort+0x14/0x20 [ 27.828516] __wake_up_common+0x670/0x780 [ 27.832645] ? do_wait_intr_irq+0x3e0/0x3e0 [ 27.836968] ? lock_release+0xa40/0xa40 [ 27.841030] ? lock_downgrade+0x980/0x980 [ 27.845180] __wake_up_common_lock+0x1b4/0x310 [ 27.849840] ? locks_remove_file+0x3fa/0x5a0 [ 27.854238] ? __wake_up_common+0x780/0x780 [ 27.858546] ? fcntl_setlk+0x10c0/0x10c0 [ 27.862607] ? fsnotify_first_mark+0x2b0/0x2b0 [ 27.867179] ? eventfd_show_fdinfo+0x90/0x90 [ 27.871568] __wake_up+0xe/0x10 [ 27.874826] eventfd_release+0x4a/0x60 [ 27.878695] __fput+0x327/0x7e0 [ 27.881966] ? fput+0x140/0x140 [ 27.885235] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.891099] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.895581] ____fput+0x15/0x20 [ 27.898842] task_work_run+0x199/0x270 [ 27.902712] ? task_work_cancel+0x210/0x210 [ 27.907015] ? _raw_spin_unlock+0x22/0x30 [ 27.911146] ? switch_task_namespaces+0x87/0xc0 [ 27.915812] do_exit+0x9bb/0x1ad0 [ 27.919254] ? mm_update_next_owner+0x930/0x930 [ 27.923900] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.929066] ? __might_sleep+0x95/0x190 [ 27.933037] ? find_held_lock+0x35/0x1d0 [ 27.937078] ? __pv_queued_spin_lock_slowpath+0x1480/0x1480 [ 27.942766] ? futex_wait+0x402/0x9a0 [ 27.946541] ? lock_downgrade+0x980/0x980 [ 27.950660] ? __unqueue_futex+0x1c0/0x290 [ 27.954865] ? lock_release+0xa40/0xa40 [ 27.958814] ? fault_in_user_writeable+0x90/0x90 [ 27.963545] ? do_raw_spin_trylock+0x190/0x190 [ 27.968100] ? futex_wake+0x680/0x680 [ 27.971873] ? check_noncircular+0x20/0x20 [ 27.976084] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 27.981159] ? futex_wait+0x6a9/0x9a0 [ 27.984944] ? find_held_lock+0x35/0x1d0 [ 27.988987] ? retint_kernel+0x10/0x10 [ 27.992848] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.997837] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.002574] do_group_exit+0x149/0x400 [ 28.006439] ? SyS_exit+0x30/0x30 [ 28.009872] ? _raw_spin_unlock_irq+0x56/0x70 [ 28.014342] get_signal+0x73f/0x16c0 [ 28.018053] ? ptrace_notify+0x130/0x130 [ 28.022098] ? exit_robust_list+0x240/0x240 [ 28.026394] ? avc_has_extended_perms+0x7fa/0x12c0 [ 28.031296] ? find_held_lock+0x35/0x1d0 [ 28.035341] ? vhost_net_stop_vq+0xf0/0xf0 [ 28.039555] ? avc_ss_reset+0x110/0x110 [ 28.043500] ? lock_downgrade+0x980/0x980 [ 28.047637] do_signal+0x90/0x1eb0 [ 28.051157] ? __lock_is_held+0xb6/0x140 [ 28.055196] ? setup_sigcontext+0x7d0/0x7d0 [ 28.059512] ? rcu_note_context_switch+0x710/0x710 [ 28.064423] ? exit_to_usermode_loop+0x8c/0x310 [ 28.069071] exit_to_usermode_loop+0x214/0x310 [ 28.073632] ? ioctl_preallocate+0x2b0/0x2b0 [ 28.078032] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 28.083552] ? selinux_capable+0x40/0x40 [ 28.087594] syscall_return_slowpath+0x490/0x550 [ 28.092321] ? prepare_exit_to_usermode+0x340/0x340 [ 28.097310] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 28.102214] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.107201] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.111933] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 28.116659] RIP: 0033:0x446a59 [ 28.119817] RSP: 002b:00007f5010e6dcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 28.127493] RAX: fffffffffffffe00 RBX: 00000000006dcc24 RCX: 0000000000446a59 [ 28.134733] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006dcc24 [ 28.141976] RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000 [ 28.149214] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 28.156454] R13: 00007fff33b298af R14: 00007f5010e6e9c0 R15: 0000000000000007 [ 28.163707] [ 28.165309] Allocated by task 4201: [ 28.168908] save_stack+0x43/0xd0 [ 28.172330] kasan_kmalloc+0xad/0xe0 [ 28.176019] __kmalloc_node+0x47/0x70 [ 28.179795] kvmalloc_node+0x64/0xd0 [ 28.183479] vhost_net_open+0x27/0x670 [ 28.187337] misc_open+0x382/0x500 [ 28.190849] chrdev_open+0x257/0x730 [ 28.194533] do_dentry_open+0x667/0xd40 [ 28.198477] vfs_open+0x107/0x220 [ 28.201902] path_openat+0x1151/0x3530 [ 28.205757] do_filp_open+0x25b/0x3b0 [ 28.209526] do_sys_open+0x502/0x6d0 [ 28.213210] SyS_openat+0x30/0x40 [ 28.216637] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 28.221362] [ 28.222962] Freed by task 4201: [ 28.226213] save_stack+0x43/0xd0 [ 28.229633] kasan_slab_free+0x71/0xc0 [ 28.233490] kfree+0xd6/0x260 [ 28.236575] kvfree+0x36/0x60 [ 28.239651] vhost_net_release+0x159/0x190 [ 28.243857] __fput+0x327/0x7e0 [ 28.247109] ____fput+0x15/0x20 [ 28.250361] task_work_run+0x199/0x270 [ 28.254221] do_exit+0x9bb/0x1ad0 [ 28.257645] do_group_exit+0x149/0x400 [ 28.261502] get_signal+0x73f/0x16c0 [ 28.265187] do_signal+0x90/0x1eb0 [ 28.268699] exit_to_usermode_loop+0x214/0x310 [ 28.273249] syscall_return_slowpath+0x490/0x550 [ 28.277977] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 28.282699] [ 28.284301] The buggy address belongs to the object at ffff8801b8986ec0 [ 28.284301] which belongs to the cache kmalloc-65536 of size 65536 [ 28.297274] The buggy address is located 18656 bytes inside of [ 28.297274] 65536-byte region [ffff8801b8986ec0, ffff8801b8996ec0) [ 28.309464] The buggy address belongs to the page: [ 28.314364] page:ffffea0006e26000 count:1 mapcount:0 mapping:ffff8801b8986ec0 index:0x0 compound_mapcount: 0 [ 28.324301] flags: 0x2fffc0000008100(slab|head) [ 28.328941] raw: 02fffc0000008100 ffff8801b8986ec0 0000000000000000 0000000100000001 [ 28.336796] raw: ffffea0006e25820 ffffea0006e26820 ffff8801dac02500 0000000000000000 [ 28.344642] page dumped because: kasan: bad access detected [ 28.350318] [ 28.351917] Memory state around the buggy address: [ 28.356818] ffff8801b898b680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.364148] ffff8801b898b700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.371476] >ffff8801b898b780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.378805] ^ [ 28.383183] ffff8801b898b800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.390523] ffff8801b898b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.397849] ================================================================== [ 28.405179] Disabling lock debugging due to kernel taint [ 28.410594] Kernel panic - not syncing: panic_on_warn set ... [ 28.410594] [ 28.417924] CPU: 0 PID: 4201 Comm: syzkaller539070 Tainted: G B 4.15.0-rc9+ #275 [ 28.426641] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.435962] Call Trace: [ 28.438525] dump_stack+0x194/0x257 [ 28.442123] ? arch_local_irq_restore+0x53/0x53 [ 28.446764] ? kasan_end_report+0x32/0x50 [ 28.450885] ? lock_downgrade+0x980/0x980 [ 28.455003] ? vsnprintf+0x1ed/0x1900 [ 28.458785] ? __wake_up_common+0x670/0x780 [ 28.463078] panic+0x1e4/0x41c [ 28.466242] ? refcount_error_report+0x214/0x214 [ 28.470969] ? add_taint+0x40/0x50 [ 28.474478] ? add_taint+0x1c/0x50 [ 28.477996] ? __wake_up_common+0x670/0x780 [ 28.482293] kasan_end_report+0x50/0x50 [ 28.486238] kasan_report+0x144/0x340 [ 28.490014] __asan_report_load8_noabort+0x14/0x20 [ 28.494919] __wake_up_common+0x670/0x780 [ 28.499049] ? do_wait_intr_irq+0x3e0/0x3e0 [ 28.503341] ? lock_release+0xa40/0xa40 [ 28.507285] ? lock_downgrade+0x980/0x980 [ 28.511409] __wake_up_common_lock+0x1b4/0x310 [ 28.515960] ? locks_remove_file+0x3fa/0x5a0 [ 28.520338] ? __wake_up_common+0x780/0x780 [ 28.524625] ? fcntl_setlk+0x10c0/0x10c0 [ 28.528660] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.533216] ? eventfd_show_fdinfo+0x90/0x90 [ 28.537593] __wake_up+0xe/0x10 [ 28.540841] eventfd_release+0x4a/0x60 [ 28.544704] __fput+0x327/0x7e0 [ 28.547954] ? fput+0x140/0x140 [ 28.551206] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.557062] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.561531] ____fput+0x15/0x20 [ 28.564782] task_work_run+0x199/0x270 [ 28.568641] ? task_work_cancel+0x210/0x210 [ 28.572937] ? _raw_spin_unlock+0x22/0x30 [ 28.577054] ? switch_task_namespaces+0x87/0xc0 [ 28.581701] do_exit+0x9bb/0x1ad0 [ 28.585125] ? mm_update_next_owner+0x930/0x930 [ 28.589765] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.594923] ? __might_sleep+0x95/0x190 [ 28.598870] ? find_held_lock+0x35/0x1d0 [ 28.602904] ? __pv_queued_spin_lock_slowpath+0x1480/0x1480 [ 28.608586] ? futex_wait+0x402/0x9a0 [ 28.612361] ? lock_downgrade+0x980/0x980 [ 28.616477] ? __unqueue_futex+0x1c0/0x290 [ 28.620678] ? lock_release+0xa40/0xa40 [ 28.624624] ? fault_in_user_writeable+0x90/0x90 [ 28.629352] ? do_raw_spin_trylock+0x190/0x190 [ 28.633902] ? futex_wake+0x680/0x680 [ 28.637671] ? check_noncircular+0x20/0x20 [ 28.641877] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 28.646956] ? futex_wait+0x6a9/0x9a0 [ 28.650732] ? find_held_lock+0x35/0x1d0 [ 28.654766] ? retint_kernel+0x10/0x10 [ 28.658623] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.663610] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.668340] do_group_exit+0x149/0x400 [ 28.672201] ? SyS_exit+0x30/0x30 [ 28.675627] ? _raw_spin_unlock_irq+0x56/0x70 [ 28.680097] get_signal+0x73f/0x16c0 [ 28.683784] ? ptrace_notify+0x130/0x130 [ 28.687819] ? exit_robust_list+0x240/0x240 [ 28.692112] ? avc_has_extended_perms+0x7fa/0x12c0 [ 28.697011] ? find_held_lock+0x35/0x1d0 [ 28.701054] ? vhost_net_stop_vq+0xf0/0xf0 [ 28.705259] ? avc_ss_reset+0x110/0x110 [ 28.709201] ? lock_downgrade+0x980/0x980 [ 28.713322] do_signal+0x90/0x1eb0 [ 28.716833] ? __lock_is_held+0xb6/0x140 [ 28.720869] ? setup_sigcontext+0x7d0/0x7d0 [ 28.725174] ? rcu_note_context_switch+0x710/0x710 [ 28.730079] ? exit_to_usermode_loop+0x8c/0x310 [ 28.734721] exit_to_usermode_loop+0x214/0x310 [ 28.739275] ? ioctl_preallocate+0x2b0/0x2b0 [ 28.743652] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 28.749158] ? selinux_capable+0x40/0x40 [ 28.753193] syscall_return_slowpath+0x490/0x550 [ 28.757922] ? prepare_exit_to_usermode+0x340/0x340 [ 28.762912] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 28.767818] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.772803] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.777529] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 28.782252] RIP: 0033:0x446a59 [ 28.785413] RSP: 002b:00007f5010e6dcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 28.793088] RAX: fffffffffffffe00 RBX: 00000000006dcc24 RCX: 0000000000446a59 [ 28.800327] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006dcc24 [ 28.807567] RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000 [ 28.814804] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 28.822046] R13: 00007fff33b298af R14: 00007f5010e6e9c0 R15: 0000000000000007 [ 28.829705] Dumping ftrace buffer: [ 28.833216] (ftrace buffer empty) [ 28.836893] Kernel Offset: disabled [ 28.840494] Rebooting in 86400 seconds..