[....] Starting enhanced syslogd: rsyslogd[ 12.875363] audit: type=1400 audit(1516863997.304:5): avc: denied { syslog } for pid=3502 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.199341] audit: type=1400 audit(1516864002.628:6): avc: denied { map } for pid=3640 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.220' (ECDSA) to the list of known hosts. [ 38.861739] audit: type=1400 audit(1516864023.290:7): avc: denied { map } for pid=3657 comm="syz-execprog" path="/root/syz-execprog" dev="sda1" ino=16479 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 2018/01/25 07:07:03 parsed 1 programs 2018/01/25 07:07:03 executed programs: 0 [ 39.069508] audit: type=1400 audit(1516864023.498:8): avc: denied { map } for pid=3657 comm="syz-execprog" path="/root/syzkaller-shm438989243" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 [ 39.105997] audit: type=1400 audit(1516864023.534:9): avc: denied { sys_admin } for pid=3662 comm="syz-executor4" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 39.287610] audit: type=1400 audit(1516864023.716:10): avc: denied { sys_chroot } for pid=3668 comm="syz-executor5" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 41.994640] ================================================================== [ 42.002120] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 42.009795] Read of size 8 at addr ffff8801b27253a0 by task syz-executor4/5086 [ 42.018063] [ 42.019700] CPU: 1 PID: 5086 Comm: syz-executor4 Not tainted 4.15.0-rc9+ #278 [ 42.026972] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.037113] Call Trace: [ 42.039713] dump_stack+0x194/0x257 [ 42.043808] ? arch_local_irq_restore+0x53/0x53 [ 42.049979] ? show_regs_print_info+0x18/0x18 [ 42.054483] ? __wake_up_common+0x670/0x780 [ 42.058822] print_address_description+0x73/0x250 [ 42.063671] ? __wake_up_common+0x670/0x780 [ 42.067978] kasan_report+0x25b/0x340 [ 42.071781] __asan_report_load8_noabort+0x14/0x20 [ 42.076714] __wake_up_common+0x670/0x780 [ 42.080856] ? do_wait_intr_irq+0x3e0/0x3e0 [ 42.085169] ? lock_release+0xa40/0xa40 [ 42.089129] ? __dentry_kill+0x487/0x6d0 [ 42.093194] __wake_up_common_lock+0x1b4/0x310 [ 42.097769] ? locks_remove_file+0x3fa/0x5a0 [ 42.102160] ? __wake_up_common+0x780/0x780 [ 42.106460] ? fcntl_setlk+0x10c0/0x10c0 [ 42.110511] ? fsnotify_first_mark+0x2b0/0x2b0 [ 42.115076] ? eventfd_show_fdinfo+0x90/0x90 [ 42.119474] __wake_up+0xe/0x10 [ 42.123000] eventfd_release+0x4a/0x60 [ 42.126894] __fput+0x327/0x7e0 [ 42.130165] ? fput+0x140/0x140 [ 42.133426] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 42.139299] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.143789] ____fput+0x15/0x20 [ 42.147058] task_work_run+0x199/0x270 [ 42.150940] ? task_work_cancel+0x210/0x210 [ 42.155966] ? _raw_spin_unlock+0x22/0x30 [ 42.160095] ? switch_task_namespaces+0x87/0xc0 [ 42.164751] do_exit+0x9bb/0x1ad0 [ 42.168203] ? mm_update_next_owner+0x930/0x930 [ 42.172856] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.178462] ? __might_sleep+0x95/0x190 [ 42.182942] ? find_held_lock+0x35/0x1d0 [ 42.187009] ? futex_wait+0x402/0x9a0 [ 42.191779] ? lock_downgrade+0x980/0x980 [ 42.195918] ? __unqueue_futex+0x1c0/0x290 [ 42.200305] ? lock_release+0xa40/0xa40 [ 42.204262] ? fault_in_user_writeable+0x90/0x90 [ 42.209000] ? do_raw_spin_trylock+0x190/0x190 [ 42.213578] ? futex_wake+0x680/0x680 [ 42.217359] ? check_noncircular+0x20/0x20 [ 42.221576] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 42.226657] ? futex_wait+0x6a9/0x9a0 [ 42.230447] ? find_held_lock+0x35/0x1d0 [ 42.234494] ? get_signal+0x7ae/0x16c0 [ 42.238364] ? lock_downgrade+0x980/0x980 [ 42.242509] do_group_exit+0x149/0x400 [ 42.246377] ? do_raw_spin_trylock+0x190/0x190 [ 42.250937] ? SyS_exit+0x30/0x30 [ 42.254372] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.258848] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.263849] get_signal+0x73f/0x16c0 [ 42.267549] ? ptrace_notify+0x130/0x130 [ 42.271597] ? exit_robust_list+0x240/0x240 [ 42.275902] ? avc_has_extended_perms+0x7fa/0x12c0 [ 42.281246] ? find_held_lock+0x35/0x1d0 [ 42.285293] ? vhost_net_stop_vq+0xf0/0xf0 [ 42.289511] ? avc_ss_reset+0x110/0x110 [ 42.293463] ? lock_downgrade+0x980/0x980 [ 42.298121] do_signal+0x90/0x1eb0 [ 42.301671] ? __lock_is_held+0xb6/0x140 [ 42.305726] ? setup_sigcontext+0x7d0/0x7d0 [ 42.310054] ? up_read+0x1a/0x40 [ 42.313400] ? rcu_note_context_switch+0x710/0x710 [ 42.318579] ? exit_to_usermode_loop+0x8c/0x310 [ 42.323235] exit_to_usermode_loop+0x214/0x310 [ 42.327800] ? ioctl_preallocate+0x2b0/0x2b0 [ 42.332213] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 42.338093] ? selinux_capable+0x40/0x40 [ 42.342161] syscall_return_slowpath+0x490/0x550 [ 42.346902] ? prepare_exit_to_usermode+0x340/0x340 [ 42.351925] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 42.356850] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.361845] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.366870] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 42.371622] RIP: 0033:0x452f19 [ 42.375136] RSP: 002b:00007fa56a3bfce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 42.382826] RAX: fffffffffffffe00 RBX: 000000000071bf80 RCX: 0000000000452f19 [ 42.390076] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000071bf80 [ 42.397322] RBP: 000000000071bf80 R08: 0000000000000000 R09: 000000000071bf58 [ 42.404571] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 42.411818] R13: 0000000000a2f7cf R14: 00007fa56a3c09c0 R15: 0000000000000004 [ 42.419084] [ 42.420688] Allocated by task 5071: [ 42.424294] save_stack+0x43/0xd0 [ 42.427728] kasan_kmalloc+0xad/0xe0 [ 42.431423] __kmalloc_node+0x47/0x70 [ 42.435203] kvmalloc_node+0x64/0xd0 [ 42.438897] vhost_net_open+0x27/0x670 [ 42.442765] misc_open+0x382/0x500 [ 42.446285] chrdev_open+0x257/0x730 [ 42.449974] do_dentry_open+0x667/0xd40 [ 42.453922] vfs_open+0x107/0x220 [ 42.457381] path_openat+0x1151/0x3530 [ 42.461257] do_filp_open+0x25b/0x3b0 [ 42.465475] do_sys_open+0x502/0x6d0 [ 42.469163] SyS_openat+0x30/0x40 [ 42.472602] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 42.477339] [ 42.478940] Freed by task 5086: [ 42.482196] save_stack+0x43/0xd0 [ 42.485622] kasan_slab_free+0x71/0xc0 [ 42.489492] kfree+0xd6/0x260 [ 42.492578] kvfree+0x36/0x60 [ 42.495660] vhost_net_release+0x159/0x190 [ 42.499869] __fput+0x327/0x7e0 [ 42.503133] ____fput+0x15/0x20 [ 42.506388] task_work_run+0x199/0x270 [ 42.510270] do_exit+0x9bb/0x1ad0 [ 42.513712] do_group_exit+0x149/0x400 [ 42.517577] get_signal+0x73f/0x16c0 [ 42.521264] do_signal+0x90/0x1eb0 [ 42.525129] exit_to_usermode_loop+0x214/0x310 [ 42.529689] syscall_return_slowpath+0x490/0x550 [ 42.534434] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 42.539162] [ 42.540766] The buggy address belongs to the object at ffff8801b2720ac0 [ 42.540766] which belongs to the cache kmalloc-65536 of size 65536 [ 42.553752] The buggy address is located 18656 bytes inside of [ 42.553752] 65536-byte region [ffff8801b2720ac0, ffff8801b2730ac0) [ 42.565955] The buggy address belongs to the page: [ 42.570860] page:ffffea0006c9c800 count:1 mapcount:0 mapping:ffff8801b2720ac0 index:0x0 compound_mapcount: 0 [ 42.580805] flags: 0x2fffc0000008100(slab|head) [ 42.585451] raw: 02fffc0000008100 ffff8801b2720ac0 0000000000000000 0000000100000001 [ 42.593309] raw: ffffea0006c9c020 ffffea0006c9d020 ffff8801dac02500 0000000000000000 [ 42.601163] page dumped because: kasan: bad access detected [ 42.606845] [ 42.608446] Memory state around the buggy address: [ 42.613358] ffff8801b2725280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.621128] ffff8801b2725300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.630987] >ffff8801b2725380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.639644] ^ [ 42.645415] ffff8801b2725400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.652749] ffff8801b2725480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.660084] ================================================================== [ 42.667414] Disabling lock debugging due to kernel taint [ 42.672836] Kernel panic - not syncing: panic_on_warn set ... [ 42.672836] [ 42.680170] CPU: 1 PID: 5086 Comm: syz-executor4 Tainted: G B 4.15.0-rc9+ #278 [ 42.689236] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.698573] Call Trace: [ 42.701404] dump_stack+0x194/0x257 [ 42.705445] ? arch_local_irq_restore+0x53/0x53 [ 42.710090] ? kasan_end_report+0x32/0x50 [ 42.714216] ? lock_downgrade+0x980/0x980 [ 42.718343] ? vsnprintf+0x1ed/0x1900 [ 42.722381] ? __wake_up_common+0x670/0x780 [ 42.726692] panic+0x1e4/0x41c [ 42.730138] ? refcount_error_report+0x214/0x214 [ 42.734878] ? add_taint+0x40/0x50 [ 42.738654] ? add_taint+0x1c/0x50 [ 42.742173] ? __wake_up_common+0x670/0x780 [ 42.747261] kasan_end_report+0x50/0x50 [ 42.751213] kasan_report+0x144/0x340 [ 42.754992] __asan_report_load8_noabort+0x14/0x20 [ 42.759902] __wake_up_common+0x670/0x780 [ 42.764035] ? do_wait_intr_irq+0x3e0/0x3e0 [ 42.768345] ? lock_release+0xa40/0xa40 [ 42.772292] ? __dentry_kill+0x487/0x6d0 [ 42.776331] __wake_up_common_lock+0x1b4/0x310 [ 42.780891] ? locks_remove_file+0x3fa/0x5a0 [ 42.785274] ? __wake_up_common+0x780/0x780 [ 42.789745] ? fcntl_setlk+0x10c0/0x10c0 [ 42.793787] ? fsnotify_first_mark+0x2b0/0x2b0 [ 42.798346] ? eventfd_show_fdinfo+0x90/0x90 [ 42.802728] __wake_up+0xe/0x10 [ 42.805983] eventfd_release+0x4a/0x60 [ 42.809845] __fput+0x327/0x7e0 [ 42.813101] ? fput+0x140/0x140 [ 42.816353] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 42.822212] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.826709] ____fput+0x15/0x20 [ 42.829964] task_work_run+0x199/0x270 [ 42.833829] ? task_work_cancel+0x210/0x210 [ 42.838129] ? _raw_spin_unlock+0x22/0x30 [ 42.842257] ? switch_task_namespaces+0x87/0xc0 [ 42.846912] do_exit+0x9bb/0x1ad0 [ 42.850343] ? mm_update_next_owner+0x930/0x930 [ 42.855772] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 42.860937] ? __might_sleep+0x95/0x190 [ 42.864887] ? find_held_lock+0x35/0x1d0 [ 42.868930] ? futex_wait+0x402/0x9a0 [ 42.873061] ? lock_downgrade+0x980/0x980 [ 42.877196] ? __unqueue_futex+0x1c0/0x290 [ 42.881403] ? lock_release+0xa40/0xa40 [ 42.885620] ? fault_in_user_writeable+0x90/0x90 [ 42.890526] ? do_raw_spin_trylock+0x190/0x190 [ 42.895265] ? futex_wake+0x680/0x680 [ 42.899047] ? check_noncircular+0x20/0x20 [ 42.903521] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 42.908597] ? futex_wait+0x6a9/0x9a0 [ 42.912389] ? find_held_lock+0x35/0x1d0 [ 42.916443] ? get_signal+0x7ae/0x16c0 [ 42.920307] ? lock_downgrade+0x980/0x980 [ 42.924442] do_group_exit+0x149/0x400 [ 42.928314] ? do_raw_spin_trylock+0x190/0x190 [ 42.932871] ? SyS_exit+0x30/0x30 [ 42.936300] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.940769] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.945761] get_signal+0x73f/0x16c0 [ 42.949453] ? ptrace_notify+0x130/0x130 [ 42.953492] ? exit_robust_list+0x240/0x240 [ 42.957787] ? avc_has_extended_perms+0x7fa/0x12c0 [ 42.962705] ? find_held_lock+0x35/0x1d0 [ 42.966745] ? vhost_net_stop_vq+0xf0/0xf0 [ 42.970963] ? avc_ss_reset+0x110/0x110 [ 42.974911] ? lock_downgrade+0x980/0x980 [ 42.979040] do_signal+0x90/0x1eb0 [ 42.983868] ? __lock_is_held+0xb6/0x140 [ 42.988603] ? setup_sigcontext+0x7d0/0x7d0 [ 42.992918] ? up_read+0x1a/0x40 [ 42.996263] ? rcu_note_context_switch+0x710/0x710 [ 43.001172] ? exit_to_usermode_loop+0x8c/0x310 [ 43.005817] exit_to_usermode_loop+0x214/0x310 [ 43.010374] ? ioctl_preallocate+0x2b0/0x2b0 [ 43.014761] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 43.020274] ? selinux_capable+0x40/0x40 [ 43.024324] syscall_return_slowpath+0x490/0x550 [ 43.029066] ? prepare_exit_to_usermode+0x340/0x340 [ 43.034062] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 43.039006] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.044014] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.048755] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 43.053493] RIP: 0033:0x452f19 [ 43.056655] RSP: 002b:00007fa56a3bfce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 43.064336] RAX: fffffffffffffe00 RBX: 000000000071bf80 RCX: 0000000000452f19 [ 43.071580] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000071bf80 [ 43.078833] RBP: 000000000071bf80 R08: 0000000000000000 R09: 000000000071bf58 [ 43.086078] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 43.093323] R13: 0000000000a2f7cf R14: 00007fa56a3c09c0 R15: 0000000000000004 [ 43.101059] Dumping ftrace buffer: [ 43.104573] (ftrace buffer empty) [ 43.108255] Kernel Offset: disabled [ 43.111858] Rebooting in 86400 seconds..