[....] Starting enhanced syslogd: rsyslogd[ 17.361784] audit: type=1400 audit(1517410634.711:5): avc: denied { syslog } for pid=4010 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: [ 23.391194] audit: type=1400 audit(1517410640.740:6): avc: denied { map } for pid=4150 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.205' (ECDSA) to the list of known hosts. executing program executing program executing program executing program [ 29.699630] audit: type=1400 audit(1517410647.049:7): avc: denied { map } for pid=4164 comm="syzkaller571426" path="/root/syzkaller571426771" 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 [ 30.362202] ================================================================== [ 30.369619] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 30.376263] Read of size 8 at addr ffff8801ae586b20 by task syzkaller571426/4326 [ 30.383767] [ 30.385376] CPU: 1 PID: 4326 Comm: syzkaller571426 Not tainted 4.15.0+ #198 [ 30.392448] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.401784] Call Trace: [ 30.404361] dump_stack+0x194/0x257 [ 30.407967] ? arch_local_irq_restore+0x53/0x53 [ 30.412611] ? show_regs_print_info+0x18/0x18 [ 30.417089] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 30.422170] ? __wake_up_common+0x670/0x780 [ 30.426467] print_address_description+0x73/0x250 [ 30.431285] ? __wake_up_common+0x670/0x780 [ 30.435582] kasan_report+0x25b/0x340 [ 30.439359] __asan_report_load8_noabort+0x14/0x20 [ 30.444260] __wake_up_common+0x670/0x780 [ 30.448383] ? do_wait_intr_irq+0x3e0/0x3e0 [ 30.452677] ? lock_release+0xa40/0xa40 [ 30.456622] ? lock_downgrade+0x980/0x980 [ 30.460769] __wake_up_common_lock+0x1b4/0x310 [ 30.465322] ? locks_remove_file+0x3fa/0x5a0 [ 30.469706] ? __wake_up_common+0x780/0x780 [ 30.473999] ? fcntl_setlk+0x10c0/0x10c0 [ 30.478051] ? fsnotify_first_mark+0x2b0/0x2b0 [ 30.482617] ? eventfd_show_fdinfo+0x90/0x90 [ 30.486996] __wake_up+0xe/0x10 [ 30.490254] eventfd_release+0x4a/0x60 [ 30.494111] __fput+0x327/0x7e0 [ 30.497369] ? fput+0x140/0x140 [ 30.500623] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.506478] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.510950] ____fput+0x15/0x20 [ 30.514203] task_work_run+0x199/0x270 [ 30.518065] ? task_work_cancel+0x210/0x210 [ 30.522357] ? _raw_spin_unlock+0x22/0x30 [ 30.526486] ? switch_task_namespaces+0x87/0xc0 [ 30.531147] do_exit+0x9bb/0x1ad0 [ 30.534575] ? find_held_lock+0x35/0x1d0 [ 30.538611] ? mm_update_next_owner+0x930/0x930 [ 30.543258] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.548419] ? lock_downgrade+0x980/0x980 [ 30.552542] ? __unqueue_futex+0x1c0/0x290 [ 30.556745] ? lock_release+0xa40/0xa40 [ 30.560700] ? fault_in_user_writeable+0x90/0x90 [ 30.565431] ? __pv_queued_spin_lock_slowpath+0x1480/0x1480 [ 30.571110] ? futex_wake+0x680/0x680 [ 30.574882] ? debug_mutex_wake_waiter+0x670/0x670 [ 30.579784] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 30.584865] ? futex_wait+0x6a9/0x9a0 [ 30.588652] ? check_noncircular+0x20/0x20 [ 30.592865] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 30.597941] ? futex_wake+0x2ca/0x680 [ 30.601720] ? memset+0x31/0x40 [ 30.604977] ? find_held_lock+0x35/0x1d0 [ 30.609030] ? retint_kernel+0x10/0x10 [ 30.612893] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.617885] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.622619] do_group_exit+0x149/0x400 [ 30.626484] ? SyS_exit+0x30/0x30 [ 30.629914] ? _raw_spin_unlock_irq+0x56/0x70 [ 30.634397] get_signal+0x73a/0x16d0 [ 30.638093] ? ptrace_notify+0x130/0x130 [ 30.642138] ? mutex_unlock+0xd/0x10 [ 30.645826] ? vhost_net_ioctl+0x2af/0x1910 [ 30.650131] do_signal+0x90/0x1eb0 [ 30.653648] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.659524] ? rcu_note_context_switch+0x710/0x710 [ 30.664435] ? setup_sigcontext+0x7d0/0x7d0 [ 30.668740] ? __might_sleep+0x95/0x190 [ 30.672689] ? _cond_resched+0x14/0x30 [ 30.676552] ? selinux_file_ioctl+0x444/0x690 [ 30.681032] ? __fget_light+0x297/0x380 [ 30.684996] ? exit_to_usermode_loop+0x8c/0x310 [ 30.689650] exit_to_usermode_loop+0x214/0x310 [ 30.694220] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 30.699735] ? compat_SyS_ioctl+0x77/0x2a30 [ 30.704041] ? do_fast_syscall_32+0x156/0xf9d [ 30.708515] do_fast_syscall_32+0xbfd/0xf9d [ 30.712815] ? do_int80_syscall_32+0x9d0/0x9d0 [ 30.717375] ? syscall_return_slowpath+0x2ad/0x550 [ 30.722276] ? prepare_exit_to_usermode+0x340/0x340 [ 30.727273] ? sysret32_from_system_call+0x5/0x3b [ 30.732093] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.736919] entry_SYSENTER_compat+0x54/0x63 [ 30.741299] RIP: 0023:0xf7fd2c79 [ 30.744636] RSP: 002b:00000000f7fce1ec EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 30.752322] RAX: fffffffffffffe00 RBX: 00000000080fdf64 RCX: 0000000000000000 [ 30.759564] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fdf64 [ 30.766805] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 30.774045] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 30.781286] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 30.788637] [ 30.790235] Allocated by task 4326: [ 30.793837] save_stack+0x43/0xd0 [ 30.797268] kasan_kmalloc+0xad/0xe0 [ 30.800951] __kmalloc_node+0x47/0x70 [ 30.804727] kvmalloc_node+0x64/0xd0 [ 30.808414] vhost_net_open+0x27/0x670 [ 30.812289] misc_open+0x382/0x500 [ 30.815809] chrdev_open+0x257/0x730 [ 30.819493] do_dentry_open+0x667/0xd40 [ 30.823435] vfs_open+0x107/0x220 [ 30.826859] path_openat+0x1151/0x3530 [ 30.830724] do_filp_open+0x25b/0x3b0 [ 30.834503] do_sys_open+0x502/0x6d0 [ 30.838189] compat_SyS_openat+0x2d/0x40 [ 30.842223] do_fast_syscall_32+0x3ee/0xf9d [ 30.846517] entry_SYSENTER_compat+0x54/0x63 [ 30.850891] [ 30.852488] Freed by task 4326: [ 30.855744] save_stack+0x43/0xd0 [ 30.859167] kasan_slab_free+0x71/0xc0 [ 30.863044] kfree+0xd6/0x260 [ 30.866122] kvfree+0x36/0x60 [ 30.869199] vhost_net_release+0x159/0x190 [ 30.873406] __fput+0x327/0x7e0 [ 30.876655] ____fput+0x15/0x20 [ 30.879906] task_work_run+0x199/0x270 [ 30.883768] do_exit+0x9bb/0x1ad0 [ 30.887199] do_group_exit+0x149/0x400 [ 30.891059] get_signal+0x73a/0x16d0 [ 30.894744] do_signal+0x90/0x1eb0 [ 30.898255] exit_to_usermode_loop+0x214/0x310 [ 30.902806] do_fast_syscall_32+0xbfd/0xf9d [ 30.907101] entry_SYSENTER_compat+0x54/0x63 [ 30.911475] [ 30.913088] The buggy address belongs to the object at ffff8801ae582240 [ 30.913088] which belongs to the cache kmalloc-65536 of size 65536 [ 30.926064] The buggy address is located 18656 bytes inside of [ 30.926064] 65536-byte region [ffff8801ae582240, ffff8801ae592240) [ 30.938256] The buggy address belongs to the page: [ 30.943163] page:ffffea0006b96000 count:1 mapcount:0 mapping:ffff8801ae582240 index:0x0 compound_mapcount: 0 [ 30.953106] flags: 0x2fffc0000008100(slab|head) [ 30.957755] raw: 02fffc0000008100 ffff8801ae582240 0000000000000000 0000000100000001 [ 30.965613] raw: ffffea0006b95820 ffffea0006be7820 ffff8801db002500 0000000000000000 [ 30.973461] page dumped because: kasan: bad access detected [ 30.979142] [ 30.980740] Memory state around the buggy address: [ 30.985646] ffff8801ae586a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.992977] ffff8801ae586a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.000308] >ffff8801ae586b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.007646] ^ [ 31.012037] ffff8801ae586b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.019370] ffff8801ae586c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.026703] ================================================================== [ 31.034048] Disabling lock debugging due to kernel taint [ 31.039468] Kernel panic - not syncing: panic_on_warn set ... [ 31.039468] [ 31.046807] CPU: 1 PID: 4326 Comm: syzkaller571426 Tainted: G B 4.15.0+ #198 [ 31.055176] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.064501] Call Trace: [ 31.067064] dump_stack+0x194/0x257 [ 31.070671] ? arch_local_irq_restore+0x53/0x53 [ 31.075313] ? kasan_end_report+0x32/0x50 [ 31.079442] ? lock_downgrade+0x980/0x980 [ 31.083561] ? vsnprintf+0x1ed/0x1900 [ 31.087336] ? __wake_up_common+0x5b0/0x780 [ 31.091630] panic+0x1e4/0x41c [ 31.094793] ? refcount_error_report+0x214/0x214 [ 31.099528] ? add_taint+0x40/0x50 [ 31.103039] ? add_taint+0x1c/0x50 [ 31.106553] ? __wake_up_common+0x670/0x780 [ 31.110844] kasan_end_report+0x50/0x50 [ 31.114788] kasan_report+0x144/0x340 [ 31.118559] __asan_report_load8_noabort+0x14/0x20 [ 31.123459] __wake_up_common+0x670/0x780 [ 31.127587] ? do_wait_intr_irq+0x3e0/0x3e0 [ 31.131880] ? lock_release+0xa40/0xa40 [ 31.135822] ? lock_downgrade+0x980/0x980 [ 31.139945] __wake_up_common_lock+0x1b4/0x310 [ 31.144500] ? locks_remove_file+0x3fa/0x5a0 [ 31.148879] ? __wake_up_common+0x780/0x780 [ 31.153170] ? fcntl_setlk+0x10c0/0x10c0 [ 31.157206] ? fsnotify_first_mark+0x2b0/0x2b0 [ 31.161761] ? eventfd_show_fdinfo+0x90/0x90 [ 31.166141] __wake_up+0xe/0x10 [ 31.169388] eventfd_release+0x4a/0x60 [ 31.173246] __fput+0x327/0x7e0 [ 31.176496] ? fput+0x140/0x140 [ 31.179748] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.185604] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.190072] ____fput+0x15/0x20 [ 31.193321] task_work_run+0x199/0x270 [ 31.197186] ? task_work_cancel+0x210/0x210 [ 31.201481] ? _raw_spin_unlock+0x22/0x30 [ 31.205604] ? switch_task_namespaces+0x87/0xc0 [ 31.210247] do_exit+0x9bb/0x1ad0 [ 31.213675] ? find_held_lock+0x35/0x1d0 [ 31.217708] ? mm_update_next_owner+0x930/0x930 [ 31.222350] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.227513] ? lock_downgrade+0x980/0x980 [ 31.231635] ? __unqueue_futex+0x1c0/0x290 [ 31.235837] ? lock_release+0xa40/0xa40 [ 31.239784] ? fault_in_user_writeable+0x90/0x90 [ 31.244515] ? __pv_queued_spin_lock_slowpath+0x1480/0x1480 [ 31.250197] ? futex_wake+0x680/0x680 [ 31.253978] ? debug_mutex_wake_waiter+0x670/0x670 [ 31.258884] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 31.263959] ? futex_wait+0x6a9/0x9a0 [ 31.267742] ? check_noncircular+0x20/0x20 [ 31.271947] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 31.277027] ? futex_wake+0x2ca/0x680 [ 31.280802] ? memset+0x31/0x40 [ 31.284056] ? find_held_lock+0x35/0x1d0 [ 31.288100] ? retint_kernel+0x10/0x10 [ 31.291961] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.296951] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.301694] do_group_exit+0x149/0x400 [ 31.305561] ? SyS_exit+0x30/0x30 [ 31.308990] ? _raw_spin_unlock_irq+0x56/0x70 [ 31.313459] get_signal+0x73a/0x16d0 [ 31.317155] ? ptrace_notify+0x130/0x130 [ 31.321195] ? mutex_unlock+0xd/0x10 [ 31.324878] ? vhost_net_ioctl+0x2af/0x1910 [ 31.329178] do_signal+0x90/0x1eb0 [ 31.332694] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.338549] ? rcu_note_context_switch+0x710/0x710 [ 31.343455] ? setup_sigcontext+0x7d0/0x7d0 [ 31.347747] ? __might_sleep+0x95/0x190 [ 31.351689] ? _cond_resched+0x14/0x30 [ 31.355548] ? selinux_file_ioctl+0x444/0x690 [ 31.360018] ? __fget_light+0x297/0x380 [ 31.364004] ? exit_to_usermode_loop+0x8c/0x310 [ 31.368655] exit_to_usermode_loop+0x214/0x310 [ 31.373207] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 31.378716] ? compat_SyS_ioctl+0x77/0x2a30 [ 31.383020] ? do_fast_syscall_32+0x156/0xf9d [ 31.387501] do_fast_syscall_32+0xbfd/0xf9d [ 31.391800] ? do_int80_syscall_32+0x9d0/0x9d0 [ 31.396356] ? syscall_return_slowpath+0x2ad/0x550 [ 31.401262] ? prepare_exit_to_usermode+0x340/0x340 [ 31.406263] ? sysret32_from_system_call+0x5/0x3b [ 31.411093] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.415911] entry_SYSENTER_compat+0x54/0x63 [ 31.420290] RIP: 0023:0xf7fd2c79 [ 31.423623] RSP: 002b:00000000f7fce1ec EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 31.431301] RAX: fffffffffffffe00 RBX: 00000000080fdf64 RCX: 0000000000000000 [ 31.438541] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fdf64 [ 31.445781] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 31.453023] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 31.460265] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 31.467979] Dumping ftrace buffer: [ 31.471490] (ftrace buffer empty) [ 31.475241] Kernel Offset: disabled [ 31.478838] Rebooting in 86400 seconds..