[....] Starting enhanced syslogd: rsyslogd[ 13.339487] audit: type=1400 audit(1516707046.872:5): avc: denied { syslog } for pid=3508 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: [ 19.230080] audit: type=1400 audit(1516707052.762: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.0.20' (ECDSA) to the list of known hosts. [ 27.182042] audit: type=1400 audit(1516707060.714:7): avc: denied { map } for pid=3663 comm="syzkaller153720" path="/root/syzkaller153720420" 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 net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 27.561526] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument 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 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 [ 29.671195] ================================================================== [ 29.678603] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 29.685244] Read of size 8 at addr ffff8801b818b1a0 by task syzkaller153720/4308 [ 29.693705] [ 29.695308] CPU: 1 PID: 4308 Comm: syzkaller153720 Not tainted 4.15.0-rc9+ #185 [ 29.702737] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.712065] Call Trace: [ 29.714634] dump_stack+0x194/0x257 [ 29.718241] ? arch_local_irq_restore+0x53/0x53 [ 29.722888] ? show_regs_print_info+0x18/0x18 [ 29.727360] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 29.732465] ? __wake_up_common+0x670/0x780 [ 29.736762] print_address_description+0x73/0x250 [ 29.741578] ? __wake_up_common+0x670/0x780 [ 29.745875] kasan_report+0x25b/0x340 [ 29.749652] __asan_report_load8_noabort+0x14/0x20 [ 29.754555] __wake_up_common+0x670/0x780 [ 29.758680] ? do_wait_intr_irq+0x3e0/0x3e0 [ 29.762975] ? lock_release+0xa40/0xa40 [ 29.766934] ? lock_downgrade+0x980/0x980 [ 29.771084] __wake_up_common_lock+0x1b4/0x310 [ 29.775643] ? locks_remove_file+0x3fa/0x5a0 [ 29.780200] ? __wake_up_common+0x780/0x780 [ 29.784500] ? fcntl_setlk+0x10c0/0x10c0 [ 29.788550] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.793111] ? eventfd_show_fdinfo+0x90/0x90 [ 29.797926] __wake_up+0xe/0x10 [ 29.802567] eventfd_release+0x4a/0x60 [ 29.807471] __fput+0x327/0x7e0 [ 29.810728] ? fput+0x140/0x140 [ 29.813983] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.819839] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.824315] ____fput+0x15/0x20 [ 29.827570] task_work_run+0x199/0x270 [ 29.831433] ? task_work_cancel+0x210/0x210 [ 29.835996] ? _raw_spin_unlock+0x22/0x30 [ 29.840121] ? switch_task_namespaces+0x87/0xc0 [ 29.844771] do_exit+0x9bb/0x1ad0 [ 29.848202] ? find_held_lock+0x35/0x1d0 [ 29.852240] ? mm_update_next_owner+0x930/0x930 [ 29.856895] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.862069] ? lock_downgrade+0x980/0x980 [ 29.866194] ? __unqueue_futex+0x1c0/0x290 [ 29.870402] ? lock_release+0xa40/0xa40 [ 29.874353] ? fault_in_user_writeable+0x90/0x90 [ 29.879084] ? do_raw_spin_trylock+0x190/0x190 [ 29.883637] ? futex_wake+0x680/0x680 [ 29.887423] ? debug_mutex_wake_waiter+0x670/0x670 [ 29.892338] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 29.897425] ? futex_wait+0x6a9/0x9a0 [ 29.901209] ? check_noncircular+0x20/0x20 [ 29.905425] ? hash_futex+0x15/0x210 [ 29.909112] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 29.914196] ? futex_wake+0x2ca/0x680 [ 29.917981] ? find_held_lock+0x35/0x1d0 [ 29.922042] ? get_signal+0x7ae/0x16c0 [ 29.925924] ? lock_downgrade+0x980/0x980 [ 29.930067] do_group_exit+0x149/0x400 [ 29.933946] ? do_raw_spin_trylock+0x190/0x190 [ 29.938526] ? SyS_exit+0x30/0x30 [ 29.941956] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.946426] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.951419] get_signal+0x73f/0x16c0 [ 29.955115] ? ptrace_notify+0x130/0x130 [ 29.959167] ? mutex_unlock+0xd/0x10 [ 29.962865] ? vhost_net_ioctl+0x2af/0x1910 [ 29.967175] do_signal+0x90/0x1eb0 [ 29.970690] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.976558] ? rcu_note_context_switch+0x710/0x710 [ 29.981470] ? setup_sigcontext+0x7d0/0x7d0 [ 29.985773] ? __might_sleep+0x95/0x190 [ 29.989721] ? _cond_resched+0x14/0x30 [ 29.993588] ? selinux_file_ioctl+0x444/0x690 [ 29.998061] ? __fget_light+0x297/0x380 [ 30.002020] ? selinux_capable+0x40/0x40 [ 30.006057] ? compat_SyS_epoll_pwait+0x4f0/0x4f0 [ 30.010883] ? __init_waitqueue_head+0x97/0x140 [ 30.015552] ? exit_to_usermode_loop+0x8c/0x310 [ 30.020200] exit_to_usermode_loop+0x214/0x310 [ 30.024755] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 30.031840] ? compat_SyS_ioctl+0x77/0x2a30 [ 30.036134] ? do_fast_syscall_32+0x156/0xf9d [ 30.040607] do_fast_syscall_32+0xbfd/0xf9d [ 30.044910] ? do_int80_syscall_32+0x9d0/0x9d0 [ 30.049473] ? syscall_return_slowpath+0x2ad/0x550 [ 30.055071] ? prepare_exit_to_usermode+0x340/0x340 [ 30.060068] ? sysret32_from_system_call+0x5/0x3b [ 30.064900] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.069721] entry_SYSENTER_compat+0x54/0x63 [ 30.074098] RIP: 0023:0xf7f0fc79 [ 30.077440] RSP: 002b:00000000f7f0b12c EFLAGS: 00000292 ORIG_RAX: 00000000000000f0 [ 30.085123] RAX: fffffffffffffe00 RBX: 00000000080fc004 RCX: 0000000000000000 [ 30.092377] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fc004 [ 30.099626] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 30.106870] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 30.114729] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 30.121989] [ 30.123595] Allocated by task 4308: [ 30.127199] save_stack+0x43/0xd0 [ 30.130890] kasan_kmalloc+0xad/0xe0 [ 30.134749] __kmalloc_node+0x47/0x70 [ 30.138522] kvmalloc_node+0x64/0xd0 [ 30.142210] vhost_net_open+0x27/0x670 [ 30.146066] misc_open+0x382/0x500 [ 30.149576] chrdev_open+0x257/0x730 [ 30.153261] do_dentry_open+0x667/0xd40 [ 30.157205] vfs_open+0x107/0x220 [ 30.160628] path_openat+0x1151/0x3530 [ 30.164487] do_filp_open+0x25b/0x3b0 [ 30.169564] do_sys_open+0x502/0x6d0 [ 30.173592] compat_SyS_openat+0x2d/0x40 [ 30.177624] do_fast_syscall_32+0x3ee/0xf9d [ 30.181915] entry_SYSENTER_compat+0x54/0x63 [ 30.186296] [ 30.187894] Freed by task 4308: [ 30.191144] save_stack+0x43/0xd0 [ 30.194570] kasan_slab_free+0x71/0xc0 [ 30.198427] kfree+0xd6/0x260 [ 30.201517] kvfree+0x36/0x60 [ 30.204594] vhost_net_release+0x159/0x190 [ 30.208802] __fput+0x327/0x7e0 [ 30.212055] ____fput+0x15/0x20 [ 30.215314] task_work_run+0x199/0x270 [ 30.219171] do_exit+0x9bb/0x1ad0 [ 30.222596] do_group_exit+0x149/0x400 [ 30.226462] get_signal+0x73f/0x16c0 [ 30.230150] do_signal+0x90/0x1eb0 [ 30.233669] exit_to_usermode_loop+0x214/0x310 [ 30.238225] do_fast_syscall_32+0xbfd/0xf9d [ 30.242518] entry_SYSENTER_compat+0x54/0x63 [ 30.246894] [ 30.248494] The buggy address belongs to the object at ffff8801b81868c0 [ 30.248494] which belongs to the cache kmalloc-65536 of size 65536 [ 30.261731] The buggy address is located 18656 bytes inside of [ 30.261731] 65536-byte region [ffff8801b81868c0, ffff8801b81968c0) [ 30.273923] The buggy address belongs to the page: [ 30.278823] page:ffffea0006e06000 count:1 mapcount:0 mapping:ffff8801b81868c0 index:0x0 compound_mapcount: 0 [ 30.288775] flags: 0x2fffc0000008100(slab|head) [ 30.293420] raw: 02fffc0000008100 ffff8801b81868c0 0000000000000000 0000000100000001 [ 30.301289] raw: ffffea0006e05820 ffffea0006e06820 ffff8801dac02500 0000000000000000 [ 30.309138] page dumped because: kasan: bad access detected [ 30.314819] [ 30.316416] Memory state around the buggy address: [ 30.321321] ffff8801b818b080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.328652] ffff8801b818b100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.335983] >ffff8801b818b180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.343312] ^ [ 30.347692] ffff8801b818b200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.355032] ffff8801b818b280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.363670] ================================================================== [ 30.370998] Disabling lock debugging due to kernel taint [ 30.376683] Kernel panic - not syncing: panic_on_warn set ... [ 30.376683] [ 30.384718] CPU: 1 PID: 4308 Comm: syzkaller153720 Tainted: G B 4.15.0-rc9+ #185 [ 30.393434] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.402758] Call Trace: [ 30.405330] dump_stack+0x194/0x257 [ 30.408935] ? arch_local_irq_restore+0x53/0x53 [ 30.413574] ? kasan_end_report+0x32/0x50 [ 30.417693] ? lock_downgrade+0x980/0x980 [ 30.421811] ? vsnprintf+0x1ed/0x1900 [ 30.425581] ? __wake_up_common+0x670/0x780 [ 30.429873] panic+0x1e4/0x41c [ 30.433035] ? refcount_error_report+0x214/0x214 [ 30.437763] ? add_taint+0x40/0x50 [ 30.441277] ? add_taint+0x1c/0x50 [ 30.444797] ? __wake_up_common+0x670/0x780 [ 30.449088] kasan_end_report+0x50/0x50 [ 30.453037] kasan_report+0x144/0x340 [ 30.456818] __asan_report_load8_noabort+0x14/0x20 [ 30.461722] __wake_up_common+0x670/0x780 [ 30.465848] ? do_wait_intr_irq+0x3e0/0x3e0 [ 30.470143] ? lock_release+0xa40/0xa40 [ 30.474093] ? lock_downgrade+0x980/0x980 [ 30.478223] __wake_up_common_lock+0x1b4/0x310 [ 30.482778] ? locks_remove_file+0x3fa/0x5a0 [ 30.487167] ? __wake_up_common+0x780/0x780 [ 30.491478] ? fcntl_setlk+0x10c0/0x10c0 [ 30.495526] ? fsnotify_first_mark+0x2b0/0x2b0 [ 30.500079] ? eventfd_show_fdinfo+0x90/0x90 [ 30.504458] __wake_up+0xe/0x10 [ 30.507708] eventfd_release+0x4a/0x60 [ 30.511572] __fput+0x327/0x7e0 [ 30.514826] ? fput+0x140/0x140 [ 30.518098] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.524734] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.529209] ____fput+0x15/0x20 [ 30.532460] task_work_run+0x199/0x270 [ 30.536316] ? task_work_cancel+0x210/0x210 [ 30.540612] ? _raw_spin_unlock+0x22/0x30 [ 30.544732] ? switch_task_namespaces+0x87/0xc0 [ 30.549377] do_exit+0x9bb/0x1ad0 [ 30.552803] ? find_held_lock+0x35/0x1d0 [ 30.556852] ? mm_update_next_owner+0x930/0x930 [ 30.561582] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.566740] ? lock_downgrade+0x980/0x980 [ 30.570858] ? __unqueue_futex+0x1c0/0x290 [ 30.575060] ? lock_release+0xa40/0xa40 [ 30.579004] ? fault_in_user_writeable+0x90/0x90 [ 30.583735] ? do_raw_spin_trylock+0x190/0x190 [ 30.588289] ? futex_wake+0x680/0x680 [ 30.592064] ? debug_mutex_wake_waiter+0x670/0x670 [ 30.596971] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 30.602045] ? futex_wait+0x6a9/0x9a0 [ 30.605824] ? check_noncircular+0x20/0x20 [ 30.610037] ? hash_futex+0x15/0x210 [ 30.613720] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 30.618799] ? futex_wake+0x2ca/0x680 [ 30.622580] ? find_held_lock+0x35/0x1d0 [ 30.626615] ? get_signal+0x7ae/0x16c0 [ 30.630472] ? lock_downgrade+0x980/0x980 [ 30.634592] do_group_exit+0x149/0x400 [ 30.638449] ? do_raw_spin_trylock+0x190/0x190 [ 30.642999] ? SyS_exit+0x30/0x30 [ 30.646432] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.651941] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.658684] get_signal+0x73f/0x16c0 [ 30.663421] ? ptrace_notify+0x130/0x130 [ 30.667460] ? mutex_unlock+0xd/0x10 [ 30.671146] ? vhost_net_ioctl+0x2af/0x1910 [ 30.675444] do_signal+0x90/0x1eb0 [ 30.678961] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.684823] ? rcu_note_context_switch+0x710/0x710 [ 30.689733] ? setup_sigcontext+0x7d0/0x7d0 [ 30.694029] ? __might_sleep+0x95/0x190 [ 30.698624] ? _cond_resched+0x14/0x30 [ 30.702487] ? selinux_file_ioctl+0x444/0x690 [ 30.706956] ? __fget_light+0x297/0x380 [ 30.710902] ? selinux_capable+0x40/0x40 [ 30.714935] ? compat_SyS_epoll_pwait+0x4f0/0x4f0 [ 30.719751] ? __init_waitqueue_head+0x97/0x140 [ 30.724394] ? exit_to_usermode_loop+0x8c/0x310 [ 30.729040] exit_to_usermode_loop+0x214/0x310 [ 30.733598] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 30.739107] ? compat_SyS_ioctl+0x77/0x2a30 [ 30.743398] ? do_fast_syscall_32+0x156/0xf9d [ 30.747866] do_fast_syscall_32+0xbfd/0xf9d [ 30.752166] ? do_int80_syscall_32+0x9d0/0x9d0 [ 30.756734] ? syscall_return_slowpath+0x2ad/0x550 [ 30.761636] ? prepare_exit_to_usermode+0x340/0x340 [ 30.766626] ? sysret32_from_system_call+0x5/0x3b [ 30.771447] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.776261] entry_SYSENTER_compat+0x54/0x63 [ 30.780646] RIP: 0023:0xf7f0fc79 [ 30.783982] RSP: 002b:00000000f7f0b12c EFLAGS: 00000292 ORIG_RAX: 00000000000000f0 [ 30.793364] RAX: fffffffffffffe00 RBX: 00000000080fc004 RCX: 0000000000000000 [ 30.800606] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fc004 [ 30.807847] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 30.815088] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 30.822335] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 30.831888] Dumping ftrace buffer: [ 30.835402] (ftrace buffer empty) [ 30.839080] Kernel Offset: disabled [ 30.842676] Rebooting in 86400 seconds..