[....] Starting OpenBSD Secure Shell server: sshd[ 24.757698] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 24.988495] random: sshd: uninitialized urandom read (32 bytes read) [ 25.307661] random: sshd: uninitialized urandom read (32 bytes read) [ 25.868132] random: sshd: uninitialized urandom read (32 bytes read) [ 26.069297] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.10.50' (ECDSA) to the list of known hosts. syzkaller login: [ 31.662236] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.767552] 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. [ 31.792513] ================================================================== [ 31.802511] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.808741] Read of size 8 at addr ffff8801beb30058 by task syz-executor221/4685 [ 31.816261] [ 31.817890] CPU: 0 PID: 4685 Comm: syz-executor221 Not tainted 4.19.0-rc1+ #217 [ 31.825326] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.834668] Call Trace: [ 31.837254] dump_stack+0x1c9/0x2b4 [ 31.840886] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.846070] ? printk+0xa7/0xcf [ 31.849349] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.854105] ? __schedule+0xf54/0x1df0 [ 31.857993] print_address_description+0x6c/0x20b [ 31.862834] ? __schedule+0xf54/0x1df0 [ 31.866718] kasan_report.cold.7+0x242/0x30d [ 31.871127] __asan_report_load8_noabort+0x14/0x20 [ 31.876052] __schedule+0xf54/0x1df0 [ 31.879763] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.884865] ? __sched_text_start+0x8/0x8 [ 31.889017] ? __call_srcu+0x7e7/0x1040 [ 31.892999] ? check_same_owner+0x340/0x340 [ 31.897320] ? mark_held_locks+0x160/0x160 [ 31.901551] ? find_held_lock+0x36/0x1c0 [ 31.905631] preempt_schedule_common+0x22/0x60 [ 31.910212] _cond_resched+0x1d/0x30 [ 31.913922] wait_for_completion+0xa5/0x8d0 [ 31.918245] ? wait_for_completion_interruptible+0x950/0x950 [ 31.924045] ? __lockdep_init_map+0x105/0x590 [ 31.928541] ? __init_waitqueue_head+0x9e/0x150 [ 31.933232] ? init_wait_entry+0x1c0/0x1c0 [ 31.937468] __synchronize_srcu+0x189/0x240 [ 31.941791] ? call_srcu+0x10/0x10 [ 31.945333] ? rcu_unexpedite_gp+0x20/0x20 [ 31.949584] synchronize_srcu+0x335/0x56f [ 31.953738] ? lock_downgrade+0x8f0/0x8f0 [ 31.957881] ? synchronize_srcu_expedited+0x20/0x20 [ 31.962900] ? kasan_check_read+0x11/0x20 [ 31.967047] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.971628] ? kasan_check_write+0x14/0x20 [ 31.975863] ? do_raw_spin_lock+0xc1/0x200 [ 31.980106] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.985821] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.991277] ? kvfree+0x61/0x70 [ 31.994558] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.999599] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.003667] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.008078] ? kvm_arch_sync_events+0x30/0x30 [ 32.012584] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.018132] ? mmu_notifier_unregister+0x474/0x600 [ 32.023055] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.027458] ? kfree+0x111/0x210 [ 32.030821] ? __mmu_notifier_register+0x30/0x30 [ 32.035593] ? __free_pages+0x10a/0x190 [ 32.039567] ? free_unref_page+0x930/0x930 [ 32.043833] kvm_put_kvm+0x73f/0x1060 [ 32.047637] ? kvm_write_guest_cached+0x40/0x40 [ 32.052309] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.056800] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.061295] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.065883] ? kasan_check_write+0x14/0x20 [ 32.070113] ? do_raw_spin_lock+0xc1/0x200 [ 32.074353] ? kvm_irqfd_release+0xdd/0x120 [ 32.078670] ? kvm_irqfd_release+0xdd/0x120 [ 32.082990] ? kvm_put_kvm+0x1060/0x1060 [ 32.087059] kvm_vm_release+0x42/0x50 [ 32.090857] __fput+0x38a/0xa40 [ 32.094133] ? __alloc_file+0x400/0x400 [ 32.098109] ? check_same_owner+0x340/0x340 [ 32.102433] ? kasan_check_write+0x14/0x20 [ 32.106670] ? do_raw_spin_lock+0xc1/0x200 [ 32.110904] ____fput+0x15/0x20 [ 32.114182] task_work_run+0x1e8/0x2a0 [ 32.118066] ? task_work_cancel+0x240/0x240 [ 32.122392] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.127930] ? switch_task_namespaces+0xa2/0xd0 [ 32.132611] do_exit+0x1ae4/0x26e0 [ 32.136158] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.140831] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.145064] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.150076] ? kfree+0x1d7/0x210 [ 32.153452] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.157689] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.163401] ? is_bpf_text_address+0xd7/0x170 [ 32.167894] ? kernel_text_address+0x79/0xf0 [ 32.172312] ? __kernel_text_address+0xd/0x40 [ 32.176807] ? unwind_get_return_address+0x61/0xa0 [ 32.181735] ? __save_stack_trace+0x8d/0xf0 [ 32.186060] ? save_stack+0xa9/0xd0 [ 32.189684] ? save_stack+0x43/0xd0 [ 32.193310] ? __kasan_slab_free+0x11a/0x170 [ 32.197717] ? kasan_slab_free+0xe/0x10 [ 32.201690] ? putname+0xf2/0x130 [ 32.205147] ? __x64_sys_openat+0x9d/0x100 [ 32.209385] ? do_syscall_64+0x1b9/0x820 [ 32.213444] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.218805] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.223212] ? kasan_check_read+0x11/0x20 [ 32.227358] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.231767] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.236175] ? initcall_blacklisted+0x9a/0x1e0 [ 32.240761] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.245865] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.251585] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.257132] ? do_vfs_ioctl+0x201/0x1720 [ 32.261190] ? rcu_is_watching+0x8c/0x150 [ 32.265337] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.269658] ? ioctl_preallocate+0x300/0x300 [ 32.274068] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.279621] ? __fget_light+0x2f7/0x440 [ 32.283609] ? fget_raw+0x20/0x20 [ 32.287065] ? putname+0xf2/0x130 [ 32.290517] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.295534] ? kmem_cache_free+0x246/0x280 [ 32.299770] ? putname+0xf7/0x130 [ 32.303224] do_group_exit+0x177/0x440 [ 32.307108] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.311433] ? __ia32_sys_exit+0x50/0x50 [ 32.315492] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.320606] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.326142] ? ksys_ioctl+0x81/0xd0 [ 32.329769] __x64_sys_exit_group+0x3e/0x50 [ 32.334093] do_syscall_64+0x1b9/0x820 [ 32.337985] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.343360] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.348725] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.353569] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.358621] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.363637] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.368656] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.373504] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.378687] RIP: 0033:0x43ecf8 [ 32.381881] Code: Bad RIP value. [ 32.385241] RSP: 002b:00007fffde686a18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.392955] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 32.400219] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.407486] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.414768] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.422038] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.429327] [ 32.430953] Allocated by task 4685: [ 32.434617] save_stack+0x43/0xd0 [ 32.438069] kasan_kmalloc+0xc4/0xe0 [ 32.441799] kasan_slab_alloc+0x12/0x20 [ 32.445781] kmem_cache_alloc+0x12e/0x710 [ 32.449928] vmx_create_vcpu+0xcf/0x2830 [ 32.454260] kvm_arch_vcpu_create+0xe5/0x220 [ 32.458666] kvm_vm_ioctl+0x488/0x1d80 [ 32.462554] do_vfs_ioctl+0x1de/0x1720 [ 32.466447] ksys_ioctl+0xa9/0xd0 [ 32.469895] __x64_sys_ioctl+0x73/0xb0 [ 32.473790] do_syscall_64+0x1b9/0x820 [ 32.477760] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.482934] [ 32.484552] Freed by task 4685: [ 32.487853] save_stack+0x43/0xd0 [ 32.491306] __kasan_slab_free+0x11a/0x170 [ 32.495538] kasan_slab_free+0xe/0x10 [ 32.499335] kmem_cache_free+0x86/0x280 [ 32.503313] vmx_free_vcpu+0x26b/0x300 [ 32.507194] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.511612] kvm_put_kvm+0x73f/0x1060 [ 32.515412] kvm_vm_release+0x42/0x50 [ 32.519206] __fput+0x38a/0xa40 [ 32.522479] ____fput+0x15/0x20 [ 32.525754] task_work_run+0x1e8/0x2a0 [ 32.529638] do_exit+0x1ae4/0x26e0 [ 32.533173] do_group_exit+0x177/0x440 [ 32.537056] __x64_sys_exit_group+0x3e/0x50 [ 32.541376] do_syscall_64+0x1b9/0x820 [ 32.545262] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.550438] [ 32.552060] The buggy address belongs to the object at ffff8801beb30040 [ 32.552060] which belongs to the cache kvm_vcpu of size 23872 [ 32.564643] The buggy address is located 24 bytes inside of [ 32.564643] 23872-byte region [ffff8801beb30040, ffff8801beb35d80) [ 32.576611] The buggy address belongs to the page: [ 32.581539] page:ffffea0006facc00 count:1 mapcount:0 mapping:ffff8801d5300b40 index:0x0 compound_mapcount: 0 [ 32.591517] flags: 0x2fffc0000008100(slab|head) [ 32.596188] raw: 02fffc0000008100 ffff8801d52f7548 ffff8801d52f7548 ffff8801d5300b40 [ 32.604067] raw: 0000000000000000 ffff8801beb30040 0000000100000001 0000000000000000 [ 32.611938] page dumped because: kasan: bad access detected [ 32.617638] [ 32.619252] Memory state around the buggy address: [ 32.624174] ffff8801beb2ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.631531] ffff8801beb2ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.638886] >ffff8801beb30000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.646247] ^ [ 32.652484] ffff8801beb30080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.659835] ffff8801beb30100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.667180] ================================================================== [ 32.674555] Kernel panic - not syncing: panic_on_warn set ... [ 32.674555] [ 32.681980] CPU: 0 PID: 4685 Comm: syz-executor221 Tainted: G B 4.19.0-rc1+ #217 [ 32.690832] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.700185] Call Trace: [ 32.702782] dump_stack+0x1c9/0x2b4 [ 32.706415] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.711620] ? lock_downgrade+0x8f0/0x8f0 [ 32.715766] ? __schedule+0xf54/0x1df0 [ 32.719651] panic+0x238/0x4e7 [ 32.722840] ? add_taint.cold.5+0x16/0x16 [ 32.726996] ? print_shadow_for_address+0xba/0x116 [ 32.731954] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.736370] ? trace_hardirqs_off+0x77/0x2b0 [ 32.740781] ? __schedule+0xf54/0x1df0 [ 32.744669] kasan_end_report+0x47/0x4f [ 32.748645] kasan_report.cold.7+0x76/0x30d [ 32.752972] __asan_report_load8_noabort+0x14/0x20 [ 32.757905] __schedule+0xf54/0x1df0 [ 32.761623] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.766728] ? __sched_text_start+0x8/0x8 [ 32.770877] ? __call_srcu+0x7e7/0x1040 [ 32.774857] ? check_same_owner+0x340/0x340 [ 32.779176] ? mark_held_locks+0x160/0x160 [ 32.783412] ? find_held_lock+0x36/0x1c0 [ 32.787480] preempt_schedule_common+0x22/0x60 [ 32.792067] _cond_resched+0x1d/0x30 [ 32.795784] wait_for_completion+0xa5/0x8d0 [ 32.800111] ? wait_for_completion_interruptible+0x950/0x950 [ 32.805908] ? __lockdep_init_map+0x105/0x590 [ 32.810423] ? __init_waitqueue_head+0x9e/0x150 [ 32.815095] ? init_wait_entry+0x1c0/0x1c0 [ 32.819344] __synchronize_srcu+0x189/0x240 [ 32.823681] ? call_srcu+0x10/0x10 [ 32.827235] ? rcu_unexpedite_gp+0x20/0x20 [ 32.831488] synchronize_srcu+0x335/0x56f [ 32.835643] ? lock_downgrade+0x8f0/0x8f0 [ 32.839802] ? synchronize_srcu_expedited+0x20/0x20 [ 32.844820] ? kasan_check_read+0x11/0x20 [ 32.848974] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.853557] ? kasan_check_write+0x14/0x20 [ 32.857801] ? do_raw_spin_lock+0xc1/0x200 [ 32.862046] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.867763] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.873217] ? kvfree+0x61/0x70 [ 32.876508] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.881532] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.885615] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.890027] ? kvm_arch_sync_events+0x30/0x30 [ 32.894548] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.900114] ? mmu_notifier_unregister+0x474/0x600 [ 32.905050] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.909472] ? kfree+0x111/0x210 [ 32.912860] ? __mmu_notifier_register+0x30/0x30 [ 32.917641] ? __free_pages+0x10a/0x190 [ 32.921633] ? free_unref_page+0x930/0x930 [ 32.925882] kvm_put_kvm+0x73f/0x1060 [ 32.929700] ? kvm_write_guest_cached+0x40/0x40 [ 32.934384] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.938884] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.943381] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.947971] ? kasan_check_write+0x14/0x20 [ 32.952209] ? do_raw_spin_lock+0xc1/0x200 [ 32.956444] ? kvm_irqfd_release+0xdd/0x120 [ 32.960768] ? kvm_irqfd_release+0xdd/0x120 [ 32.965100] ? kvm_put_kvm+0x1060/0x1060 [ 32.969165] kvm_vm_release+0x42/0x50 [ 32.972964] __fput+0x38a/0xa40 [ 32.976243] ? __alloc_file+0x400/0x400 [ 32.980220] ? check_same_owner+0x340/0x340 [ 32.984543] ? kasan_check_write+0x14/0x20 [ 32.988788] ? do_raw_spin_lock+0xc1/0x200 [ 32.993033] ____fput+0x15/0x20 [ 32.996324] task_work_run+0x1e8/0x2a0 [ 33.000225] ? task_work_cancel+0x240/0x240 [ 33.004569] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.010128] ? switch_task_namespaces+0xa2/0xd0 [ 33.014806] do_exit+0x1ae4/0x26e0 [ 33.018355] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.023028] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.027293] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.032326] ? kfree+0x1d7/0x210 [ 33.035699] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.039939] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.045660] ? is_bpf_text_address+0xd7/0x170 [ 33.050168] ? kernel_text_address+0x79/0xf0 [ 33.054587] ? __kernel_text_address+0xd/0x40 [ 33.059107] ? unwind_get_return_address+0x61/0xa0 [ 33.064041] ? __save_stack_trace+0x8d/0xf0 [ 33.068370] ? save_stack+0xa9/0xd0 [ 33.071996] ? save_stack+0x43/0xd0 [ 33.075621] ? __kasan_slab_free+0x11a/0x170 [ 33.080040] ? kasan_slab_free+0xe/0x10 [ 33.084072] ? putname+0xf2/0x130 [ 33.087542] ? __x64_sys_openat+0x9d/0x100 [ 33.091812] ? do_syscall_64+0x1b9/0x820 [ 33.095886] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.101267] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.105685] ? kasan_check_read+0x11/0x20 [ 33.109840] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.114249] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.118660] ? initcall_blacklisted+0x9a/0x1e0 [ 33.123248] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.128355] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.134074] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.139618] ? do_vfs_ioctl+0x201/0x1720 [ 33.143680] ? rcu_is_watching+0x8c/0x150 [ 33.147825] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.152153] ? ioctl_preallocate+0x300/0x300 [ 33.156826] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.162413] ? __fget_light+0x2f7/0x440 [ 33.166398] ? fget_raw+0x20/0x20 [ 33.169859] ? putname+0xf2/0x130 [ 33.173318] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.178331] ? kmem_cache_free+0x246/0x280 [ 33.182567] ? putname+0xf7/0x130 [ 33.186037] do_group_exit+0x177/0x440 [ 33.189924] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.194254] ? __ia32_sys_exit+0x50/0x50 [ 33.198315] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.203423] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.208966] ? ksys_ioctl+0x81/0xd0 [ 33.212622] __x64_sys_exit_group+0x3e/0x50 [ 33.216963] do_syscall_64+0x1b9/0x820 [ 33.220870] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.226252] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.231201] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.236050] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.241067] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.246088] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.251126] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.255970] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.261155] RIP: 0033:0x43ecf8 [ 33.264360] Code: Bad RIP value. [ 33.267722] RSP: 002b:00007fffde686a18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.275433] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 33.282743] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.290019] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.297291] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.304560] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.311848] [ 33.311853] ====================================================== [ 33.311859] WARNING: possible circular locking dependency detected [ 33.311862] 4.19.0-rc1+ #217 Not tainted [ 33.311867] ------------------------------------------------------ [ 33.311872] syz-executor221/4685 is trying to acquire lock: [ 33.311875] 000000004f82dc42 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.311890] [ 33.311894] but task is already holding lock: [ 33.311897] 000000009fa04345 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.311911] [ 33.311915] which lock already depends on the new lock. [ 33.311918] [ 33.311920] [ 33.311925] the existing dependency chain (in reverse order) is: [ 33.311927] [ 33.311929] -> #3 (report_lock){....}: [ 33.311943] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.311947] kasan_report+0x8e/0x110 [ 33.311952] __asan_report_load8_noabort+0x14/0x20 [ 33.311955] __schedule+0xf54/0x1df0 [ 33.311960] preempt_schedule_common+0x22/0x60 [ 33.311963] _cond_resched+0x1d/0x30 [ 33.311967] wait_for_completion+0xa5/0x8d0 [ 33.311971] __synchronize_srcu+0x189/0x240 [ 33.311975] synchronize_srcu+0x335/0x56f [ 33.311980] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.311984] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.311988] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.311992] kvm_put_kvm+0x73f/0x1060 [ 33.311996] kvm_vm_release+0x42/0x50 [ 33.311999] __fput+0x38a/0xa40 [ 33.312002] ____fput+0x15/0x20 [ 33.312006] task_work_run+0x1e8/0x2a0 [ 33.312010] do_exit+0x1ae4/0x26e0 [ 33.312013] do_group_exit+0x177/0x440 [ 33.312017] __x64_sys_exit_group+0x3e/0x50 [ 33.312021] do_syscall_64+0x1b9/0x820 [ 33.312026] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.312028] [ 33.312030] -> #2 (&rq->lock){-.-.}: [ 33.312044] _raw_spin_lock+0x2a/0x40 [ 33.312048] task_fork_fair+0x93/0x680 [ 33.312051] sched_fork+0x44b/0xbd0 [ 33.312055] copy_process+0x235e/0x7ad0 [ 33.312059] _do_fork+0x1ca/0x1170 [ 33.312062] kernel_thread+0x34/0x40 [ 33.312066] rest_init+0x22/0xe4 [ 33.312070] start_kernel+0x913/0x94e [ 33.312074] x86_64_start_reservations+0x29/0x2b [ 33.312078] x86_64_start_kernel+0x76/0x79 [ 33.312082] secondary_startup_64+0xa4/0xb0 [ 33.312084] [ 33.312086] -> #1 (&p->pi_lock){-.-.}: [ 33.312101] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.312105] try_to_wake_up+0xd2/0x1250 [ 33.312108] wake_up_process+0x10/0x20 [ 33.312112] __up.isra.1+0x1c0/0x2a0 [ 33.312115] up+0x13c/0x1c0 [ 33.312119] __up_console_sem+0xbe/0x1b0 [ 33.312123] console_unlock+0x506/0x10d0 [ 33.312127] vprintk_emit+0x33a/0x910 [ 33.312130] vprintk_default+0x28/0x30 [ 33.312134] vprintk_func+0x7a/0x117 [ 33.312137] printk+0xa7/0xcf [ 33.312141] regdb_fw_cb.cold.36+0x18/0x89 [ 33.312146] request_firmware_work_func+0x15c/0x2e0 [ 33.312150] process_one_work+0xc73/0x1aa0 [ 33.312154] worker_thread+0x189/0x13c0 [ 33.312157] kthread+0x35a/0x420 [ 33.312161] ret_from_fork+0x3a/0x50 [ 33.312163] [ 33.312165] -> #0 ((console_sem).lock){-...}: [ 33.312179] lock_acquire+0x1e4/0x4f0 [ 33.312183] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.312187] down_trylock+0x13/0x70 [ 33.312191] __down_trylock_console_sem+0xae/0x200 [ 33.312195] console_trylock+0x15/0xa0 [ 33.312199] vprintk_emit+0x31f/0x910 [ 33.312203] vprintk_default+0x28/0x30 [ 33.312206] vprintk_func+0x7a/0x117 [ 33.312210] printk+0xa7/0xcf [ 33.312214] kasan_report+0x9e/0x110 [ 33.312218] __asan_report_load8_noabort+0x14/0x20 [ 33.312222] __schedule+0xf54/0x1df0 [ 33.312226] preempt_schedule_common+0x22/0x60 [ 33.312230] _cond_resched+0x1d/0x30 [ 33.312234] wait_for_completion+0xa5/0x8d0 [ 33.312238] __synchronize_srcu+0x189/0x240 [ 33.312242] synchronize_srcu+0x335/0x56f [ 33.312246] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.312250] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.312254] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.312258] kvm_put_kvm+0x73f/0x1060 [ 33.312262] kvm_vm_release+0x42/0x50 [ 33.312265] __fput+0x38a/0xa40 [ 33.312269] ____fput+0x15/0x20 [ 33.312272] task_work_run+0x1e8/0x2a0 [ 33.312276] do_exit+0x1ae4/0x26e0 [ 33.312280] do_group_exit+0x177/0x440 [ 33.312284] __x64_sys_exit_group+0x3e/0x50 [ 33.312288] do_syscall_64+0x1b9/0x820 [ 33.312292] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.312294] [ 33.312299] other info that might help us debug this: [ 33.312301] [ 33.312304] Chain exists of: [ 33.312306] (console_sem).lock --> &rq->lock --> report_lock [ 33.312327] [ 33.312331] Possible unsafe locking scenario: [ 33.312334] [ 33.312338] CPU0 CPU1 [ 33.312342] ---- ---- [ 33.312344] lock(report_lock); [ 33.312353] lock(&rq->lock); [ 33.312362] lock(report_lock); [ 33.312370] lock((console_sem).lock); [ 33.312378] [ 33.312381] *** DEADLOCK *** [ 33.312383] [ 33.312387] 2 locks held by syz-executor221/4685: [ 33.312389] #0: 000000004fc75cc9 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.312406] #1: 000000009fa04345 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.312422] [ 33.312425] stack backtrace: [ 33.312431] CPU: 0 PID: 4685 Comm: syz-executor221 Not tainted 4.19.0-rc1+ #217 [ 33.312438] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.312441] Call Trace: [ 33.312444] dump_stack+0x1c9/0x2b4 [ 33.312449] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.312453] ? vprintk_func+0x100/0x117 [ 33.312457] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.312461] ? save_trace+0xe0/0x290 [ 33.312465] __lock_acquire+0x3449/0x5020 [ 33.312469] ? mark_held_locks+0x160/0x160 [ 33.312473] ? mark_held_locks+0x160/0x160 [ 33.312477] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.312481] ? is_bpf_text_address+0xd7/0x170 [ 33.312485] ? kernel_text_address+0x79/0xf0 [ 33.312489] ? __kernel_text_address+0xd/0x40 [ 33.312493] ? __save_stack_trace+0x8d/0xf0 [ 33.312498] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.312501] ? save_trace+0x290/0x290 [ 33.312505] ? save_stack_trace+0x1a/0x20 [ 33.312509] ? save_trace+0xe0/0x290 [ 33.312512] ? graph_lock+0x170/0x170 [ 33.312517] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.312521] lock_acquire+0x1e4/0x4f0 [ 33.312525] ? down_trylock+0x13/0x70 [ 33.312528] ? lock_release+0x9f0/0x9f0 [ 33.312532] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.312536] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.312540] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.312544] ? log_store+0x34f/0x4c0 [ 33.312548] ? vprintk_emit+0x31f/0x910 [ 33.312552] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.312555] ? down_trylock+0x13/0x70 [ 33.312559] down_trylock+0x13/0x70 [ 33.312563] __down_trylock_console_sem+0xae/0x200 [ 33.312567] console_trylock+0x15/0xa0 [ 33.312571] vprintk_emit+0x31f/0x910 [ 33.312574] ? wake_up_klogd+0x110/0x110 [ 33.312587] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.312596] ? kasan_check_read+0x11/0x20 [ 33.312600] ? rcu_is_watching+0x8c/0x150 [ 33.312604] ? rcu_pm_notify+0xc0/0xc0 [ 33.312608] ? lock_acquire+0x1e4/0x4f0 [ 33.312612] ? kasan_report+0x8e/0x110 [ 33.312615] ? __schedule+0xf54/0x1df0 [ 33.312619] vprintk_default+0x28/0x30 [ 33.312623] vprintk_func+0x7a/0x117 [ 33.312626] printk+0xa7/0xcf [ 33.312630] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.312634] ? kasan_check_write+0x14/0x20 [ 33.312638] ? do_raw_spin_lock+0xc1/0x200 [ 33.312642] ? do_raw_spin_lock+0xc1/0x200 [ 33.312645] kasan_report+0x9e/0x110 [ 33.312650] __asan_report_load8_noabort+0x14/0x20 [ 33.312653] __schedule+0xf54/0x1df0 [ 33.312658] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.312662] ? __sched_text_start+0x8/0x8 [ 33.312665] ? __call_srcu+0x7e7/0x1040 [ 33.312669] ? check_same_owner+0x340/0x340 [ 33.312673] ? mark_held_locks+0x160/0x160 [ 33.312677] ? find_held_lock+0x36/0x1c0 [ 33.312681] preempt_schedule_common+0x22/0x60 [ 33.312685] _cond_resched+0x1d/0x30 [ 33.312689] wait_for_completion+0xa5/0x8d0 [ 33.312694] ? wait_for_completion_interruptible+0x950/0x950 [ 33.312698] ? __lockdep_init_map+0x105/0x590 [ 33.312702] ? __init_waitqueue_head+0x9e/0x150 [ 33.312706] ? init_wait_entry+0x1c0/0x1c0 [ 33.312711] __synchronize_srcu+0x189/0x240 [ 33.312714] ? call_srcu+0x10/0x10 [ 33.312718] ? rcu_unexpedite_gp+0x20/0x20 [ 33.312722] synchronize_srcu+0x335/0x56f [ 33.312726] ? lock_downgrade+0x8f0/0x8f0 [ 33.312730] ? synchronize_srcu_expedited+0x20/0x20 [ 33.312734] ? kasan_check_read+0x11/0x20 [ 33.312738] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.312743] ? kasan_check_write+0x14/0x20 [ 33.312746] ? do_raw_spin_lock+0xc1/0x200 [ 33.312751] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.312756] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.312759] ? kvfree+0x61/0x70 [ 33.312764] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.312767] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.312771] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.312775] ? kvm_arch_sync_events+0x30/0x30 [ 33.312780] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.312784] ? mmu_notifier_unregister+0x474/0x600 [ 33.312788] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.312792] ? kfree+0x111/0x210 [ 33.312796] ? __mmu_notifier_register+0x30/0x30 [ 33.312800] ? __free_pages+0x10a/0x190 [ 33.312804] ? free_unref_page+0x930/0x930 [ 33.312807] kvm_put_kvm+0x73f/0x1060 [ 33.312812] ? kvm_write_guest_cached+0x40/0x40 [ 33.312816] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.312820] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.312824] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.312828] ? kasan_check_write+0x14/0x20 [ 33.312831] ? do_raw_spin_lock+0xc1/0x200 [ 33.312835] ? kvm_irqfd_release+0xdd/0x120 [ 33.312839] ? kvm_irqfd_release+0xdd/0x120 [ 33.312843] ? kvm_put_kvm+0x1060/0x1060 [ 33.312847] kvm_vm_release+0x42/0x50 [ 33.312850] __fput+0x38a/0xa40 [ 33.312854] ? __alloc_file+0x400/0x400 [ 33.312858] ? check_same_owner+0x340/0x340 [ 33.312862] ? kasan_check_write+0x14/0x20 [ 33.312866] ? do_raw_spin_lock+0xc1/0x200 [ 33.312869] ____fput+0x15/0x20 [ 33.312873] task_work_run+0x1e8/0x2a0 [ 33.312877] ? task_work_cancel+0x240/0x240 [ 33.312881] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.312885] ? switch_task_namespaces+0xa2/0xd0 [ 33.312889] do_exit+0x1ae4/0x26e0 [ 33.312893] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.312897] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.312901] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.312905] ? kfree+0x1d7/0x210 [ 33.312909] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.312913] ? kvm_uevent_notify_change.part.32+0x [ 33.312921] Lost 57 message(s)! [ 34.391356] Shutting down cpus with NMI [ 35.450313] Dumping ftrace buffer: [ 35.453840] (ftrace buffer empty) [ 35.457528] Kernel Offset: disabled [ 35.461569] Rebooting in 86400 seconds..