[....] Starting enhanced syslogd: rsyslogd[ 13.132066] audit: type=1400 audit(1516485518.187:5): avc: denied { syslog } for pid=3503 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.934585] audit: type=1400 audit(1516485524.990:6): avc: denied { map } for pid=3643 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.29' (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 executing program [ 28.640149] audit: type=1400 audit(1516485533.695:7): avc: denied { map } for pid=3658 comm="syzkaller051652" path="/root/syzkaller051652477" 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 [ 28.720264] ================================================================== [ 28.727710] BUG: KASAN: use-after-free in __wake_up_common+0x670/0x780 [ 28.734347] Read of size 8 at addr ffff8801bff60688 by task syzkaller051652/3681 [ 28.741848] [ 28.743457] CPU: 0 PID: 3681 Comm: syzkaller051652 Not tainted 4.15.0-rc8+ #180 [ 28.750876] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.760206] Call Trace: [ 28.762777] dump_stack+0x194/0x257 [ 28.766386] ? arch_local_irq_restore+0x53/0x53 [ 28.771031] ? show_regs_print_info+0x18/0x18 [ 28.775501] ? rcu_segcblist_first_pend_cb+0x90/0x90 [ 28.780583] ? __wake_up_common+0x670/0x780 [ 28.784882] print_address_description+0x73/0x250 [ 28.789699] ? __wake_up_common+0x670/0x780 [ 28.793997] kasan_report+0x25b/0x340 [ 28.797775] __asan_report_load8_noabort+0x14/0x20 [ 28.802679] __wake_up_common+0x670/0x780 [ 28.806805] ? do_wait_intr_irq+0x3e0/0x3e0 [ 28.811105] ? lock_release+0xa40/0xa40 [ 28.815053] ? lock_downgrade+0x980/0x980 [ 28.819177] ? check_noncircular+0x20/0x20 [ 28.823394] __wake_up_common_lock+0x1b4/0x310 [ 28.827952] ? locks_remove_file+0x3fa/0x5a0 [ 28.832334] ? __wake_up_common+0x780/0x780 [ 28.836627] ? fcntl_setlk+0x10c0/0x10c0 [ 28.840671] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.845228] ? eventfd_show_fdinfo+0x90/0x90 [ 28.849608] __wake_up+0xe/0x10 [ 28.852860] eventfd_release+0x4a/0x60 [ 28.856723] __fput+0x327/0x7e0 [ 28.859984] ? fput+0x140/0x140 [ 28.863238] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.867713] ____fput+0x15/0x20 [ 28.870970] task_work_run+0x199/0x270 [ 28.874840] ? task_work_cancel+0x210/0x210 [ 28.879138] ? _raw_spin_unlock+0x22/0x30 [ 28.883258] ? switch_task_namespaces+0x87/0xc0 [ 28.887921] do_exit+0x9bb/0x1ad0 [ 28.891347] ? futex_wait_queue_me+0x527/0x7e0 [ 28.895910] ? mm_update_next_owner+0x930/0x930 [ 28.900556] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.905720] ? get_futex_value_locked+0xc3/0xf0 [ 28.910367] ? futex_wait_setup+0x22e/0x3d0 [ 28.914686] ? futex_wake+0x680/0x680 [ 28.918475] ? rcutorture_record_progress+0x10/0x10 [ 28.923468] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 28.928559] ? futex_wait+0x6a9/0x9a0 [ 28.932343] ? check_noncircular+0x20/0x20 [ 28.936555] ? hash_futex+0x15/0x210 [ 28.940244] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 28.945332] ? futex_wake+0x2ca/0x680 [ 28.949108] ? __lock_acquire+0x664/0x3e00 [ 28.953327] ? find_held_lock+0x35/0x1d0 [ 28.957370] ? get_signal+0x7ae/0x16c0 [ 28.961232] ? lock_downgrade+0x980/0x980 [ 28.965375] do_group_exit+0x149/0x400 [ 28.969240] ? do_raw_spin_trylock+0x190/0x190 [ 28.973795] ? SyS_exit+0x30/0x30 [ 28.977223] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.981691] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.986687] get_signal+0x73f/0x16c0 [ 28.990394] ? ptrace_notify+0x130/0x130 [ 28.994445] ? kmem_cache_alloc+0x466/0x760 [ 28.998743] ? __raw_spin_lock_init+0x1c/0x100 [ 29.003300] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.008311] do_signal+0x90/0x1eb0 [ 29.011827] ? lock_downgrade+0x980/0x980 [ 29.015957] ? setup_sigcontext+0x7d0/0x7d0 [ 29.020266] ? __fd_install+0x288/0x740 [ 29.024213] ? anon_inode_getfile+0x343/0x480 [ 29.028684] ? get_unused_fd_flags+0x190/0x190 [ 29.033238] ? compat_SyS_epoll_pwait+0x4f0/0x4f0 [ 29.038057] ? __init_waitqueue_head+0x97/0x140 [ 29.042705] ? exit_to_usermode_loop+0x8c/0x310 [ 29.047365] exit_to_usermode_loop+0x214/0x310 [ 29.051926] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.057436] ? do_fast_syscall_32+0x156/0xf9d [ 29.061911] do_fast_syscall_32+0xbfd/0xf9d [ 29.066212] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.070778] ? syscall_return_slowpath+0x2ad/0x550 [ 29.075678] ? prepare_exit_to_usermode+0x340/0x340 [ 29.080674] ? sysret32_from_system_call+0x5/0x3b [ 29.085504] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.090325] entry_SYSENTER_compat+0x54/0x63 [ 29.094706] RIP: 0023:0xf7fbfc79 [ 29.098048] RSP: 002b:00000000f7fbb1ec EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 29.105729] RAX: 0000000000000000 RBX: 00000000080fafe4 RCX: 0000000000000000 [ 29.112969] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fafe4 [ 29.120210] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.127451] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.134703] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.141959] [ 29.143559] Allocated by task 3681: [ 29.147159] save_stack+0x43/0xd0 [ 29.150582] kasan_kmalloc+0xad/0xe0 [ 29.154265] __kmalloc_node+0x47/0x70 [ 29.158040] kvmalloc_node+0x64/0xd0 [ 29.161725] vhost_net_open+0x27/0x670 [ 29.165584] misc_open+0x382/0x500 [ 29.169094] chrdev_open+0x257/0x730 [ 29.172778] do_dentry_open+0x667/0xd40 [ 29.176724] vfs_open+0x107/0x220 [ 29.180149] path_openat+0x1151/0x3530 [ 29.184006] do_filp_open+0x25b/0x3b0 [ 29.187789] do_sys_open+0x502/0x6d0 [ 29.191473] compat_SyS_openat+0x2d/0x40 [ 29.195508] do_fast_syscall_32+0x3ee/0xf9d [ 29.199802] entry_SYSENTER_compat+0x54/0x63 [ 29.204179] [ 29.205776] Freed by task 3681: [ 29.209028] save_stack+0x43/0xd0 [ 29.212471] kasan_slab_free+0x71/0xc0 [ 29.216325] kfree+0xd6/0x260 [ 29.219399] kvfree+0x36/0x60 [ 29.222472] vhost_net_release+0x159/0x190 [ 29.226686] __fput+0x327/0x7e0 [ 29.229946] ____fput+0x15/0x20 [ 29.233200] task_work_run+0x199/0x270 [ 29.237055] do_exit+0x9bb/0x1ad0 [ 29.240483] do_group_exit+0x149/0x400 [ 29.244352] get_signal+0x73f/0x16c0 [ 29.248066] do_signal+0x90/0x1eb0 [ 29.251579] exit_to_usermode_loop+0x214/0x310 [ 29.256134] do_fast_syscall_32+0xbfd/0xf9d [ 29.260440] entry_SYSENTER_compat+0x54/0x63 [ 29.264817] [ 29.266416] The buggy address belongs to the object at ffff8801bff60400 [ 29.266416] which belongs to the cache kmalloc-65536 of size 65536 [ 29.279398] The buggy address is located 648 bytes inside of [ 29.279398] 65536-byte region [ffff8801bff60400, ffff8801bff70400) [ 29.291415] The buggy address belongs to the page: [ 29.296314] page:ffffea0006ffd800 count:1 mapcount:0 mapping:ffff8801bff60400 index:0x0 compound_mapcount: 0 [ 29.306264] flags: 0x2fffc0000008100(slab|head) [ 29.310906] raw: 02fffc0000008100 ffff8801bff60400 0000000000000000 0000000100000001 [ 29.318758] raw: ffffea0006fc6820 ffffea0007016820 ffff8801dac02500 0000000000000000 [ 29.326606] page dumped because: kasan: bad access detected [ 29.332291] [ 29.333887] Memory state around the buggy address: [ 29.338784] ffff8801bff60580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.346112] ffff8801bff60600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.353442] >ffff8801bff60680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.360767] ^ [ 29.364362] ffff8801bff60700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.371689] ffff8801bff60780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.379014] ================================================================== [ 29.386346] Disabling lock debugging due to kernel taint [ 29.391763] Kernel panic - not syncing: panic_on_warn set ... [ 29.391763] [ 29.399096] CPU: 0 PID: 3681 Comm: syzkaller051652 Tainted: G B 4.15.0-rc8+ #180 [ 29.407812] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.417131] Call Trace: [ 29.419691] dump_stack+0x194/0x257 [ 29.423290] ? arch_local_irq_restore+0x53/0x53 [ 29.427927] ? kasan_end_report+0x32/0x50 [ 29.432043] ? lock_downgrade+0x980/0x980 [ 29.436162] ? vsnprintf+0x1ed/0x1900 [ 29.439935] ? __wake_up_common+0x610/0x780 [ 29.444227] panic+0x1e4/0x41c [ 29.447388] ? refcount_error_report+0x214/0x214 [ 29.452117] ? add_taint+0x40/0x50 [ 29.455628] ? add_taint+0x1c/0x50 [ 29.459138] ? __wake_up_common+0x670/0x780 [ 29.463427] kasan_end_report+0x50/0x50 [ 29.467368] kasan_report+0x144/0x340 [ 29.471138] __asan_report_load8_noabort+0x14/0x20 [ 29.476037] __wake_up_common+0x670/0x780 [ 29.480156] ? do_wait_intr_irq+0x3e0/0x3e0 [ 29.484444] ? lock_release+0xa40/0xa40 [ 29.488386] ? lock_downgrade+0x980/0x980 [ 29.492502] ? check_noncircular+0x20/0x20 [ 29.496710] __wake_up_common_lock+0x1b4/0x310 [ 29.501261] ? locks_remove_file+0x3fa/0x5a0 [ 29.505638] ? __wake_up_common+0x780/0x780 [ 29.509927] ? fcntl_setlk+0x10c0/0x10c0 [ 29.513964] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.518518] ? eventfd_show_fdinfo+0x90/0x90 [ 29.522896] __wake_up+0xe/0x10 [ 29.526144] eventfd_release+0x4a/0x60 [ 29.530015] __fput+0x327/0x7e0 [ 29.533267] ? fput+0x140/0x140 [ 29.536520] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.540991] ____fput+0x15/0x20 [ 29.544245] task_work_run+0x199/0x270 [ 29.548105] ? task_work_cancel+0x210/0x210 [ 29.552397] ? _raw_spin_unlock+0x22/0x30 [ 29.556512] ? switch_task_namespaces+0x87/0xc0 [ 29.561151] do_exit+0x9bb/0x1ad0 [ 29.564576] ? futex_wait_queue_me+0x527/0x7e0 [ 29.569131] ? mm_update_next_owner+0x930/0x930 [ 29.573769] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.578931] ? get_futex_value_locked+0xc3/0xf0 [ 29.583571] ? futex_wait_setup+0x22e/0x3d0 [ 29.587863] ? futex_wake+0x680/0x680 [ 29.591635] ? rcutorture_record_progress+0x10/0x10 [ 29.596622] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 29.601694] ? futex_wait+0x6a9/0x9a0 [ 29.605467] ? check_noncircular+0x20/0x20 [ 29.609671] ? hash_futex+0x15/0x210 [ 29.613355] ? drop_futex_key_refs.isra.12+0x63/0xb0 [ 29.618427] ? futex_wake+0x2ca/0x680 [ 29.622194] ? __lock_acquire+0x664/0x3e00 [ 29.626402] ? find_held_lock+0x35/0x1d0 [ 29.630434] ? get_signal+0x7ae/0x16c0 [ 29.634289] ? lock_downgrade+0x980/0x980 [ 29.638409] do_group_exit+0x149/0x400 [ 29.642276] ? do_raw_spin_trylock+0x190/0x190 [ 29.646839] ? SyS_exit+0x30/0x30 [ 29.650264] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.654730] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.659720] get_signal+0x73f/0x16c0 [ 29.663407] ? ptrace_notify+0x130/0x130 [ 29.667439] ? kmem_cache_alloc+0x466/0x760 [ 29.671745] ? __raw_spin_lock_init+0x1c/0x100 [ 29.676309] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.681307] do_signal+0x90/0x1eb0 [ 29.684817] ? lock_downgrade+0x980/0x980 [ 29.688943] ? setup_sigcontext+0x7d0/0x7d0 [ 29.693240] ? __fd_install+0x288/0x740 [ 29.697183] ? anon_inode_getfile+0x343/0x480 [ 29.701646] ? get_unused_fd_flags+0x190/0x190 [ 29.706198] ? compat_SyS_epoll_pwait+0x4f0/0x4f0 [ 29.711011] ? __init_waitqueue_head+0x97/0x140 [ 29.715656] ? exit_to_usermode_loop+0x8c/0x310 [ 29.720298] exit_to_usermode_loop+0x214/0x310 [ 29.724851] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.730358] ? do_fast_syscall_32+0x156/0xf9d [ 29.734829] do_fast_syscall_32+0xbfd/0xf9d [ 29.739122] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.743681] ? syscall_return_slowpath+0x2ad/0x550 [ 29.748590] ? prepare_exit_to_usermode+0x340/0x340 [ 29.753577] ? sysret32_from_system_call+0x5/0x3b [ 29.758392] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.763205] entry_SYSENTER_compat+0x54/0x63 [ 29.767583] RIP: 0023:0xf7fbfc79 [ 29.770915] RSP: 002b:00000000f7fbb1ec EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 29.778604] RAX: 0000000000000000 RBX: 00000000080fafe4 RCX: 0000000000000000 [ 29.785844] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000080fafe4 [ 29.793084] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.800323] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.807562] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.815158] Dumping ftrace buffer: [ 29.818690] (ftrace buffer empty) [ 29.822371] Kernel Offset: disabled [ 29.825969] Rebooting in 86400 seconds..