[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.511596] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.559733] random: sshd: uninitialized urandom read (32 bytes read) [ 26.915322] random: sshd: uninitialized urandom read (32 bytes read) [ 27.461742] random: sshd: uninitialized urandom read (32 bytes read) [ 27.642364] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.18' (ECDSA) to the list of known hosts. [ 33.371871] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.468418] 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.493084] ================================================================== [ 33.502904] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.509125] Read of size 8 at addr ffff8801c5118058 by task syz-executor973/4656 [ 33.516639] [ 33.518260] CPU: 0 PID: 4656 Comm: syz-executor973 Not tainted 4.19.0-rc1+ #216 [ 33.525694] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.535034] Call Trace: [ 33.537615] dump_stack+0x1c9/0x2b4 [ 33.541244] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.546425] ? printk+0xa7/0xcf [ 33.549704] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.554452] ? __schedule+0xf54/0x1df0 [ 33.558332] print_address_description+0x6c/0x20b [ 33.563168] ? __schedule+0xf54/0x1df0 [ 33.567050] kasan_report.cold.7+0x242/0x30d [ 33.571457] __asan_report_load8_noabort+0x14/0x20 [ 33.576380] __schedule+0xf54/0x1df0 [ 33.580088] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.585186] ? __sched_text_start+0x8/0x8 [ 33.589328] ? __call_srcu+0x7e7/0x1040 [ 33.593334] ? check_same_owner+0x340/0x340 [ 33.597663] ? mark_held_locks+0x160/0x160 [ 33.601895] ? find_held_lock+0x36/0x1c0 [ 33.605983] preempt_schedule_common+0x22/0x60 [ 33.610560] _cond_resched+0x1d/0x30 [ 33.614267] wait_for_completion+0xa5/0x8d0 [ 33.618589] ? wait_for_completion_interruptible+0x950/0x950 [ 33.624380] ? __lockdep_init_map+0x105/0x590 [ 33.628872] ? __init_waitqueue_head+0x9e/0x150 [ 33.633535] ? init_wait_entry+0x1c0/0x1c0 [ 33.637769] __synchronize_srcu+0x189/0x240 [ 33.642086] ? call_srcu+0x10/0x10 [ 33.645620] ? rcu_unexpedite_gp+0x20/0x20 [ 33.649857] synchronize_srcu+0x335/0x56f [ 33.654003] ? lock_downgrade+0x8f0/0x8f0 [ 33.658149] ? synchronize_srcu_expedited+0x20/0x20 [ 33.663160] ? kasan_check_read+0x11/0x20 [ 33.667306] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.671881] ? kasan_check_write+0x14/0x20 [ 33.676109] ? do_raw_spin_lock+0xc1/0x200 [ 33.680343] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.686047] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.691503] ? kvfree+0x61/0x70 [ 33.694780] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.699792] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.703843] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.708262] ? kvm_arch_sync_events+0x30/0x30 [ 33.712758] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.718307] ? mmu_notifier_unregister+0x474/0x600 [ 33.723243] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.727653] ? kfree+0x111/0x210 [ 33.731017] ? __mmu_notifier_register+0x30/0x30 [ 33.735781] ? __free_pages+0x10a/0x190 [ 33.739782] ? free_unref_page+0x930/0x930 [ 33.744018] kvm_put_kvm+0x73f/0x1060 [ 33.747831] ? kvm_write_guest_cached+0x40/0x40 [ 33.752498] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.756996] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.761498] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.766078] ? kasan_check_write+0x14/0x20 [ 33.770306] ? do_raw_spin_lock+0xc1/0x200 [ 33.774536] ? kvm_irqfd_release+0xdd/0x120 [ 33.778849] ? kvm_irqfd_release+0xdd/0x120 [ 33.783168] ? kvm_put_kvm+0x1060/0x1060 [ 33.787228] kvm_vm_release+0x42/0x50 [ 33.791019] __fput+0x38a/0xa40 [ 33.794308] ? __alloc_file+0x400/0x400 [ 33.798281] ? check_same_owner+0x340/0x340 [ 33.802614] ? kasan_check_write+0x14/0x20 [ 33.806846] ? do_raw_spin_lock+0xc1/0x200 [ 33.811075] ____fput+0x15/0x20 [ 33.814345] task_work_run+0x1e8/0x2a0 [ 33.818225] ? task_work_cancel+0x240/0x240 [ 33.822543] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.828076] ? switch_task_namespaces+0xa2/0xd0 [ 33.832746] do_exit+0x1ae4/0x26e0 [ 33.836288] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.840981] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.845214] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.850223] ? kfree+0x1d7/0x210 [ 33.853584] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.857818] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.863528] ? is_bpf_text_address+0xd7/0x170 [ 33.868016] ? kernel_text_address+0x79/0xf0 [ 33.872421] ? __kernel_text_address+0xd/0x40 [ 33.876941] ? unwind_get_return_address+0x61/0xa0 [ 33.881888] ? __save_stack_trace+0x8d/0xf0 [ 33.886214] ? save_stack+0xa9/0xd0 [ 33.889847] ? save_stack+0x43/0xd0 [ 33.893470] ? __kasan_slab_free+0x11a/0x170 [ 33.897871] ? kasan_slab_free+0xe/0x10 [ 33.901849] ? putname+0xf2/0x130 [ 33.905329] ? __x64_sys_openat+0x9d/0x100 [ 33.909572] ? do_syscall_64+0x1b9/0x820 [ 33.913627] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.918996] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.923397] ? kasan_check_read+0x11/0x20 [ 33.927541] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.931943] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.936385] ? initcall_blacklisted+0x9a/0x1e0 [ 33.940970] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.946081] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.951790] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.957336] ? do_vfs_ioctl+0x201/0x1720 [ 33.961406] ? rcu_is_watching+0x8c/0x150 [ 33.965541] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.969856] ? ioctl_preallocate+0x300/0x300 [ 33.974262] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.979792] ? __fget_light+0x2f7/0x440 [ 33.983763] ? fget_raw+0x20/0x20 [ 33.987208] ? putname+0xf2/0x130 [ 33.990656] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.995667] ? kmem_cache_free+0x246/0x280 [ 33.999909] ? putname+0xf7/0x130 [ 34.003360] do_group_exit+0x177/0x440 [ 34.007241] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.011556] ? __ia32_sys_exit+0x50/0x50 [ 34.015609] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.020708] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.026238] ? ksys_ioctl+0x81/0xd0 [ 34.029877] __x64_sys_exit_group+0x3e/0x50 [ 34.034209] do_syscall_64+0x1b9/0x820 [ 34.038091] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.043479] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.048402] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.053242] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.058745] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.063758] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.068616] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.073816] RIP: 0033:0x43ef08 [ 34.077023] Code: Bad RIP value. [ 34.080375] RSP: 002b:00007ffe7f5be9e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.088090] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.095348] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.102608] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.109868] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.117130] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.124392] [ 34.126012] Allocated by task 4656: [ 34.129636] save_stack+0x43/0xd0 [ 34.133083] kasan_kmalloc+0xc4/0xe0 [ 34.137413] kasan_slab_alloc+0x12/0x20 [ 34.141378] kmem_cache_alloc+0x12e/0x710 [ 34.145520] vmx_create_vcpu+0xcf/0x2830 [ 34.149571] kvm_arch_vcpu_create+0xe5/0x220 [ 34.153991] kvm_vm_ioctl+0x488/0x1d80 [ 34.157875] do_vfs_ioctl+0x1de/0x1720 [ 34.161752] ksys_ioctl+0xa9/0xd0 [ 34.165201] __x64_sys_ioctl+0x73/0xb0 [ 34.169082] do_syscall_64+0x1b9/0x820 [ 34.172971] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.178153] [ 34.179766] Freed by task 4656: [ 34.183041] save_stack+0x43/0xd0 [ 34.186490] __kasan_slab_free+0x11a/0x170 [ 34.190715] kasan_slab_free+0xe/0x10 [ 34.194508] kmem_cache_free+0x86/0x280 [ 34.198476] vmx_free_vcpu+0x26b/0x300 [ 34.202357] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.206761] kvm_put_kvm+0x73f/0x1060 [ 34.210554] kvm_vm_release+0x42/0x50 [ 34.214345] __fput+0x38a/0xa40 [ 34.217613] ____fput+0x15/0x20 [ 34.220882] task_work_run+0x1e8/0x2a0 [ 34.224759] do_exit+0x1ae4/0x26e0 [ 34.228295] do_group_exit+0x177/0x440 [ 34.232183] __x64_sys_exit_group+0x3e/0x50 [ 34.236598] do_syscall_64+0x1b9/0x820 [ 34.240478] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.245653] [ 34.247274] The buggy address belongs to the object at ffff8801c5118040 [ 34.247274] which belongs to the cache kvm_vcpu of size 23872 [ 34.259839] The buggy address is located 24 bytes inside of [ 34.259839] 23872-byte region [ffff8801c5118040, ffff8801c511dd80) [ 34.271804] The buggy address belongs to the page: [ 34.276728] page:ffffea0007144600 count:1 mapcount:0 mapping:ffff8801d5271840 index:0x0 compound_mapcount: 0 [ 34.286705] flags: 0x2fffc0000008100(slab|head) [ 34.291391] raw: 02fffc0000008100 ffff8801d5272548 ffff8801d5272548 ffff8801d5271840 [ 34.299268] raw: 0000000000000000 ffff8801c5118040 0000000100000001 0000000000000000 [ 34.307137] page dumped because: kasan: bad access detected [ 34.312829] [ 34.314441] Memory state around the buggy address: [ 34.319365] ffff8801c5117f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.326713] ffff8801c5117f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.334064] >ffff8801c5118000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.341421] ^ [ 34.347639] ffff8801c5118080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.354995] ffff8801c5118100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.362341] ================================================================== [ 34.369686] Kernel panic - not syncing: panic_on_warn set ... [ 34.369686] [ 34.377047] CPU: 0 PID: 4656 Comm: syz-executor973 Tainted: G B 4.19.0-rc1+ #216 [ 34.385867] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.395206] Call Trace: [ 34.397792] dump_stack+0x1c9/0x2b4 [ 34.401416] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.406600] ? lock_downgrade+0x8f0/0x8f0 [ 34.410744] ? __schedule+0xf54/0x1df0 [ 34.414642] panic+0x238/0x4e7 [ 34.417828] ? add_taint.cold.5+0x16/0x16 [ 34.422017] ? print_shadow_for_address+0xba/0x116 [ 34.426938] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.431350] ? trace_hardirqs_off+0x77/0x2b0 [ 34.435769] ? __schedule+0xf54/0x1df0 [ 34.439681] kasan_end_report+0x47/0x4f [ 34.443649] kasan_report.cold.7+0x76/0x30d [ 34.447991] __asan_report_load8_noabort+0x14/0x20 [ 34.452918] __schedule+0xf54/0x1df0 [ 34.456641] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.461738] ? __sched_text_start+0x8/0x8 [ 34.465881] ? __call_srcu+0x7e7/0x1040 [ 34.469859] ? check_same_owner+0x340/0x340 [ 34.474186] ? mark_held_locks+0x160/0x160 [ 34.478417] ? find_held_lock+0x36/0x1c0 [ 34.482507] preempt_schedule_common+0x22/0x60 [ 34.487083] _cond_resched+0x1d/0x30 [ 34.490794] wait_for_completion+0xa5/0x8d0 [ 34.495117] ? wait_for_completion_interruptible+0x950/0x950 [ 34.500910] ? __lockdep_init_map+0x105/0x590 [ 34.505420] ? __init_waitqueue_head+0x9e/0x150 [ 34.510113] ? init_wait_entry+0x1c0/0x1c0 [ 34.514346] __synchronize_srcu+0x189/0x240 [ 34.518660] ? call_srcu+0x10/0x10 [ 34.522207] ? rcu_unexpedite_gp+0x20/0x20 [ 34.526443] synchronize_srcu+0x335/0x56f [ 34.530583] ? lock_downgrade+0x8f0/0x8f0 [ 34.534724] ? synchronize_srcu_expedited+0x20/0x20 [ 34.539739] ? kasan_check_read+0x11/0x20 [ 34.543881] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.548457] ? kasan_check_write+0x14/0x20 [ 34.552683] ? do_raw_spin_lock+0xc1/0x200 [ 34.556913] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.562724] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.568180] ? kvfree+0x61/0x70 [ 34.571459] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.576485] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.580556] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.584962] ? kvm_arch_sync_events+0x30/0x30 [ 34.589476] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.595024] ? mmu_notifier_unregister+0x474/0x600 [ 34.599959] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.604388] ? kfree+0x111/0x210 [ 34.607750] ? __mmu_notifier_register+0x30/0x30 [ 34.612503] ? __free_pages+0x10a/0x190 [ 34.616489] ? free_unref_page+0x930/0x930 [ 34.620728] kvm_put_kvm+0x73f/0x1060 [ 34.624531] ? kvm_write_guest_cached+0x40/0x40 [ 34.629199] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.633684] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.638186] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.642772] ? kasan_check_write+0x14/0x20 [ 34.647015] ? do_raw_spin_lock+0xc1/0x200 [ 34.651250] ? kvm_irqfd_release+0xdd/0x120 [ 34.655562] ? kvm_irqfd_release+0xdd/0x120 [ 34.659893] ? kvm_put_kvm+0x1060/0x1060 [ 34.663948] kvm_vm_release+0x42/0x50 [ 34.667779] __fput+0x38a/0xa40 [ 34.671053] ? __alloc_file+0x400/0x400 [ 34.675025] ? check_same_owner+0x340/0x340 [ 34.679340] ? kasan_check_write+0x14/0x20 [ 34.683570] ? do_raw_spin_lock+0xc1/0x200 [ 34.687810] ____fput+0x15/0x20 [ 34.691085] task_work_run+0x1e8/0x2a0 [ 34.694985] ? task_work_cancel+0x240/0x240 [ 34.699309] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.704843] ? switch_task_namespaces+0xa2/0xd0 [ 34.709510] do_exit+0x1ae4/0x26e0 [ 34.713046] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.717728] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.721956] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.726993] ? kfree+0x1d7/0x210 [ 34.730360] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.734590] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.740295] ? is_bpf_text_address+0xd7/0x170 [ 34.744782] ? kernel_text_address+0x79/0xf0 [ 34.749189] ? __kernel_text_address+0xd/0x40 [ 34.753680] ? unwind_get_return_address+0x61/0xa0 [ 34.758611] ? __save_stack_trace+0x8d/0xf0 [ 34.762934] ? save_stack+0xa9/0xd0 [ 34.766559] ? save_stack+0x43/0xd0 [ 34.770181] ? __kasan_slab_free+0x11a/0x170 [ 34.774583] ? kasan_slab_free+0xe/0x10 [ 34.778550] ? putname+0xf2/0x130 [ 34.782000] ? __x64_sys_openat+0x9d/0x100 [ 34.786227] ? do_syscall_64+0x1b9/0x820 [ 34.790286] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.795642] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.800056] ? kasan_check_read+0x11/0x20 [ 34.804195] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.808617] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.813036] ? initcall_blacklisted+0x9a/0x1e0 [ 34.817613] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.822713] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.828418] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.833947] ? do_vfs_ioctl+0x201/0x1720 [ 34.838009] ? rcu_is_watching+0x8c/0x150 [ 34.842147] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.846496] ? ioctl_preallocate+0x300/0x300 [ 34.850915] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.856453] ? __fget_light+0x2f7/0x440 [ 34.860425] ? fget_raw+0x20/0x20 [ 34.863868] ? putname+0xf2/0x130 [ 34.867319] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.872331] ? kmem_cache_free+0x246/0x280 [ 34.876577] ? putname+0xf7/0x130 [ 34.880026] do_group_exit+0x177/0x440 [ 34.883905] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.888218] ? __ia32_sys_exit+0x50/0x50 [ 34.892273] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.897381] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.902921] ? ksys_ioctl+0x81/0xd0 [ 34.906555] __x64_sys_exit_group+0x3e/0x50 [ 34.910900] do_syscall_64+0x1b9/0x820 [ 34.914778] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.920139] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.925090] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.929923] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.934933] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.939951] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.944804] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.950000] RIP: 0033:0x43ef08 [ 34.953192] Code: Bad RIP value. [ 34.956564] RSP: 002b:00007ffe7f5be9e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.964267] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.971526] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.978786] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.986045] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.993309] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.000579] [ 35.000585] ====================================================== [ 35.000590] WARNING: possible circular locking dependency detected [ 35.000594] 4.19.0-rc1+ #216 Not tainted [ 35.000599] ------------------------------------------------------ [ 35.000604] syz-executor973/4656 is trying to acquire lock: [ 35.000608] 00000000c62e65da ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.000623] [ 35.000627] but task is already holding lock: [ 35.000630] 000000009bc74916 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.000644] [ 35.000649] which lock already depends on the new lock. [ 35.000651] [ 35.000654] [ 35.000659] the existing dependency chain (in reverse order) is: [ 35.000661] [ 35.000663] -> #3 (report_lock){....}: [ 35.000678] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.000682] kasan_report+0x8e/0x110 [ 35.000686] __asan_report_load8_noabort+0x14/0x20 [ 35.000690] __schedule+0xf54/0x1df0 [ 35.000694] preempt_schedule_common+0x22/0x60 [ 35.000698] _cond_resched+0x1d/0x30 [ 35.000702] wait_for_completion+0xa5/0x8d0 [ 35.000707] __synchronize_srcu+0x189/0x240 [ 35.000711] synchronize_srcu+0x335/0x56f [ 35.000716] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.000720] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.000724] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.000728] kvm_put_kvm+0x73f/0x1060 [ 35.000732] kvm_vm_release+0x42/0x50 [ 35.000735] __fput+0x38a/0xa40 [ 35.000739] ____fput+0x15/0x20 [ 35.000743] task_work_run+0x1e8/0x2a0 [ 35.000746] do_exit+0x1ae4/0x26e0 [ 35.000750] do_group_exit+0x177/0x440 [ 35.000754] __x64_sys_exit_group+0x3e/0x50 [ 35.000758] do_syscall_64+0x1b9/0x820 [ 35.000763] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.000765] [ 35.000768] -> #2 (&rq->lock){-.-.}: [ 35.000782] _raw_spin_lock+0x2a/0x40 [ 35.000786] task_fork_fair+0x93/0x680 [ 35.000789] sched_fork+0x44b/0xbd0 [ 35.000793] copy_process+0x235e/0x7ad0 [ 35.000797] _do_fork+0x1ca/0x1170 [ 35.000801] kernel_thread+0x34/0x40 [ 35.000804] rest_init+0x22/0xe4 [ 35.000808] start_kernel+0x913/0x94e [ 35.000812] x86_64_start_reservations+0x29/0x2b [ 35.000816] x86_64_start_kernel+0x76/0x79 [ 35.000821] secondary_startup_64+0xa4/0xb0 [ 35.000823] [ 35.000825] -> #1 (&p->pi_lock){-.-.}: [ 35.000840] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.000844] try_to_wake_up+0xd2/0x1250 [ 35.000847] wake_up_process+0x10/0x20 [ 35.000851] __up.isra.1+0x1c0/0x2a0 [ 35.000855] up+0x13c/0x1c0 [ 35.000858] __up_console_sem+0xbe/0x1b0 [ 35.000862] console_unlock+0x506/0x10d0 [ 35.000866] vprintk_emit+0x33a/0x910 [ 35.000870] vprintk_default+0x28/0x30 [ 35.000874] vprintk_func+0x7a/0x117 [ 35.000877] printk+0xa7/0xcf [ 35.000881] load_umh+0x51/0xbd [ 35.000885] do_one_initcall+0x127/0x838 [ 35.000889] kernel_init_freeable+0x4bb/0x5ae [ 35.000893] kernel_init+0x11/0x1b3 [ 35.000897] ret_from_fork+0x3a/0x50 [ 35.000899] [ 35.000901] -> #0 ((console_sem).lock){-...}: [ 35.000916] lock_acquire+0x1e4/0x4f0 [ 35.000920] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.000924] down_trylock+0x13/0x70 [ 35.000928] __down_trylock_console_sem+0xae/0x200 [ 35.000932] console_trylock+0x15/0xa0 [ 35.000936] vprintk_emit+0x31f/0x910 [ 35.000940] vprintk_default+0x28/0x30 [ 35.000944] vprintk_func+0x7a/0x117 [ 35.000947] printk+0xa7/0xcf [ 35.000951] kasan_report+0x9e/0x110 [ 35.000956] __asan_report_load8_noabort+0x14/0x20 [ 35.000960] __schedule+0xf54/0x1df0 [ 35.000973] preempt_schedule_common+0x22/0x60 [ 35.000982] _cond_resched+0x1d/0x30 [ 35.000986] wait_for_completion+0xa5/0x8d0 [ 35.000990] __synchronize_srcu+0x189/0x240 [ 35.000995] synchronize_srcu+0x335/0x56f [ 35.001000] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.001004] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.001008] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.001012] kvm_put_kvm+0x73f/0x1060 [ 35.001016] kvm_vm_release+0x42/0x50 [ 35.001019] __fput+0x38a/0xa40 [ 35.001023] ____fput+0x15/0x20 [ 35.001026] task_work_run+0x1e8/0x2a0 [ 35.001030] do_exit+0x1ae4/0x26e0 [ 35.001034] do_group_exit+0x177/0x440 [ 35.001038] __x64_sys_exit_group+0x3e/0x50 [ 35.001042] do_syscall_64+0x1b9/0x820 [ 35.001047] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.001049] [ 35.001054] other info that might help us debug this: [ 35.001056] [ 35.001059] Chain exists of: [ 35.001061] (console_sem).lock --> &rq->lock --> report_lock [ 35.001079] [ 35.001083] Possible unsafe locking scenario: [ 35.001085] [ 35.001090] CPU0 CPU1 [ 35.001094] ---- ---- [ 35.001096] lock(report_lock); [ 35.001106] lock(&rq->lock); [ 35.001115] lock(report_lock); [ 35.001123] lock((console_sem).lock); [ 35.001131] [ 35.001134] *** DEADLOCK *** [ 35.001136] [ 35.001140] 2 locks held by syz-executor973/4656: [ 35.001143] #0: 000000008dfacc43 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.001160] #1: 000000009bc74916 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.001177] [ 35.001180] stack backtrace: [ 35.001186] CPU: 0 PID: 4656 Comm: syz-executor973 Not tainted 4.19.0-rc1+ #216 [ 35.001193] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.001196] Call Trace: [ 35.001200] dump_stack+0x1c9/0x2b4 [ 35.001204] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.001208] ? vprintk_func+0x100/0x117 [ 35.001213] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.001217] ? save_trace+0xe0/0x290 [ 35.001221] __lock_acquire+0x3449/0x5020 [ 35.001225] ? mark_held_locks+0x160/0x160 [ 35.001229] ? mark_held_locks+0x160/0x160 [ 35.001234] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.001238] ? is_bpf_text_address+0xd7/0x170 [ 35.001242] ? kernel_text_address+0x79/0xf0 [ 35.001246] ? __kernel_text_address+0xd/0x40 [ 35.001250] ? __save_stack_trace+0x8d/0xf0 [ 35.001255] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.001259] ? save_trace+0x290/0x290 [ 35.001263] ? save_stack_trace+0x1a/0x20 [ 35.001266] ? save_trace+0xe0/0x290 [ 35.001270] ? graph_lock+0x170/0x170 [ 35.001275] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.001279] lock_acquire+0x1e4/0x4f0 [ 35.001283] ? down_trylock+0x13/0x70 [ 35.001286] ? lock_release+0x9f0/0x9f0 [ 35.001290] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.001295] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.001299] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.001303] ? log_store+0x34f/0x4c0 [ 35.001307] ? vprintk_emit+0x31f/0x910 [ 35.001311] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.001315] ? down_trylock+0x13/0x70 [ 35.001318] down_trylock+0x13/0x70 [ 35.001323] __down_trylock_console_sem+0xae/0x200 [ 35.001326] console_trylock+0x15/0xa0 [ 35.001330] vprintk_emit+0x31f/0x910 [ 35.001334] ? wake_up_klogd+0x110/0x110 [ 35.001338] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.001343] ? kasan_check_read+0x11/0x20 [ 35.001347] ? rcu_is_watching+0x8c/0x150 [ 35.001350] ? rcu_pm_notify+0xc0/0xc0 [ 35.001354] ? lock_acquire+0x1e4/0x4f0 [ 35.001358] ? kasan_report+0x8e/0x110 [ 35.001362] ? __schedule+0xf54/0x1df0 [ 35.001366] vprintk_default+0x28/0x30 [ 35.001370] vprintk_func+0x7a/0x117 [ 35.001373] printk+0xa7/0xcf [ 35.001377] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.001381] ? kasan_check_write+0x14/0x20 [ 35.001385] ? do_raw_spin_lock+0xc1/0x200 [ 35.001390] ? do_raw_spin_lock+0xc1/0x200 [ 35.001393] kasan_report+0x9e/0x110 [ 35.001398] __asan_report_load8_noabort+0x14/0x20 [ 35.001401] __schedule+0xf54/0x1df0 [ 35.001406] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.001410] ? __sched_text_start+0x8/0x8 [ 35.001414] ? __call_srcu+0x7e7/0x1040 [ 35.001418] ? check_same_owner+0x340/0x340 [ 35.001422] ? mark_held_locks+0x160/0x160 [ 35.001426] ? find_held_lock+0x36/0x1c0 [ 35.001430] preempt_schedule_common+0x22/0x60 [ 35.001434] _cond_resched+0x1d/0x30 [ 35.001438] wait_for_completion+0xa5/0x8d0 [ 35.001443] ? wait_for_completion_interruptible+0x950/0x950 [ 35.001447] ? __lockdep_init_map+0x105/0x590 [ 35.001452] ? __init_waitqueue_head+0x9e/0x150 [ 35.001456] ? init_wait_entry+0x1c0/0x1c0 [ 35.001460] __synchronize_srcu+0x189/0x240 [ 35.001463] ? call_srcu+0x10/0x10 [ 35.001468] ? rcu_unexpedite_gp+0x20/0x20 [ 35.001472] synchronize_srcu+0x335/0x56f [ 35.001476] ? lock_downgrade+0x8f0/0x8f0 [ 35.001481] ? synchronize_srcu_expedited+0x20/0x20 [ 35.001485] ? kasan_check_read+0x11/0x20 [ 35.001489] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.001493] ? kasan_check_write+0x14/0x20 [ 35.001497] ? do_raw_spin_lock+0xc1/0x200 [ 35.001502] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.001507] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.001511] ? kvfree+0x61/0x70 [ 35.001515] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.001519] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.001523] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.001527] ? kvm_arch_sync_events+0x30/0x30 [ 35.001532] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.001537] ? mmu_notifier_unregister+0x474/0x600 [ 35.001541] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.001544] ? kfree+0x111/0x210 [ 35.001549] ? __mmu_notifier_register+0x30/0x30 [ 35.001553] ? __free_pages+0x10a/0x190 [ 35.001557] ? free_unref_page+0x930/0x930 [ 35.001561] kvm_put_kvm+0x73f/0x1060 [ 35.001565] ? kvm_write_guest_cached+0x40/0x40 [ 35.001569] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.001573] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.001578] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.001582] ? kasan_check_write+0x14/0x20 [ 35.001586] ? do_raw_spin_lock+0xc1/0x200 [ 35.001590] ? kvm_irqfd_release+0xdd/0x120 [ 35.001594] ? kvm_irqfd_release+0xdd/0x120 [ 35.001598] ? kvm_put_kvm+0x1060/0x1060 [ 35.001602] kvm_vm_release+0x42/0x50 [ 35.001605] __fput+0x38a/0xa40 [ 35.001609] ? __alloc_file+0x400/0x400 [ 35.001613] ? check_same_owner+0x340/0x340 [ 35.001617] ? kasan_check_write+0x14/0x20 [ 35.001622] ? do_raw_spin_lock+0xc1/0x200 [ 35.001625] ____fput+0x15/0x20 [ 35.001629] task_work_run+0x1e8/0x2a0 [ 35.001633] ? task_work_cancel+0x240/0x240 [ 35.001638] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.001642] ? switch_task_namespaces+0xa2/0xd0 [ 35.001646] do_exit+0x1ae4/0x26e0 [ 35.001650] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.001654] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.001658] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.001662] ? kfree+0x1d7/0x210 [ 35.001666] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.001671] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.001675] ? is_bpf_text_address+0xd7/0x170 [ 35.001678] ? [ 35.001684] Lost 54 message(s)! [ 36.123489] Shutting down cpus with NMI [ 37.181908] Dumping ftrace buffer: [ 37.185429] (ftrace buffer empty) [ 37.189117] Kernel Offset: disabled [ 37.192902] Rebooting in 86400 seconds..