[....] Starting enhanced syslogd: rsyslogd[ 13.518927] audit: type=1400 audit(1516802368.324:5): avc: denied { syslog } for pid=3510 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.945686] audit: type=1400 audit(1516802372.751:6): avc: denied { map } for pid=3649 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.200' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program [ 24.216943] audit: type=1400 audit(1516802379.022:7): avc: denied { map } for pid=3663 comm="syzkaller570329" path="/root/syzkaller570329202" 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 [ 24.326346] ================================================================== [ 24.333942] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 24.340622] Read of size 8 at addr ffff8801c66651a0 by task syzkaller570329/3714 [ 24.348157] [ 24.349822] CPU: 1 PID: 3714 Comm: syzkaller570329 Not tainted 4.15.0-rc9+ #277 [ 24.357261] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.366620] Call Trace: [ 24.369209] dump_stack+0x194/0x257 [ 24.372851] ? arch_local_irq_restore+0x53/0x53 [ 24.377537] ? show_regs_print_info+0x18/0x18 [ 24.382020] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 24.387108] ? __wake_up_common+0x670/0x780 [ 24.391412] print_address_description+0x73/0x250 [ 24.396230] ? __wake_up_common+0x670/0x780 [ 24.400532] kasan_report+0x25b/0x340 [ 24.404314] __asan_report_load8_noabort+0x14/0x20 [ 24.409224] __wake_up_common+0x670/0x780 [ 24.413357] ? do_wait_intr_irq+0x3e0/0x3e0 [ 24.417664] ? lock_release+0xa40/0xa40 [ 24.421621] ? lock_downgrade+0x980/0x980 [ 24.425754] __wake_up_common_lock+0x1b4/0x310 [ 24.430312] ? locks_remove_file+0x3fa/0x5a0 [ 24.434696] ? __wake_up_common+0x780/0x780 [ 24.438992] ? fcntl_setlk+0x10c0/0x10c0 [ 24.443045] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.447608] ? eventfd_show_fdinfo+0x90/0x90 [ 24.451992] __wake_up+0xe/0x10 [ 24.455253] eventfd_release+0x4a/0x60 [ 24.459116] __fput+0x327/0x7e0 [ 24.462379] ? fput+0x140/0x140 [ 24.465638] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.471500] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.475993] ____fput+0x15/0x20 [ 24.479267] task_work_run+0x199/0x270 [ 24.483145] ? task_work_cancel+0x210/0x210 [ 24.487443] ? _raw_spin_unlock+0x22/0x30 [ 24.491567] ? switch_task_namespaces+0x87/0xc0 [ 24.496216] do_exit+0x9bb/0x1ad0 [ 24.499652] ? mm_update_next_owner+0x930/0x930 [ 24.504305] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.509476] ? __might_sleep+0x95/0x190 [ 24.513432] ? find_held_lock+0x35/0x1d0 [ 24.517476] ? futex_wait+0x402/0x9a0 [ 24.521252] ? lock_downgrade+0x980/0x980 [ 24.525375] ? __unqueue_futex+0x1c0/0x290 [ 24.529585] ? lock_release+0xa40/0xa40 [ 24.533535] ? fault_in_user_writeable+0x90/0x90 [ 24.538270] ? do_raw_spin_trylock+0x190/0x190 [ 24.542828] ? futex_wake+0x680/0x680 [ 24.546602] ? check_noncircular+0x20/0x20 [ 24.550828] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 24.555908] ? futex_wait+0x6a9/0x9a0 [ 24.559702] ? find_held_lock+0x35/0x1d0 [ 24.563747] ? get_signal+0x7ae/0x16c0 [ 24.567614] ? lock_downgrade+0x980/0x980 [ 24.571747] do_group_exit+0x149/0x400 [ 24.575611] ? do_raw_spin_trylock+0x190/0x190 [ 24.580175] ? SyS_exit+0x30/0x30 [ 24.583612] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.588087] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.593088] get_signal+0x73f/0x16c0 [ 24.596788] ? ptrace_notify+0x130/0x130 [ 24.600848] ? exit_robust_list+0x240/0x240 [ 24.605150] ? avc_has_extended_perms+0x7fa/0x12c0 [ 24.610141] ? find_held_lock+0x35/0x1d0 [ 24.614184] ? vhost_net_stop_vq+0xf0/0xf0 [ 24.618400] ? avc_ss_reset+0x110/0x110 [ 24.622345] ? lock_downgrade+0x980/0x980 [ 24.626474] do_signal+0x90/0x1eb0 [ 24.629994] ? __lock_is_held+0xb6/0x140 [ 24.634057] ? setup_sigcontext+0x7d0/0x7d0 [ 24.638374] ? up_read+0x1a/0x40 [ 24.641716] ? rcu_note_context_switch+0x710/0x710 [ 24.646646] ? exit_to_usermode_loop+0x8c/0x310 [ 24.651308] exit_to_usermode_loop+0x214/0x310 [ 24.655864] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.660968] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 24.666498] ? selinux_capable+0x40/0x40 [ 24.670549] syscall_return_slowpath+0x490/0x550 [ 24.675298] ? prepare_exit_to_usermode+0x340/0x340 [ 24.680298] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 24.685217] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.690213] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.694946] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 24.699675] RIP: 0033:0x445d69 [ 24.702842] RSP: 002b:00007f3aab34fda8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 24.710526] RAX: fffffffffffffe00 RBX: 00000000006dbc3c RCX: 0000000000445d69 [ 24.717771] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006dbc3c [ 24.725020] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 24.732274] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc38 [ 24.739524] R13: 6f68762f7665642f R14: 00007f3aab3509c0 R15: 0000000000000007 [ 24.746803] [ 24.748429] Allocated by task 3694: [ 24.752040] save_stack+0x43/0xd0 [ 24.755466] kasan_kmalloc+0xad/0xe0 [ 24.759153] __kmalloc_node+0x47/0x70 [ 24.762927] kvmalloc_node+0x64/0xd0 [ 24.766620] vhost_net_open+0x27/0x670 [ 24.770482] misc_open+0x382/0x500 [ 24.773997] chrdev_open+0x257/0x730 [ 24.777690] do_dentry_open+0x667/0xd40 [ 24.781636] vfs_open+0x107/0x220 [ 24.785061] path_openat+0x1151/0x3530 [ 24.788920] do_filp_open+0x25b/0x3b0 [ 24.792692] do_sys_open+0x502/0x6d0 [ 24.796378] SyS_openat+0x30/0x40 [ 24.799803] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.804527] [ 24.806133] Freed by task 3714: [ 24.809393] save_stack+0x43/0xd0 [ 24.812825] kasan_slab_free+0x71/0xc0 [ 24.816684] kfree+0xd6/0x260 [ 24.819780] kvfree+0x36/0x60 [ 24.822866] vhost_net_release+0x159/0x190 [ 24.827076] __fput+0x327/0x7e0 [ 24.830330] ____fput+0x15/0x20 [ 24.833585] task_work_run+0x199/0x270 [ 24.837451] do_exit+0x9bb/0x1ad0 [ 24.840888] do_group_exit+0x149/0x400 [ 24.844750] get_signal+0x73f/0x16c0 [ 24.848443] do_signal+0x90/0x1eb0 [ 24.851965] exit_to_usermode_loop+0x214/0x310 [ 24.856522] syscall_return_slowpath+0x490/0x550 [ 24.861255] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 24.865981] [ 24.867583] The buggy address belongs to the object at ffff8801c66608c0 [ 24.867583] which belongs to the cache kmalloc-65536 of size 65536 [ 24.880557] The buggy address is located 18656 bytes inside of [ 24.880557] 65536-byte region [ffff8801c66608c0, ffff8801c66708c0) [ 24.892756] The buggy address belongs to the page: [ 24.897662] page:ffffea0007199800 count:1 mapcount:0 mapping:ffff8801c66608c0 index:0x0 compound_mapcount: 0 [ 24.907607] flags: 0x2fffc0000008100(slab|head) [ 24.912264] raw: 02fffc0000008100 ffff8801c66608c0 0000000000000000 0000000100000001 [ 24.920132] raw: ffffea00073cc020 ffffea0007198020 ffff8801dac02500 0000000000000000 [ 24.927985] page dumped because: kasan: bad access detected [ 24.933683] [ 24.935287] Memory state around the buggy address: [ 24.940193] ffff8801c6665080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.947529] ffff8801c6665100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.954864] >ffff8801c6665180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.962199] ^ [ 24.966582] ffff8801c6665200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.973921] ffff8801c6665280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.981257] ================================================================== [ 24.988587] Disabling lock debugging due to kernel taint [ 24.994008] Kernel panic - not syncing: panic_on_warn set ... [ 24.994008] [ 25.001349] CPU: 1 PID: 3714 Comm: syzkaller570329 Tainted: G B 4.15.0-rc9+ #277 [ 25.010066] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.019394] Call Trace: [ 25.021976] dump_stack+0x194/0x257 [ 25.025577] ? arch_local_irq_restore+0x53/0x53 [ 25.030219] ? kasan_end_report+0x32/0x50 [ 25.034345] ? lock_downgrade+0x980/0x980 [ 25.038466] ? vsnprintf+0x1ed/0x1900 [ 25.042244] ? __wake_up_common+0x670/0x780 [ 25.046546] panic+0x1e4/0x41c [ 25.049715] ? refcount_error_report+0x214/0x214 [ 25.054446] ? add_taint+0x40/0x50 [ 25.057972] ? add_taint+0x1c/0x50 [ 25.061487] ? __wake_up_common+0x670/0x780 [ 25.065782] kasan_end_report+0x50/0x50 [ 25.069730] kasan_report+0x144/0x340 [ 25.073505] __asan_report_load8_noabort+0x14/0x20 [ 25.078405] __wake_up_common+0x670/0x780 [ 25.082528] ? do_wait_intr_irq+0x3e0/0x3e0 [ 25.086822] ? lock_release+0xa40/0xa40 [ 25.090768] ? lock_downgrade+0x980/0x980 [ 25.094897] __wake_up_common_lock+0x1b4/0x310 [ 25.099453] ? locks_remove_file+0x3fa/0x5a0 [ 25.103835] ? __wake_up_common+0x780/0x780 [ 25.108130] ? fcntl_setlk+0x10c0/0x10c0 [ 25.112171] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.116729] ? eventfd_show_fdinfo+0x90/0x90 [ 25.121110] __wake_up+0xe/0x10 [ 25.124362] eventfd_release+0x4a/0x60 [ 25.128228] __fput+0x327/0x7e0 [ 25.131485] ? fput+0x140/0x140 [ 25.134737] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.140595] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.145072] ____fput+0x15/0x20 [ 25.148331] task_work_run+0x199/0x270 [ 25.152194] ? task_work_cancel+0x210/0x210 [ 25.156491] ? _raw_spin_unlock+0x22/0x30 [ 25.160611] ? switch_task_namespaces+0x87/0xc0 [ 25.165257] do_exit+0x9bb/0x1ad0 [ 25.168686] ? mm_update_next_owner+0x930/0x930 [ 25.173331] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.178498] ? __might_sleep+0x95/0x190 [ 25.182448] ? find_held_lock+0x35/0x1d0 [ 25.186488] ? futex_wait+0x402/0x9a0 [ 25.190262] ? lock_downgrade+0x980/0x980 [ 25.194384] ? __unqueue_futex+0x1c0/0x290 [ 25.198590] ? lock_release+0xa40/0xa40 [ 25.202549] ? fault_in_user_writeable+0x90/0x90 [ 25.207280] ? do_raw_spin_trylock+0x190/0x190 [ 25.211834] ? futex_wake+0x680/0x680 [ 25.216129] ? check_noncircular+0x20/0x20 [ 25.221138] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 25.226830] ? futex_wait+0x6a9/0x9a0 [ 25.231820] ? find_held_lock+0x35/0x1d0 [ 25.236474] ? get_signal+0x7ae/0x16c0 [ 25.240335] ? lock_downgrade+0x980/0x980 [ 25.244459] do_group_exit+0x149/0x400 [ 25.248320] ? do_raw_spin_trylock+0x190/0x190 [ 25.252873] ? SyS_exit+0x30/0x30 [ 25.256300] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.260768] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.265759] get_signal+0x73f/0x16c0 [ 25.269450] ? ptrace_notify+0x130/0x130 [ 25.273487] ? exit_robust_list+0x240/0x240 [ 25.277783] ? avc_has_extended_perms+0x7fa/0x12c0 [ 25.282694] ? find_held_lock+0x35/0x1d0 [ 25.286744] ? vhost_net_stop_vq+0xf0/0xf0 [ 25.290955] ? avc_ss_reset+0x110/0x110 [ 25.294902] ? lock_downgrade+0x980/0x980 [ 25.299031] do_signal+0x90/0x1eb0 [ 25.302549] ? __lock_is_held+0xb6/0x140 [ 25.306597] ? setup_sigcontext+0x7d0/0x7d0 [ 25.310911] ? up_read+0x1a/0x40 [ 25.314262] ? rcu_note_context_switch+0x710/0x710 [ 25.319168] ? exit_to_usermode_loop+0x8c/0x310 [ 25.323813] exit_to_usermode_loop+0x214/0x310 [ 25.328367] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.332749] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.338262] ? selinux_capable+0x40/0x40 [ 25.342312] syscall_return_slowpath+0x490/0x550 [ 25.347046] ? prepare_exit_to_usermode+0x340/0x340 [ 25.352047] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 25.357222] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.362232] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.366962] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 25.371690] RIP: 0033:0x445d69 [ 25.374851] RSP: 002b:00007f3aab34fda8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 25.382531] RAX: fffffffffffffe00 RBX: 00000000006dbc3c RCX: 0000000000445d69 [ 25.389772] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006dbc3c [ 25.397020] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 25.404266] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc38 [ 25.412034] R13: 6f68762f7665642f R14: 00007f3aab3509c0 R15: 0000000000000007 [ 25.419999] Dumping ftrace buffer: [ 25.423519] (ftrace buffer empty) [ 25.427202] Kernel Offset: disabled [ 25.430799] Rebooting in 86400 seconds..