[?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. [ 18.285246] audit: type=1400 audit(1517313752.191:6): avc: denied { map } for pid=4147 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.15.201' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 24.593157] audit: type=1400 audit(1517313758.498:7): avc: denied { map } for pid=4161 comm="syzkaller122385" path="/root/syzkaller122385816" 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 [ 24.622628] ================================================================== [ 24.630024] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 24.636665] Read of size 8 at addr ffff8801b11e0448 by task syzkaller122385/4161 [ 24.644170] [ 24.645783] CPU: 0 PID: 4161 Comm: syzkaller122385 Not tainted 4.15.0+ #286 [ 24.652853] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.662178] Call Trace: [ 24.664753] dump_stack+0x194/0x257 [ 24.668357] ? arch_local_irq_restore+0x53/0x53 [ 24.672999] ? show_regs_print_info+0x18/0x18 [ 24.677663] ? __wake_up_common+0x670/0x780 [ 24.681959] print_address_description+0x73/0x250 [ 24.686775] ? __wake_up_common+0x670/0x780 [ 24.691069] kasan_report+0x25b/0x340 [ 24.694847] __asan_report_load8_noabort+0x14/0x20 [ 24.699749] __wake_up_common+0x670/0x780 [ 24.703886] ? do_wait_intr_irq+0x3e0/0x3e0 [ 24.708184] ? unwind_get_return_address+0x61/0xa0 [ 24.713088] ? __save_stack_trace+0x7e/0xd0 [ 24.717387] ? check_noncircular+0x20/0x20 [ 24.721605] __wake_up_common_lock+0x1b4/0x310 [ 24.726163] ? locks_remove_file+0x3fa/0x5a0 [ 24.730547] ? __wake_up_common+0x780/0x780 [ 24.734843] ? fcntl_setlk+0x10c0/0x10c0 [ 24.738890] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.743449] ? eventfd_show_fdinfo+0x90/0x90 [ 24.747833] __wake_up+0xe/0x10 [ 24.751093] eventfd_release+0x4a/0x60 [ 24.754952] __fput+0x327/0x7e0 [ 24.758213] ? fput+0x140/0x140 [ 24.761468] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.765941] ____fput+0x15/0x20 [ 24.769198] task_work_run+0x199/0x270 [ 24.773060] ? task_work_cancel+0x210/0x210 [ 24.777353] ? _raw_spin_unlock+0x22/0x30 [ 24.781476] ? switch_task_namespaces+0x87/0xc0 [ 24.786122] do_exit+0x9bb/0x1ad0 [ 24.789546] ? check_noncircular+0x20/0x20 [ 24.793758] ? mm_update_next_owner+0x930/0x930 [ 24.798414] ? mntput_no_expire+0x15e/0xa90 [ 24.802709] ? _raw_spin_unlock+0x22/0x30 [ 24.806832] ? mnt_get_count+0x150/0x150 [ 24.810875] ? find_held_lock+0x35/0x1d0 [ 24.814916] ? task_work_run+0x16c/0x270 [ 24.818960] ? lock_downgrade+0x980/0x980 [ 24.823079] ? mntput+0x66/0x90 [ 24.826334] ? lock_release+0xa40/0xa40 [ 24.830287] ? do_raw_spin_trylock+0x190/0x190 [ 24.834846] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.839315] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.844310] ? trace_hardirqs_on+0xd/0x10 [ 24.848431] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.852898] ? task_work_run+0x1f4/0x270 [ 24.856934] ? task_work_cancel+0x210/0x210 [ 24.861245] ? exit_to_usermode_loop+0x8c/0x310 [ 24.865893] ? trace_hardirqs_off+0xd/0x10 [ 24.870098] ? exit_to_usermode_loop+0x198/0x310 [ 24.874842] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 24.880369] ? __close_fd+0x222/0x360 [ 24.884168] do_group_exit+0x149/0x400 [ 24.888039] ? prepare_exit_to_usermode+0x340/0x340 [ 24.893037] ? SyS_exit+0x30/0x30 [ 24.896463] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.901455] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.906187] SyS_exit_group+0x1d/0x20 [ 24.909982] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.914718] RIP: 0033:0x43e978 [ 24.917882] RSP: 002b:00007ffdf5df2f68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.925564] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043e978 [ 24.932812] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.940060] RBP: 00000000006ca018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.947309] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004016a0 [ 24.954561] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 24.961820] [ 24.963420] Allocated by task 4161: [ 24.967020] save_stack+0x43/0xd0 [ 24.970443] kasan_kmalloc+0xad/0xe0 [ 24.974127] __kmalloc_node+0x47/0x70 [ 24.977912] kvmalloc_node+0x64/0xd0 [ 24.981598] vhost_net_open+0x27/0x670 [ 24.985456] misc_open+0x382/0x500 [ 24.988968] chrdev_open+0x257/0x730 [ 24.992661] do_dentry_open+0x667/0xd40 [ 24.996612] vfs_open+0x107/0x220 [ 25.000040] path_openat+0x1151/0x3530 [ 25.003903] do_filp_open+0x25b/0x3b0 [ 25.007673] do_sys_open+0x502/0x6d0 [ 25.011369] SyS_openat+0x30/0x40 [ 25.014800] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.019528] [ 25.021134] Freed by task 4161: [ 25.024390] save_stack+0x43/0xd0 [ 25.027814] kasan_slab_free+0x71/0xc0 [ 25.031672] kfree+0xd6/0x260 [ 25.034752] kvfree+0x36/0x60 [ 25.037831] vhost_net_release+0x159/0x190 [ 25.042041] __fput+0x327/0x7e0 [ 25.045303] ____fput+0x15/0x20 [ 25.048558] task_work_run+0x199/0x270 [ 25.052418] exit_to_usermode_loop+0x296/0x310 [ 25.056971] syscall_return_slowpath+0x490/0x550 [ 25.061702] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 25.066425] [ 25.068033] The buggy address belongs to the object at ffff8801b11e01c0 [ 25.068033] which belongs to the cache kmalloc-65536 of size 65536 [ 25.081018] The buggy address is located 648 bytes inside of [ 25.081018] 65536-byte region [ffff8801b11e01c0, ffff8801b11f01c0) [ 25.093034] The buggy address belongs to the page: [ 25.097943] page:ffffea0006c47800 count:1 mapcount:0 mapping:ffff8801b11e01c0 index:0x0 compound_mapcount: 0 [ 25.107885] flags: 0x2fffc0000008100(slab|head) [ 25.112525] raw: 02fffc0000008100 ffff8801b11e01c0 0000000000000000 0000000100000001 [ 25.120380] raw: ffffea000749d820 ffffea0006c4d020 ffff8801db002500 0000000000000000 [ 25.128228] page dumped because: kasan: bad access detected [ 25.133906] [ 25.135504] Memory state around the buggy address: [ 25.140403] ffff8801b11e0300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.147732] ffff8801b11e0380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.155072] >ffff8801b11e0400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.162402] ^ [ 25.168084] ffff8801b11e0480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.175424] ffff8801b11e0500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.182751] ================================================================== [ 25.190077] Disabling lock debugging due to kernel taint [ 25.195495] Kernel panic - not syncing: panic_on_warn set ... [ 25.195495] [ 25.202829] CPU: 0 PID: 4161 Comm: syzkaller122385 Tainted: G B 4.15.0+ #286 [ 25.211198] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.220533] Call Trace: [ 25.223092] dump_stack+0x194/0x257 [ 25.226693] ? arch_local_irq_restore+0x53/0x53 [ 25.231333] ? kasan_end_report+0x32/0x50 [ 25.235457] ? lock_downgrade+0x980/0x980 [ 25.239578] ? vsnprintf+0x1ed/0x1900 [ 25.243361] ? __wake_up_common+0x670/0x780 [ 25.247655] panic+0x1e4/0x41c [ 25.250818] ? refcount_error_report+0x214/0x214 [ 25.255557] ? add_taint+0x40/0x50 [ 25.259068] ? add_taint+0x1c/0x50 [ 25.262581] ? __wake_up_common+0x670/0x780 [ 25.266876] kasan_end_report+0x50/0x50 [ 25.270823] kasan_report+0x144/0x340 [ 25.274599] __asan_report_load8_noabort+0x14/0x20 [ 25.279503] __wake_up_common+0x670/0x780 [ 25.283625] ? do_wait_intr_irq+0x3e0/0x3e0 [ 25.287918] ? unwind_get_return_address+0x61/0xa0 [ 25.292833] ? __save_stack_trace+0x7e/0xd0 [ 25.297127] ? check_noncircular+0x20/0x20 [ 25.301338] __wake_up_common_lock+0x1b4/0x310 [ 25.305893] ? locks_remove_file+0x3fa/0x5a0 [ 25.310273] ? __wake_up_common+0x780/0x780 [ 25.314565] ? fcntl_setlk+0x10c0/0x10c0 [ 25.318631] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.323186] ? eventfd_show_fdinfo+0x90/0x90 [ 25.327568] __wake_up+0xe/0x10 [ 25.330821] eventfd_release+0x4a/0x60 [ 25.334683] __fput+0x327/0x7e0 [ 25.337937] ? fput+0x140/0x140 [ 25.341192] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.345662] ____fput+0x15/0x20 [ 25.348915] task_work_run+0x199/0x270 [ 25.352797] ? task_work_cancel+0x210/0x210 [ 25.357091] ? _raw_spin_unlock+0x22/0x30 [ 25.361213] ? switch_task_namespaces+0x87/0xc0 [ 25.365876] do_exit+0x9bb/0x1ad0 [ 25.369301] ? check_noncircular+0x20/0x20 [ 25.373510] ? mm_update_next_owner+0x930/0x930 [ 25.378153] ? mntput_no_expire+0x15e/0xa90 [ 25.382446] ? _raw_spin_unlock+0x22/0x30 [ 25.386567] ? mnt_get_count+0x150/0x150 [ 25.390605] ? find_held_lock+0x35/0x1d0 [ 25.394646] ? task_work_run+0x16c/0x270 [ 25.398683] ? lock_downgrade+0x980/0x980 [ 25.402802] ? mntput+0x66/0x90 [ 25.406057] ? lock_release+0xa40/0xa40 [ 25.410007] ? do_raw_spin_trylock+0x190/0x190 [ 25.414562] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.419027] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.424019] ? trace_hardirqs_on+0xd/0x10 [ 25.428147] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.432624] ? task_work_run+0x1f4/0x270 [ 25.436663] ? task_work_cancel+0x210/0x210 [ 25.440958] ? exit_to_usermode_loop+0x8c/0x310 [ 25.445611] ? trace_hardirqs_off+0xd/0x10 [ 25.449817] ? exit_to_usermode_loop+0x198/0x310 [ 25.454548] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.460064] ? __close_fd+0x222/0x360 [ 25.463841] do_group_exit+0x149/0x400 [ 25.467701] ? prepare_exit_to_usermode+0x340/0x340 [ 25.472691] ? SyS_exit+0x30/0x30 [ 25.476117] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.481105] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.485837] SyS_exit_group+0x1d/0x20 [ 25.489621] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.494362] RIP: 0033:0x43e978 [ 25.497521] RSP: 002b:00007ffdf5df2f68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.505202] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043e978 [ 25.512451] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.519691] RBP: 00000000006ca018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.526931] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004016a0 [ 25.534174] R13: 0000000000401730 R14: 0000000000000000 R15: 0000000000000000 [ 25.541909] Dumping ftrace buffer: [ 25.545444] (ftrace buffer empty) [ 25.549125] Kernel Offset: disabled [ 25.552723] Rebooting in 86400 seconds..