[....] Starting enhanced syslogd: rsyslogd[ 12.945913] audit: type=1400 audit(1516903857.002:5): avc: denied { syslog } for pid=3503 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.031828] audit: type=1400 audit(1516903862.088:6): avc: denied { map } for pid=3643 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.215' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program [ 34.591039] audit: type=1400 audit(1516903878.647:7): avc: denied { map } for pid=3660 comm="syzkaller015770" path="/root/syzkaller015770076" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 37.731182] ================================================================== [ 37.738585] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 37.745221] Read of size 8 at addr ffff8801b63f19a0 by task syzkaller015770/4697 [ 37.752720] [ 37.754320] CPU: 0 PID: 4697 Comm: syzkaller015770 Not tainted 4.15.0-rc9+ #189 [ 37.761735] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.771057] Call Trace: [ 37.773620] dump_stack+0x194/0x257 [ 37.777219] ? arch_local_irq_restore+0x53/0x53 [ 37.781859] ? show_regs_print_info+0x18/0x18 [ 37.786332] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 37.791411] ? __wake_up_common+0x670/0x780 [ 37.795708] print_address_description+0x73/0x250 [ 37.800522] ? __wake_up_common+0x670/0x780 [ 37.804816] kasan_report+0x25b/0x340 [ 37.808592] __asan_report_load8_noabort+0x14/0x20 [ 37.813491] __wake_up_common+0x670/0x780 [ 37.817614] ? do_wait_intr_irq+0x3e0/0x3e0 [ 37.821920] ? lock_release+0xa40/0xa40 [ 37.825865] ? lock_downgrade+0x980/0x980 [ 37.829997] __wake_up_common_lock+0x1b4/0x310 [ 37.834548] ? locks_remove_file+0x3fa/0x5a0 [ 37.838968] ? __wake_up_common+0x780/0x780 [ 37.843257] ? fcntl_setlk+0x10c0/0x10c0 [ 37.847299] ? fsnotify_first_mark+0x2b0/0x2b0 [ 37.851859] ? eventfd_show_fdinfo+0x90/0x90 [ 37.856238] __wake_up+0xe/0x10 [ 37.859488] eventfd_release+0x4a/0x60 [ 37.863345] __fput+0x327/0x7e0 [ 37.866602] ? fput+0x140/0x140 [ 37.869854] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.875708] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.880178] ____fput+0x15/0x20 [ 37.883431] task_work_run+0x199/0x270 [ 37.887290] ? task_work_cancel+0x210/0x210 [ 37.891591] ? _raw_spin_unlock+0x22/0x30 [ 37.895710] ? switch_task_namespaces+0x87/0xc0 [ 37.900355] do_exit+0x9bb/0x1ad0 [ 37.903780] ? find_held_lock+0x35/0x1d0 [ 37.907815] ? mm_update_next_owner+0x930/0x930 [ 37.912457] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.917619] ? lock_downgrade+0x980/0x980 [ 37.921744] ? __unqueue_futex+0x1c0/0x290 [ 37.925947] ? lock_release+0xa40/0xa40 [ 37.929896] ? fault_in_user_writeable+0x90/0x90 [ 37.934626] ? __pv_queued_spin_lock_slowpath+0x1480/0x1480 [ 37.940306] ? futex_wake+0x680/0x680 [ 37.944082] ? debug_mutex_wake_waiter+0x670/0x670 [ 37.948993] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 37.954066] ? futex_wait+0x6a9/0x9a0 [ 37.957846] ? check_noncircular+0x20/0x20 [ 37.962054] ? hash_futex+0x15/0x210 [ 37.965739] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 37.970814] ? futex_wake+0x2ca/0x680 [ 37.974594] ? find_held_lock+0x35/0x1d0 [ 37.978629] ? retint_kernel+0x10/0x10 [ 37.982491] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.987482] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.992216] do_group_exit+0x149/0x400 [ 37.996079] ? SyS_exit+0x30/0x30 [ 37.999509] ? _raw_spin_unlock_irq+0x56/0x70 [ 38.003982] get_signal+0x73f/0x16c0 [ 38.007674] ? ptrace_notify+0x130/0x130 [ 38.011719] ? mutex_unlock+0xd/0x10 [ 38.015403] ? vhost_net_ioctl+0x2af/0x1910 [ 38.019709] do_signal+0x90/0x1eb0 [ 38.023222] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.029086] ? rcu_note_context_switch+0x710/0x710 [ 38.033991] ? setup_sigcontext+0x7d0/0x7d0 [ 38.038285] ? __might_sleep+0x95/0x190 [ 38.042231] ? _cond_resched+0x14/0x30 [ 38.046094] ? selinux_file_ioctl+0x444/0x690 [ 38.050560] ? __fget_light+0x297/0x380 [ 38.054506] ? selinux_capable+0x40/0x40 [ 38.058538] ? compat_SyS_epoll_pwait+0x4f0/0x4f0 [ 38.063360] ? __init_waitqueue_head+0x97/0x140 [ 38.068007] ? exit_to_usermode_loop+0x8c/0x310 [ 38.072657] exit_to_usermode_loop+0x214/0x310 [ 38.077230] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 38.082737] ? compat_SyS_ioctl+0x77/0x2a30 [ 38.087037] ? do_fast_syscall_32+0x156/0xf9d [ 38.091519] do_fast_syscall_32+0xbfd/0xf9d [ 38.095819] ? do_int80_syscall_32+0x9d0/0x9d0 [ 38.100385] ? syscall_return_slowpath+0x2ad/0x550 [ 38.105286] ? prepare_exit_to_usermode+0x340/0x340 [ 38.110274] ? sysret32_from_system_call+0x5/0x3b [ 38.115092] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.119911] entry_SYSENTER_compat+0x54/0x63 [ 38.124295] RIP: 0023:0xf7f68c79 [ 38.127630] RSP: 002b:00000000f7f641ec EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 38.135306] RAX: fffffffffffffe00 RBX: 00000000080fafe4 RCX: 0000000000000000 [ 38.142546] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fafe4 [ 38.149785] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 38.157031] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 38.164279] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 38.171539] [ 38.173143] Allocated by task 4697: [ 38.176745] save_stack+0x43/0xd0 [ 38.180173] kasan_kmalloc+0xad/0xe0 [ 38.183857] __kmalloc_node+0x47/0x70 [ 38.187629] kvmalloc_node+0x64/0xd0 [ 38.191313] vhost_net_open+0x27/0x670 [ 38.195169] misc_open+0x382/0x500 [ 38.198676] chrdev_open+0x257/0x730 [ 38.202370] do_dentry_open+0x667/0xd40 [ 38.206311] vfs_open+0x107/0x220 [ 38.209735] path_openat+0x1151/0x3530 [ 38.213590] do_filp_open+0x25b/0x3b0 [ 38.217356] do_sys_open+0x502/0x6d0 [ 38.221043] compat_SyS_openat+0x2d/0x40 [ 38.225074] do_fast_syscall_32+0x3ee/0xf9d [ 38.229365] entry_SYSENTER_compat+0x54/0x63 [ 38.233739] [ 38.235335] Freed by task 4697: [ 38.238581] save_stack+0x43/0xd0 [ 38.242003] kasan_slab_free+0x71/0xc0 [ 38.245858] kfree+0xd6/0x260 [ 38.248931] kvfree+0x36/0x60 [ 38.252018] vhost_net_release+0x159/0x190 [ 38.256221] __fput+0x327/0x7e0 [ 38.259469] ____fput+0x15/0x20 [ 38.262715] task_work_run+0x199/0x270 [ 38.266571] do_exit+0x9bb/0x1ad0 [ 38.269995] do_group_exit+0x149/0x400 [ 38.273851] get_signal+0x73f/0x16c0 [ 38.277541] do_signal+0x90/0x1eb0 [ 38.281053] exit_to_usermode_loop+0x214/0x310 [ 38.285606] do_fast_syscall_32+0xbfd/0xf9d [ 38.289896] entry_SYSENTER_compat+0x54/0x63 [ 38.294269] [ 38.295868] The buggy address belongs to the object at ffff8801b63ed0c0 [ 38.295868] which belongs to the cache kmalloc-65536 of size 65536 [ 38.308840] The buggy address is located 18656 bytes inside of [ 38.308840] 65536-byte region [ffff8801b63ed0c0, ffff8801b63fd0c0) [ 38.321028] The buggy address belongs to the page: [ 38.325925] page:ffffea0006d8f800 count:1 mapcount:0 mapping:ffff8801b63ed0c0 index:0x0 compound_mapcount: 0 [ 38.335864] flags: 0x2fffc0000008100(slab|head) [ 38.340506] raw: 02fffc0000008100 ffff8801b63ed0c0 0000000000000000 0000000100000001 [ 38.348354] raw: ffffea0006d8f020 ffffea0006d70020 ffff8801dac02500 0000000000000000 [ 38.356199] page dumped because: kasan: bad access detected [ 38.361875] [ 38.363470] Memory state around the buggy address: [ 38.368366] ffff8801b63f1880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.375694] ffff8801b63f1900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.383021] >ffff8801b63f1980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.390352] ^ [ 38.394735] ffff8801b63f1a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.402068] ffff8801b63f1a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.409399] ================================================================== [ 38.416731] Disabling lock debugging due to kernel taint [ 38.422151] Kernel panic - not syncing: panic_on_warn set ... [ 38.422151] [ 38.429485] CPU: 0 PID: 4697 Comm: syzkaller015770 Tainted: G B 4.15.0-rc9+ #189 [ 38.438199] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.448265] Call Trace: [ 38.450832] dump_stack+0x194/0x257 [ 38.454437] ? arch_local_irq_restore+0x53/0x53 [ 38.459078] ? kasan_end_report+0x32/0x50 [ 38.463284] ? lock_downgrade+0x980/0x980 [ 38.467399] ? vsnprintf+0x1ed/0x1900 [ 38.471170] ? __wake_up_common+0x670/0x780 [ 38.475469] panic+0x1e4/0x41c [ 38.478630] ? refcount_error_report+0x214/0x214 [ 38.483354] ? add_taint+0x40/0x50 [ 38.486862] ? add_taint+0x1c/0x50 [ 38.490370] ? __wake_up_common+0x670/0x780 [ 38.494668] kasan_end_report+0x50/0x50 [ 38.498610] kasan_report+0x144/0x340 [ 38.502381] __asan_report_load8_noabort+0x14/0x20 [ 38.507279] __wake_up_common+0x670/0x780 [ 38.511399] ? do_wait_intr_irq+0x3e0/0x3e0 [ 38.515951] ? lock_release+0xa40/0xa40 [ 38.519901] ? lock_downgrade+0x980/0x980 [ 38.524025] __wake_up_common_lock+0x1b4/0x310 [ 38.528578] ? locks_remove_file+0x3fa/0x5a0 [ 38.532959] ? __wake_up_common+0x780/0x780 [ 38.537250] ? fcntl_setlk+0x10c0/0x10c0 [ 38.541284] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.545838] ? eventfd_show_fdinfo+0x90/0x90 [ 38.550219] __wake_up+0xe/0x10 [ 38.553470] eventfd_release+0x4a/0x60 [ 38.557329] __fput+0x327/0x7e0 [ 38.560581] ? fput+0x140/0x140 [ 38.563830] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.569697] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.574166] ____fput+0x15/0x20 [ 38.577416] task_work_run+0x199/0x270 [ 38.581281] ? task_work_cancel+0x210/0x210 [ 38.585569] ? _raw_spin_unlock+0x22/0x30 [ 38.589688] ? switch_task_namespaces+0x87/0xc0 [ 38.594327] do_exit+0x9bb/0x1ad0 [ 38.597747] ? find_held_lock+0x35/0x1d0 [ 38.601780] ? mm_update_next_owner+0x930/0x930 [ 38.606417] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.611575] ? lock_downgrade+0x980/0x980 [ 38.615694] ? __unqueue_futex+0x1c0/0x290 [ 38.619894] ? lock_release+0xa40/0xa40 [ 38.623837] ? fault_in_user_writeable+0x90/0x90 [ 38.628561] ? __pv_queued_spin_lock_slowpath+0x1480/0x1480 [ 38.634235] ? futex_wake+0x680/0x680 [ 38.638004] ? debug_mutex_wake_waiter+0x670/0x670 [ 38.642900] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 38.647971] ? futex_wait+0x6a9/0x9a0 [ 38.651746] ? check_noncircular+0x20/0x20 [ 38.655950] ? hash_futex+0x15/0x210 [ 38.659634] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 38.664707] ? futex_wake+0x2ca/0x680 [ 38.668490] ? find_held_lock+0x35/0x1d0 [ 38.672520] ? retint_kernel+0x10/0x10 [ 38.676380] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.681365] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.686093] do_group_exit+0x149/0x400 [ 38.689953] ? SyS_exit+0x30/0x30 [ 38.693379] ? _raw_spin_unlock_irq+0x56/0x70 [ 38.697846] get_signal+0x73f/0x16c0 [ 38.701535] ? ptrace_notify+0x130/0x130 [ 38.705573] ? mutex_unlock+0xd/0x10 [ 38.709254] ? vhost_net_ioctl+0x2af/0x1910 [ 38.713548] do_signal+0x90/0x1eb0 [ 38.717057] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.722912] ? rcu_note_context_switch+0x710/0x710 [ 38.727811] ? setup_sigcontext+0x7d0/0x7d0 [ 38.732100] ? __might_sleep+0x95/0x190 [ 38.736042] ? _cond_resched+0x14/0x30 [ 38.739902] ? selinux_file_ioctl+0x444/0x690 [ 38.744367] ? __fget_light+0x297/0x380 [ 38.748310] ? selinux_capable+0x40/0x40 [ 38.752342] ? compat_SyS_epoll_pwait+0x4f0/0x4f0 [ 38.757153] ? __init_waitqueue_head+0x97/0x140 [ 38.761794] ? exit_to_usermode_loop+0x8c/0x310 [ 38.766431] exit_to_usermode_loop+0x214/0x310 [ 38.770984] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 38.776492] ? compat_SyS_ioctl+0x77/0x2a30 [ 38.780781] ? do_fast_syscall_32+0x156/0xf9d [ 38.785250] do_fast_syscall_32+0xbfd/0xf9d [ 38.789545] ? do_int80_syscall_32+0x9d0/0x9d0 [ 38.794099] ? syscall_return_slowpath+0x2ad/0x550 [ 38.798998] ? prepare_exit_to_usermode+0x340/0x340 [ 38.803982] ? sysret32_from_system_call+0x5/0x3b [ 38.808799] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.813612] entry_SYSENTER_compat+0x54/0x63 [ 38.818011] RIP: 0023:0xf7f68c79 [ 38.821346] RSP: 002b:00000000f7f641ec EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 38.829024] RAX: fffffffffffffe00 RBX: 00000000080fafe4 RCX: 0000000000000000 [ 38.836261] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fafe4 [ 38.843509] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 38.850755] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 38.857994] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 38.865294] Dumping ftrace buffer: [ 38.868802] (ftrace buffer empty) [ 38.872481] Kernel Offset: disabled [ 38.876074] Rebooting in 86400 seconds..