[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.779475] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.132691] random: sshd: uninitialized urandom read (32 bytes read) [ 25.477215] random: sshd: uninitialized urandom read (32 bytes read) [ 26.032359] random: sshd: uninitialized urandom read (32 bytes read) [ 26.211786] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.56' (ECDSA) to the list of known hosts. [ 31.825771] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.922201] 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.947264] ================================================================== [ 31.957102] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.963343] Read of size 8 at addr ffff8801b5c40058 by task syz-executor835/4444 [ 31.970873] [ 31.972508] CPU: 0 PID: 4444 Comm: syz-executor835 Not tainted 4.18.0+ #204 [ 31.979600] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.988949] Call Trace: [ 31.991542] dump_stack+0x1c9/0x2b4 [ 31.995174] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.000364] ? printk+0xa7/0xcf [ 32.003646] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.008405] ? __schedule+0xf54/0x1df0 [ 32.012289] print_address_description+0x6c/0x20b [ 32.017130] ? __schedule+0xf54/0x1df0 [ 32.021016] kasan_report.cold.7+0x242/0x30d [ 32.025421] __asan_report_load8_noabort+0x14/0x20 [ 32.030361] __schedule+0xf54/0x1df0 [ 32.034070] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.039171] ? __sched_text_start+0x8/0x8 [ 32.043321] ? __call_srcu+0x7e7/0x1040 [ 32.047297] ? check_same_owner+0x340/0x340 [ 32.051614] ? mark_held_locks+0x160/0x160 [ 32.055842] ? find_held_lock+0x36/0x1c0 [ 32.059901] preempt_schedule_common+0x22/0x60 [ 32.064481] _cond_resched+0x1d/0x30 [ 32.068189] wait_for_completion+0xa5/0x8d0 [ 32.072509] ? wait_for_completion_interruptible+0x950/0x950 [ 32.078306] ? __lockdep_init_map+0x105/0x590 [ 32.082807] ? __init_waitqueue_head+0x9e/0x150 [ 32.087471] ? init_wait_entry+0x1c0/0x1c0 [ 32.091713] __synchronize_srcu+0x189/0x240 [ 32.096030] ? call_srcu+0x10/0x10 [ 32.099567] ? rcu_unexpedite_gp+0x20/0x20 [ 32.103806] synchronize_srcu+0x335/0x56f [ 32.107948] ? lock_downgrade+0x8f0/0x8f0 [ 32.112094] ? synchronize_srcu_expedited+0x20/0x20 [ 32.117107] ? kasan_check_read+0x11/0x20 [ 32.121253] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.125834] ? kasan_check_write+0x14/0x20 [ 32.130063] ? do_raw_spin_lock+0xc1/0x200 [ 32.134302] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.140011] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.145475] ? kvfree+0x61/0x70 [ 32.148763] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.153768] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.157829] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.162232] ? kvm_arch_sync_events+0x30/0x30 [ 32.166732] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.172267] ? mmu_notifier_unregister+0x474/0x600 [ 32.177189] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.181595] ? kfree+0x111/0x210 [ 32.184964] ? __mmu_notifier_register+0x30/0x30 [ 32.189723] ? __free_pages+0x10a/0x190 [ 32.193696] ? free_unref_page+0x930/0x930 [ 32.197946] kvm_put_kvm+0x73f/0x1060 [ 32.201748] ? kvm_write_guest_cached+0x40/0x40 [ 32.206417] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.210914] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.215404] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.219987] ? kasan_check_write+0x14/0x20 [ 32.224221] ? do_raw_spin_lock+0xc1/0x200 [ 32.228465] ? kvm_irqfd_release+0xdd/0x120 [ 32.232785] ? kvm_put_kvm+0x1060/0x1060 [ 32.236844] kvm_vm_release+0x42/0x50 [ 32.240641] __fput+0x36e/0x8c0 [ 32.243917] ? __alloc_file+0x400/0x400 [ 32.247886] ? check_same_owner+0x340/0x340 [ 32.252203] ? kasan_check_write+0x14/0x20 [ 32.256456] ? do_raw_spin_lock+0xc1/0x200 [ 32.260708] ____fput+0x15/0x20 [ 32.263979] task_work_run+0x1e8/0x2a0 [ 32.267859] ? task_work_cancel+0x240/0x240 [ 32.272179] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.277720] ? switch_task_namespaces+0xa2/0xd0 [ 32.282391] do_exit+0x1ae4/0x26e0 [ 32.285940] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.290615] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.294850] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.299863] ? kfree+0x1d7/0x210 [ 32.303233] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.307479] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.313207] ? is_bpf_text_address+0xd7/0x170 [ 32.317705] ? kernel_text_address+0x79/0xf0 [ 32.322111] ? __kernel_text_address+0xd/0x40 [ 32.326604] ? unwind_get_return_address+0x61/0xa0 [ 32.331532] ? __save_stack_trace+0x8d/0xf0 [ 32.335857] ? save_stack+0xa9/0xd0 [ 32.339482] ? save_stack+0x43/0xd0 [ 32.343102] ? __kasan_slab_free+0x11a/0x170 [ 32.347505] ? kasan_slab_free+0xe/0x10 [ 32.351473] ? putname+0xf2/0x130 [ 32.354925] ? __x64_sys_openat+0x9d/0x100 [ 32.359159] ? do_syscall_64+0x1b9/0x820 [ 32.363221] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.368580] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.372986] ? kasan_check_read+0x11/0x20 [ 32.377129] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.381532] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.385931] ? initcall_blacklisted+0x9a/0x1e0 [ 32.390505] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.395608] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.401357] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.406888] ? do_vfs_ioctl+0x201/0x1720 [ 32.410946] ? rcu_is_watching+0x8c/0x150 [ 32.415090] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.419412] ? ioctl_preallocate+0x300/0x300 [ 32.423829] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.429360] ? __fget_light+0x2f7/0x440 [ 32.433334] ? fget_raw+0x20/0x20 [ 32.436785] ? putname+0xf2/0x130 [ 32.440236] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.445245] ? kmem_cache_free+0x246/0x280 [ 32.449480] ? putname+0xf7/0x130 [ 32.452934] do_group_exit+0x177/0x440 [ 32.456817] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.461137] ? __ia32_sys_exit+0x50/0x50 [ 32.465215] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.470323] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.475870] ? ksys_ioctl+0x81/0xd0 [ 32.479501] __x64_sys_exit_group+0x3e/0x50 [ 32.483861] do_syscall_64+0x1b9/0x820 [ 32.487770] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.493144] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.498076] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.502917] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.507934] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.513004] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.517850] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.523034] RIP: 0033:0x43ef08 [ 32.526229] Code: Bad RIP value. [ 32.529586] RSP: 002b:00007ffc8db261c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.537290] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 32.544814] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.552078] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.559340] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.566604] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.573871] [ 32.575493] Allocated by task 4444: [ 32.579117] save_stack+0x43/0xd0 [ 32.582562] kasan_kmalloc+0xc4/0xe0 [ 32.586268] kasan_slab_alloc+0x12/0x20 [ 32.590234] kmem_cache_alloc+0x12e/0x710 [ 32.594375] vmx_create_vcpu+0xcf/0x2830 [ 32.598426] kvm_arch_vcpu_create+0xe5/0x220 [ 32.602841] kvm_vm_ioctl+0x488/0x1d80 [ 32.606730] do_vfs_ioctl+0x1de/0x1720 [ 32.610612] ksys_ioctl+0xa9/0xd0 [ 32.614062] __x64_sys_ioctl+0x73/0xb0 [ 32.617944] do_syscall_64+0x1b9/0x820 [ 32.621833] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.627006] [ 32.628625] Freed by task 4444: [ 32.631900] save_stack+0x43/0xd0 [ 32.635344] __kasan_slab_free+0x11a/0x170 [ 32.639575] kasan_slab_free+0xe/0x10 [ 32.643366] kmem_cache_free+0x86/0x280 [ 32.647329] vmx_free_vcpu+0x26b/0x300 [ 32.651215] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.655622] kvm_put_kvm+0x73f/0x1060 [ 32.659415] kvm_vm_release+0x42/0x50 [ 32.663216] __fput+0x36e/0x8c0 [ 32.666489] ____fput+0x15/0x20 [ 32.669760] task_work_run+0x1e8/0x2a0 [ 32.673639] do_exit+0x1ae4/0x26e0 [ 32.677170] do_group_exit+0x177/0x440 [ 32.681049] __x64_sys_exit_group+0x3e/0x50 [ 32.685370] do_syscall_64+0x1b9/0x820 [ 32.689254] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.694429] [ 32.696060] The buggy address belongs to the object at ffff8801b5c40040 [ 32.696060] which belongs to the cache kvm_vcpu of size 23872 [ 32.708639] The buggy address is located 24 bytes inside of [ 32.708639] 23872-byte region [ffff8801b5c40040, ffff8801b5c45d80) [ 32.720595] The buggy address belongs to the page: [ 32.725523] page:ffffea0006d71000 count:1 mapcount:0 mapping:ffff8801d5479500 index:0x0 compound_mapcount: 0 [ 32.735488] flags: 0x2fffc0000008100(slab|head) [ 32.740156] raw: 02fffc0000008100 ffff8801d4c30d48 ffff8801d4c30d48 ffff8801d5479500 [ 32.748036] raw: 0000000000000000 ffff8801b5c40040 0000000100000001 0000000000000000 [ 32.755906] page dumped because: kasan: bad access detected [ 32.764385] [ 32.766014] Memory state around the buggy address: [ 32.770938] ffff8801b5c3ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.779001] ffff8801b5c3ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.786347] >ffff8801b5c40000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.793705] ^ [ 32.799929] ffff8801b5c40080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.807280] ffff8801b5c40100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.814623] ================================================================== [ 32.821972] Kernel panic - not syncing: panic_on_warn set ... [ 32.821972] [ 32.829334] CPU: 0 PID: 4444 Comm: syz-executor835 Tainted: G B 4.18.0+ #204 [ 32.837815] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.847159] Call Trace: [ 32.849750] dump_stack+0x1c9/0x2b4 [ 32.853376] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.858562] ? lock_downgrade+0x8f0/0x8f0 [ 32.862712] ? __schedule+0xf54/0x1df0 [ 32.866597] panic+0x238/0x4e7 [ 32.869783] ? add_taint.cold.5+0x16/0x16 [ 32.873930] ? print_shadow_for_address+0xba/0x116 [ 32.878855] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.883257] ? trace_hardirqs_off+0x77/0x2b0 [ 32.887827] ? __schedule+0xf54/0x1df0 [ 32.891717] kasan_end_report+0x47/0x4f [ 32.895690] kasan_report.cold.7+0x76/0x30d [ 32.900019] __asan_report_load8_noabort+0x14/0x20 [ 32.904941] __schedule+0xf54/0x1df0 [ 32.908653] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.913768] ? __sched_text_start+0x8/0x8 [ 32.917917] ? __call_srcu+0x7e7/0x1040 [ 32.921904] ? check_same_owner+0x340/0x340 [ 32.926226] ? mark_held_locks+0x160/0x160 [ 32.930621] ? find_held_lock+0x36/0x1c0 [ 32.934682] preempt_schedule_common+0x22/0x60 [ 32.939266] _cond_resched+0x1d/0x30 [ 32.942978] wait_for_completion+0xa5/0x8d0 [ 32.947297] ? wait_for_completion_interruptible+0x950/0x950 [ 32.953106] ? __lockdep_init_map+0x105/0x590 [ 32.957602] ? __init_waitqueue_head+0x9e/0x150 [ 32.962269] ? init_wait_entry+0x1c0/0x1c0 [ 32.966512] __synchronize_srcu+0x189/0x240 [ 32.970825] ? call_srcu+0x10/0x10 [ 32.974352] ? rcu_unexpedite_gp+0x20/0x20 [ 32.978594] synchronize_srcu+0x335/0x56f [ 32.982738] ? lock_downgrade+0x8f0/0x8f0 [ 32.986887] ? synchronize_srcu_expedited+0x20/0x20 [ 32.991904] ? kasan_check_read+0x11/0x20 [ 32.996050] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.000626] ? kasan_check_write+0x14/0x20 [ 33.004857] ? do_raw_spin_lock+0xc1/0x200 [ 33.009090] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.014797] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.020241] ? kvfree+0x61/0x70 [ 33.023520] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.028537] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.032593] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.037174] ? kvm_arch_sync_events+0x30/0x30 [ 33.041672] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.047211] ? mmu_notifier_unregister+0x474/0x600 [ 33.052134] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.056538] ? kfree+0x111/0x210 [ 33.059901] ? __mmu_notifier_register+0x30/0x30 [ 33.064654] ? __free_pages+0x10a/0x190 [ 33.068627] ? free_unref_page+0x930/0x930 [ 33.072866] kvm_put_kvm+0x73f/0x1060 [ 33.076671] ? kvm_write_guest_cached+0x40/0x40 [ 33.081346] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.085836] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.090330] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.094916] ? kasan_check_write+0x14/0x20 [ 33.099145] ? do_raw_spin_lock+0xc1/0x200 [ 33.103393] ? kvm_irqfd_release+0xdd/0x120 [ 33.107720] ? kvm_put_kvm+0x1060/0x1060 [ 33.111779] kvm_vm_release+0x42/0x50 [ 33.115577] __fput+0x36e/0x8c0 [ 33.118854] ? __alloc_file+0x400/0x400 [ 33.122825] ? check_same_owner+0x340/0x340 [ 33.127143] ? kasan_check_write+0x14/0x20 [ 33.131372] ? do_raw_spin_lock+0xc1/0x200 [ 33.135608] ____fput+0x15/0x20 [ 33.138881] task_work_run+0x1e8/0x2a0 [ 33.142765] ? task_work_cancel+0x240/0x240 [ 33.147085] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.152621] ? switch_task_namespaces+0xa2/0xd0 [ 33.157289] do_exit+0x1ae4/0x26e0 [ 33.160833] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.165501] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.169736] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.174748] ? kfree+0x1d7/0x210 [ 33.178113] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.182345] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.188057] ? is_bpf_text_address+0xd7/0x170 [ 33.192547] ? kernel_text_address+0x79/0xf0 [ 33.196951] ? __kernel_text_address+0xd/0x40 [ 33.201454] ? unwind_get_return_address+0x61/0xa0 [ 33.206386] ? __save_stack_trace+0x8d/0xf0 [ 33.210718] ? save_stack+0xa9/0xd0 [ 33.214339] ? save_stack+0x43/0xd0 [ 33.217964] ? __kasan_slab_free+0x11a/0x170 [ 33.222364] ? kasan_slab_free+0xe/0x10 [ 33.226334] ? putname+0xf2/0x130 [ 33.229784] ? __x64_sys_openat+0x9d/0x100 [ 33.234015] ? do_syscall_64+0x1b9/0x820 [ 33.238085] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.243492] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.247921] ? kasan_check_read+0x11/0x20 [ 33.252071] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.256475] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.260884] ? initcall_blacklisted+0x9a/0x1e0 [ 33.265475] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.270586] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.276304] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.281838] ? do_vfs_ioctl+0x201/0x1720 [ 33.285896] ? rcu_is_watching+0x8c/0x150 [ 33.290035] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.294355] ? ioctl_preallocate+0x300/0x300 [ 33.298758] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.304295] ? __fget_light+0x2f7/0x440 [ 33.308265] ? fget_raw+0x20/0x20 [ 33.311717] ? putname+0xf2/0x130 [ 33.315169] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.320182] ? kmem_cache_free+0x246/0x280 [ 33.324411] ? putname+0xf7/0x130 [ 33.327873] do_group_exit+0x177/0x440 [ 33.331757] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.336070] ? __ia32_sys_exit+0x50/0x50 [ 33.340124] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.345221] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.350754] ? ksys_ioctl+0x81/0xd0 [ 33.354380] __x64_sys_exit_group+0x3e/0x50 [ 33.358708] do_syscall_64+0x1b9/0x820 [ 33.362595] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.367957] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.372882] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.377758] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.382768] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.387783] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.392628] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.397812] RIP: 0033:0x43ef08 [ 33.401000] Code: Bad RIP value. [ 33.404354] RSP: 002b:00007ffc8db261c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.412057] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 33.419318] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.426579] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.433840] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.441101] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.448371] [ 33.448376] ====================================================== [ 33.448381] WARNING: possible circular locking dependency detected [ 33.448385] 4.18.0+ #204 Not tainted [ 33.448390] ------------------------------------------------------ [ 33.448395] syz-executor835/4444 is trying to acquire lock: [ 33.448398] 00000000057e01d1 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.448413] [ 33.448417] but task is already holding lock: [ 33.448420] 000000008cf0dd11 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.448434] [ 33.448446] which lock already depends on the new lock. [ 33.448448] [ 33.448451] [ 33.448456] the existing dependency chain (in reverse order) is: [ 33.448458] [ 33.448460] -> #3 (report_lock){....}: [ 33.448475] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.448478] kasan_report+0x8e/0x110 [ 33.448483] __asan_report_load8_noabort+0x14/0x20 [ 33.448487] __schedule+0xf54/0x1df0 [ 33.448491] preempt_schedule_common+0x22/0x60 [ 33.448495] _cond_resched+0x1d/0x30 [ 33.448499] wait_for_completion+0xa5/0x8d0 [ 33.448503] __synchronize_srcu+0x189/0x240 [ 33.448507] synchronize_srcu+0x335/0x56f [ 33.448512] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.448516] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.448520] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.448524] kvm_put_kvm+0x73f/0x1060 [ 33.448528] kvm_vm_release+0x42/0x50 [ 33.448531] __fput+0x36e/0x8c0 [ 33.448535] ____fput+0x15/0x20 [ 33.448539] task_work_run+0x1e8/0x2a0 [ 33.448542] do_exit+0x1ae4/0x26e0 [ 33.448546] do_group_exit+0x177/0x440 [ 33.448550] __x64_sys_exit_group+0x3e/0x50 [ 33.448554] do_syscall_64+0x1b9/0x820 [ 33.448559] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.448561] [ 33.448563] -> #2 (&rq->lock){-.-.}: [ 33.448577] _raw_spin_lock+0x2a/0x40 [ 33.448581] task_fork_fair+0x93/0x680 [ 33.448585] sched_fork+0x44b/0xbd0 [ 33.448588] copy_process+0x235e/0x7ad0 [ 33.448592] _do_fork+0x1ca/0x1170 [ 33.448596] kernel_thread+0x34/0x40 [ 33.448599] rest_init+0x22/0xe4 [ 33.448603] start_kernel+0x913/0x94e [ 33.448607] x86_64_start_reservations+0x29/0x2b [ 33.448611] x86_64_start_kernel+0x76/0x79 [ 33.448615] secondary_startup_64+0xa4/0xb0 [ 33.448618] [ 33.448620] -> #1 (&p->pi_lock){-.-.}: [ 33.448634] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.448638] try_to_wake_up+0xd2/0x1250 [ 33.448642] wake_up_process+0x10/0x20 [ 33.448646] __up.isra.1+0x1c0/0x2a0 [ 33.448649] up+0x13c/0x1c0 [ 33.448653] __up_console_sem+0xbe/0x1b0 [ 33.448657] console_unlock+0x506/0x10d0 [ 33.448661] vprintk_emit+0x33a/0x910 [ 33.448665] vprintk_default+0x28/0x30 [ 33.448668] vprintk_func+0x7a/0x117 [ 33.448672] printk+0xa7/0xcf [ 33.448675] load_umh+0x51/0xbd [ 33.448679] do_one_initcall+0x127/0x838 [ 33.448683] kernel_init_freeable+0x4bb/0x5ae [ 33.448687] kernel_init+0x11/0x1b3 [ 33.448691] ret_from_fork+0x3a/0x50 [ 33.448693] [ 33.448695] -> #0 ((console_sem).lock){-...}: [ 33.448715] lock_acquire+0x1e4/0x4f0 [ 33.448719] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.448723] down_trylock+0x13/0x70 [ 33.448727] __down_trylock_console_sem+0xae/0x200 [ 33.448731] console_trylock+0x15/0xa0 [ 33.448735] vprintk_emit+0x31f/0x910 [ 33.448739] vprintk_default+0x28/0x30 [ 33.448742] vprintk_func+0x7a/0x117 [ 33.448746] printk+0xa7/0xcf [ 33.448749] kasan_report+0x9e/0x110 [ 33.448754] __asan_report_load8_noabort+0x14/0x20 [ 33.448757] __schedule+0xf54/0x1df0 [ 33.448762] preempt_schedule_common+0x22/0x60 [ 33.448765] _cond_resched+0x1d/0x30 [ 33.448769] wait_for_completion+0xa5/0x8d0 [ 33.448773] __synchronize_srcu+0x189/0x240 [ 33.448777] synchronize_srcu+0x335/0x56f [ 33.448782] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.448786] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.448790] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.448794] kvm_put_kvm+0x73f/0x1060 [ 33.448798] kvm_vm_release+0x42/0x50 [ 33.448801] __fput+0x36e/0x8c0 [ 33.448805] ____fput+0x15/0x20 [ 33.448809] task_work_run+0x1e8/0x2a0 [ 33.448812] do_exit+0x1ae4/0x26e0 [ 33.448816] do_group_exit+0x177/0x440 [ 33.448820] __x64_sys_exit_group+0x3e/0x50 [ 33.448824] do_syscall_64+0x1b9/0x820 [ 33.448829] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.448831] [ 33.448835] other info that might help us debug this: [ 33.448837] [ 33.448840] Chain exists of: [ 33.448843] (console_sem).lock --> &rq->lock --> report_lock [ 33.448860] [ 33.448864] Possible unsafe locking scenario: [ 33.448866] [ 33.448870] CPU0 CPU1 [ 33.448874] ---- ---- [ 33.448877] lock(report_lock); [ 33.448886] lock(&rq->lock); [ 33.448895] lock(report_lock); [ 33.448903] lock((console_sem).lock); [ 33.448911] [ 33.448914] *** DEADLOCK *** [ 33.448916] [ 33.448920] 2 locks held by syz-executor835/4444: [ 33.448922] #0: 0000000035e3136c (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.448939] #1: 000000008cf0dd11 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.448955] [ 33.448958] stack backtrace: [ 33.448964] CPU: 0 PID: 4444 Comm: syz-executor835 Not tainted 4.18.0+ #204 [ 33.448971] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.448974] Call Trace: [ 33.448977] dump_stack+0x1c9/0x2b4 [ 33.448982] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.448986] ? vprintk_func+0x100/0x117 [ 33.448990] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.448994] ? save_trace+0xe0/0x290 [ 33.449013] __lock_acquire+0x3449/0x5020 [ 33.449017] ? mark_held_locks+0x160/0x160 [ 33.449021] ? mark_held_locks+0x160/0x160 [ 33.449040] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.449044] ? is_bpf_text_address+0xd7/0x170 [ 33.449063] ? kernel_text_address+0x79/0xf0 [ 33.449067] ? __kernel_text_address+0xd/0x40 [ 33.449085] ? __save_stack_trace+0x8d/0xf0 [ 33.449089] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.449092] ? save_trace+0x290/0x290 [ 33.449096] ? save_stack_trace+0x1a/0x20 [ 33.449099] ? save_trace+0xe0/0x290 [ 33.449103] ? graph_lock+0x170/0x170 [ 33.449107] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.449111] lock_acquire+0x1e4/0x4f0 [ 33.449114] ? down_trylock+0x13/0x70 [ 33.449118] ? lock_release+0x9f0/0x9f0 [ 33.449122] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.449125] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.449129] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.449132] ? log_store+0x34f/0x4c0 [ 33.449136] ? vprintk_emit+0x31f/0x910 [ 33.449140] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.449143] ? down_trylock+0x13/0x70 [ 33.449147] down_trylock+0x13/0x70 [ 33.449151] __down_trylock_console_sem+0xae/0x200 [ 33.449154] console_trylock+0x15/0xa0 [ 33.449158] vprintk_emit+0x31f/0x910 [ 33.449161] ? wake_up_klogd+0x110/0x110 [ 33.449165] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.449169] ? kasan_check_read+0x11/0x20 [ 33.449172] ? rcu_is_watching+0x8c/0x150 [ 33.449176] ? rcu_pm_notify+0xc0/0xc0 [ 33.449180] ? lock_acquire+0x1e4/0x4f0 [ 33.449183] ? kasan_report+0x8e/0x110 [ 33.449187] ? __schedule+0xf54/0x1df0 [ 33.449190] vprintk_default+0x28/0x30 [ 33.449193] vprintk_func+0x7a/0x117 [ 33.449196] printk+0xa7/0xcf [ 33.449200] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.449205] ? kasan_check_write+0x14/0x20 [ 33.449209] ? do_raw_spin_lock+0xc1/0x200 [ 33.449212] ? do_raw_spin_lock+0xc1/0x200 [ 33.449216] kasan_report+0x9e/0x110 [ 33.449220] __asan_report_load8_noabort+0x14/0x20 [ 33.449223] __schedule+0xf54/0x1df0 [ 33.449227] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.449246] ? __sched_text_start+0x8/0x8 [ 33.449250] ? __call_srcu+0x7e7/0x1040 [ 33.449253] ? check_same_owner+0x340/0x340 [ 33.449257] ? mark_held_locks+0x160/0x160 [ 33.449261] ? find_held_lock+0x36/0x1c0 [ 33.449265] preempt_schedule_common+0x22/0x60 [ 33.449269] _cond_resched+0x1d/0x30 [ 33.449272] wait_for_completion+0xa5/0x8d0 [ 33.449277] ? wait_for_completion_interruptible+0x950/0x950 [ 33.449281] ? __lockdep_init_map+0x105/0x590 [ 33.449285] ? __init_waitqueue_head+0x9e/0x150 [ 33.449289] ? init_wait_entry+0x1c0/0x1c0 [ 33.449293] __synchronize_srcu+0x189/0x240 [ 33.449296] ? call_srcu+0x10/0x10 [ 33.449300] ? rcu_unexpedite_gp+0x20/0x20 [ 33.449304] synchronize_srcu+0x335/0x56f [ 33.449308] ? lock_downgrade+0x8f0/0x8f0 [ 33.449312] ? synchronize_srcu_expedited+0x20/0x20 [ 33.449316] ? kasan_check_read+0x11/0x20 [ 33.449320] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.449324] ? kasan_check_write+0x14/0x20 [ 33.449328] ? do_raw_spin_lock+0xc1/0x200 [ 33.449332] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.449353] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.449356] ? kvfree+0x61/0x70 [ 33.449361] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.449364] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.449368] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.449373] ? kvm_arch_sync_events+0x30/0x30 [ 33.449377] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.449397] ? mmu_notifier_unregister+0x474/0x600 [ 33.449401] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.449404] ? kfree+0x111/0x210 [ 33.449409] ? __mmu_notifier_register+0x30/0x30 [ 33.449412] ? __free_pages+0x10a/0x190 [ 33.449416] ? free_unref_page+0x930/0x930 [ 33.449420] kvm_put_kvm+0x73f/0x1060 [ 33.449424] ? kvm_write_guest_cached+0x40/0x40 [ 33.449428] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.449432] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.449436] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.449446] ? kasan_check_write+0x14/0x20 [ 33.449450] ? do_raw_spin_lock+0xc1/0x200 [ 33.449469] ? kvm_irqfd_release+0xdd/0x120 [ 33.449473] ? kvm_put_kvm+0x1060/0x1060 [ 33.449476] kvm_vm_release+0x42/0x50 [ 33.449480] __fput+0x36e/0x8c0 [ 33.449484] ? __alloc_file+0x400/0x400 [ 33.449488] ? check_same_owner+0x340/0x340 [ 33.449492] ? kasan_check_write+0x14/0x20 [ 33.449495] ? do_raw_spin_lock+0xc1/0x200 [ 33.449499] ____fput+0x15/0x20 [ 33.449503] task_work_run+0x1e8/0x2a0 [ 33.449507] ? task_work_cancel+0x240/0x240 [ 33.449511] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.449516] ? switch_task_namespaces+0xa2/0xd0 [ 33.449519] do_exit+0x1ae4/0x26e0 [ 33.449523] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.449527] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.449532] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.449535] ? kfree+0x1d7/0x210 [ 33.449539] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.449544] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.449548] ? is_bpf_text_address+0xd7/0x170 [ 33.449552] ? kernel_text_address+0x79/0xf0 [ 33.449555] ? __kern [ 33.449562] Lost 53 message(s)! [ 34.572353] Shutting down cpus with NMI [ 35.634649] Dumping ftrace buffer: [ 35.638168] (ftrace buffer empty) [ 35.641859] Kernel Offset: disabled [ 35.645475] Rebooting in 86400 seconds..