[....] Starting enhanced syslogd: rsyslogd[ 12.981438] audit: type=1400 audit(1516997582.945: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: [ 17.517621] audit: type=1400 audit(1516997587.481:6): avc: denied { map } for pid=3642 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.33' (ECDSA) to the list of known hosts. executing program [ 23.738174] audit: type=1400 audit(1516997593.701:7): avc: denied { map } for pid=3656 comm="syzkaller418313" path="/root/syzkaller418313166" 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 [ 23.767350] ================================================================== [ 23.774739] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 23.781391] Read of size 8 at addr ffff8801bb5e03c8 by task syzkaller418313/3656 [ 23.789395] [ 23.791005] CPU: 1 PID: 3656 Comm: syzkaller418313 Not tainted 4.15.0-rc9+ #191 [ 23.798427] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.807763] Call Trace: [ 23.810336] dump_stack+0x194/0x257 [ 23.813940] ? arch_local_irq_restore+0x53/0x53 [ 23.818591] ? show_regs_print_info+0x18/0x18 [ 23.823070] ? __wake_up_common+0x670/0x780 [ 23.827373] print_address_description+0x73/0x250 [ 23.832194] ? __wake_up_common+0x670/0x780 [ 23.836503] kasan_report+0x25b/0x340 [ 23.840292] __asan_report_load8_noabort+0x14/0x20 [ 23.845202] __wake_up_common+0x670/0x780 [ 23.849333] ? do_wait_intr_irq+0x3e0/0x3e0 [ 23.853627] ? unwind_get_return_address+0x61/0xa0 [ 23.858537] ? check_noncircular+0x20/0x20 [ 23.862756] __wake_up_common_lock+0x1b4/0x310 [ 23.867316] ? locks_remove_file+0x3fa/0x5a0 [ 23.871704] ? __wake_up_common+0x780/0x780 [ 23.875997] ? fcntl_setlk+0x10c0/0x10c0 [ 23.880047] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.884609] ? eventfd_show_fdinfo+0x90/0x90 [ 23.888999] __wake_up+0xe/0x10 [ 23.892270] eventfd_release+0x4a/0x60 [ 23.896138] __fput+0x327/0x7e0 [ 23.899405] ? fput+0x140/0x140 [ 23.902687] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.907167] ____fput+0x15/0x20 [ 23.910423] task_work_run+0x199/0x270 [ 23.914292] ? task_work_cancel+0x210/0x210 [ 23.918593] ? _raw_spin_unlock+0x22/0x30 [ 23.922716] ? switch_task_namespaces+0x87/0xc0 [ 23.927368] do_exit+0x9bb/0x1ad0 [ 23.930814] ? mm_update_next_owner+0x930/0x930 [ 23.935461] ? lock_downgrade+0x980/0x980 [ 23.939593] ? lock_release+0xa40/0xa40 [ 23.943543] ? lock_downgrade+0x980/0x980 [ 23.947667] ? check_noncircular+0x20/0x20 [ 23.951908] ? do_raw_spin_trylock+0x190/0x190 [ 23.956488] ? mntput_no_expire+0x15e/0xa90 [ 23.960797] ? _raw_spin_unlock+0x22/0x30 [ 23.964933] ? mnt_get_count+0x150/0x150 [ 23.968981] ? find_held_lock+0x35/0x1d0 [ 23.973037] ? task_work_run+0x16c/0x270 [ 23.977075] ? lock_downgrade+0x980/0x980 [ 23.981197] ? lock_release+0xa40/0xa40 [ 23.985148] ? do_raw_spin_trylock+0x190/0x190 [ 23.989709] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.994184] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.999176] ? trace_hardirqs_on+0xd/0x10 [ 24.003302] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.007778] ? task_work_run+0x1f4/0x270 [ 24.011818] ? task_work_cancel+0x210/0x210 [ 24.016117] ? __close_fd+0x222/0x360 [ 24.019895] ? exit_to_usermode_loop+0x8c/0x310 [ 24.025942] do_group_exit+0x149/0x400 [ 24.029816] ? trace_hardirqs_off+0xd/0x10 [ 24.034033] ? exit_to_usermode_loop+0x198/0x310 [ 24.038770] ? SyS_exit+0x30/0x30 [ 24.042200] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 24.047714] ? do_fast_syscall_32+0x156/0xf9d [ 24.052184] ? do_group_exit+0x400/0x400 [ 24.056220] SyS_exit_group+0x1d/0x20 [ 24.059996] do_fast_syscall_32+0x3ee/0xf9d [ 24.064298] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.068851] ? kasan_check_read+0x11/0x20 [ 24.072974] ? syscall_return_slowpath+0x550/0x550 [ 24.077877] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.082085] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.086295] ? SyS_read+0x184/0x220 [ 24.089897] ? sysret32_from_system_call+0x5/0x3b [ 24.094717] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.099542] entry_SYSENTER_compat+0x54/0x63 [ 24.103925] RIP: 0023:0xf7fd1c79 [ 24.107264] RSP: 002b:00000000ff969c0c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 24.114949] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 24.122193] RDX: 0000000000000000 RSI: 00000000080d57f8 RDI: 00000000080eb2a0 [ 24.129437] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.136687] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.143929] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.151199] [ 24.152798] Allocated by task 3656: [ 24.156402] save_stack+0x43/0xd0 [ 24.159825] kasan_kmalloc+0xad/0xe0 [ 24.163509] __kmalloc_node+0x47/0x70 [ 24.167284] kvmalloc_node+0x64/0xd0 [ 24.170968] vhost_net_open+0x27/0x670 [ 24.174824] misc_open+0x382/0x500 [ 24.178333] chrdev_open+0x257/0x730 [ 24.182023] do_dentry_open+0x667/0xd40 [ 24.185969] vfs_open+0x107/0x220 [ 24.189402] path_openat+0x1151/0x3530 [ 24.193259] do_filp_open+0x25b/0x3b0 [ 24.197032] do_sys_open+0x502/0x6d0 [ 24.200716] compat_SyS_openat+0x2d/0x40 [ 24.204748] do_fast_syscall_32+0x3ee/0xf9d [ 24.209046] entry_SYSENTER_compat+0x54/0x63 [ 24.213428] [ 24.215029] Freed by task 3656: [ 24.218285] save_stack+0x43/0xd0 [ 24.221708] kasan_slab_free+0x71/0xc0 [ 24.225564] kfree+0xd6/0x260 [ 24.228644] kvfree+0x36/0x60 [ 24.231732] vhost_net_release+0x159/0x190 [ 24.235945] __fput+0x327/0x7e0 [ 24.239194] ____fput+0x15/0x20 [ 24.242452] task_work_run+0x199/0x270 [ 24.246314] exit_to_usermode_loop+0x296/0x310 [ 24.250876] do_fast_syscall_32+0xbfd/0xf9d [ 24.255168] entry_SYSENTER_compat+0x54/0x63 [ 24.259545] [ 24.261151] The buggy address belongs to the object at ffff8801bb5e0140 [ 24.261151] which belongs to the cache kmalloc-65536 of size 65536 [ 24.274132] The buggy address is located 648 bytes inside of [ 24.274132] 65536-byte region [ffff8801bb5e0140, ffff8801bb5f0140) [ 24.286152] The buggy address belongs to the page: [ 24.291057] page:ffffea0006ed7800 count:1 mapcount:0 mapping:ffff8801bb5e0140 index:0x0 compound_mapcount: 0 [ 24.300998] flags: 0x2fffc0000008100(slab|head) [ 24.305654] raw: 02fffc0000008100 ffff8801bb5e0140 0000000000000000 0000000100000001 [ 24.313504] raw: ffffea00074c4820 ffffea0006ed6820 ffff8801dac02500 0000000000000000 [ 24.321353] page dumped because: kasan: bad access detected [ 24.327034] [ 24.328632] Memory state around the buggy address: [ 24.333531] ffff8801bb5e0280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.340860] ffff8801bb5e0300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.348190] >ffff8801bb5e0380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.355523] ^ [ 24.361217] ffff8801bb5e0400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.368550] ffff8801bb5e0480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.375876] ================================================================== [ 24.383205] Disabling lock debugging due to kernel taint [ 24.388622] Kernel panic - not syncing: panic_on_warn set ... [ 24.388622] [ 24.395962] CPU: 1 PID: 3656 Comm: syzkaller418313 Tainted: G B 4.15.0-rc9+ #191 [ 24.404680] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.414005] Call Trace: [ 24.416575] dump_stack+0x194/0x257 [ 24.420173] ? arch_local_irq_restore+0x53/0x53 [ 24.424811] ? kasan_end_report+0x32/0x50 [ 24.428930] ? lock_downgrade+0x980/0x980 [ 24.433050] ? vsnprintf+0x1ed/0x1900 [ 24.436822] ? __wake_up_common+0x670/0x780 [ 24.441117] panic+0x1e4/0x41c [ 24.444283] ? refcount_error_report+0x214/0x214 [ 24.449019] ? add_taint+0x40/0x50 [ 24.452533] ? add_taint+0x1c/0x50 [ 24.456049] ? __wake_up_common+0x670/0x780 [ 24.460342] kasan_end_report+0x50/0x50 [ 24.464288] kasan_report+0x144/0x340 [ 24.468062] __asan_report_load8_noabort+0x14/0x20 [ 24.472963] __wake_up_common+0x670/0x780 [ 24.477084] ? do_wait_intr_irq+0x3e0/0x3e0 [ 24.481380] ? unwind_get_return_address+0x61/0xa0 [ 24.486284] ? check_noncircular+0x20/0x20 [ 24.490496] __wake_up_common_lock+0x1b4/0x310 [ 24.495053] ? locks_remove_file+0x3fa/0x5a0 [ 24.499440] ? __wake_up_common+0x780/0x780 [ 24.503730] ? fcntl_setlk+0x10c0/0x10c0 [ 24.507765] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.512319] ? eventfd_show_fdinfo+0x90/0x90 [ 24.516704] __wake_up+0xe/0x10 [ 24.519963] eventfd_release+0x4a/0x60 [ 24.523822] __fput+0x327/0x7e0 [ 24.527073] ? fput+0x140/0x140 [ 24.530324] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.534797] ____fput+0x15/0x20 [ 24.538050] task_work_run+0x199/0x270 [ 24.541911] ? task_work_cancel+0x210/0x210 [ 24.546204] ? _raw_spin_unlock+0x22/0x30 [ 24.550320] ? switch_task_namespaces+0x87/0xc0 [ 24.554961] do_exit+0x9bb/0x1ad0 [ 24.558386] ? mm_update_next_owner+0x930/0x930 [ 24.563031] ? lock_downgrade+0x980/0x980 [ 24.567152] ? lock_release+0xa40/0xa40 [ 24.571095] ? lock_downgrade+0x980/0x980 [ 24.575210] ? check_noncircular+0x20/0x20 [ 24.579418] ? do_raw_spin_trylock+0x190/0x190 [ 24.583981] ? mntput_no_expire+0x15e/0xa90 [ 24.588281] ? _raw_spin_unlock+0x22/0x30 [ 24.592402] ? mnt_get_count+0x150/0x150 [ 24.596436] ? find_held_lock+0x35/0x1d0 [ 24.600473] ? task_work_run+0x16c/0x270 [ 24.604504] ? lock_downgrade+0x980/0x980 [ 24.608624] ? lock_release+0xa40/0xa40 [ 24.612570] ? do_raw_spin_trylock+0x190/0x190 [ 24.617123] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.621587] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.626574] ? trace_hardirqs_on+0xd/0x10 [ 24.630692] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.635157] ? task_work_run+0x1f4/0x270 [ 24.639188] ? task_work_cancel+0x210/0x210 [ 24.643479] ? __close_fd+0x222/0x360 [ 24.647251] ? exit_to_usermode_loop+0x8c/0x310 [ 24.651896] do_group_exit+0x149/0x400 [ 24.655753] ? trace_hardirqs_off+0xd/0x10 [ 24.659958] ? exit_to_usermode_loop+0x198/0x310 [ 24.664684] ? SyS_exit+0x30/0x30 [ 24.668107] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 24.673616] ? do_fast_syscall_32+0x156/0xf9d [ 24.678082] ? do_group_exit+0x400/0x400 [ 24.682112] SyS_exit_group+0x1d/0x20 [ 24.685885] do_fast_syscall_32+0x3ee/0xf9d [ 24.690180] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.694731] ? kasan_check_read+0x11/0x20 [ 24.698851] ? syscall_return_slowpath+0x550/0x550 [ 24.703754] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.707961] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.712166] ? SyS_read+0x184/0x220 [ 24.715762] ? sysret32_from_system_call+0x5/0x3b [ 24.720580] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.725399] entry_SYSENTER_compat+0x54/0x63 [ 24.729777] RIP: 0023:0xf7fd1c79 [ 24.733112] RSP: 002b:00000000ff969c0c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 24.740786] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 24.748026] RDX: 0000000000000000 RSI: 00000000080d57f8 RDI: 00000000080eb2a0 [ 24.755266] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.762503] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.769749] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.777458] Dumping ftrace buffer: [ 24.780968] (ftrace buffer empty) [ 24.784646] Kernel Offset: disabled [ 24.788246] Rebooting in 86400 seconds..