[....] Starting enhanced syslogd: rsyslogd[ 13.311054] audit: type=1400 audit(1516984601.805:5): avc: denied { syslog } for pid=3511 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.560578] audit: type=1400 audit(1516984608.055:6): avc: denied { map } for pid=3649 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.5' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 25.827868] audit: type=1400 audit(1516984614.322:7): avc: denied { map } for pid=3663 comm="syzkaller102362" path="/root/syzkaller102362088" 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 [ 26.176327] ================================================================== [ 26.183792] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 26.190460] Read of size 8 at addr ffff8801cf0473a0 by task syzkaller102362/3868 [ 26.197999] [ 26.199629] CPU: 1 PID: 3868 Comm: syzkaller102362 Not tainted 4.15.0-rc9+ #281 [ 26.207069] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.216421] Call Trace: [ 26.219025] dump_stack+0x194/0x257 [ 26.222651] ? arch_local_irq_restore+0x53/0x53 [ 26.227301] ? show_regs_print_info+0x18/0x18 [ 26.231779] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 26.236865] ? __wake_up_common+0x670/0x780 [ 26.241169] print_address_description+0x73/0x250 [ 26.245993] ? __wake_up_common+0x670/0x780 [ 26.250303] kasan_report+0x25b/0x340 [ 26.254097] __asan_report_load8_noabort+0x14/0x20 [ 26.259018] __wake_up_common+0x670/0x780 [ 26.263159] ? do_wait_intr_irq+0x3e0/0x3e0 [ 26.267473] ? lock_release+0xa40/0xa40 [ 26.271426] ? lock_downgrade+0x980/0x980 [ 26.275586] __wake_up_common_lock+0x1b4/0x310 [ 26.280159] ? locks_remove_file+0x3fa/0x5a0 [ 26.284551] ? __wake_up_common+0x780/0x780 [ 26.288854] ? fcntl_setlk+0x10c0/0x10c0 [ 26.292917] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.297498] ? eventfd_show_fdinfo+0x90/0x90 [ 26.301911] __wake_up+0xe/0x10 [ 26.305191] eventfd_release+0x4a/0x60 [ 26.309065] __fput+0x327/0x7e0 [ 26.312326] ? fput+0x140/0x140 [ 26.315583] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.321448] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.325928] ____fput+0x15/0x20 [ 26.329191] task_work_run+0x199/0x270 [ 26.333059] ? task_work_cancel+0x210/0x210 [ 26.337362] ? _raw_spin_unlock+0x22/0x30 [ 26.341500] ? switch_task_namespaces+0x87/0xc0 [ 26.346153] do_exit+0x9bb/0x1ad0 [ 26.349591] ? mm_update_next_owner+0x930/0x930 [ 26.354243] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.359413] ? __might_sleep+0x95/0x190 [ 26.363381] ? find_held_lock+0x35/0x1d0 [ 26.367436] ? futex_wait+0x402/0x9a0 [ 26.371218] ? lock_downgrade+0x980/0x980 [ 26.375351] ? __unqueue_futex+0x1c0/0x290 [ 26.379565] ? lock_release+0xa40/0xa40 [ 26.383527] ? fault_in_user_writeable+0x90/0x90 [ 26.388273] ? do_raw_spin_trylock+0x190/0x190 [ 26.392839] ? futex_wake+0x680/0x680 [ 26.396624] ? check_noncircular+0x20/0x20 [ 26.400842] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 26.405922] ? futex_wait+0x6a9/0x9a0 [ 26.409714] ? find_held_lock+0x35/0x1d0 [ 26.413764] ? get_signal+0x7ae/0x16c0 [ 26.417639] ? lock_downgrade+0x980/0x980 [ 26.421778] do_group_exit+0x149/0x400 [ 26.425650] ? do_raw_spin_trylock+0x190/0x190 [ 26.430218] ? SyS_exit+0x30/0x30 [ 26.433668] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.438157] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.443163] get_signal+0x73f/0x16c0 [ 26.446879] ? ptrace_notify+0x130/0x130 [ 26.450930] ? exit_robust_list+0x240/0x240 [ 26.455237] ? avc_has_extended_perms+0x7fa/0x12c0 [ 26.460153] ? find_held_lock+0x35/0x1d0 [ 26.464201] ? vhost_net_stop_vq+0xf0/0xf0 [ 26.468418] ? avc_ss_reset+0x110/0x110 [ 26.472374] ? lock_downgrade+0x980/0x980 [ 26.476520] do_signal+0x90/0x1eb0 [ 26.480052] ? __lock_is_held+0xb6/0x140 [ 26.484117] ? setup_sigcontext+0x7d0/0x7d0 [ 26.488454] ? rcu_note_context_switch+0x710/0x710 [ 26.493382] ? exit_to_usermode_loop+0x8c/0x310 [ 26.498052] exit_to_usermode_loop+0x214/0x310 [ 26.502611] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.507041] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 26.512568] ? selinux_capable+0x40/0x40 [ 26.516619] syscall_return_slowpath+0x490/0x550 [ 26.521361] ? prepare_exit_to_usermode+0x340/0x340 [ 26.526362] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 26.531279] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.536275] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.541024] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 26.545764] RIP: 0033:0x445d89 [ 26.548928] RSP: 002b:00007fb864a5eda8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 26.556614] RAX: fffffffffffffe00 RBX: 00000000006dbc24 RCX: 0000000000445d89 [ 26.563864] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006dbc24 [ 26.571128] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 26.578376] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc20 [ 26.585628] R13: 6f68762f7665642f R14: 00007fb864a5f9c0 R15: 0000000000000007 [ 26.592895] [ 26.594503] Allocated by task 3868: [ 26.598114] save_stack+0x43/0xd0 [ 26.601548] kasan_kmalloc+0xad/0xe0 [ 26.605245] __kmalloc_node+0x47/0x70 [ 26.609032] kvmalloc_node+0x64/0xd0 [ 26.612728] vhost_net_open+0x27/0x670 [ 26.616592] misc_open+0x382/0x500 [ 26.620112] chrdev_open+0x257/0x730 [ 26.623802] do_dentry_open+0x667/0xd40 [ 26.627749] vfs_open+0x107/0x220 [ 26.631185] path_openat+0x1151/0x3530 [ 26.635056] do_filp_open+0x25b/0x3b0 [ 26.638838] do_sys_open+0x502/0x6d0 [ 26.642533] SyS_openat+0x30/0x40 [ 26.645959] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.650688] [ 26.652303] Freed by task 3868: [ 26.655571] save_stack+0x43/0xd0 [ 26.659005] kasan_slab_free+0x71/0xc0 [ 26.662870] kfree+0xd6/0x260 [ 26.665963] kvfree+0x36/0x60 [ 26.669049] vhost_net_release+0x159/0x190 [ 26.673260] __fput+0x327/0x7e0 [ 26.676513] ____fput+0x15/0x20 [ 26.679769] task_work_run+0x199/0x270 [ 26.683636] do_exit+0x9bb/0x1ad0 [ 26.687073] do_group_exit+0x149/0x400 [ 26.690942] get_signal+0x73f/0x16c0 [ 26.694633] do_signal+0x90/0x1eb0 [ 26.698158] exit_to_usermode_loop+0x214/0x310 [ 26.702723] syscall_return_slowpath+0x490/0x550 [ 26.707456] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 26.712187] [ 26.713796] The buggy address belongs to the object at ffff8801cf042ac0 [ 26.713796] which belongs to the cache kmalloc-65536 of size 65536 [ 26.726880] The buggy address is located 18656 bytes inside of [ 26.726880] 65536-byte region [ffff8801cf042ac0, ffff8801cf052ac0) [ 26.739082] The buggy address belongs to the page: [ 26.743993] page:ffffea00073c1000 count:1 mapcount:0 mapping:ffff8801cf042ac0 index:0x0 compound_mapcount: 0 [ 26.753950] flags: 0x2fffc0000008100(slab|head) [ 26.758607] raw: 02fffc0000008100 ffff8801cf042ac0 0000000000000000 0000000100000001 [ 26.766482] raw: ffffea00073c0820 ffffea00073c1820 ffff8801dac02500 0000000000000000 [ 26.774343] page dumped because: kasan: bad access detected [ 26.780037] [ 26.781651] Memory state around the buggy address: [ 26.786565] ffff8801cf047280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.794580] ffff8801cf047300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.801920] >ffff8801cf047380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.809265] ^ [ 26.813667] ffff8801cf047400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.821008] ffff8801cf047480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.828350] ================================================================== [ 26.835683] Disabling lock debugging due to kernel taint [ 26.841119] Kernel panic - not syncing: panic_on_warn set ... [ 26.841119] [ 26.848470] CPU: 1 PID: 3868 Comm: syzkaller102362 Tainted: G B 4.15.0-rc9+ #281 [ 26.857206] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.866546] Call Trace: [ 26.869124] dump_stack+0x194/0x257 [ 26.872731] ? arch_local_irq_restore+0x53/0x53 [ 26.877384] ? kasan_end_report+0x32/0x50 [ 26.881522] ? lock_downgrade+0x980/0x980 [ 26.885644] ? vsnprintf+0x1ed/0x1900 [ 26.889420] ? __wake_up_common+0x670/0x780 [ 26.893716] panic+0x1e4/0x41c [ 26.896892] ? refcount_error_report+0x214/0x214 [ 26.901629] ? add_taint+0x40/0x50 [ 26.905146] ? add_taint+0x1c/0x50 [ 26.908663] ? __wake_up_common+0x670/0x780 [ 26.912958] kasan_end_report+0x50/0x50 [ 26.916909] kasan_report+0x144/0x340 [ 26.920690] __asan_report_load8_noabort+0x14/0x20 [ 26.925599] __wake_up_common+0x670/0x780 [ 26.929727] ? do_wait_intr_irq+0x3e0/0x3e0 [ 26.934033] ? lock_release+0xa40/0xa40 [ 26.937989] ? lock_downgrade+0x980/0x980 [ 26.942128] __wake_up_common_lock+0x1b4/0x310 [ 26.946711] ? locks_remove_file+0x3fa/0x5a0 [ 26.951107] ? __wake_up_common+0x780/0x780 [ 26.955404] ? fcntl_setlk+0x10c0/0x10c0 [ 26.959449] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.964033] ? eventfd_show_fdinfo+0x90/0x90 [ 26.968433] __wake_up+0xe/0x10 [ 26.971695] eventfd_release+0x4a/0x60 [ 26.975561] __fput+0x327/0x7e0 [ 26.978823] ? fput+0x140/0x140 [ 26.982081] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.987957] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.992436] ____fput+0x15/0x20 [ 26.995692] task_work_run+0x199/0x270 [ 26.999556] ? task_work_cancel+0x210/0x210 [ 27.003869] ? _raw_spin_unlock+0x22/0x30 [ 27.007999] ? switch_task_namespaces+0x87/0xc0 [ 27.012653] do_exit+0x9bb/0x1ad0 [ 27.016091] ? mm_update_next_owner+0x930/0x930 [ 27.020739] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.025906] ? __might_sleep+0x95/0x190 [ 27.029862] ? find_held_lock+0x35/0x1d0 [ 27.033906] ? futex_wait+0x402/0x9a0 [ 27.037681] ? lock_downgrade+0x980/0x980 [ 27.041803] ? __unqueue_futex+0x1c0/0x290 [ 27.046012] ? lock_release+0xa40/0xa40 [ 27.049964] ? fault_in_user_writeable+0x90/0x90 [ 27.054694] ? do_raw_spin_trylock+0x190/0x190 [ 27.059249] ? futex_wake+0x680/0x680 [ 27.063030] ? check_noncircular+0x20/0x20 [ 27.067248] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 27.072330] ? futex_wait+0x6a9/0x9a0 [ 27.076298] ? find_held_lock+0x35/0x1d0 [ 27.080342] ? get_signal+0x7ae/0x16c0 [ 27.084205] ? lock_downgrade+0x980/0x980 [ 27.088329] do_group_exit+0x149/0x400 [ 27.092202] ? do_raw_spin_trylock+0x190/0x190 [ 27.096766] ? SyS_exit+0x30/0x30 [ 27.100197] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.104668] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.109659] get_signal+0x73f/0x16c0 [ 27.113354] ? ptrace_notify+0x130/0x130 [ 27.117395] ? exit_robust_list+0x240/0x240 [ 27.121692] ? avc_has_extended_perms+0x7fa/0x12c0 [ 27.126602] ? find_held_lock+0x35/0x1d0 [ 27.130646] ? vhost_net_stop_vq+0xf0/0xf0 [ 27.134856] ? avc_ss_reset+0x110/0x110 [ 27.138802] ? lock_downgrade+0x980/0x980 [ 27.143075] do_signal+0x90/0x1eb0 [ 27.146593] ? __lock_is_held+0xb6/0x140 [ 27.150637] ? setup_sigcontext+0x7d0/0x7d0 [ 27.154953] ? rcu_note_context_switch+0x710/0x710 [ 27.159865] ? exit_to_usermode_loop+0x8c/0x310 [ 27.164518] exit_to_usermode_loop+0x214/0x310 [ 27.169095] ? ioctl_preallocate+0x2b0/0x2b0 [ 27.173492] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 27.179012] ? selinux_capable+0x40/0x40 [ 27.183069] syscall_return_slowpath+0x490/0x550 [ 27.187801] ? prepare_exit_to_usermode+0x340/0x340 [ 27.192797] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 27.197707] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.202702] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.207438] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 27.212172] RIP: 0033:0x445d89 [ 27.215343] RSP: 002b:00007fb864a5eda8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 27.223042] RAX: fffffffffffffe00 RBX: 00000000006dbc24 RCX: 0000000000445d89 [ 27.230308] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006dbc24 [ 27.237573] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 27.244831] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc20 [ 27.252087] R13: 6f68762f7665642f R14: 00007fb864a5f9c0 R15: 0000000000000007 [ 27.259819] Dumping ftrace buffer: [ 27.263333] (ftrace buffer empty) [ 27.267014] Kernel Offset: disabled [ 27.270611] Rebooting in 86400 seconds..