[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.452302] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.063304] random: sshd: uninitialized urandom read (32 bytes read) [ 27.393556] random: sshd: uninitialized urandom read (32 bytes read) [ 27.960339] random: sshd: uninitialized urandom read (32 bytes read) [ 28.143621] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.31' (ECDSA) to the list of known hosts. [ 33.733795] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.840638] L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/l1tf.html for details. [ 33.865919] ================================================================== [ 33.875656] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.881882] Read of size 8 at addr ffff8801b7608058 by task syz-executor406/4691 [ 33.889404] [ 33.891031] CPU: 1 PID: 4691 Comm: syz-executor406 Not tainted 4.19.0-rc1+ #219 [ 33.898491] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.907839] Call Trace: [ 33.910427] dump_stack+0x1c9/0x2b4 [ 33.914061] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.919243] ? printk+0xa7/0xcf [ 33.922524] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.927276] ? __schedule+0xf54/0x1df0 [ 33.931184] print_address_description+0x6c/0x20b [ 33.936019] ? __schedule+0xf54/0x1df0 [ 33.939909] kasan_report.cold.7+0x242/0x30d [ 33.944314] __asan_report_load8_noabort+0x14/0x20 [ 33.949238] __schedule+0xf54/0x1df0 [ 33.952952] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.958053] ? __sched_text_start+0x8/0x8 [ 33.962199] ? __call_srcu+0x7e7/0x1040 [ 33.966180] ? check_same_owner+0x340/0x340 [ 33.970493] ? mark_held_locks+0x160/0x160 [ 33.974719] ? find_held_lock+0x36/0x1c0 [ 33.978776] preempt_schedule_common+0x22/0x60 [ 33.983352] _cond_resched+0x1d/0x30 [ 33.987063] wait_for_completion+0xa5/0x8d0 [ 33.991398] ? wait_for_completion_interruptible+0x950/0x950 [ 33.997191] ? __lockdep_init_map+0x105/0x590 [ 34.001686] ? __init_waitqueue_head+0x9e/0x150 [ 34.006350] ? init_wait_entry+0x1c0/0x1c0 [ 34.010585] __synchronize_srcu+0x189/0x240 [ 34.014926] ? call_srcu+0x10/0x10 [ 34.018471] ? rcu_unexpedite_gp+0x20/0x20 [ 34.022722] synchronize_srcu+0x335/0x56f [ 34.026867] ? lock_downgrade+0x8f0/0x8f0 [ 34.031033] ? synchronize_srcu_expedited+0x20/0x20 [ 34.036058] ? kasan_check_read+0x11/0x20 [ 34.040200] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.044778] ? kasan_check_write+0x14/0x20 [ 34.049004] ? do_raw_spin_lock+0xc1/0x200 [ 34.053250] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.058965] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.064424] ? kvfree+0x61/0x70 [ 34.067720] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.072741] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.076795] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.081201] ? kvm_arch_sync_events+0x30/0x30 [ 34.085699] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.091234] ? mmu_notifier_unregister+0x474/0x600 [ 34.096161] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.100578] ? kfree+0x111/0x210 [ 34.103941] ? __mmu_notifier_register+0x30/0x30 [ 34.108820] ? __free_pages+0x10a/0x190 [ 34.112797] ? free_unref_page+0x930/0x930 [ 34.117037] kvm_put_kvm+0x73f/0x1060 [ 34.120845] ? kvm_write_guest_cached+0x40/0x40 [ 34.125515] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.130006] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.134522] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.139114] ? kasan_check_write+0x14/0x20 [ 34.143374] ? do_raw_spin_lock+0xc1/0x200 [ 34.147610] ? kvm_irqfd_release+0xdd/0x120 [ 34.151938] ? kvm_irqfd_release+0xdd/0x120 [ 34.156274] ? kvm_put_kvm+0x1060/0x1060 [ 34.160338] kvm_vm_release+0x42/0x50 [ 34.164132] __fput+0x38a/0xa40 [ 34.167405] ? __alloc_file+0x400/0x400 [ 34.171380] ? check_same_owner+0x340/0x340 [ 34.175696] ? kasan_check_write+0x14/0x20 [ 34.179932] ? do_raw_spin_lock+0xc1/0x200 [ 34.184159] ____fput+0x15/0x20 [ 34.187434] task_work_run+0x1e8/0x2a0 [ 34.191324] ? task_work_cancel+0x240/0x240 [ 34.195651] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.201183] ? switch_task_namespaces+0xa2/0xd0 [ 34.205852] do_exit+0x1ae4/0x26e0 [ 34.209388] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.214053] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.218283] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.223298] ? kfree+0x1d7/0x210 [ 34.227098] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.231329] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.237038] ? lock_downgrade+0x8f0/0x8f0 [ 34.241182] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.246716] ? kasan_check_read+0x11/0x20 [ 34.250858] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.255256] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.259832] ? lock_downgrade+0x8f0/0x8f0 [ 34.263985] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 34.269518] ? vcc_create+0x4fc/0x630 [ 34.273314] ? find_held_lock+0x36/0x1c0 [ 34.277377] ? __fget_light+0x2f7/0x440 [ 34.281361] ? fget_raw+0x20/0x20 [ 34.284806] ? lock_downgrade+0x8f0/0x8f0 [ 34.288954] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.294686] ? do_vfs_ioctl+0x201/0x1720 [ 34.298746] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.303147] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.307727] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 34.312746] ? __fget_light+0x2f7/0x440 [ 34.316716] ? fget_raw+0x20/0x20 [ 34.320225] ? sockfd_lookup_light+0xc5/0x160 [ 34.324718] ? __sys_setsockopt+0x257/0x3b0 [ 34.329042] do_group_exit+0x177/0x440 [ 34.332925] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.337238] ? __ia32_sys_exit+0x50/0x50 [ 34.341322] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.346429] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 34.351964] ? ksys_ioctl+0x81/0xd0 [ 34.355603] __x64_sys_exit_group+0x3e/0x50 [ 34.359925] do_syscall_64+0x1b9/0x820 [ 34.363806] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.369163] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.374094] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.378934] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.383967] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.388991] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.394008] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.398848] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.404036] RIP: 0033:0x43f158 [ 34.407249] Code: Bad RIP value. [ 34.410607] RSP: 002b:00007fff55a5e008 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.418312] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f158 [ 34.425585] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.432864] RBP: 00000000004bea08 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.440148] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.447416] R13: 00000000006d01a0 R14: 0000000000000000 R15: 0000000000000000 [ 34.454697] [ 34.456326] Allocated by task 4691: [ 34.459963] save_stack+0x43/0xd0 [ 34.463421] kasan_kmalloc+0xc4/0xe0 [ 34.467124] kasan_slab_alloc+0x12/0x20 [ 34.471090] kmem_cache_alloc+0x12e/0x710 [ 34.475230] vmx_create_vcpu+0xcf/0x2830 [ 34.479282] kvm_arch_vcpu_create+0xe5/0x220 [ 34.483684] kvm_vm_ioctl+0x488/0x1d80 [ 34.487566] do_vfs_ioctl+0x1de/0x1720 [ 34.491441] ksys_ioctl+0xa9/0xd0 [ 34.494892] __x64_sys_ioctl+0x73/0xb0 [ 34.498790] do_syscall_64+0x1b9/0x820 [ 34.502670] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.507844] [ 34.509470] Freed by task 4691: [ 34.512742] save_stack+0x43/0xd0 [ 34.516187] __kasan_slab_free+0x11a/0x170 [ 34.520445] kasan_slab_free+0xe/0x10 [ 34.524243] kmem_cache_free+0x86/0x280 [ 34.528206] vmx_free_vcpu+0x26b/0x300 [ 34.532083] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.536486] kvm_put_kvm+0x73f/0x1060 [ 34.540277] kvm_vm_release+0x42/0x50 [ 34.544080] __fput+0x38a/0xa40 [ 34.547358] ____fput+0x15/0x20 [ 34.550632] task_work_run+0x1e8/0x2a0 [ 34.554512] do_exit+0x1ae4/0x26e0 [ 34.558056] do_group_exit+0x177/0x440 [ 34.561938] __x64_sys_exit_group+0x3e/0x50 [ 34.566256] do_syscall_64+0x1b9/0x820 [ 34.570137] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.575322] [ 34.576949] The buggy address belongs to the object at ffff8801b7608040 [ 34.576949] which belongs to the cache kvm_vcpu of size 23872 [ 34.589528] The buggy address is located 24 bytes inside of [ 34.589528] 23872-byte region [ffff8801b7608040, ffff8801b760dd80) [ 34.601509] The buggy address belongs to the page: [ 34.606432] page:ffffea0006dd8200 count:1 mapcount:0 mapping:ffff8801d6e9a300 index:0x0 compound_mapcount: 0 [ 34.616406] flags: 0x2fffc0000008100(slab|head) [ 34.621073] raw: 02fffc0000008100 ffff8801d52c2e48 ffff8801d52c2e48 ffff8801d6e9a300 [ 34.628947] raw: 0000000000000000 ffff8801b7608040 0000000100000001 0000000000000000 [ 34.636810] page dumped because: kasan: bad access detected [ 34.642503] [ 34.644145] Memory state around the buggy address: [ 34.649066] ffff8801b7607f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.656416] ffff8801b7607f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.663942] >ffff8801b7608000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.671292] ^ [ 34.677541] ffff8801b7608080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.684894] ffff8801b7608100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.692237] ================================================================== [ 34.699583] Kernel panic - not syncing: panic_on_warn set ... [ 34.699583] [ 34.706948] CPU: 1 PID: 4691 Comm: syz-executor406 Tainted: G B 4.19.0-rc1+ #219 [ 34.715770] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.725138] Call Trace: [ 34.727748] dump_stack+0x1c9/0x2b4 [ 34.731373] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.736564] ? lock_downgrade+0x8f0/0x8f0 [ 34.740720] ? __schedule+0xf54/0x1df0 [ 34.744604] panic+0x238/0x4e7 [ 34.747808] ? add_taint.cold.5+0x16/0x16 [ 34.751972] ? print_shadow_for_address+0xba/0x116 [ 34.756893] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.761293] ? trace_hardirqs_off+0x77/0x2b0 [ 34.765694] ? __schedule+0xf54/0x1df0 [ 34.769598] kasan_end_report+0x47/0x4f [ 34.773580] kasan_report.cold.7+0x76/0x30d [ 34.777906] __asan_report_load8_noabort+0x14/0x20 [ 34.782829] __schedule+0xf54/0x1df0 [ 34.786552] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.791652] ? __sched_text_start+0x8/0x8 [ 34.795800] ? __call_srcu+0x7e7/0x1040 [ 34.799779] ? check_same_owner+0x340/0x340 [ 34.804091] ? mark_held_locks+0x160/0x160 [ 34.808316] ? find_held_lock+0x36/0x1c0 [ 34.812378] preempt_schedule_common+0x22/0x60 [ 34.816975] _cond_resched+0x1d/0x30 [ 34.820684] wait_for_completion+0xa5/0x8d0 [ 34.825003] ? wait_for_completion_interruptible+0x950/0x950 [ 34.830792] ? __lockdep_init_map+0x105/0x590 [ 34.835297] ? __init_waitqueue_head+0x9e/0x150 [ 34.839960] ? init_wait_entry+0x1c0/0x1c0 [ 34.844192] __synchronize_srcu+0x189/0x240 [ 34.848512] ? call_srcu+0x10/0x10 [ 34.852047] ? rcu_unexpedite_gp+0x20/0x20 [ 34.856295] synchronize_srcu+0x335/0x56f [ 34.860436] ? lock_downgrade+0x8f0/0x8f0 [ 34.864588] ? synchronize_srcu_expedited+0x20/0x20 [ 34.869601] ? kasan_check_read+0x11/0x20 [ 34.873744] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.878319] ? kasan_check_write+0x14/0x20 [ 34.882552] ? do_raw_spin_lock+0xc1/0x200 [ 34.886787] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.892494] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.897939] ? kvfree+0x61/0x70 [ 34.901224] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.906237] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.910311] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.914723] ? kvm_arch_sync_events+0x30/0x30 [ 34.919217] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.924750] ? mmu_notifier_unregister+0x474/0x600 [ 34.929691] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.934111] ? kfree+0x111/0x210 [ 34.937506] ? __mmu_notifier_register+0x30/0x30 [ 34.942285] ? __free_pages+0x10a/0x190 [ 34.946249] ? free_unref_page+0x930/0x930 [ 34.950489] kvm_put_kvm+0x73f/0x1060 [ 34.954290] ? kvm_write_guest_cached+0x40/0x40 [ 34.958980] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.963489] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.967986] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.972568] ? kasan_check_write+0x14/0x20 [ 34.976793] ? do_raw_spin_lock+0xc1/0x200 [ 34.981048] ? kvm_irqfd_release+0xdd/0x120 [ 34.985374] ? kvm_irqfd_release+0xdd/0x120 [ 34.989702] ? kvm_put_kvm+0x1060/0x1060 [ 34.993753] kvm_vm_release+0x42/0x50 [ 34.997559] __fput+0x38a/0xa40 [ 35.000852] ? __alloc_file+0x400/0x400 [ 35.004851] ? check_same_owner+0x340/0x340 [ 35.009167] ? kasan_check_write+0x14/0x20 [ 35.013411] ? do_raw_spin_lock+0xc1/0x200 [ 35.017639] ____fput+0x15/0x20 [ 35.020919] task_work_run+0x1e8/0x2a0 [ 35.024806] ? task_work_cancel+0x240/0x240 [ 35.029123] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.034664] ? switch_task_namespaces+0xa2/0xd0 [ 35.039341] do_exit+0x1ae4/0x26e0 [ 35.042876] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.047544] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.051799] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.056824] ? kfree+0x1d7/0x210 [ 35.060187] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.064424] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.070132] ? lock_downgrade+0x8f0/0x8f0 [ 35.074279] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.079839] ? kasan_check_read+0x11/0x20 [ 35.083981] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.088379] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.092956] ? lock_downgrade+0x8f0/0x8f0 [ 35.097103] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 35.102645] ? vcc_create+0x4fc/0x630 [ 35.106441] ? find_held_lock+0x36/0x1c0 [ 35.110513] ? __fget_light+0x2f7/0x440 [ 35.114489] ? fget_raw+0x20/0x20 [ 35.118231] ? lock_downgrade+0x8f0/0x8f0 [ 35.122381] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.128102] ? do_vfs_ioctl+0x201/0x1720 [ 35.132159] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.136561] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.141139] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 35.146146] ? __fget_light+0x2f7/0x440 [ 35.150113] ? fget_raw+0x20/0x20 [ 35.153576] ? sockfd_lookup_light+0xc5/0x160 [ 35.158082] ? __sys_setsockopt+0x257/0x3b0 [ 35.162402] do_group_exit+0x177/0x440 [ 35.166285] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.170614] ? __ia32_sys_exit+0x50/0x50 [ 35.174673] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.179774] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.185305] ? ksys_ioctl+0x81/0xd0 [ 35.188936] __x64_sys_exit_group+0x3e/0x50 [ 35.193254] do_syscall_64+0x1b9/0x820 [ 35.197139] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.202497] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.207428] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.212289] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.217300] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.222338] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.227362] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.232224] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.237418] RIP: 0033:0x43f158 [ 35.240612] Code: Bad RIP value. [ 35.243993] RSP: 002b:00007fff55a5e008 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.251696] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f158 [ 35.258982] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.266246] RBP: 00000000004bea08 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.273505] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.280774] R13: 00000000006d01a0 R14: 0000000000000000 R15: 0000000000000000 [ 35.288084] [ 35.288090] ====================================================== [ 35.288095] WARNING: possible circular locking dependency detected [ 35.288098] 4.19.0-rc1+ #219 Not tainted [ 35.288104] ------------------------------------------------------ [ 35.288108] syz-executor406/4691 is trying to acquire lock: [ 35.288129] 000000009f57590c ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.288143] [ 35.288159] but task is already holding lock: [ 35.288162] 0000000075266d74 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.288176] [ 35.288180] which lock already depends on the new lock. [ 35.288183] [ 35.288185] [ 35.288190] the existing dependency chain (in reverse order) is: [ 35.288192] [ 35.288194] -> #3 (report_lock){....}: [ 35.288208] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.288212] kasan_report+0x8e/0x110 [ 35.288216] __asan_report_load8_noabort+0x14/0x20 [ 35.288220] __schedule+0xf54/0x1df0 [ 35.288224] preempt_schedule_common+0x22/0x60 [ 35.288228] _cond_resched+0x1d/0x30 [ 35.288232] wait_for_completion+0xa5/0x8d0 [ 35.288236] __synchronize_srcu+0x189/0x240 [ 35.288240] synchronize_srcu+0x335/0x56f [ 35.288244] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.288248] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.288252] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.288256] kvm_put_kvm+0x73f/0x1060 [ 35.288260] kvm_vm_release+0x42/0x50 [ 35.288263] __fput+0x38a/0xa40 [ 35.288266] ____fput+0x15/0x20 [ 35.288270] task_work_run+0x1e8/0x2a0 [ 35.288274] do_exit+0x1ae4/0x26e0 [ 35.288277] do_group_exit+0x177/0x440 [ 35.288281] __x64_sys_exit_group+0x3e/0x50 [ 35.288285] do_syscall_64+0x1b9/0x820 [ 35.288290] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.288292] [ 35.288294] -> #2 (&rq->lock){-.-.}: [ 35.288308] _raw_spin_lock+0x2a/0x40 [ 35.288311] task_fork_fair+0x93/0x680 [ 35.288315] sched_fork+0x44b/0xbd0 [ 35.288319] copy_process+0x235e/0x7ad0 [ 35.288322] _do_fork+0x1ca/0x1170 [ 35.288326] kernel_thread+0x34/0x40 [ 35.288330] rest_init+0x22/0xe4 [ 35.288340] start_kernel+0x913/0x94e [ 35.288345] x86_64_start_reservations+0x29/0x2b [ 35.288362] x86_64_start_kernel+0x76/0x79 [ 35.288365] secondary_startup_64+0xa4/0xb0 [ 35.288368] [ 35.288370] -> #1 (&p->pi_lock){-.-.}: [ 35.288383] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.288387] try_to_wake_up+0xd2/0x1250 [ 35.288391] wake_up_process+0x10/0x20 [ 35.288394] __up.isra.1+0x1c0/0x2a0 [ 35.288398] up+0x13c/0x1c0 [ 35.288401] __up_console_sem+0xbe/0x1b0 [ 35.288405] console_unlock+0x506/0x10d0 [ 35.288409] vprintk_emit+0x33a/0x910 [ 35.288412] vprintk_default+0x28/0x30 [ 35.288416] vprintk_func+0x7a/0x117 [ 35.288419] printk+0xa7/0xcf [ 35.288422] load_umh+0x51/0xbd [ 35.288426] do_one_initcall+0x127/0x838 [ 35.288430] kernel_init_freeable+0x4bb/0x5ae [ 35.288433] kernel_init+0x11/0x1b3 [ 35.288437] ret_from_fork+0x3a/0x50 [ 35.288439] [ 35.288441] -> #0 ((console_sem).lock){-...}: [ 35.288464] lock_acquire+0x1e4/0x4f0 [ 35.288468] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.288472] down_trylock+0x13/0x70 [ 35.288476] __down_trylock_console_sem+0xae/0x200 [ 35.288479] console_trylock+0x15/0xa0 [ 35.288483] vprintk_emit+0x31f/0x910 [ 35.288486] vprintk_default+0x28/0x30 [ 35.288490] vprintk_func+0x7a/0x117 [ 35.288493] printk+0xa7/0xcf [ 35.288497] kasan_report+0x9e/0x110 [ 35.288501] __asan_report_load8_noabort+0x14/0x20 [ 35.288504] __schedule+0xf54/0x1df0 [ 35.288509] preempt_schedule_common+0x22/0x60 [ 35.288512] _cond_resched+0x1d/0x30 [ 35.288516] wait_for_completion+0xa5/0x8d0 [ 35.288520] __synchronize_srcu+0x189/0x240 [ 35.288524] synchronize_srcu+0x335/0x56f [ 35.288529] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.288533] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.288537] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.288540] kvm_put_kvm+0x73f/0x1060 [ 35.288544] kvm_vm_release+0x42/0x50 [ 35.288547] __fput+0x38a/0xa40 [ 35.288551] ____fput+0x15/0x20 [ 35.288554] task_work_run+0x1e8/0x2a0 [ 35.288558] do_exit+0x1ae4/0x26e0 [ 35.288561] do_group_exit+0x177/0x440 [ 35.288565] __x64_sys_exit_group+0x3e/0x50 [ 35.288569] do_syscall_64+0x1b9/0x820 [ 35.288573] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.288575] [ 35.288579] other info that might help us debug this: [ 35.288581] [ 35.288584] Chain exists of: [ 35.288586] (console_sem).lock --> &rq->lock --> report_lock [ 35.288603] [ 35.288607] Possible unsafe locking scenario: [ 35.288609] [ 35.288613] CPU0 CPU1 [ 35.288617] ---- ---- [ 35.288619] lock(report_lock); [ 35.288627] lock(&rq->lock); [ 35.288648] lock(report_lock); [ 35.288656] lock((console_sem).lock); [ 35.288664] [ 35.288667] *** DEADLOCK *** [ 35.288669] [ 35.288673] 2 locks held by syz-executor406/4691: [ 35.288675] #0: 00000000fa15586a (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.288691] #1: 0000000075266d74 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.288708] [ 35.288711] stack backtrace: [ 35.288716] CPU: 1 PID: 4691 Comm: syz-executor406 Not tainted 4.19.0-rc1+ #219 [ 35.288723] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.288726] Call Trace: [ 35.288730] dump_stack+0x1c9/0x2b4 [ 35.288734] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.288738] ? vprintk_func+0x100/0x117 [ 35.288743] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.288746] ? save_trace+0xe0/0x290 [ 35.288750] __lock_acquire+0x3449/0x5020 [ 35.288754] ? mark_held_locks+0x160/0x160 [ 35.288758] ? mark_held_locks+0x160/0x160 [ 35.288763] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.288767] ? is_bpf_text_address+0xd7/0x170 [ 35.288771] ? kernel_text_address+0x79/0xf0 [ 35.288775] ? __kernel_text_address+0xd/0x40 [ 35.288779] ? __save_stack_trace+0x8d/0xf0 [ 35.288783] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.288787] ? save_trace+0x290/0x290 [ 35.288791] ? save_stack_trace+0x1a/0x20 [ 35.288795] ? save_trace+0xe0/0x290 [ 35.288798] ? graph_lock+0x170/0x170 [ 35.288803] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.288806] lock_acquire+0x1e4/0x4f0 [ 35.288810] ? down_trylock+0x13/0x70 [ 35.288814] ? lock_release+0x9f0/0x9f0 [ 35.288818] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.288822] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.288826] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.288830] ? log_store+0x34f/0x4c0 [ 35.288833] ? vprintk_emit+0x31f/0x910 [ 35.288838] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.288842] ? down_trylock+0x13/0x70 [ 35.288845] down_trylock+0x13/0x70 [ 35.288850] __down_trylock_console_sem+0xae/0x200 [ 35.288853] console_trylock+0x15/0xa0 [ 35.288857] vprintk_emit+0x31f/0x910 [ 35.288861] ? wake_up_klogd+0x110/0x110 [ 35.288865] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.288869] ? kasan_check_read+0x11/0x20 [ 35.288873] ? rcu_is_watching+0x8c/0x150 [ 35.288877] ? rcu_pm_notify+0xc0/0xc0 [ 35.288880] ? lock_acquire+0x1e4/0x4f0 [ 35.288884] ? kasan_report+0x8e/0x110 [ 35.288888] ? __schedule+0xf54/0x1df0 [ 35.288892] vprintk_default+0x28/0x30 [ 35.288896] vprintk_func+0x7a/0x117 [ 35.288899] printk+0xa7/0xcf [ 35.288903] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.288907] ? kasan_check_write+0x14/0x20 [ 35.288911] ? do_raw_spin_lock+0xc1/0x200 [ 35.288915] ? do_raw_spin_lock+0xc1/0x200 [ 35.288919] kasan_report+0x9e/0x110 [ 35.288923] __asan_report_load8_noabort+0x14/0x20 [ 35.288927] __schedule+0xf54/0x1df0 [ 35.288931] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.288935] ? __sched_text_start+0x8/0x8 [ 35.288939] ? __call_srcu+0x7e7/0x1040 [ 35.288943] ? check_same_owner+0x340/0x340 [ 35.288947] ? mark_held_locks+0x160/0x160 [ 35.288951] ? find_held_lock+0x36/0x1c0 [ 35.288955] preempt_schedule_common+0x22/0x60 [ 35.288959] _cond_resched+0x1d/0x30 [ 35.288963] wait_for_completion+0xa5/0x8d0 [ 35.288967] ? wait_for_completion_interruptible+0x950/0x950 [ 35.288971] ? __lockdep_init_map+0x105/0x590 [ 35.288976] ? __init_waitqueue_head+0x9e/0x150 [ 35.288980] ? init_wait_entry+0x1c0/0x1c0 [ 35.288983] __synchronize_srcu+0x189/0x240 [ 35.288987] ? call_srcu+0x10/0x10 [ 35.288991] ? rcu_unexpedite_gp+0x20/0x20 [ 35.288995] synchronize_srcu+0x335/0x56f [ 35.288999] ? lock_downgrade+0x8f0/0x8f0 [ 35.289003] ? synchronize_srcu_expedited+0x20/0x20 [ 35.289007] ? kasan_check_read+0x11/0x20 [ 35.289011] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.289015] ? kasan_check_write+0x14/0x20 [ 35.289019] ? do_raw_spin_lock+0xc1/0x200 [ 35.289023] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.289028] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.289031] ? kvfree+0x61/0x70 [ 35.289036] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.289040] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.289044] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.289048] ? kvm_arch_sync_events+0x30/0x30 [ 35.289052] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.289057] ? mmu_notifier_unregister+0x474/0x600 [ 35.289061] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.289064] ? kfree+0x111/0x210 [ 35.289068] ? __mmu_notifier_register+0x30/0x30 [ 35.289072] ? __free_pages+0x10a/0x190 [ 35.289076] ? free_unref_page+0x930/0x930 [ 35.289080] kvm_put_kvm+0x73f/0x1060 [ 35.289084] ? kvm_write_guest_cached+0x40/0x40 [ 35.289088] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.289092] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.289096] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.289100] ? kasan_check_write+0x14/0x20 [ 35.289104] ? do_raw_spin_lock+0xc1/0x200 [ 35.289108] ? kvm_irqfd_release+0xdd/0x120 [ 35.289112] ? kvm_irqfd_release+0xdd/0x120 [ 35.289116] ? kvm_put_kvm+0x1060/0x1060 [ 35.289120] kvm_vm_release+0x42/0x50 [ 35.289123] __fput+0x38a/0xa40 [ 35.289127] ? __alloc_file+0x400/0x400 [ 35.289131] ? check_same_owner+0x340/0x340 [ 35.289135] ? kasan_check_write+0x14/0x20 [ 35.289139] ? do_raw_spin_lock+0xc1/0x200 [ 35.289142] ____fput+0x15/0x20 [ 35.289146] task_work_run+0x1e8/0x2a0 [ 35.289150] ? task_work_cancel+0x240/0x240 [ 35.289154] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.289159] ? switch_task_namespaces+0xa2/0xd0 [ 35.289162] do_exit+0x1ae4/0x26e0 [ 35.289166] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.289170] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.289174] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.289178] ? kfree+0x1d7/0x210 [ 35.289182] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.289187] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.289190] ? lock_downgrade+0x8f0/0x8f0 [ 35.289193] ? __s [ 35.289202] Lost 44 message(s)! [ 36.398683] Shutting down cpus with NMI [ 37.461044] Dumping ftrace buffer: [ 37.464565] (ftrace buffer empty) [ 37.468250] Kernel Offset: disabled [ 37.471857] Rebooting in 86400 seconds..