[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.340864] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.440735] random: sshd: uninitialized urandom read (32 bytes read) [ 28.687005] random: sshd: uninitialized urandom read (32 bytes read) [ 29.266769] random: sshd: uninitialized urandom read (32 bytes read) [ 29.444778] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.34' (ECDSA) to the list of known hosts. [ 34.976753] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.073100] 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. [ 35.095884] ================================================================== [ 35.104631] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 35.110839] Read of size 8 at addr ffff8801b9d88058 by task syz-executor792/4648 [ 35.118544] [ 35.120165] CPU: 0 PID: 4648 Comm: syz-executor792 Not tainted 4.19.0-rc2+ #225 [ 35.127587] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.137116] Call Trace: [ 35.139690] dump_stack+0x1c9/0x2b4 [ 35.143299] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.148466] ? printk+0xa7/0xcf [ 35.151727] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.156463] ? __schedule+0xf54/0x1df0 [ 35.160353] print_address_description+0x6c/0x20b [ 35.165177] ? __schedule+0xf54/0x1df0 [ 35.169043] kasan_report.cold.7+0x242/0x30d [ 35.173438] __asan_report_load8_noabort+0x14/0x20 [ 35.178495] __schedule+0xf54/0x1df0 [ 35.182197] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.187281] ? __sched_text_start+0x8/0x8 [ 35.191493] ? __call_srcu+0x7e7/0x1040 [ 35.195459] ? check_same_owner+0x340/0x340 [ 35.199762] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.204497] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.209058] ? retint_kernel+0x10/0x10 [ 35.212927] preempt_schedule_common+0x22/0x60 [ 35.217486] _cond_resched+0x1d/0x30 [ 35.221179] wait_for_completion+0xa5/0x8d0 [ 35.225529] ? wait_for_completion_interruptible+0x950/0x950 [ 35.231314] ? __lockdep_init_map+0x105/0x590 [ 35.235788] ? __init_waitqueue_head+0x9e/0x150 [ 35.240654] ? init_wait_entry+0x1c0/0x1c0 [ 35.244868] __synchronize_srcu+0x189/0x240 [ 35.249166] ? call_srcu+0x10/0x10 [ 35.252691] ? rcu_unexpedite_gp+0x20/0x20 [ 35.257007] synchronize_srcu+0x335/0x56f [ 35.261142] ? lock_downgrade+0x8f0/0x8f0 [ 35.265270] ? synchronize_srcu_expedited+0x20/0x20 [ 35.270267] ? kasan_check_read+0x11/0x20 [ 35.274549] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.279143] ? kasan_check_write+0x14/0x20 [ 35.283355] ? do_raw_spin_lock+0xc1/0x200 [ 35.287571] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.293263] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.298699] ? kvfree+0x61/0x70 [ 35.301985] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.306993] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.311034] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.315423] ? kvm_arch_sync_events+0x30/0x30 [ 35.319914] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.325447] ? mmu_notifier_unregister+0x474/0x600 [ 35.330386] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.334804] ? kfree+0x111/0x210 [ 35.338150] ? __mmu_notifier_register+0x30/0x30 [ 35.342917] ? __free_pages+0x10a/0x190 [ 35.346873] ? free_unref_page+0x930/0x930 [ 35.351092] kvm_put_kvm+0x73f/0x1060 [ 35.354988] ? kvm_write_guest_cached+0x40/0x40 [ 35.359645] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.364257] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.368734] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.373298] ? kasan_check_write+0x14/0x20 [ 35.377512] ? do_raw_spin_lock+0xc1/0x200 [ 35.381743] ? kvm_irqfd_release+0xdd/0x120 [ 35.386043] ? kvm_irqfd_release+0xdd/0x120 [ 35.390342] ? kvm_put_kvm+0x1060/0x1060 [ 35.394383] kvm_vm_release+0x42/0x50 [ 35.398166] __fput+0x38a/0xa40 [ 35.401428] ? __alloc_file+0x400/0x400 [ 35.405384] ? check_same_owner+0x340/0x340 [ 35.409724] ? kasan_check_write+0x14/0x20 [ 35.413938] ? do_raw_spin_lock+0xc1/0x200 [ 35.418162] ____fput+0x15/0x20 [ 35.421422] task_work_run+0x1e8/0x2a0 [ 35.425289] ? task_work_cancel+0x240/0x240 [ 35.429593] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.435111] ? switch_task_namespaces+0xa2/0xd0 [ 35.439766] do_exit+0x1ae4/0x26e0 [ 35.443287] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.447939] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.452152] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.457146] ? kfree+0x1d7/0x210 [ 35.460492] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.464709] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.470400] ? is_bpf_text_address+0xd7/0x170 [ 35.474879] ? kernel_text_address+0x79/0xf0 [ 35.479265] ? __kernel_text_address+0xd/0x40 [ 35.483739] ? unwind_get_return_address+0x61/0xa0 [ 35.488648] ? __save_stack_trace+0x8d/0xf0 [ 35.492962] ? save_stack+0xa9/0xd0 [ 35.496572] ? save_stack+0x43/0xd0 [ 35.500177] ? __kasan_slab_free+0x11a/0x170 [ 35.504563] ? kasan_slab_free+0xe/0x10 [ 35.508515] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 35.513514] ? __fget_light+0x2f7/0x440 [ 35.517466] ? fget_raw+0x20/0x20 [ 35.520902] ? kasan_check_read+0x11/0x20 [ 35.525030] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.529517] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.533912] ? initcall_blacklisted+0x9a/0x1e0 [ 35.538479] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.543570] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.549098] ? sockfd_lookup_light+0xc5/0x160 [ 35.553577] ? __sys_bind+0x1d1/0x440 [ 35.557360] ? __ia32_sys_socketpair+0xf0/0xf0 [ 35.561924] ? fget_raw+0x20/0x20 [ 35.565356] ? putname+0xf2/0x130 [ 35.568792] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.573855] ? kmem_cache_free+0x246/0x280 [ 35.578081] ? putname+0xf7/0x130 [ 35.581513] do_group_exit+0x177/0x440 [ 35.585380] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.589678] ? __ia32_sys_exit+0x50/0x50 [ 35.593716] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.598797] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.604313] ? ksys_ioctl+0x81/0xd0 [ 35.607921] __x64_sys_exit_group+0x3e/0x50 [ 35.612222] do_syscall_64+0x1b9/0x820 [ 35.616089] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.621433] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.626340] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.631163] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 35.636164] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.641161] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.646159] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.650985] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.656154] RIP: 0033:0x43f378 [ 35.659353] Code: Bad RIP value. [ 35.662693] RSP: 002b:00007ffcb35a4658 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.670377] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f378 [ 35.677623] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.684869] RBP: 00000000004c0c88 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.692115] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.699365] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 35.706615] [ 35.708218] Allocated by task 4648: [ 35.711827] save_stack+0x43/0xd0 [ 35.715259] kasan_kmalloc+0xc4/0xe0 [ 35.718949] kasan_slab_alloc+0x12/0x20 [ 35.722901] kmem_cache_alloc+0x12e/0x710 [ 35.727047] vmx_create_vcpu+0xcf/0x2830 [ 35.731114] kvm_arch_vcpu_create+0xe5/0x220 [ 35.735524] kvm_vm_ioctl+0x488/0x1d80 [ 35.739388] do_vfs_ioctl+0x1de/0x1720 [ 35.743255] ksys_ioctl+0xa9/0xd0 [ 35.746685] __x64_sys_ioctl+0x73/0xb0 [ 35.750551] do_syscall_64+0x1b9/0x820 [ 35.754417] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.759577] [ 35.761231] Freed by task 4648: [ 35.764501] save_stack+0x43/0xd0 [ 35.768014] __kasan_slab_free+0x11a/0x170 [ 35.772235] kasan_slab_free+0xe/0x10 [ 35.776014] kmem_cache_free+0x86/0x280 [ 35.779968] vmx_free_vcpu+0x26b/0x300 [ 35.783839] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.788228] kvm_put_kvm+0x73f/0x1060 [ 35.792013] kvm_vm_release+0x42/0x50 [ 35.795855] __fput+0x38a/0xa40 [ 35.799119] ____fput+0x15/0x20 [ 35.802495] task_work_run+0x1e8/0x2a0 [ 35.806467] do_exit+0x1ae4/0x26e0 [ 35.809996] do_group_exit+0x177/0x440 [ 35.813862] __x64_sys_exit_group+0x3e/0x50 [ 35.818274] do_syscall_64+0x1b9/0x820 [ 35.822151] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.827315] [ 35.828936] The buggy address belongs to the object at ffff8801b9d88040 [ 35.828936] which belongs to the cache kvm_vcpu of size 23872 [ 35.841546] The buggy address is located 24 bytes inside of [ 35.841546] 23872-byte region [ffff8801b9d88040, ffff8801b9d8dd80) [ 35.853487] The buggy address belongs to the page: [ 35.858397] page:ffffea0006e76200 count:1 mapcount:0 mapping:ffff8801d9fd8080 index:0x0 compound_mapcount: 0 [ 35.868344] flags: 0x2fffc0000008100(slab|head) [ 35.872998] raw: 02fffc0000008100 ffff8801d73a6248 ffff8801d73a6248 ffff8801d9fd8080 [ 35.880858] raw: 0000000000000000 ffff8801b9d88040 0000000100000001 0000000000000000 [ 35.888714] page dumped because: kasan: bad access detected [ 35.894400] [ 35.896005] Memory state around the buggy address: [ 35.900914] ffff8801b9d87f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.908250] ffff8801b9d87f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.915584] >ffff8801b9d88000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.922920] ^ [ 35.929130] ffff8801b9d88080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.936467] ffff8801b9d88100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.943800] ================================================================== [ 35.951185] Kernel panic - not syncing: panic_on_warn set ... [ 35.951185] [ 35.958537] CPU: 0 PID: 4648 Comm: syz-executor792 Tainted: G B 4.19.0-rc2+ #225 [ 35.967349] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.976677] Call Trace: [ 35.979248] dump_stack+0x1c9/0x2b4 [ 35.982859] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.988034] ? lock_downgrade+0x8f0/0x8f0 [ 35.992162] ? __schedule+0xf54/0x1df0 [ 35.996030] panic+0x238/0x4e7 [ 35.999201] ? add_taint.cold.5+0x16/0x16 [ 36.003328] ? print_shadow_for_address+0xba/0x116 [ 36.008237] ? trace_hardirqs_off+0xaf/0x2c0 [ 36.012623] ? trace_hardirqs_off+0x77/0x2c0 [ 36.017011] ? __schedule+0xf54/0x1df0 [ 36.020878] kasan_end_report+0x47/0x4f [ 36.024835] kasan_report.cold.7+0x76/0x30d [ 36.029146] __asan_report_load8_noabort+0x14/0x20 [ 36.034058] __schedule+0xf54/0x1df0 [ 36.037752] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.042940] ? __sched_text_start+0x8/0x8 [ 36.047071] ? __call_srcu+0x7e7/0x1040 [ 36.051030] ? check_same_owner+0x340/0x340 [ 36.055339] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.060074] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.064637] ? retint_kernel+0x10/0x10 [ 36.068509] preempt_schedule_common+0x22/0x60 [ 36.073070] _cond_resched+0x1d/0x30 [ 36.076763] wait_for_completion+0xa5/0x8d0 [ 36.081066] ? wait_for_completion_interruptible+0x950/0x950 [ 36.086844] ? __lockdep_init_map+0x105/0x590 [ 36.091324] ? __init_waitqueue_head+0x9e/0x150 [ 36.095984] ? init_wait_entry+0x1c0/0x1c0 [ 36.100203] __synchronize_srcu+0x189/0x240 [ 36.104509] ? call_srcu+0x10/0x10 [ 36.108036] ? rcu_unexpedite_gp+0x20/0x20 [ 36.112254] synchronize_srcu+0x335/0x56f [ 36.116380] ? lock_downgrade+0x8f0/0x8f0 [ 36.120508] ? synchronize_srcu_expedited+0x20/0x20 [ 36.125503] ? kasan_check_read+0x11/0x20 [ 36.129715] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.134284] ? kasan_check_write+0x14/0x20 [ 36.138504] ? do_raw_spin_lock+0xc1/0x200 [ 36.142724] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.148415] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.153846] ? kvfree+0x61/0x70 [ 36.157106] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.162102] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.166142] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.170530] ? kvm_arch_sync_events+0x30/0x30 [ 36.175009] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.180528] ? mmu_notifier_unregister+0x474/0x600 [ 36.185439] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.189824] ? kfree+0x111/0x210 [ 36.193170] ? __mmu_notifier_register+0x30/0x30 [ 36.197908] ? __free_pages+0x10a/0x190 [ 36.201863] ? free_unref_page+0x930/0x930 [ 36.206083] kvm_put_kvm+0x73f/0x1060 [ 36.209875] ? kvm_write_guest_cached+0x40/0x40 [ 36.214529] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.219002] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.223480] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.228051] ? kasan_check_write+0x14/0x20 [ 36.232267] ? do_raw_spin_lock+0xc1/0x200 [ 36.236488] ? kvm_irqfd_release+0xdd/0x120 [ 36.240790] ? kvm_irqfd_release+0xdd/0x120 [ 36.245091] ? kvm_put_kvm+0x1060/0x1060 [ 36.249131] kvm_vm_release+0x42/0x50 [ 36.252912] __fput+0x38a/0xa40 [ 36.256170] ? __alloc_file+0x400/0x400 [ 36.260126] ? check_same_owner+0x340/0x340 [ 36.264427] ? kasan_check_write+0x14/0x20 [ 36.268641] ? do_raw_spin_lock+0xc1/0x200 [ 36.272856] ____fput+0x15/0x20 [ 36.276113] task_work_run+0x1e8/0x2a0 [ 36.279983] ? task_work_cancel+0x240/0x240 [ 36.284292] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.289811] ? switch_task_namespaces+0xa2/0xd0 [ 36.294463] do_exit+0x1ae4/0x26e0 [ 36.298006] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.302656] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.306871] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.311867] ? kfree+0x1d7/0x210 [ 36.315213] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.319429] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.325118] ? is_bpf_text_address+0xd7/0x170 [ 36.329591] ? kernel_text_address+0x79/0xf0 [ 36.333984] ? __kernel_text_address+0xd/0x40 [ 36.338458] ? unwind_get_return_address+0x61/0xa0 [ 36.343367] ? __save_stack_trace+0x8d/0xf0 [ 36.347669] ? save_stack+0xa9/0xd0 [ 36.351293] ? save_stack+0x43/0xd0 [ 36.354902] ? __kasan_slab_free+0x11a/0x170 [ 36.359292] ? kasan_slab_free+0xe/0x10 [ 36.363325] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 36.368327] ? __fget_light+0x2f7/0x440 [ 36.372327] ? fget_raw+0x20/0x20 [ 36.375765] ? kasan_check_read+0x11/0x20 [ 36.380020] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.384412] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.388810] ? initcall_blacklisted+0x9a/0x1e0 [ 36.393380] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.398477] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.403999] ? sockfd_lookup_light+0xc5/0x160 [ 36.408481] ? __sys_bind+0x1d1/0x440 [ 36.412266] ? __ia32_sys_socketpair+0xf0/0xf0 [ 36.416829] ? fget_raw+0x20/0x20 [ 36.420268] ? putname+0xf2/0x130 [ 36.423806] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.428822] ? kmem_cache_free+0x246/0x280 [ 36.433032] ? putname+0xf7/0x130 [ 36.436467] do_group_exit+0x177/0x440 [ 36.440336] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.444637] ? __ia32_sys_exit+0x50/0x50 [ 36.448789] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.453881] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.459402] ? ksys_ioctl+0x81/0xd0 [ 36.463011] __x64_sys_exit_group+0x3e/0x50 [ 36.467315] do_syscall_64+0x1b9/0x820 [ 36.471184] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.476573] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.481492] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.486315] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 36.491316] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.496319] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.501370] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.506207] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.511378] RIP: 0033:0x43f378 [ 36.514553] Code: Bad RIP value. [ 36.517897] RSP: 002b:00007ffcb35a4658 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.525584] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f378 [ 36.532837] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.540153] RBP: 00000000004c0c88 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.547410] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.554659] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 36.561914] [ 36.561918] ====================================================== [ 36.561921] WARNING: possible circular locking dependency detected [ 36.561923] 4.19.0-rc2+ #225 Not tainted [ 36.561926] ------------------------------------------------------ [ 36.561929] syz-executor792/4648 is trying to acquire lock: [ 36.561931] 00000000f84f0e91 ((console_sem).lock){-.-.}, at: down_trylock+0x13/0x70 [ 36.561939] [ 36.561941] but task is already holding lock: [ 36.561943] 000000002bbb22fb (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.561950] [ 36.561953] which lock already depends on the new lock. [ 36.561954] [ 36.561955] [ 36.561958] the existing dependency chain (in reverse order) is: [ 36.561959] [ 36.561960] -> #3 (report_lock){....}: [ 36.561968] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.561970] kasan_report+0x8e/0x110 [ 36.561973] __asan_report_load8_noabort+0x14/0x20 [ 36.561982] __schedule+0xf54/0x1df0 [ 36.561985] preempt_schedule_common+0x22/0x60 [ 36.561987] _cond_resched+0x1d/0x30 [ 36.561989] wait_for_completion+0xa5/0x8d0 [ 36.561992] __synchronize_srcu+0x189/0x240 [ 36.561994] synchronize_srcu+0x335/0x56f [ 36.561997] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.561999] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.562002] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.562004] kvm_put_kvm+0x73f/0x1060 [ 36.562006] kvm_vm_release+0x42/0x50 [ 36.562008] __fput+0x38a/0xa40 [ 36.562010] ____fput+0x15/0x20 [ 36.562012] task_work_run+0x1e8/0x2a0 [ 36.562014] do_exit+0x1ae4/0x26e0 [ 36.562017] do_group_exit+0x177/0x440 [ 36.562019] __x64_sys_exit_group+0x3e/0x50 [ 36.562021] do_syscall_64+0x1b9/0x820 [ 36.562024] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.562025] [ 36.562027] -> #2 (&rq->lock){-.-.}: [ 36.562034] _raw_spin_lock+0x2a/0x40 [ 36.562036] task_fork_fair+0x93/0x680 [ 36.562039] sched_fork+0x44b/0xbd0 [ 36.562041] copy_process+0x235e/0x7af0 [ 36.562043] _do_fork+0x1ca/0x1170 [ 36.562045] kernel_thread+0x34/0x40 [ 36.562047] rest_init+0x22/0xe4 [ 36.562049] start_kernel+0x913/0x94e [ 36.562052] x86_64_start_reservations+0x29/0x2b [ 36.562054] x86_64_start_kernel+0x76/0x79 [ 36.562056] secondary_startup_64+0xa4/0xb0 [ 36.562058] [ 36.562059] -> #1 (&p->pi_lock){-.-.}: [ 36.562067] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.562069] try_to_wake_up+0xd2/0x1250 [ 36.562071] wake_up_process+0x10/0x20 [ 36.562073] __up.isra.1+0x1c0/0x2a0 [ 36.562075] up+0x13c/0x1c0 [ 36.562078] __up_console_sem+0xbe/0x1b0 [ 36.562080] console_unlock+0x506/0x10e0 [ 36.562082] vprintk_emit+0x33a/0x910 [ 36.562084] vprintk_default+0x28/0x30 [ 36.562086] vprintk_func+0x7a/0x117 [ 36.562088] printk+0xa7/0xcf [ 36.562090] load_umh+0x51/0xbd [ 36.562092] do_one_initcall+0x127/0x838 [ 36.562095] kernel_init_freeable+0x4bb/0x5ae [ 36.562097] kernel_init+0x11/0x1b3 [ 36.562099] ret_from_fork+0x3a/0x50 [ 36.562100] [ 36.562102] -> #0 ((console_sem).lock){-.-.}: [ 36.562110] lock_acquire+0x1e4/0x4f0 [ 36.562112] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.562114] down_trylock+0x13/0x70 [ 36.562117] __down_trylock_console_sem+0xae/0x200 [ 36.562119] console_trylock+0x15/0xa0 [ 36.562121] vprintk_emit+0x31f/0x910 [ 36.562123] vprintk_default+0x28/0x30 [ 36.562125] vprintk_func+0x7a/0x117 [ 36.562127] printk+0xa7/0xcf [ 36.562129] kasan_report+0x9e/0x110 [ 36.562132] __asan_report_load8_noabort+0x14/0x20 [ 36.562134] __schedule+0xf54/0x1df0 [ 36.562137] preempt_schedule_common+0x22/0x60 [ 36.562139] _cond_resched+0x1d/0x30 [ 36.562141] wait_for_completion+0xa5/0x8d0 [ 36.562144] __synchronize_srcu+0x189/0x240 [ 36.562146] synchronize_srcu+0x335/0x56f [ 36.562149] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.562151] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.562154] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.562156] kvm_put_kvm+0x73f/0x1060 [ 36.562158] kvm_vm_release+0x42/0x50 [ 36.562160] __fput+0x38a/0xa40 [ 36.562162] ____fput+0x15/0x20 [ 36.562164] task_work_run+0x1e8/0x2a0 [ 36.562166] do_exit+0x1ae4/0x26e0 [ 36.562168] do_group_exit+0x177/0x440 [ 36.562171] __x64_sys_exit_group+0x3e/0x50 [ 36.562173] do_syscall_64+0x1b9/0x820 [ 36.562176] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.562177] [ 36.562179] other info that might help us debug this: [ 36.562181] [ 36.562182] Chain exists of: [ 36.562183] (console_sem).lock --> &rq->lock --> report_lock [ 36.562193] [ 36.562196] Possible unsafe locking scenario: [ 36.562197] [ 36.562199] CPU0 CPU1 [ 36.562201] ---- ---- [ 36.562203] lock(report_lock); [ 36.562208] lock(&rq->lock); [ 36.562213] lock(report_lock); [ 36.562217] lock((console_sem).lock); [ 36.562222] [ 36.562224] *** DEADLOCK *** [ 36.562225] [ 36.562227] 2 locks held by syz-executor792/4648: [ 36.562228] #0: 0000000075eb8c5e (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.562238] #1: 000000002bbb22fb (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.562247] [ 36.562249] stack backtrace: [ 36.562252] CPU: 0 PID: 4648 Comm: syz-executor792 Not tainted 4.19.0-rc2+ #225 [ 36.562257] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.562263] Call Trace: [ 36.562265] dump_stack+0x1c9/0x2b4 [ 36.562268] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.562270] ? vprintk_func+0x100/0x117 [ 36.562273] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.562275] ? save_trace+0xe0/0x290 [ 36.562277] __lock_acquire+0x3449/0x5020 [ 36.562280] ? mark_held_locks+0x160/0x160 [ 36.562282] ? mark_held_locks+0x160/0x160 [ 36.562285] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.562287] ? is_bpf_text_address+0xd7/0x170 [ 36.562289] ? kernel_text_address+0x79/0xf0 [ 36.562292] ? __kernel_text_address+0xd/0x40 [ 36.562294] ? __save_stack_trace+0x8d/0xf0 [ 36.562297] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.562299] ? save_trace+0x290/0x290 [ 36.562301] ? save_stack_trace+0x1a/0x20 [ 36.562303] ? save_trace+0xe0/0x290 [ 36.562305] ? graph_lock+0x170/0x170 [ 36.562308] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.562310] lock_acquire+0x1e4/0x4f0 [ 36.562312] ? down_trylock+0x13/0x70 [ 36.562314] ? lock_release+0x9f0/0x9f0 [ 36.562317] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.562319] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.562321] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.562324] ? log_store+0x34f/0x4c0 [ 36.562326] ? vprintk_emit+0x31f/0x910 [ 36.562328] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.562330] ? down_trylock+0x13/0x70 [ 36.562332] down_trylock+0x13/0x70 [ 36.562335] __down_trylock_console_sem+0xae/0x200 [ 36.562337] console_trylock+0x15/0xa0 [ 36.562339] vprintk_emit+0x31f/0x910 [ 36.562341] ? wake_up_klogd+0x110/0x110 [ 36.562344] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.562346] ? kasan_check_read+0x11/0x20 [ 36.562348] ? rcu_is_watching+0x8c/0x150 [ 36.562350] ? rcu_pm_notify+0xc0/0xc0 [ 36.562352] ? lock_acquire+0x1e4/0x4f0 [ 36.562355] ? kasan_report+0x8e/0x110 [ 36.562357] ? __schedule+0xf54/0x1df0 [ 36.562359] vprintk_default+0x28/0x30 [ 36.562361] vprintk_func+0x7a/0x117 [ 36.562363] printk+0xa7/0xcf [ 36.562365] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.562368] ? kasan_check_write+0x14/0x20 [ 36.562370] ? do_raw_spin_lock+0xc1/0x200 [ 36.562372] ? do_raw_spin_lock+0xc1/0x200 [ 36.562374] kasan_report+0x9e/0x110 [ 36.562377] __asan_report_load8_noabort+0x14/0x20 [ 36.562379] __schedule+0xf54/0x1df0 [ 36.562381] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.562384] ? __sched_text_start+0x8/0x8 [ 36.562386] ? __call_srcu+0x7e7/0x1040 [ 36.562388] ? check_same_owner+0x340/0x340 [ 36.562391] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.562393] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.562395] ? retint_kernel+0x10/0x10 [ 36.562398] preempt_schedule_common+0x22/0x60 [ 36.562400] _cond_resched+0x1d/0x30 [ 36.562402] wait_for_completion+0xa5/0x8d0 [ 36.562405] ? wait_for_completion_interruptible+0x950/0x950 [ 36.562407] ? __lockdep_init_map+0x105/0x590 [ 36.562410] ? __init_waitqueue_head+0x9e/0x150 [ 36.562412] ? init_wait_entry+0x1c0/0x1c0 [ 36.562414] __synchronize_srcu+0x189/0x240 [ 36.562416] ? call_srcu+0x10/0x10 [ 36.562419] ? rcu_unexpedite_gp+0x20/0x20 [ 36.562421] synchronize_srcu+0x335/0x56f [ 36.562423] ? lock_downgrade+0x8f0/0x8f0 [ 36.562426] ? synchronize_srcu_expedited+0x20/0x20 [ 36.562428] ? kasan_check_read+0x11/0x20 [ 36.562430] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.562433] ? kasan_check_write+0x14/0x20 [ 36.562435] ? do_raw_spin_lock+0xc1/0x200 [ 36.562438] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.562441] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.562443] ? kvfree+0x61/0x70 [ 36.562445] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.562447] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.562450] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.562452] ? kvm_arch_sync_events+0x30/0x30 [ 36.562455] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.562458] ? mmu_notifier_unregister+0x474/0x600 [ 36.562460] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.562462] ? kfree+0x111/0x210 [ 36.562464] ? __mmu_notifier_register+0x30/0x30 [ 36.562467] ? __free_pages+0x10a/0x190 [ 36.562469] ? free_unref_page+0x930/0x930 [ 36.562471] kvm_put_kvm+0x73f/0x1060 [ 36.562473] ? kvm_write_guest_cached+0x40/0x40 [ 36.562476] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.562478] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.562480] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.562483] ? kasan_check_write+0x14/0x20 [ 36.562485] ? do_raw_spin_lock+0xc1/0x200 [ 36.562487] ? kvm_irqfd_release+0xdd/0x120 [ 36.562490] ? kvm_irqfd_release+0xdd/0x120 [ 36.562492] ? kvm_put_kvm+0x1060/0x1060 [ 36.562494] kvm_vm_release+0x42/0x50 [ 36.562496] __fput+0x38a/0xa40 [ 36.562498] ? __alloc_file+0x400/0x400 [ 36.562500] ? check_same_owner+0x340/0x340 [ 36.562503] ? kasan_check_write+0x14/0x20 [ 36.562505] ? do_raw_spin_lock+0xc1/0x200 [ 36.562507] ____fput+0x15/0x20 [ 36.562509] task_work_run+0x1e8/0x2a0 [ 36.562511] ? task_work_cancel+0x240/0x240 [ 36.562514] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.562516] ? switch_task_namespaces+0xa2/0xd0 [ 36.562518] do_exit+0x1ae4/0x26e0 [ 36.562521] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.562523] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.562526] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.562528] ? kfree+0x1d7/0x210 [ 36.562530] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.562533] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.562537] Lost 51 message(s)! [ 37.656380] Shutting down cpus with NMI [ 38.713722] Dumping ftrace buffer: [ 38.717251] (ftrace buffer empty) [ 38.720937] Kernel Offset: disabled [ 38.724543] Rebooting in 86400 seconds..