[....] Starting enhanced syslogd: rsyslogd[ 12.316653] audit: type=1400 audit(1516985403.713:5): avc: denied { syslog } for pid=3497 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.796610] audit: type=1400 audit(1516985410.193:6): avc: denied { map } for pid=3636 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.202' (ECDSA) to the list of known hosts. executing program executing program [ 41.755762] audit: type=1400 audit(1516985433.152:7): avc: denied { map } for pid=3653 comm="syzkaller848614" path="/root/syzkaller848614695" 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 [ 43.741260] ================================================================== [ 43.748706] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 43.755354] Read of size 8 at addr ffff8801b9849ca0 by task syzkaller848614/4065 [ 43.762863] [ 43.764472] CPU: 1 PID: 4065 Comm: syzkaller848614 Not tainted 4.15.0-rc9+ #191 [ 43.771899] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.781239] Call Trace: [ 43.783818] dump_stack+0x194/0x257 [ 43.787421] ? arch_local_irq_restore+0x53/0x53 [ 43.792072] ? show_regs_print_info+0x18/0x18 [ 43.796550] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 43.801639] ? __wake_up_common+0x670/0x780 [ 43.805967] print_address_description+0x73/0x250 [ 43.810787] ? __wake_up_common+0x670/0x780 [ 43.815086] kasan_report+0x25b/0x340 [ 43.818874] __asan_report_load8_noabort+0x14/0x20 [ 43.823784] __wake_up_common+0x670/0x780 [ 43.827947] ? do_wait_intr_irq+0x3e0/0x3e0 [ 43.832251] ? lock_release+0xa40/0xa40 [ 43.836201] ? lock_downgrade+0x980/0x980 [ 43.840337] __wake_up_common_lock+0x1b4/0x310 [ 43.844908] ? locks_remove_file+0x3fa/0x5a0 [ 43.849298] ? __wake_up_common+0x780/0x780 [ 43.853594] ? fcntl_setlk+0x10c0/0x10c0 [ 43.857650] ? fsnotify_first_mark+0x2b0/0x2b0 [ 43.862218] ? eventfd_show_fdinfo+0x90/0x90 [ 43.866618] __wake_up+0xe/0x10 [ 43.869884] eventfd_release+0x4a/0x60 [ 43.873755] __fput+0x327/0x7e0 [ 43.877030] ? fput+0x140/0x140 [ 43.880301] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 43.886176] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.890658] ____fput+0x15/0x20 [ 43.893917] task_work_run+0x199/0x270 [ 43.897786] ? task_work_cancel+0x210/0x210 [ 43.902087] ? _raw_spin_unlock+0x22/0x30 [ 43.906216] ? switch_task_namespaces+0x87/0xc0 [ 43.910885] do_exit+0x9bb/0x1ad0 [ 43.914332] ? find_held_lock+0x35/0x1d0 [ 43.918375] ? mm_update_next_owner+0x930/0x930 [ 43.923040] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.928207] ? lock_downgrade+0x980/0x980 [ 43.932338] ? __unqueue_futex+0x1c0/0x290 [ 43.936543] ? lock_release+0xa40/0xa40 [ 43.940497] ? fault_in_user_writeable+0x90/0x90 [ 43.945236] ? do_raw_spin_trylock+0x190/0x190 [ 43.949796] ? futex_wake+0x680/0x680 [ 43.953574] ? debug_mutex_wake_waiter+0x670/0x670 [ 43.958489] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 43.963584] ? futex_wait+0x6a9/0x9a0 [ 43.967381] ? check_noncircular+0x20/0x20 [ 43.971598] ? hash_futex+0x15/0x210 [ 43.975291] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 43.980373] ? futex_wake+0x2ca/0x680 [ 43.984173] ? find_held_lock+0x35/0x1d0 [ 43.988219] ? get_signal+0x7ae/0x16c0 [ 43.992082] ? lock_downgrade+0x980/0x980 [ 43.996231] do_group_exit+0x149/0x400 [ 44.000113] ? do_raw_spin_trylock+0x190/0x190 [ 44.004676] ? SyS_exit+0x30/0x30 [ 44.008121] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.012597] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.017602] get_signal+0x73f/0x16c0 [ 44.021320] ? ptrace_notify+0x130/0x130 [ 44.025378] ? mutex_unlock+0xd/0x10 [ 44.029088] ? vhost_net_ioctl+0x2af/0x1910 [ 44.033400] do_signal+0x90/0x1eb0 [ 44.036918] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 44.043363] ? rcu_note_context_switch+0x710/0x710 [ 44.049487] ? setup_sigcontext+0x7d0/0x7d0 [ 44.053792] ? __might_sleep+0x95/0x190 [ 44.057748] ? _cond_resched+0x14/0x30 [ 44.061619] ? selinux_file_ioctl+0x444/0x690 [ 44.066630] ? __fget_light+0x297/0x380 [ 44.070592] ? selinux_capable+0x40/0x40 [ 44.074651] ? compat_SyS_epoll_pwait+0x4f0/0x4f0 [ 44.079577] ? __init_waitqueue_head+0x97/0x140 [ 44.084254] ? exit_to_usermode_loop+0x8c/0x310 [ 44.088937] exit_to_usermode_loop+0x214/0x310 [ 44.093542] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 44.099084] ? compat_SyS_ioctl+0x77/0x2a30 [ 44.103387] ? do_fast_syscall_32+0x156/0xf9d [ 44.107875] do_fast_syscall_32+0xbfd/0xf9d [ 44.112191] ? do_int80_syscall_32+0x9d0/0x9d0 [ 44.116767] ? syscall_return_slowpath+0x2ad/0x550 [ 44.121676] ? prepare_exit_to_usermode+0x340/0x340 [ 44.126676] ? sysret32_from_system_call+0x5/0x3b [ 44.131505] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.136336] entry_SYSENTER_compat+0x54/0x63 [ 44.140736] RIP: 0023:0xf7fc9c79 [ 44.144076] RSP: 002b:00000000f7fc51ec EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 44.151754] RAX: fffffffffffffe00 RBX: 00000000080fbfe4 RCX: 0000000000000000 [ 44.159000] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fbfe4 [ 44.166253] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 44.173517] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 44.180766] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 44.188036] [ 44.189637] Allocated by task 4065: [ 44.193247] save_stack+0x43/0xd0 [ 44.196674] kasan_kmalloc+0xad/0xe0 [ 44.200360] __kmalloc_node+0x47/0x70 [ 44.204136] kvmalloc_node+0x64/0xd0 [ 44.207823] vhost_net_open+0x27/0x670 [ 44.211683] misc_open+0x382/0x500 [ 44.215207] chrdev_open+0x257/0x730 [ 44.218914] do_dentry_open+0x667/0xd40 [ 44.222862] vfs_open+0x107/0x220 [ 44.226308] path_openat+0x1151/0x3530 [ 44.230180] do_filp_open+0x25b/0x3b0 [ 44.233952] do_sys_open+0x502/0x6d0 [ 44.237640] compat_SyS_openat+0x2d/0x40 [ 44.241691] do_fast_syscall_32+0x3ee/0xf9d [ 44.245992] entry_SYSENTER_compat+0x54/0x63 [ 44.250372] [ 44.251973] Freed by task 4065: [ 44.255236] save_stack+0x43/0xd0 [ 44.258665] kasan_slab_free+0x71/0xc0 [ 44.262649] kfree+0xd6/0x260 [ 44.265732] kvfree+0x36/0x60 [ 44.268820] vhost_net_release+0x159/0x190 [ 44.273033] __fput+0x327/0x7e0 [ 44.276284] ____fput+0x15/0x20 [ 44.279543] task_work_run+0x199/0x270 [ 44.283402] do_exit+0x9bb/0x1ad0 [ 44.286898] do_group_exit+0x149/0x400 [ 44.290847] get_signal+0x73f/0x16c0 [ 44.294543] do_signal+0x90/0x1eb0 [ 44.298055] exit_to_usermode_loop+0x214/0x310 [ 44.302609] do_fast_syscall_32+0xbfd/0xf9d [ 44.307006] entry_SYSENTER_compat+0x54/0x63 [ 44.311381] [ 44.312982] The buggy address belongs to the object at ffff8801b98453c0 [ 44.312982] which belongs to the cache kmalloc-65536 of size 65536 [ 44.325960] The buggy address is located 18656 bytes inside of [ 44.325960] 65536-byte region [ffff8801b98453c0, ffff8801b98553c0) [ 44.338153] The buggy address belongs to the page: [ 44.343061] page:ffffea0006e61000 count:1 mapcount:0 mapping:ffff8801b98453c0 index:0x0 compound_mapcount: 0 [ 44.353030] flags: 0x2fffc0000008100(slab|head) [ 44.357682] raw: 02fffc0000008100 ffff8801b98453c0 0000000000000000 0000000100000001 [ 44.365554] raw: ffffea0006e60820 ffffea0006e61820 ffff8801dac02500 0000000000000000 [ 44.373554] page dumped because: kasan: bad access detected [ 44.379255] [ 44.380855] Memory state around the buggy address: [ 44.385771] ffff8801b9849b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.393104] ffff8801b9849c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.400447] >ffff8801b9849c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.407777] ^ [ 44.412153] ffff8801b9849d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.419484] ffff8801b9849d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.426824] ================================================================== [ 44.434152] Disabling lock debugging due to kernel taint [ 44.439572] Kernel panic - not syncing: panic_on_warn set ... [ 44.439572] [ 44.446905] CPU: 1 PID: 4065 Comm: syzkaller848614 Tainted: G B 4.15.0-rc9+ #191 [ 44.455624] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.464947] Call Trace: [ 44.467533] dump_stack+0x194/0x257 [ 44.471145] ? arch_local_irq_restore+0x53/0x53 [ 44.475790] ? kasan_end_report+0x32/0x50 [ 44.479916] ? lock_downgrade+0x980/0x980 [ 44.484037] ? vsnprintf+0x1ed/0x1900 [ 44.487811] ? __wake_up_common+0x670/0x780 [ 44.492202] panic+0x1e4/0x41c [ 44.495363] ? refcount_error_report+0x214/0x214 [ 44.500088] ? add_taint+0x40/0x50 [ 44.503596] ? add_taint+0x1c/0x50 [ 44.507108] ? __wake_up_common+0x670/0x780 [ 44.511401] kasan_end_report+0x50/0x50 [ 44.515342] kasan_report+0x144/0x340 [ 44.519114] __asan_report_load8_noabort+0x14/0x20 [ 44.524012] __wake_up_common+0x670/0x780 [ 44.528144] ? do_wait_intr_irq+0x3e0/0x3e0 [ 44.532442] ? lock_release+0xa40/0xa40 [ 44.536388] ? lock_downgrade+0x980/0x980 [ 44.540510] __wake_up_common_lock+0x1b4/0x310 [ 44.545068] ? locks_remove_file+0x3fa/0x5a0 [ 44.549448] ? __wake_up_common+0x780/0x780 [ 44.553735] ? fcntl_setlk+0x10c0/0x10c0 [ 44.557771] ? fsnotify_first_mark+0x2b0/0x2b0 [ 44.562327] ? eventfd_show_fdinfo+0x90/0x90 [ 44.566703] __wake_up+0xe/0x10 [ 44.569951] eventfd_release+0x4a/0x60 [ 44.573811] __fput+0x327/0x7e0 [ 44.577061] ? fput+0x140/0x140 [ 44.580315] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 44.586184] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.590657] ____fput+0x15/0x20 [ 44.594091] task_work_run+0x199/0x270 [ 44.597950] ? task_work_cancel+0x210/0x210 [ 44.602243] ? _raw_spin_unlock+0x22/0x30 [ 44.606364] ? switch_task_namespaces+0x87/0xc0 [ 44.611009] do_exit+0x9bb/0x1ad0 [ 44.614431] ? find_held_lock+0x35/0x1d0 [ 44.618463] ? mm_update_next_owner+0x930/0x930 [ 44.623100] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 44.628256] ? lock_downgrade+0x980/0x980 [ 44.632375] ? __unqueue_futex+0x1c0/0x290 [ 44.636595] ? lock_release+0xa40/0xa40 [ 44.640552] ? fault_in_user_writeable+0x90/0x90 [ 44.645283] ? do_raw_spin_trylock+0x190/0x190 [ 44.650552] ? futex_wake+0x680/0x680 [ 44.654330] ? debug_mutex_wake_waiter+0x670/0x670 [ 44.659229] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 44.664301] ? futex_wait+0x6a9/0x9a0 [ 44.668075] ? check_noncircular+0x20/0x20 [ 44.672280] ? hash_futex+0x15/0x210 [ 44.675987] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 44.681057] ? futex_wake+0x2ca/0x680 [ 44.684833] ? find_held_lock+0x35/0x1d0 [ 44.688870] ? get_signal+0x7ae/0x16c0 [ 44.692730] ? lock_downgrade+0x980/0x980 [ 44.696857] do_group_exit+0x149/0x400 [ 44.700716] ? do_raw_spin_trylock+0x190/0x190 [ 44.705268] ? SyS_exit+0x30/0x30 [ 44.708695] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.713160] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.718149] get_signal+0x73f/0x16c0 [ 44.721833] ? ptrace_notify+0x130/0x130 [ 44.725881] ? mutex_unlock+0xd/0x10 [ 44.729578] ? vhost_net_ioctl+0x2af/0x1910 [ 44.733885] do_signal+0x90/0x1eb0 [ 44.737428] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 44.743286] ? rcu_note_context_switch+0x710/0x710 [ 44.748231] ? setup_sigcontext+0x7d0/0x7d0 [ 44.752524] ? __might_sleep+0x95/0x190 [ 44.756469] ? _cond_resched+0x14/0x30 [ 44.760330] ? selinux_file_ioctl+0x444/0x690 [ 44.764973] ? __fget_light+0x297/0x380 [ 44.768918] ? selinux_capable+0x40/0x40 [ 44.772951] ? compat_SyS_epoll_pwait+0x4f0/0x4f0 [ 44.777764] ? __init_waitqueue_head+0x97/0x140 [ 44.782411] ? exit_to_usermode_loop+0x8c/0x310 [ 44.787052] exit_to_usermode_loop+0x214/0x310 [ 44.791602] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 44.797123] ? compat_SyS_ioctl+0x77/0x2a30 [ 44.801419] ? do_fast_syscall_32+0x156/0xf9d [ 44.805892] do_fast_syscall_32+0xbfd/0xf9d [ 44.810187] ? do_int80_syscall_32+0x9d0/0x9d0 [ 44.814744] ? syscall_return_slowpath+0x2ad/0x550 [ 44.819904] ? prepare_exit_to_usermode+0x340/0x340 [ 44.824899] ? sysret32_from_system_call+0x5/0x3b [ 44.829732] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.834635] entry_SYSENTER_compat+0x54/0x63 [ 44.839021] RIP: 0023:0xf7fc9c79 [ 44.842355] RSP: 002b:00000000f7fc51ec EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 44.850031] RAX: fffffffffffffe00 RBX: 00000000080fbfe4 RCX: 0000000000000000 [ 44.857281] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fbfe4 [ 44.864542] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 44.871785] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 44.879031] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 44.888663] Dumping ftrace buffer: [ 44.892176] (ftrace buffer empty) [ 44.895854] Kernel Offset: disabled [ 44.899449] Rebooting in 86400 seconds..