[....] Starting enhanced syslogd: rsyslogd[ 12.452049] audit: type=1400 audit(1516624550.037:5): avc: denied { syslog } for pid=3513 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.193240] audit: type=1400 audit(1516624555.779:6): avc: denied { map } for pid=3655 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.223' (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 [ 24.446651] audit: type=1400 audit(1516624562.032:7): avc: denied { map } for pid=3669 comm="syzkaller711033" path="/root/syzkaller711033612" 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 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 24.887247] ================================================================== [ 24.894695] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 24.901334] Read of size 8 at addr ffff8801ba1c84a0 by task syzkaller711033/3976 [ 24.908837] [ 24.910437] CPU: 1 PID: 3976 Comm: syzkaller711033 Not tainted 4.15.0-rc8-mm1+ #59 [ 24.918117] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.927447] Call Trace: [ 24.930024] dump_stack+0x194/0x257 [ 24.933631] ? arch_local_irq_restore+0x53/0x53 [ 24.938276] ? show_regs_print_info+0x18/0x18 [ 24.942750] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 24.947836] ? __wake_up_common+0x670/0x780 [ 24.952136] print_address_description+0x73/0x250 [ 24.956972] ? __wake_up_common+0x670/0x780 [ 24.961278] kasan_report+0x23b/0x360 [ 24.965060] __asan_report_load8_noabort+0x14/0x20 [ 24.969969] __wake_up_common+0x670/0x780 [ 24.974101] ? do_wait_intr_irq+0x3e0/0x3e0 [ 24.978400] ? lock_release+0xa40/0xa40 [ 24.982350] ? lock_downgrade+0x980/0x980 [ 24.986488] __wake_up_common_lock+0x1b4/0x310 [ 24.991052] ? locks_remove_file+0x3fa/0x5a0 [ 24.995442] ? __wake_up_common+0x780/0x780 [ 24.999739] ? fcntl_setlk+0x10c0/0x10c0 [ 25.003799] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.008360] ? eventfd_show_fdinfo+0x90/0x90 [ 25.012744] __wake_up+0xe/0x10 [ 25.015998] eventfd_release+0x4a/0x60 [ 25.019859] __fput+0x327/0x7e0 [ 25.023121] ? fput+0x140/0x140 [ 25.026376] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.032234] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.036708] ____fput+0x15/0x20 [ 25.039977] task_work_run+0x199/0x270 [ 25.043840] ? task_work_cancel+0x210/0x210 [ 25.048138] ? _raw_spin_unlock+0x22/0x30 [ 25.052266] ? switch_task_namespaces+0x87/0xc0 [ 25.056922] do_exit+0x9bb/0x1ad0 [ 25.060355] ? try_to_wake_up+0xf9/0x1600 [ 25.064486] ? mm_update_next_owner+0x930/0x930 [ 25.069136] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.074432] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.079597] ? do_raw_spin_trylock+0x190/0x190 [ 25.084155] ? do_raw_spin_trylock+0x190/0x190 [ 25.088712] ? check_noncircular+0x20/0x20 [ 25.092930] ? __lock_is_held+0xb6/0x140 [ 25.096984] ? __lock_is_held+0xb6/0x140 [ 25.101036] ? set_next_entity+0x2ed/0xd70 [ 25.105254] ? check_noncircular+0x20/0x20 [ 25.109464] ? __enqueue_entity+0x109/0x1e0 [ 25.113767] ? memset+0x31/0x40 [ 25.117026] ? find_held_lock+0x35/0x1d0 [ 25.121070] ? get_signal+0x7a9/0x16d0 [ 25.124930] ? lock_downgrade+0x980/0x980 [ 25.129061] do_group_exit+0x149/0x400 [ 25.132924] ? do_raw_spin_trylock+0x190/0x190 [ 25.137476] ? SyS_exit+0x30/0x30 [ 25.140909] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.145378] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.150372] get_signal+0x73a/0x16d0 [ 25.154067] ? ptrace_notify+0x130/0x130 [ 25.158108] ? __schedule+0x8f3/0x2060 [ 25.161969] ? exit_robust_list+0x240/0x240 [ 25.166277] ? __sched_text_start+0x8/0x8 [ 25.170397] ? vhost_net_stop_vq+0xf0/0xf0 [ 25.174617] ? avc_ss_reset+0x110/0x110 [ 25.178580] ? lock_downgrade+0x980/0x980 [ 25.182714] do_signal+0x90/0x1eb0 [ 25.186235] ? __lock_is_held+0xb6/0x140 [ 25.190275] ? setup_sigcontext+0x7d0/0x7d0 [ 25.194579] ? schedule+0xf5/0x430 [ 25.198105] ? __schedule+0x2060/0x2060 [ 25.202068] ? exit_to_usermode_loop+0x8c/0x2f0 [ 25.206714] exit_to_usermode_loop+0x258/0x2f0 [ 25.211270] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.215654] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.221175] ? selinux_capable+0x40/0x40 [ 25.225226] syscall_return_slowpath+0x490/0x550 [ 25.229962] ? prepare_exit_to_usermode+0x340/0x340 [ 25.234958] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 25.239866] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.244871] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.249614] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 25.254346] RIP: 0033:0x445d89 [ 25.257512] RSP: 002b:00007f9117953da8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 25.265195] RAX: 0000000000000001 RBX: 00000000006dbc3c RCX: 0000000000445d89 [ 25.272442] RDX: 0000000000445d89 RSI: 0000000000000001 RDI: 00000000006dbc3c [ 25.279690] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 25.286942] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc38 [ 25.294191] R13: 6f68762f7665642f R14: 00007f91179549c0 R15: 0000000000000007 [ 25.301458] [ 25.303061] Allocated by task 3962: [ 25.306668] save_stack+0x43/0xd0 [ 25.310103] kasan_kmalloc+0xad/0xe0 [ 25.313790] __kmalloc_node+0x47/0x70 [ 25.317575] kvmalloc_node+0x64/0xd0 [ 25.321267] vhost_net_open+0x27/0x670 [ 25.325132] misc_open+0x382/0x500 [ 25.328648] chrdev_open+0x257/0x730 [ 25.332339] do_dentry_open+0x667/0xd40 [ 25.336288] vfs_open+0x107/0x220 [ 25.339715] path_openat+0x1151/0x3530 [ 25.343576] do_filp_open+0x25b/0x3b0 [ 25.347348] do_sys_open+0x502/0x6d0 [ 25.351038] SyS_openat+0x30/0x40 [ 25.354466] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.359196] [ 25.360798] Freed by task 3976: [ 25.364057] save_stack+0x43/0xd0 [ 25.367483] __kasan_slab_free+0x11a/0x170 [ 25.371690] kasan_slab_free+0xe/0x10 [ 25.375466] kfree+0xd9/0x260 [ 25.378544] kvfree+0x36/0x60 [ 25.381625] vhost_net_release+0x159/0x190 [ 25.385837] __fput+0x327/0x7e0 [ 25.389088] ____fput+0x15/0x20 [ 25.392340] task_work_run+0x199/0x270 [ 25.396204] do_exit+0x9bb/0x1ad0 [ 25.399630] do_group_exit+0x149/0x400 [ 25.403494] get_signal+0x73a/0x16d0 [ 25.407181] do_signal+0x90/0x1eb0 [ 25.410696] exit_to_usermode_loop+0x258/0x2f0 [ 25.415253] syscall_return_slowpath+0x490/0x550 [ 25.419985] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 25.424708] [ 25.426308] The buggy address belongs to the object at ffff8801ba1c3bc0 [ 25.426308] which belongs to the cache kmalloc-65536 of size 65536 [ 25.439284] The buggy address is located 18656 bytes inside of [ 25.439284] 65536-byte region [ffff8801ba1c3bc0, ffff8801ba1d3bc0) [ 25.451478] The buggy address belongs to the page: [ 25.456382] page:ffffea0006e87000 count:1 mapcount:0 mapping:ffff8801ba1c3bc0 index:0x0 compound_mapcount: 0 [ 25.466324] flags: 0x2fffc0000008100(slab|head) [ 25.470969] raw: 02fffc0000008100 ffff8801ba1c3bc0 0000000000000000 0000000100000001 [ 25.478835] raw: ffffea0006e86820 ffffea0006e87820 ffff8801dac02500 0000000000000000 [ 25.486684] page dumped because: kasan: bad access detected [ 25.492363] [ 25.493961] Memory state around the buggy address: [ 25.498859] ffff8801ba1c8380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.506188] ffff8801ba1c8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.513516] >ffff8801ba1c8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.520844] ^ [ 25.525219] ffff8801ba1c8500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.532546] ffff8801ba1c8580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.539871] ================================================================== [ 25.547202] Disabling lock debugging due to kernel taint [ 25.552622] Kernel panic - not syncing: panic_on_warn set ... [ 25.552622] [ 25.559955] CPU: 1 PID: 3976 Comm: syzkaller711033 Tainted: G B 4.15.0-rc8-mm1+ #59 [ 25.568933] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.578258] Call Trace: [ 25.580824] dump_stack+0x194/0x257 [ 25.584425] ? arch_local_irq_restore+0x53/0x53 [ 25.589067] ? kasan_end_report+0x32/0x50 [ 25.593198] ? lock_downgrade+0x980/0x980 [ 25.597316] ? vsnprintf+0x1ed/0x1900 [ 25.601098] ? __wake_up_common+0x660/0x780 [ 25.605392] panic+0x1e4/0x41c [ 25.608559] ? refcount_error_report+0x214/0x214 [ 25.613290] ? add_taint+0x40/0x50 [ 25.616803] ? add_taint+0x1c/0x50 [ 25.620315] ? __wake_up_common+0x670/0x780 [ 25.624608] kasan_end_report+0x50/0x50 [ 25.628555] kasan_report+0x148/0x360 [ 25.632328] __asan_report_load8_noabort+0x14/0x20 [ 25.637231] __wake_up_common+0x670/0x780 [ 25.641358] ? do_wait_intr_irq+0x3e0/0x3e0 [ 25.645653] ? lock_release+0xa40/0xa40 [ 25.649601] ? lock_downgrade+0x980/0x980 [ 25.653725] __wake_up_common_lock+0x1b4/0x310 [ 25.658279] ? locks_remove_file+0x3fa/0x5a0 [ 25.662659] ? __wake_up_common+0x780/0x780 [ 25.666953] ? fcntl_setlk+0x10c0/0x10c0 [ 25.670991] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.675953] ? eventfd_show_fdinfo+0x90/0x90 [ 25.680332] __wake_up+0xe/0x10 [ 25.683583] eventfd_release+0x4a/0x60 [ 25.687440] __fput+0x327/0x7e0 [ 25.690691] ? fput+0x140/0x140 [ 25.693944] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.699801] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.704276] ____fput+0x15/0x20 [ 25.707532] task_work_run+0x199/0x270 [ 25.711392] ? task_work_cancel+0x210/0x210 [ 25.715685] ? _raw_spin_unlock+0x22/0x30 [ 25.719806] ? switch_task_namespaces+0x87/0xc0 [ 25.724450] do_exit+0x9bb/0x1ad0 [ 25.727877] ? try_to_wake_up+0xf9/0x1600 [ 25.732000] ? mm_update_next_owner+0x930/0x930 [ 25.736644] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.741802] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.746965] ? do_raw_spin_trylock+0x190/0x190 [ 25.751516] ? do_raw_spin_trylock+0x190/0x190 [ 25.756067] ? check_noncircular+0x20/0x20 [ 25.760269] ? __lock_is_held+0xb6/0x140 [ 25.764307] ? __lock_is_held+0xb6/0x140 [ 25.768342] ? set_next_entity+0x2ed/0xd70 [ 25.772549] ? check_noncircular+0x20/0x20 [ 25.776751] ? __enqueue_entity+0x109/0x1e0 [ 25.781046] ? memset+0x31/0x40 [ 25.784295] ? find_held_lock+0x35/0x1d0 [ 25.788329] ? get_signal+0x7a9/0x16d0 [ 25.792187] ? lock_downgrade+0x980/0x980 [ 25.796306] do_group_exit+0x149/0x400 [ 25.800162] ? do_raw_spin_trylock+0x190/0x190 [ 25.804713] ? SyS_exit+0x30/0x30 [ 25.808138] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.812605] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.817592] get_signal+0x73a/0x16d0 [ 25.821290] ? ptrace_notify+0x130/0x130 [ 25.825322] ? __schedule+0x8f3/0x2060 [ 25.829177] ? exit_robust_list+0x240/0x240 [ 25.833472] ? __sched_text_start+0x8/0x8 [ 25.837592] ? vhost_net_stop_vq+0xf0/0xf0 [ 25.841803] ? avc_ss_reset+0x110/0x110 [ 25.845746] ? lock_downgrade+0x980/0x980 [ 25.849869] do_signal+0x90/0x1eb0 [ 25.853380] ? __lock_is_held+0xb6/0x140 [ 25.857410] ? setup_sigcontext+0x7d0/0x7d0 [ 25.861708] ? schedule+0xf5/0x430 [ 25.865223] ? __schedule+0x2060/0x2060 [ 25.869174] ? exit_to_usermode_loop+0x8c/0x2f0 [ 25.873817] exit_to_usermode_loop+0x258/0x2f0 [ 25.878370] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.882751] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.888260] ? selinux_capable+0x40/0x40 [ 25.892298] syscall_return_slowpath+0x490/0x550 [ 25.897022] ? prepare_exit_to_usermode+0x340/0x340 [ 25.902008] ? entry_SYSCALL_64_fastpath+0x73/0xa0 [ 25.906910] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.911896] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.916625] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 25.921351] RIP: 0033:0x445d89 [ 25.924509] RSP: 002b:00007f9117953da8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 25.932198] RAX: 0000000000000001 RBX: 00000000006dbc3c RCX: 0000000000445d89 [ 25.939445] RDX: 0000000000445d89 RSI: 0000000000000001 RDI: 00000000006dbc3c [ 25.946686] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 25.954027] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc38 [ 25.961268] R13: 6f68762f7665642f R14: 00007f91179549c0 R15: 0000000000000007 [ 25.968933] Dumping ftrace buffer: [ 25.972444] (ftrace buffer empty) [ 25.976125] Kernel Offset: disabled [ 25.979723] Rebooting in 86400 seconds..