[....] Starting enhanced syslogd: rsyslogd[ 11.934166] audit: type=1400 audit(1516624487.831:5): avc: denied { syslog } for pid=3478 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 file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 16.708890] audit: type=1400 audit(1516624492.606:6): avc: denied { map } for pid=3618 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.219' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 23.352371] audit: type=1400 audit(1516624499.250:7): avc: denied { map } for pid=3632 comm="syzkaller237854" path="/root/syzkaller237854326" 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 [ 23.582368] ================================================================== [ 23.589975] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 23.596646] Read of size 8 at addr ffff8801c93a64a0 by task syzkaller237854/3772 [ 23.604195] [ 23.605822] CPU: 1 PID: 3772 Comm: syzkaller237854 Not tainted 4.15.0-rc8-next-20180119+ #102 [ 23.614492] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.623839] Call Trace: [ 23.626422] dump_stack+0x194/0x257 [ 23.630043] ? arch_local_irq_restore+0x53/0x53 [ 23.634703] ? show_regs_print_info+0x18/0x18 [ 23.639195] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 23.644284] ? __wake_up_common+0x670/0x780 [ 23.648585] print_address_description+0x73/0x250 [ 23.653411] ? __wake_up_common+0x670/0x780 [ 23.657712] kasan_report+0x23b/0x360 [ 23.661495] __asan_report_load8_noabort+0x14/0x20 [ 23.666414] __wake_up_common+0x670/0x780 [ 23.670547] ? do_wait_intr_irq+0x3e0/0x3e0 [ 23.674849] ? lock_release+0xa40/0xa40 [ 23.678799] ? lock_downgrade+0x980/0x980 [ 23.682934] __wake_up_common_lock+0x1b4/0x310 [ 23.687493] ? locks_remove_file+0x3fa/0x5a0 [ 23.691890] ? __wake_up_common+0x780/0x780 [ 23.696186] ? fcntl_setlk+0x10c0/0x10c0 [ 23.700235] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.704797] ? eventfd_show_fdinfo+0x90/0x90 [ 23.709186] __wake_up+0xe/0x10 [ 23.712454] eventfd_release+0x4a/0x60 [ 23.716331] __fput+0x327/0x7e0 [ 23.719593] ? fput+0x140/0x140 [ 23.722851] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.728712] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.733192] ____fput+0x15/0x20 [ 23.736447] task_work_run+0x199/0x270 [ 23.740315] ? task_work_cancel+0x210/0x210 [ 23.744616] ? _raw_spin_unlock+0x22/0x30 [ 23.748746] ? switch_task_namespaces+0x87/0xc0 [ 23.753403] do_exit+0x9bb/0x1ad0 [ 23.756849] ? mm_update_next_owner+0x930/0x930 [ 23.761498] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.766668] ? __might_sleep+0x95/0x190 [ 23.770627] ? find_held_lock+0x35/0x1d0 [ 23.774676] ? lock_downgrade+0x980/0x980 [ 23.778807] ? __unqueue_futex+0x1c0/0x290 [ 23.783031] ? lock_release+0xa40/0xa40 [ 23.786987] ? fault_in_user_writeable+0x90/0x90 [ 23.791735] ? do_raw_spin_trylock+0x190/0x190 [ 23.796299] ? futex_wake+0x680/0x680 [ 23.800083] ? mmdrop+0x18/0x30 [ 23.803346] ? check_noncircular+0x20/0x20 [ 23.807563] ? futex_wait+0x6a9/0x9a0 [ 23.811349] ? memset+0x31/0x40 [ 23.814611] ? find_held_lock+0x35/0x1d0 [ 23.818654] ? get_signal+0x7a9/0x16d0 [ 23.822519] ? lock_downgrade+0x980/0x980 [ 23.826654] do_group_exit+0x149/0x400 [ 23.830526] ? do_raw_spin_trylock+0x190/0x190 [ 23.835095] ? SyS_exit+0x30/0x30 [ 23.838524] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.843001] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.848017] get_signal+0x73a/0x16d0 [ 23.851723] ? ptrace_notify+0x130/0x130 [ 23.855767] ? exit_robust_list+0x240/0x240 [ 23.860068] ? avc_has_extended_perms+0x7fa/0x12c0 [ 23.864974] ? find_held_lock+0x35/0x1d0 [ 23.869024] ? vhost_net_stop_vq+0xf0/0xf0 [ 23.873251] ? avc_ss_reset+0x110/0x110 [ 23.877287] ? lock_downgrade+0x980/0x980 [ 23.881421] do_signal+0x90/0x1eb0 [ 23.884951] ? __lock_is_held+0xb6/0x140 [ 23.889002] ? setup_sigcontext+0x7d0/0x7d0 [ 23.893341] ? exit_to_usermode_loop+0x8c/0x2f0 [ 23.897993] exit_to_usermode_loop+0x258/0x2f0 [ 23.902569] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.906980] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 23.912521] ? selinux_capable+0x40/0x40 [ 23.916592] syscall_return_slowpath+0x490/0x550 [ 23.921326] ? prepare_exit_to_usermode+0x340/0x340 [ 23.926334] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 23.931249] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.936249] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.940993] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 23.945728] RIP: 0033:0x445d89 [ 23.948892] RSP: 002b:00007efca4510da8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 23.956575] RAX: fffffffffffffe00 RBX: 00000000006dbc24 RCX: 0000000000445d89 [ 23.963822] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006dbc24 [ 23.971070] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 23.978328] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc20 [ 23.985576] R13: 6f68762f7665642f R14: 00007efca45119c0 R15: 0000000000000007 [ 23.992837] [ 23.994439] Allocated by task 3772: [ 23.998053] save_stack+0x43/0xd0 [ 24.001488] kasan_kmalloc+0xad/0xe0 [ 24.005180] __kmalloc_node+0x47/0x70 [ 24.008973] kvmalloc_node+0x64/0xd0 [ 24.012671] vhost_net_open+0x27/0x670 [ 24.016535] misc_open+0x382/0x500 [ 24.020063] chrdev_open+0x257/0x730 [ 24.023760] do_dentry_open+0x667/0xd40 [ 24.027719] vfs_open+0x107/0x220 [ 24.031166] path_openat+0x1151/0x3530 [ 24.035047] do_filp_open+0x25b/0x3b0 [ 24.038824] do_sys_open+0x502/0x6d0 [ 24.042517] SyS_openat+0x30/0x40 [ 24.045949] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.050675] [ 24.052280] Freed by task 3772: [ 24.055558] save_stack+0x43/0xd0 [ 24.058997] __kasan_slab_free+0x11a/0x170 [ 24.063216] kasan_slab_free+0xe/0x10 [ 24.067021] kfree+0xd9/0x260 [ 24.070112] kvfree+0x36/0x60 [ 24.073197] vhost_net_release+0x159/0x190 [ 24.077403] __fput+0x327/0x7e0 [ 24.080654] ____fput+0x15/0x20 [ 24.083907] task_work_run+0x199/0x270 [ 24.087772] do_exit+0x9bb/0x1ad0 [ 24.091203] do_group_exit+0x149/0x400 [ 24.095075] get_signal+0x73a/0x16d0 [ 24.098775] do_signal+0x90/0x1eb0 [ 24.102296] exit_to_usermode_loop+0x258/0x2f0 [ 24.106856] syscall_return_slowpath+0x490/0x550 [ 24.111604] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 24.116330] [ 24.117931] The buggy address belongs to the object at ffff8801c93a1bc0 [ 24.117931] which belongs to the cache kmalloc-65536 of size 65536 [ 24.130909] The buggy address is located 18656 bytes inside of [ 24.130909] 65536-byte region [ffff8801c93a1bc0, ffff8801c93b1bc0) [ 24.143106] The buggy address belongs to the page: [ 24.148020] page:ffffea000724e800 count:1 mapcount:0 mapping:ffff8801c93a1bc0 index:0x0 compound_mapcount: 0 [ 24.157976] flags: 0x2fffc0000008100(slab|head) [ 24.162622] raw: 02fffc0000008100 ffff8801c93a1bc0 0000000000000000 0000000100000001 [ 24.170478] raw: ffffea000724e020 ffffea0006fe3020 ffff8801dac02500 0000000000000000 [ 24.178331] page dumped because: kasan: bad access detected [ 24.184021] [ 24.185627] Memory state around the buggy address: [ 24.190529] ffff8801c93a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.197865] ffff8801c93a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.205205] >ffff8801c93a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.212541] ^ [ 24.216922] ffff8801c93a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.224254] ffff8801c93a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.231596] ================================================================== [ 24.238935] Disabling lock debugging due to kernel taint [ 24.244359] Kernel panic - not syncing: panic_on_warn set ... [ 24.244359] [ 24.251704] CPU: 1 PID: 3772 Comm: syzkaller237854 Tainted: G B 4.15.0-rc8-next-20180119+ #102 [ 24.261640] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.270969] Call Trace: [ 24.273553] dump_stack+0x194/0x257 [ 24.277161] ? arch_local_irq_restore+0x53/0x53 [ 24.281817] ? kasan_end_report+0x32/0x50 [ 24.285946] ? lock_downgrade+0x980/0x980 [ 24.290085] ? vsnprintf+0x1ed/0x1900 [ 24.293869] ? __wake_up_common+0x600/0x780 [ 24.298167] panic+0x1e4/0x41c [ 24.301334] ? refcount_error_report+0x214/0x214 [ 24.306071] ? add_taint+0x40/0x50 [ 24.309584] ? add_taint+0x1c/0x50 [ 24.313103] ? __wake_up_common+0x670/0x780 [ 24.317881] kasan_end_report+0x50/0x50 [ 24.321830] kasan_report+0x148/0x360 [ 24.325607] __asan_report_load8_noabort+0x14/0x20 [ 24.330520] __wake_up_common+0x670/0x780 [ 24.334646] ? do_wait_intr_irq+0x3e0/0x3e0 [ 24.338942] ? lock_release+0xa40/0xa40 [ 24.342897] ? lock_downgrade+0x980/0x980 [ 24.347029] __wake_up_common_lock+0x1b4/0x310 [ 24.351591] ? locks_remove_file+0x3fa/0x5a0 [ 24.355977] ? __wake_up_common+0x780/0x780 [ 24.360273] ? fcntl_setlk+0x10c0/0x10c0 [ 24.364320] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.368885] ? eventfd_show_fdinfo+0x90/0x90 [ 24.373271] __wake_up+0xe/0x10 [ 24.376541] eventfd_release+0x4a/0x60 [ 24.380413] __fput+0x327/0x7e0 [ 24.383674] ? fput+0x140/0x140 [ 24.386928] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.392790] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.397265] ____fput+0x15/0x20 [ 24.400518] task_work_run+0x199/0x270 [ 24.404382] ? task_work_cancel+0x210/0x210 [ 24.408678] ? _raw_spin_unlock+0x22/0x30 [ 24.412801] ? switch_task_namespaces+0x87/0xc0 [ 24.417455] do_exit+0x9bb/0x1ad0 [ 24.420886] ? mm_update_next_owner+0x930/0x930 [ 24.425557] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.430741] ? __might_sleep+0x95/0x190 [ 24.434701] ? find_held_lock+0x35/0x1d0 [ 24.438745] ? lock_downgrade+0x980/0x980 [ 24.442872] ? __unqueue_futex+0x1c0/0x290 [ 24.447079] ? lock_release+0xa40/0xa40 [ 24.451033] ? fault_in_user_writeable+0x90/0x90 [ 24.455768] ? do_raw_spin_trylock+0x190/0x190 [ 24.460322] ? futex_wake+0x680/0x680 [ 24.464100] ? mmdrop+0x18/0x30 [ 24.467355] ? check_noncircular+0x20/0x20 [ 24.471563] ? futex_wait+0x6a9/0x9a0 [ 24.475350] ? memset+0x31/0x40 [ 24.478611] ? find_held_lock+0x35/0x1d0 [ 24.482661] ? get_signal+0x7a9/0x16d0 [ 24.486524] ? lock_downgrade+0x980/0x980 [ 24.490656] do_group_exit+0x149/0x400 [ 24.494525] ? do_raw_spin_trylock+0x190/0x190 [ 24.499085] ? SyS_exit+0x30/0x30 [ 24.502522] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.506998] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.511994] get_signal+0x73a/0x16d0 [ 24.515692] ? ptrace_notify+0x130/0x130 [ 24.519735] ? exit_robust_list+0x240/0x240 [ 24.524063] ? avc_has_extended_perms+0x7fa/0x12c0 [ 24.528968] ? find_held_lock+0x35/0x1d0 [ 24.533012] ? vhost_net_stop_vq+0xf0/0xf0 [ 24.537248] ? avc_ss_reset+0x110/0x110 [ 24.541204] ? lock_downgrade+0x980/0x980 [ 24.545340] do_signal+0x90/0x1eb0 [ 24.548862] ? __lock_is_held+0xb6/0x140 [ 24.552902] ? setup_sigcontext+0x7d0/0x7d0 [ 24.557215] ? exit_to_usermode_loop+0x8c/0x2f0 [ 24.561861] exit_to_usermode_loop+0x258/0x2f0 [ 24.566417] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.570802] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 24.576315] ? selinux_capable+0x40/0x40 [ 24.580356] syscall_return_slowpath+0x490/0x550 [ 24.585091] ? prepare_exit_to_usermode+0x340/0x340 [ 24.590085] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 24.594989] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.599991] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.604739] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 24.609476] RIP: 0033:0x445d89 [ 24.612648] RSP: 002b:00007efca4510da8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 24.620327] RAX: fffffffffffffe00 RBX: 00000000006dbc24 RCX: 0000000000445d89 [ 24.627569] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006dbc24 [ 24.634821] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 24.642068] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc20 [ 24.649312] R13: 6f68762f7665642f R14: 00007efca45119c0 R15: 0000000000000007 [ 24.657026] Dumping ftrace buffer: [ 24.660550] (ftrace buffer empty) [ 24.664230] Kernel Offset: disabled [ 24.667832] Rebooting in 86400 seconds..