[....] Starting enhanced syslogd: rsyslogd[ 11.563929] audit: type=1400 audit(1513793225.681:5): avc: denied { syslog } for pid=2991 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.253481] audit: type=1400 audit(1513793232.371:6): avc: denied { map } for pid=3132 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 'ci-upstream-next-kasan-gce-9,10.128.0.57' (ECDSA) to the list of known hosts. [ 24.426602] audit: type=1400 audit(1513793238.544:7): avc: denied { map } for pid=3146 comm="syzkaller550396" path="/root/syzkaller550396926" 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 [ 24.460075] audit: type=1400 audit(1513793238.544:8): avc: denied { sys_admin } for pid=3154 comm="syzkaller550396" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 24.496128] audit: type=1400 audit(1513793238.613:9): avc: denied { sys_chroot } for pid=3156 comm="syzkaller550396" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 executing program executing program [ 24.533890] kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu 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 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 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 [ 28.161771] ================================================================== [ 28.170285] BUG: KASAN: use-after-free in __schedule+0xda3/0x2060 [ 28.176483] Read of size 8 at addr ffff8801be398198 by task syzkaller550396/6331 [ 28.183979] [ 28.185579] CPU: 0 PID: 6331 Comm: syzkaller550396 Not tainted 4.15.0-rc4-next-20171220+ #77 [ 28.194118] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.203436] Call Trace: [ 28.205988] dump_stack+0x194/0x257 [ 28.209582] ? arch_local_irq_restore+0x53/0x53 [ 28.214220] ? show_regs_print_info+0x18/0x18 [ 28.218689] ? __schedule+0xda3/0x2060 [ 28.222546] print_address_description+0x73/0x250 [ 28.227354] ? __schedule+0xda3/0x2060 [ 28.231209] kasan_report+0x25b/0x340 [ 28.234979] __asan_report_load8_noabort+0x14/0x20 [ 28.239873] __schedule+0xda3/0x2060 [ 28.243559] ? __sched_text_start+0x8/0x8 [ 28.247676] ? trace_hardirqs_on+0xd/0x10 [ 28.251800] ? __call_srcu+0x7ee/0x1020 [ 28.255740] ? do_raw_spin_trylock+0x190/0x190 [ 28.260290] ? do_raw_spin_trylock+0x190/0x190 [ 28.264850] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.270708] ? __debug_object_init+0x235/0x1040 [ 28.275355] preempt_schedule_common+0x22/0x60 [ 28.279903] _cond_resched+0x1d/0x30 [ 28.283589] wait_for_completion+0xa5/0x770 [ 28.287878] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.292862] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 28.298630] ? __lockdep_init_map+0xe4/0x650 [ 28.303008] ? __init_waitqueue_head+0x97/0x140 [ 28.307649] ? init_wait_entry+0x1b0/0x1b0 [ 28.311860] __synchronize_srcu+0x1ad/0x260 [ 28.316147] ? call_srcu+0x10/0x10 [ 28.319653] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 28.325159] ? irq_matrix_allocated+0x80/0x80 [ 28.329623] ? synchronize_srcu+0x3c5/0x570 [ 28.333914] synchronize_srcu+0x1a3/0x570 [ 28.338028] ? synchronize_srcu+0x1a3/0x570 [ 28.342316] ? lock_downgrade+0x980/0x980 [ 28.346435] ? synchronize_srcu_expedited+0x20/0x20 [ 28.351418] ? lock_release+0xa40/0xa40 [ 28.355362] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 28.360174] ? do_raw_spin_trylock+0x190/0x190 [ 28.364744] kvm_page_track_unregister_notifier+0x186/0x270 [ 28.370425] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 28.375872] ? kvfree+0x36/0x60 [ 28.379122] ? rcu_read_lock_sched_held+0x108/0x120 [ 28.384107] kvm_mmu_uninit_vm+0x1c/0x20 [ 28.388134] kvm_arch_destroy_vm+0x73b/0x980 [ 28.392513] ? kvm_arch_sync_events+0x30/0x30 [ 28.396977] ? mmdrop+0x18/0x30 [ 28.400225] ? mmu_notifier_unregister+0x437/0x5c0 [ 28.405120] ? kvm_put_kvm+0x47a/0xde0 [ 28.408977] ? mmu_notifier_unregister_no_release+0x3e0/0x3e0 [ 28.414828] ? __free_pages+0x107/0x150 [ 28.418775] ? free_unref_page+0x9e0/0x9e0 [ 28.422978] ? quarantine_put+0xeb/0x190 [ 28.427005] ? kfree+0xf0/0x260 [ 28.430250] ? kvm_put_kvm+0x614/0xde0 [ 28.434106] ? free_pages+0x51/0x90 [ 28.437703] kvm_put_kvm+0x695/0xde0 [ 28.441392] ? kvm_clear_guest+0xb0/0xb0 [ 28.445424] ? kvm_irqfd_release+0xd1/0x120 [ 28.449718] ? lock_downgrade+0x980/0x980 [ 28.453845] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.458314] ? kvm_irqfd_release+0xdd/0x120 [ 28.462607] ? kvm_irqfd_release+0xdd/0x120 [ 28.466895] ? kvm_put_kvm+0xde0/0xde0 [ 28.470749] kvm_vm_release+0x42/0x50 [ 28.474519] __fput+0x327/0x7e0 [ 28.477769] ? fput+0x140/0x140 [ 28.481016] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.486872] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.491340] ____fput+0x15/0x20 [ 28.494588] task_work_run+0x199/0x270 [ 28.498446] ? task_work_cancel+0x210/0x210 [ 28.502735] ? _raw_spin_unlock+0x22/0x30 [ 28.506849] ? switch_task_namespaces+0x87/0xc0 [ 28.511488] do_exit+0x9bb/0x1ad0 [ 28.514906] ? check_noncircular+0x20/0x20 [ 28.519107] ? find_held_lock+0x35/0x1d0 [ 28.523138] ? mm_update_next_owner+0x930/0x930 [ 28.527776] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.532933] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.538093] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.543259] ? vmcs_load+0xb3/0x180 [ 28.546854] ? crash_vmclear_local_loaded_vmcss+0x160/0x160 [ 28.552540] ? vmx_vcpu_load+0xa43/0xe70 [ 28.556569] ? check_noncircular+0x20/0x20 [ 28.560784] ? check_noncircular+0x20/0x20 [ 28.564992] ? find_held_lock+0x35/0x1d0 [ 28.569026] ? get_signal+0x7ae/0x16c0 [ 28.572880] ? lock_downgrade+0x980/0x980 [ 28.576999] do_group_exit+0x149/0x400 [ 28.580856] ? do_raw_spin_trylock+0x190/0x190 [ 28.585405] ? SyS_exit+0x30/0x30 [ 28.588824] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.593287] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.598272] get_signal+0x73f/0x16c0 [ 28.601960] ? ptrace_notify+0x130/0x130 [ 28.605993] ? __schedule+0x8f3/0x2060 [ 28.609854] ? __sched_text_start+0x8/0x8 [ 28.613968] ? __fget+0x333/0x570 [ 28.617387] ? lock_downgrade+0x980/0x980 [ 28.621506] do_signal+0x94/0x1ee0 [ 28.625015] ? __lock_is_held+0xb6/0x140 [ 28.629047] ? setup_sigcontext+0x7d0/0x7d0 [ 28.633347] ? schedule+0xf5/0x430 [ 28.636856] ? __schedule+0x2060/0x2060 [ 28.640794] ? iterate_fd+0x3f0/0x3f0 [ 28.644562] ? up_read+0x1a/0x40 [ 28.647898] ? __do_page_fault+0x3d6/0xc90 [ 28.652107] ? exit_to_usermode_loop+0x8c/0x2f0 [ 28.656748] exit_to_usermode_loop+0x258/0x2f0 [ 28.661296] ? ioctl_preallocate+0x2b0/0x2b0 [ 28.665672] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 28.671178] ? selinux_capable+0x40/0x40 [ 28.675210] syscall_return_slowpath+0x490/0x550 [ 28.679931] ? prepare_exit_to_usermode+0x340/0x340 [ 28.684916] ? entry_SYSCALL_64_fastpath+0x69/0x96 [ 28.689814] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.694797] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.699524] entry_SYSCALL_64_fastpath+0x94/0x96 [ 28.704244] RIP: 0033:0x447899 [ 28.707401] RSP: 002b:00007f9ee1a63dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 [ 28.715076] RAX: ffffffffffffffea RBX: 0000000000000000 RCX: 0000000000447899 [ 28.722312] RDX: 000000002099afd0 RSI: 000000004138ae84 RDI: 0000000000000007 [ 28.729551] RBP: 0000000000000000 R08: 00007f9ee1a64700 R09: 00007f9ee1a64700 [ 28.736787] R10: 00007f9ee1a64700 R11: 0000000000000202 R12: 0000000000000000 [ 28.744022] R13: 00000000007efd5f R14: 00007f9ee1a649c0 R15: 0000000000000000 [ 28.751271] [ 28.752866] Allocated by task 6326: [ 28.756463] save_stack+0x43/0xd0 [ 28.759883] kasan_kmalloc+0xad/0xe0 [ 28.763562] kasan_slab_alloc+0x12/0x20 [ 28.767504] kmem_cache_alloc+0x12e/0x760 [ 28.771617] vmx_create_vcpu+0xc4/0x2f20 [ 28.775646] kvm_arch_vcpu_create+0x12c/0x1a0 [ 28.780107] kvm_vm_ioctl+0x48b/0x1c60 [ 28.783958] do_vfs_ioctl+0x1b1/0x1520 [ 28.787809] SyS_ioctl+0x8f/0xc0 [ 28.791140] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 28.795857] [ 28.797450] Freed by task 6331: [ 28.800696] save_stack+0x43/0xd0 [ 28.804119] kasan_slab_free+0x71/0xc0 [ 28.807969] kmem_cache_free+0x83/0x2a0 [ 28.811906] vmx_free_vcpu+0x1ee/0x260 [ 28.815760] kvm_arch_destroy_vm+0x4a2/0x980 [ 28.820135] kvm_put_kvm+0x695/0xde0 [ 28.823815] kvm_vm_release+0x42/0x50 [ 28.827580] __fput+0x327/0x7e0 [ 28.830824] ____fput+0x15/0x20 [ 28.834069] task_work_run+0x199/0x270 [ 28.837922] do_exit+0x9bb/0x1ad0 [ 28.841339] do_group_exit+0x149/0x400 [ 28.845191] get_signal+0x73f/0x16c0 [ 28.848869] do_signal+0x94/0x1ee0 [ 28.852375] exit_to_usermode_loop+0x258/0x2f0 [ 28.856922] syscall_return_slowpath+0x490/0x550 [ 28.861643] entry_SYSCALL_64_fastpath+0x94/0x96 [ 28.866360] [ 28.867956] The buggy address belongs to the object at ffff8801be398180 [ 28.867956] which belongs to the cache kvm_vcpu of size 23872 [ 28.880491] The buggy address is located 24 bytes inside of [ 28.880491] 23872-byte region [ffff8801be398180, ffff8801be39dec0) [ 28.892415] The buggy address belongs to the page: [ 28.897321] page:0000000071636ab6 count:1 mapcount:0 mapping:00000000cf3aca5c index:0x0 compound_mapcount: 0 [ 28.907253] flags: 0x2fffc0000008100(slab|head) [ 28.911891] raw: 02fffc0000008100 ffff8801be398180 0000000000000000 0000000100000001 [ 28.919741] raw: ffffea0007540620 ffffea000759a620 ffff8801d6473c00 0000000000000000 [ 28.927591] page dumped because: kasan: bad access detected [ 28.933525] [ 28.935117] Memory state around the buggy address: [ 28.940010] ffff8801be398080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.947334] ffff8801be398100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.954660] >ffff8801be398180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.961983] ^ [ 28.966097] ffff8801be398200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.973420] ffff8801be398280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.980744] ================================================================== [ 28.988068] Kernel panic - not syncing: panic_on_warn set ... [ 28.988068] [ 28.995396] CPU: 0 PID: 6331 Comm: syzkaller550396 Tainted: G B 4.15.0-rc4-next-20171220+ #77 [ 29.005235] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.014554] Call Trace: [ 29.017109] dump_stack+0x194/0x257 [ 29.020707] ? arch_local_irq_restore+0x53/0x53 [ 29.025343] ? kasan_end_report+0x32/0x50 [ 29.029457] ? lock_downgrade+0x980/0x980 [ 29.033572] ? vsnprintf+0x1ed/0x1900 [ 29.037342] ? __schedule+0xcf0/0x2060 [ 29.041196] panic+0x1e4/0x41c [ 29.044355] ? refcount_error_report+0x214/0x214 [ 29.049081] ? print_shadow_for_address+0xdc/0x1a0 [ 29.053976] ? add_taint+0x1c/0x50 [ 29.057485] ? __schedule+0xda3/0x2060 [ 29.061337] kasan_end_report+0x50/0x50 [ 29.065278] kasan_report+0x144/0x340 [ 29.069049] __asan_report_load8_noabort+0x14/0x20 [ 29.073945] __schedule+0xda3/0x2060 [ 29.077638] ? __sched_text_start+0x8/0x8 [ 29.081753] ? trace_hardirqs_on+0xd/0x10 [ 29.085869] ? __call_srcu+0x7ee/0x1020 [ 29.089812] ? do_raw_spin_trylock+0x190/0x190 [ 29.094360] ? do_raw_spin_trylock+0x190/0x190 [ 29.098917] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.104771] ? __debug_object_init+0x235/0x1040 [ 29.109414] preempt_schedule_common+0x22/0x60 [ 29.113963] _cond_resched+0x1d/0x30 [ 29.117643] wait_for_completion+0xa5/0x770 [ 29.121934] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.126917] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 29.132683] ? __lockdep_init_map+0xe4/0x650 [ 29.137067] ? __init_waitqueue_head+0x97/0x140 [ 29.141705] ? init_wait_entry+0x1b0/0x1b0 [ 29.145914] __synchronize_srcu+0x1ad/0x260 [ 29.150201] ? call_srcu+0x10/0x10 [ 29.153709] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 29.159219] ? irq_matrix_allocated+0x80/0x80 [ 29.163682] ? synchronize_srcu+0x3c5/0x570 [ 29.167976] synchronize_srcu+0x1a3/0x570 [ 29.172088] ? synchronize_srcu+0x1a3/0x570 [ 29.176375] ? lock_downgrade+0x980/0x980 [ 29.180491] ? synchronize_srcu_expedited+0x20/0x20 [ 29.185476] ? lock_release+0xa40/0xa40 [ 29.189419] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 29.194230] ? do_raw_spin_trylock+0x190/0x190 [ 29.198789] kvm_page_track_unregister_notifier+0x186/0x270 [ 29.204469] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 29.209890] ? kvfree+0x36/0x60 [ 29.213136] ? rcu_read_lock_sched_held+0x108/0x120 [ 29.218121] kvm_mmu_uninit_vm+0x1c/0x20 [ 29.222149] kvm_arch_destroy_vm+0x73b/0x980 [ 29.226527] ? kvm_arch_sync_events+0x30/0x30 [ 29.230989] ? mmdrop+0x18/0x30 [ 29.234236] ? mmu_notifier_unregister+0x437/0x5c0 [ 29.239131] ? kvm_put_kvm+0x47a/0xde0 [ 29.242991] ? mmu_notifier_unregister_no_release+0x3e0/0x3e0 [ 29.248840] ? __free_pages+0x107/0x150 [ 29.252781] ? free_unref_page+0x9e0/0x9e0 [ 29.256983] ? quarantine_put+0xeb/0x190 [ 29.261008] ? kfree+0xf0/0x260 [ 29.264254] ? kvm_put_kvm+0x614/0xde0 [ 29.268110] ? free_pages+0x51/0x90 [ 29.271708] kvm_put_kvm+0x695/0xde0 [ 29.275396] ? kvm_clear_guest+0xb0/0xb0 [ 29.279430] ? kvm_irqfd_release+0xd1/0x120 [ 29.283718] ? lock_downgrade+0x980/0x980 [ 29.287842] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.292310] ? kvm_irqfd_release+0xdd/0x120 [ 29.296597] ? kvm_irqfd_release+0xdd/0x120 [ 29.300888] ? kvm_put_kvm+0xde0/0xde0 [ 29.304742] kvm_vm_release+0x42/0x50 [ 29.308509] __fput+0x327/0x7e0 [ 29.311760] ? fput+0x140/0x140 [ 29.315008] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.320856] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.325321] ____fput+0x15/0x20 [ 29.328569] task_work_run+0x199/0x270 [ 29.332426] ? task_work_cancel+0x210/0x210 [ 29.336712] ? _raw_spin_unlock+0x22/0x30 [ 29.340826] ? switch_task_namespaces+0x87/0xc0 [ 29.345466] do_exit+0x9bb/0x1ad0 [ 29.348886] ? check_noncircular+0x20/0x20 [ 29.353085] ? find_held_lock+0x35/0x1d0 [ 29.357118] ? mm_update_next_owner+0x930/0x930 [ 29.361755] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.366912] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.372073] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.377234] ? vmcs_load+0xb3/0x180 [ 29.380829] ? crash_vmclear_local_loaded_vmcss+0x160/0x160 [ 29.386512] ? vmx_vcpu_load+0xa43/0xe70 [ 29.390541] ? check_noncircular+0x20/0x20 [ 29.394751] ? check_noncircular+0x20/0x20 [ 29.398961] ? find_held_lock+0x35/0x1d0 [ 29.402994] ? get_signal+0x7ae/0x16c0 [ 29.406849] ? lock_downgrade+0x980/0x980 [ 29.410971] do_group_exit+0x149/0x400 [ 29.414834] ? do_raw_spin_trylock+0x190/0x190 [ 29.419383] ? SyS_exit+0x30/0x30 [ 29.422804] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.427272] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.432259] get_signal+0x73f/0x16c0 [ 29.435944] ? ptrace_notify+0x130/0x130 [ 29.439977] ? __schedule+0x8f3/0x2060 [ 29.443835] ? __sched_text_start+0x8/0x8 [ 29.447950] ? __fget+0x333/0x570 [ 29.451369] ? lock_downgrade+0x980/0x980 [ 29.455486] do_signal+0x94/0x1ee0 [ 29.458994] ? __lock_is_held+0xb6/0x140 [ 29.463025] ? setup_sigcontext+0x7d0/0x7d0 [ 29.467320] ? schedule+0xf5/0x430 [ 29.470828] ? __schedule+0x2060/0x2060 [ 29.474767] ? iterate_fd+0x3f0/0x3f0 [ 29.478536] ? up_read+0x1a/0x40 [ 29.481877] ? __do_page_fault+0x3d6/0xc90 [ 29.486088] ? exit_to_usermode_loop+0x8c/0x2f0 [ 29.490730] exit_to_usermode_loop+0x258/0x2f0 [ 29.495280] ? ioctl_preallocate+0x2b0/0x2b0 [ 29.499658] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.505161] ? selinux_capable+0x40/0x40 [ 29.509197] syscall_return_slowpath+0x490/0x550 [ 29.513918] ? prepare_exit_to_usermode+0x340/0x340 [ 29.518900] ? entry_SYSCALL_64_fastpath+0x69/0x96 [ 29.523808] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.528793] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.533520] entry_SYSCALL_64_fastpath+0x94/0x96 [ 29.538247] RIP: 0033:0x447899 [ 29.541405] RSP: 002b:00007f9ee1a63dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 [ 29.549080] RAX: ffffffffffffffea RBX: 0000000000000000 RCX: 0000000000447899 [ 29.556318] RDX: 000000002099afd0 RSI: 000000004138ae84 RDI: 0000000000000007 [ 29.563555] RBP: 0000000000000000 R08: 00007f9ee1a64700 R09: 00007f9ee1a64700 [ 29.570790] R10: 00007f9ee1a64700 R11: 0000000000000202 R12: 0000000000000000 [ 29.578028] R13: 00000000007efd5f R14: 00007f9ee1a649c0 R15: 0000000000000000 [ 29.585284] [ 29.585287] ====================================================== [ 29.585289] WARNING: possible circular locking dependency detected [ 29.585291] 4.15.0-rc4-next-20171220+ #77 Not tainted [ 29.585293] ------------------------------------------------------ [ 29.585295] syzkaller550396/6331 is trying to acquire lock: [ 29.585296] ((console_sem).lock){..-.}, at: [<000000004103d59b>] down_trylock+0x13/0x70 [ 29.585302] [ 29.585304] but task is already holding lock: [ 29.585304] (report_lock){....}, at: [<00000000af6d56ae>] kasan_report+0x6b/0x340 [ 29.585309] [ 29.585311] which lock already depends on the new lock. [ 29.585312] [ 29.585313] [ 29.585315] the existing dependency chain (in reverse order) is: [ 29.585316] [ 29.585317] -> #3 (report_lock){....}: [ 29.585323] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.585324] kasan_report+0x6b/0x340 [ 29.585326] __asan_report_load8_noabort+0x14/0x20 [ 29.585328] __schedule+0xda3/0x2060 [ 29.585330] preempt_schedule_common+0x22/0x60 [ 29.585331] _cond_resched+0x1d/0x30 [ 29.585333] wait_for_completion+0xa5/0x770 [ 29.585335] __synchronize_srcu+0x1ad/0x260 [ 29.585337] synchronize_srcu+0x1a3/0x570 [ 29.585339] kvm_page_track_unregister_notifier+0x186/0x270 [ 29.585340] kvm_mmu_uninit_vm+0x1c/0x20 [ 29.585342] kvm_arch_destroy_vm+0x73b/0x980 [ 29.585344] kvm_put_kvm+0x695/0xde0 [ 29.585345] kvm_vm_release+0x42/0x50 [ 29.585347] __fput+0x327/0x7e0 [ 29.585348] ____fput+0x15/0x20 [ 29.585350] task_work_run+0x199/0x270 [ 29.585351] do_exit+0x9bb/0x1ad0 [ 29.585353] do_group_exit+0x149/0x400 [ 29.585355] get_signal+0x73f/0x16c0 [ 29.585356] do_signal+0x94/0x1ee0 [ 29.585358] exit_to_usermode_loop+0x258/0x2f0 [ 29.585360] syscall_return_slowpath+0x490/0x550 [ 29.585362] entry_SYSCALL_64_fastpath+0x94/0x96 [ 29.585363] [ 29.585364] -> #2 (&rq->lock){-.-.}: [ 29.585369] _raw_spin_lock+0x2a/0x40 [ 29.585370] task_fork_fair+0x7a/0x690 [ 29.585372] sched_fork+0x435/0xc00 [ 29.585374] copy_process.part.37+0x1758/0x4b60 [ 29.585375] _do_fork+0x1f7/0xf70 [ 29.585377] kernel_thread+0x34/0x40 [ 29.585378] rest_init+0x22/0xf0 [ 29.585380] start_kernel+0x7f1/0x819 [ 29.585382] x86_64_start_reservations+0x2a/0x2c [ 29.585384] x86_64_start_kernel+0x77/0x7a [ 29.585385] secondary_startup_64+0xa5/0xb0 [ 29.585386] [ 29.585387] -> #1 (&p->pi_lock){-.-.}: [ 29.585393] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.585394] try_to_wake_up+0xbc/0x1600 [ 29.585396] wake_up_process+0x10/0x20 [ 29.585397] __up.isra.0+0x1cc/0x2c0 [ 29.585399] up+0x13b/0x1d0 [ 29.585401] __up_console_sem+0xb2/0x1a0 [ 29.585402] console_unlock+0x538/0xd70 [ 29.585404] do_con_write+0x106e/0x1f70 [ 29.585405] con_write+0x25/0xb0 [ 29.585407] n_tty_write+0x5ef/0xec0 [ 29.585408] tty_write+0x3fa/0x840 [ 29.585410] __vfs_write+0xef/0x970 [ 29.585411] vfs_write+0x189/0x510 [ 29.585413] SyS_write+0xef/0x220 [ 29.585415] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 29.585416] [ 29.585417] -> #0 ((console_sem).lock){..-.}: [ 29.585422] lock_acquire+0x1d5/0x580 [ 29.585424] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.585425] down_trylock+0x13/0x70 [ 29.585427] __down_trylock_console_sem+0xa2/0x1e0 [ 29.585429] console_trylock+0x15/0x100 [ 29.585431] vprintk_emit+0x49b/0x590 [ 29.585432] vprintk_default+0x28/0x30 [ 29.585434] vprintk_func+0x57/0xc0 [ 29.585435] printk+0xaa/0xca [ 29.585437] kasan_report+0x7b/0x340 [ 29.585439] __asan_report_load8_noabort+0x14/0x20 [ 29.585440] __schedule+0xda3/0x2060 [ 29.585442] preempt_schedule_common+0x22/0x60 [ 29.585444] _cond_resched+0x1d/0x30 [ 29.585445] wait_for_completion+0xa5/0x770 [ 29.585447] __synchronize_srcu+0x1ad/0x260 [ 29.585449] synchronize_srcu+0x1a3/0x570 [ 29.585451] kvm_page_track_unregister_notifier+0x186/0x270 [ 29.585453] kvm_mmu_uninit_vm+0x1c/0x20 [ 29.585454] kvm_arch_destroy_vm+0x73b/0x980 [ 29.585456] kvm_put_kvm+0x695/0xde0 [ 29.585458] kvm_vm_release+0x42/0x50 [ 29.585459] __fput+0x327/0x7e0 [ 29.585461] ____fput+0x15/0x20 [ 29.585462] task_work_run+0x199/0x270 [ 29.585464] do_exit+0x9bb/0x1ad0 [ 29.585465] do_group_exit+0x149/0x400 [ 29.585467] get_signal+0x73f/0x16c0 [ 29.585469] do_signal+0x94/0x1ee0 [ 29.585470] exit_to_usermode_loop+0x258/0x2f0 [ 29.585472] syscall_return_slowpath+0x490/0x550 [ 29.585474] entry_SYSCALL_64_fastpath+0x94/0x96 [ 29.585475] [ 29.585477] other info that might help us debug this: [ 29.585478] [ 29.585479] Chain exists of: [ 29.585480] (console_sem).lock --> &rq->lock --> report_lock [ 29.585486] [ 29.585488] Possible unsafe locking scenario: [ 29.585489] [ 29.585491] CPU0 CPU1 [ 29.585492] ---- ---- [ 29.585493] lock(report_lock); [ 29.585497] lock(&rq->lock); [ 29.585501] lock(report_lock); [ 29.585503] lock((console_sem).lock); [ 29.585507] [ 29.585508] *** DEADLOCK *** [ 29.585509] [ 29.585510] 2 locks held by syzkaller550396/6331: [ 29.585511] #0: (&rq->lock){-.-.}, at: [<0000000001dbc99f>] __schedule+0x24e/0x2060 [ 29.585517] #1: (report_lock){....}, at: [<00000000af6d56ae>] kasan_report+0x6b/0x340 [ 29.585523] [ 29.585524] stack backtrace: [ 29.585527] CPU: 0 PID: 6331 Comm: syzkaller550396 Not tainted 4.15.0-rc4-next-20171220+ #77 [ 29.585530] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.585531] Call Trace: [ 29.585533] dump_stack+0x194/0x257 [ 29.585535] ? arch_local_irq_restore+0x53/0x53 [ 29.585536] print_circular_bug.isra.37+0x2cd/0x2dc [ 29.585538] ? save_trace+0xe0/0x2b0 [ 29.585540] __lock_acquire+0x30a8/0x3e00 [ 29.585541] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.585543] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.585545] ? print_lockdep_cache.isra.31+0x109/0x109 [ 29.585547] ? save_stack_trace+0x1a/0x20 [ 29.585548] ? save_trace+0xe0/0x2b0 [ 29.585550] ? __lock_acquire+0x36c0/0x3e00 [ 29.585552] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.585554] ? __lock_is_held+0xb6/0x140 [ 29.585555] ? __lock_is_held+0xb6/0x140 [ 29.585557] lock_acquire+0x1d5/0x580 [ 29.585559] ? lock_acquire+0x1d5/0x580 [ 29.585560] ? down_trylock+0x13/0x70 [ 29.585562] ? find_held_lock+0x35/0x1d0 [ 29.585563] ? lock_release+0xa40/0xa40 [ 29.585565] ? vprintk_emit+0x379/0x590 [ 29.585566] ? lock_downgrade+0x980/0x980 [ 29.585568] ? kvm_sched_clock_read+0x25/0x40 [ 29.585570] ? sched_clock+0x31/0x40 [ 29.585571] ? sched_clock_cpu+0x1b/0x170 [ 29.585573] ? vprintk_emit+0x49b/0x590 [ 29.585575] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.585576] ? down_trylock+0x13/0x70 [ 29.585578] down_trylock+0x13/0x70 [ 29.585579] ? vprintk_emit+0x49b/0x590 [ 29.585581] __down_trylock_console_sem+0xa2/0x1e0 [ 29.585583] console_trylock+0x15/0x100 [ 29.585584] vprintk_emit+0x49b/0x590 [ 29.585586] vprintk_default+0x28/0x30 [ 29.585587] vprintk_func+0x57/0xc0 [ 29.585589] printk+0xaa/0xca [ 29.585590] ? show_regs_print_info+0x18/0x18 [ 29.585592] ? __schedule+0xda3/0x2060 [ 29.585593] kasan_report+0x7b/0x340 [ 29.585595] __asan_report_load8_noabort+0x14/0x20 [ 29.585597] __schedule+0xda3/0x2060 [ 29.585598] ? __sched_text_start+0x8/0x8 [ 29.585600] ? trace_hardirqs_on+0xd/0x10 [ 29.585602] ? __call_srcu+0x7ee/0x1020 [ 29.585603] ? do_raw_spin_trylock+0x190/0x190 [ 29.585605] ? do_raw_spin_trylock+0x190/0x190 [ 29.585607] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.585609] ? __debug_object_init+0x235/0x1040 [ 29.585611] preempt_schedule_common+0x22/0x60 [ 29.585612] _cond_resched+0x1d/0x30 [ 29.585614] wait_for_completion+0xa5/0x770 [ 29.585616] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.585618] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 29.585620] ? __lockdep_init_map+0xe4/0x650 [ 29.585621] ? __init_waitqueue_head+0x97/0x140 [ 29.585623] ? init_wait_entry+0x1b0/0x1b0 [ 29.585625] __synchronize_srcu+0x1ad/0x260 [ 29.585626] ? call_srcu+0x10/0x10 [ 29.585628] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 29.585630] ? irq_matrix_allocated+0x80/0x80 [ 29.585632] ? synchronize_srcu+0x3c5/0x570 [ 29.585633] synchronize_srcu+0x1a3/0x570 [ 29.585635] ? synchronize_srcu+0x1a3/0x570 [ 29.585637] ? lock_downgrade+0x980/0x980 [ 29.585639] ? synchronize_srcu_expedited+0x20/0x20 [ 29.585640] ? lock_release+0xa40/0xa40 [ 29.585642] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 29.585644] ? do_raw_spin_trylock+0x190/0x190 [ 29.585646] kvm_page_track_unregister_notifier+0x186/0x270 [ 29.585648] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 29.585649] ? kvfree+0x36/0x60 [ 29.585651] ? rcu_read_lock_sched_held+0x108/0x120 [ 29.585653] kvm_mmu_uninit_vm+0x1c/0x20 [ 29.585654] kvm_arch_destroy_vm+0x73b/0x980 [ 29.585656] ? kvm_arch_sync_events+0x30/0x30 [ 29.585658] ? mmdrop+0x18/0x30 [ 29.585659] ? mmu_notifier_unregister+0x437/0x5c0 [ 29.585661] ? kvm_put_kvm+0x47a/0xde0 [ 29.585663] ? mmu_notifier_unregister_no_release+0x3e0/0x3e0 [ 29.585665] ? __free_pages+0x107/0x150 [ 29.585666] ? free_unref_page+0x9e0/0x9e0 [ 29.585668] ? quarantine_put+0xeb/0x190 [ 29.585669] ? kfree+0xf0/0x260 [ 29.585671] ? kvm_put_kvm+0x614/0xde0 [ 29.585679] ? free_pages+0x51/0x90 [ 29.585680] kvm_put_kvm+0x695/0xde0 [ 29.585682] ? kvm_clear_guest+0xb0/0xb0 [ 29.585684] ? kvm_irqfd_release+0xd1/0x120 [ 29.585685] ? lock_downgrade+0x980/0x980 [ 29.585687] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.585689] ? kvm_irqfd_release+0xdd/0x120 [ 29.585690] ? kvm_irqfd_release+0xdd/0x120 [ 29.585692] ? kvm_put_kvm+0xde0/0xde0 [ 29.585693] kvm_vm_release+0x42/0x50 [ 29.585695] __fput+0x327/0x7e0 [ 29.585696] ? fput+0x140/0x140 [ 29.585698] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.585700] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.585702] ____fput+0x15/0x20 [ 29.585703] task_work_run+0x199/0x270 [ 29.585705] ? task_work_cancel+0x210/0x210 [ 29.585707] ? _raw_spin_unlock+0x22/0x30 [ 29.585708] ? switch_task_namespaces+0x87/0xc0 [ 29.585710] do_exit+0x9bb/0x1ad0 [ 29.585712] ? check_noncircular+0x20/0x20 [ 29.585713] ? find_held_lock+0x35/0x1d0 [ 29.585715] ? mm_update_next_owner+0x930/0x930 [ 29.585717] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.585719] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.585721] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.585723] ? vmcs_load+0xb3/0x180 [ 29.585725] ? crash_vmclear_local_loaded_vmcss+0x160/0x160 [ 29.585726] ? vmx_vcpu_load+0xa43/0xe70 [ 29.585727] ? check [ 29.585730] Lost 42 message(s)! [ 30.656336] Shutting down cpus with NMI [ 31.708625] Dumping ftrace buffer: [ 31.712132] (ftrace buffer empty) [ 31.715807] Kernel Offset: disabled [ 31.719399] Rebooting in 86400 seconds..