[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.860545] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.861982] random: sshd: uninitialized urandom read (32 bytes read) [ 28.197389] random: sshd: uninitialized urandom read (32 bytes read) [ 28.750244] random: sshd: uninitialized urandom read (32 bytes read) [ 28.933479] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.2' (ECDSA) to the list of known hosts. [ 34.662559] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.765521] 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. [ 34.790505] ================================================================== [ 34.800415] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.806645] Read of size 8 at addr ffff8801d9ae0058 by task syz-executor850/4477 [ 34.814170] [ 34.815806] CPU: 0 PID: 4477 Comm: syz-executor850 Not tainted 4.18.0+ #204 [ 34.822892] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.832236] Call Trace: [ 34.834827] dump_stack+0x1c9/0x2b4 [ 34.838476] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.843662] ? printk+0xa7/0xcf [ 34.846940] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.851696] ? __schedule+0xf54/0x1df0 [ 34.855585] print_address_description+0x6c/0x20b [ 34.860425] ? __schedule+0xf54/0x1df0 [ 34.864326] kasan_report.cold.7+0x242/0x30d [ 34.868743] __asan_report_load8_noabort+0x14/0x20 [ 34.873669] __schedule+0xf54/0x1df0 [ 34.877380] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.882486] ? __sched_text_start+0x8/0x8 [ 34.886631] ? __call_srcu+0x7e7/0x1040 [ 34.890612] ? check_same_owner+0x340/0x340 [ 34.894929] ? mark_held_locks+0x160/0x160 [ 34.899158] ? find_held_lock+0x36/0x1c0 [ 34.903221] preempt_schedule_common+0x22/0x60 [ 34.907802] _cond_resched+0x1d/0x30 [ 34.911511] wait_for_completion+0xa5/0x8d0 [ 34.915831] ? wait_for_completion_interruptible+0x950/0x950 [ 34.921625] ? __lockdep_init_map+0x105/0x590 [ 34.926120] ? __init_waitqueue_head+0x9e/0x150 [ 34.930783] ? init_wait_entry+0x1c0/0x1c0 [ 34.935021] __synchronize_srcu+0x189/0x240 [ 34.939339] ? call_srcu+0x10/0x10 [ 34.942879] ? rcu_unexpedite_gp+0x20/0x20 [ 34.947117] synchronize_srcu+0x335/0x56f [ 34.951263] ? lock_downgrade+0x8f0/0x8f0 [ 34.955408] ? synchronize_srcu_expedited+0x20/0x20 [ 34.960423] ? kasan_check_read+0x11/0x20 [ 34.964576] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.969154] ? kasan_check_write+0x14/0x20 [ 34.973394] ? do_raw_spin_lock+0xc1/0x200 [ 34.977632] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.983348] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.988800] ? kvfree+0x61/0x70 [ 34.992077] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.997090] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.001148] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.005558] ? kvm_arch_sync_events+0x30/0x30 [ 35.010052] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.015593] ? mmu_notifier_unregister+0x474/0x600 [ 35.020519] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.024923] ? kfree+0x111/0x210 [ 35.028302] ? __mmu_notifier_register+0x30/0x30 [ 35.033068] ? __free_pages+0x10a/0x190 [ 35.037063] ? free_unref_page+0x930/0x930 [ 35.041323] kvm_put_kvm+0x73f/0x1060 [ 35.045127] ? kvm_write_guest_cached+0x40/0x40 [ 35.049795] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.054288] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.058778] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.063363] ? kasan_check_write+0x14/0x20 [ 35.067608] ? do_raw_spin_lock+0xc1/0x200 [ 35.071839] ? kvm_irqfd_release+0xdd/0x120 [ 35.076162] ? kvm_put_kvm+0x1060/0x1060 [ 35.080219] kvm_vm_release+0x42/0x50 [ 35.084019] __fput+0x36e/0x8c0 [ 35.087295] ? __alloc_file+0x400/0x400 [ 35.091267] ? check_same_owner+0x340/0x340 [ 35.095584] ? kasan_check_write+0x14/0x20 [ 35.099818] ? do_raw_spin_lock+0xc1/0x200 [ 35.104050] ____fput+0x15/0x20 [ 35.107416] task_work_run+0x1e8/0x2a0 [ 35.111305] ? task_work_cancel+0x240/0x240 [ 35.115630] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.121167] ? switch_task_namespaces+0xa2/0xd0 [ 35.125831] do_exit+0x1ae4/0x26e0 [ 35.129371] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.134039] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.138275] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.143287] ? kfree+0x1d7/0x210 [ 35.146650] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.150882] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.156592] ? is_bpf_text_address+0xd7/0x170 [ 35.161082] ? kernel_text_address+0x79/0xf0 [ 35.165485] ? __kernel_text_address+0xd/0x40 [ 35.169980] ? unwind_get_return_address+0x61/0xa0 [ 35.174907] ? __save_stack_trace+0x8d/0xf0 [ 35.179235] ? save_stack+0xa9/0xd0 [ 35.182859] ? save_stack+0x43/0xd0 [ 35.186484] ? __kasan_slab_free+0x11a/0x170 [ 35.190886] ? kasan_slab_free+0xe/0x10 [ 35.194868] ? putname+0xf2/0x130 [ 35.198497] ? __x64_sys_openat+0x9d/0x100 [ 35.202734] ? do_syscall_64+0x1b9/0x820 [ 35.206794] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.212164] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.216569] ? kasan_check_read+0x11/0x20 [ 35.220717] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.225134] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.229538] ? initcall_blacklisted+0x9a/0x1e0 [ 35.234120] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.239222] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.244931] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.250471] ? do_vfs_ioctl+0x201/0x1720 [ 35.254535] ? rcu_is_watching+0x8c/0x150 [ 35.258674] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.262992] ? ioctl_preallocate+0x300/0x300 [ 35.267398] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.272930] ? __fget_light+0x2f7/0x440 [ 35.276899] ? fget_raw+0x20/0x20 [ 35.280343] ? putname+0xf2/0x130 [ 35.283801] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.288820] ? kmem_cache_free+0x246/0x280 [ 35.293050] ? putname+0xf7/0x130 [ 35.296504] do_group_exit+0x177/0x440 [ 35.300391] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.305086] ? __ia32_sys_exit+0x50/0x50 [ 35.309142] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.314242] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.319775] ? ksys_ioctl+0x81/0xd0 [ 35.323399] __x64_sys_exit_group+0x3e/0x50 [ 35.327725] do_syscall_64+0x1b9/0x820 [ 35.331611] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.336976] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.341904] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.346748] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.351760] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.356810] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.361657] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.366844] RIP: 0033:0x43ecc8 [ 35.370035] Code: Bad RIP value. [ 35.373392] RSP: 002b:00007fff00d477e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.381098] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 35.388357] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.395620] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.402885] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.410146] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.417416] [ 35.419053] Allocated by task 4477: [ 35.422674] save_stack+0x43/0xd0 [ 35.426122] kasan_kmalloc+0xc4/0xe0 [ 35.429845] kasan_slab_alloc+0x12/0x20 [ 35.433812] kmem_cache_alloc+0x12e/0x710 [ 35.437954] vmx_create_vcpu+0xcf/0x2830 [ 35.442011] kvm_arch_vcpu_create+0xe5/0x220 [ 35.446416] kvm_vm_ioctl+0x488/0x1d80 [ 35.450303] do_vfs_ioctl+0x1de/0x1720 [ 35.454185] ksys_ioctl+0xa9/0xd0 [ 35.457632] __x64_sys_ioctl+0x73/0xb0 [ 35.461516] do_syscall_64+0x1b9/0x820 [ 35.465399] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.470574] [ 35.472192] Freed by task 4477: [ 35.475476] save_stack+0x43/0xd0 [ 35.478922] __kasan_slab_free+0x11a/0x170 [ 35.483152] kasan_slab_free+0xe/0x10 [ 35.486943] kmem_cache_free+0x86/0x280 [ 35.490909] vmx_free_vcpu+0x26b/0x300 [ 35.494788] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.499192] kvm_put_kvm+0x73f/0x1060 [ 35.502988] kvm_vm_release+0x42/0x50 [ 35.506783] __fput+0x36e/0x8c0 [ 35.510056] ____fput+0x15/0x20 [ 35.513329] task_work_run+0x1e8/0x2a0 [ 35.517208] do_exit+0x1ae4/0x26e0 [ 35.520749] do_group_exit+0x177/0x440 [ 35.524626] __x64_sys_exit_group+0x3e/0x50 [ 35.528945] do_syscall_64+0x1b9/0x820 [ 35.532834] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.538007] [ 35.539627] The buggy address belongs to the object at ffff8801d9ae0040 [ 35.539627] which belongs to the cache kvm_vcpu of size 23872 [ 35.552196] The buggy address is located 24 bytes inside of [ 35.552196] 23872-byte region [ffff8801d9ae0040, ffff8801d9ae5d80) [ 35.564150] The buggy address belongs to the page: [ 35.569076] page:ffffea000766b800 count:1 mapcount:0 mapping:ffff8801d4beaa80 index:0x0 compound_mapcount: 0 [ 35.579038] flags: 0x2fffc0000008100(slab|head) [ 35.583710] raw: 02fffc0000008100 ffff8801d6f89148 ffff8801d6f89148 ffff8801d4beaa80 [ 35.591593] raw: 0000000000000000 ffff8801d9ae0040 0000000100000001 0000000000000000 [ 35.599466] page dumped because: kasan: bad access detected [ 35.605169] [ 35.606782] Memory state around the buggy address: [ 35.611702] ffff8801d9adff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.619055] ffff8801d9adff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.626403] >ffff8801d9ae0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.633752] ^ [ 35.639975] ffff8801d9ae0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.647327] ffff8801d9ae0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.654670] ================================================================== [ 35.662019] Kernel panic - not syncing: panic_on_warn set ... [ 35.662019] [ 35.669380] CPU: 0 PID: 4477 Comm: syz-executor850 Tainted: G B 4.18.0+ #204 [ 35.677856] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.687198] Call Trace: [ 35.689788] dump_stack+0x1c9/0x2b4 [ 35.693416] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.698610] ? lock_downgrade+0x8f0/0x8f0 [ 35.702752] ? __schedule+0xf54/0x1df0 [ 35.706638] panic+0x238/0x4e7 [ 35.709827] ? add_taint.cold.5+0x16/0x16 [ 35.713979] ? print_shadow_for_address+0xba/0x116 [ 35.718910] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.723309] ? trace_hardirqs_off+0x77/0x2b0 [ 35.727712] ? __schedule+0xf54/0x1df0 [ 35.731610] kasan_end_report+0x47/0x4f [ 35.735581] kasan_report.cold.7+0x76/0x30d [ 35.739902] __asan_report_load8_noabort+0x14/0x20 [ 35.744827] __schedule+0xf54/0x1df0 [ 35.748535] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.753638] ? __sched_text_start+0x8/0x8 [ 35.757788] ? __call_srcu+0x7e7/0x1040 [ 35.761767] ? check_same_owner+0x340/0x340 [ 35.766082] ? mark_held_locks+0x160/0x160 [ 35.770315] ? find_held_lock+0x36/0x1c0 [ 35.774376] preempt_schedule_common+0x22/0x60 [ 35.778953] _cond_resched+0x1d/0x30 [ 35.782661] wait_for_completion+0xa5/0x8d0 [ 35.786984] ? wait_for_completion_interruptible+0x950/0x950 [ 35.792780] ? __lockdep_init_map+0x105/0x590 [ 35.797274] ? __init_waitqueue_head+0x9e/0x150 [ 35.801937] ? init_wait_entry+0x1c0/0x1c0 [ 35.806176] __synchronize_srcu+0x189/0x240 [ 35.810514] ? call_srcu+0x10/0x10 [ 35.814054] ? rcu_unexpedite_gp+0x20/0x20 [ 35.818294] synchronize_srcu+0x335/0x56f [ 35.822449] ? lock_downgrade+0x8f0/0x8f0 [ 35.826598] ? synchronize_srcu_expedited+0x20/0x20 [ 35.831621] ? kasan_check_read+0x11/0x20 [ 35.835769] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.840347] ? kasan_check_write+0x14/0x20 [ 35.844580] ? do_raw_spin_lock+0xc1/0x200 [ 35.848818] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.854528] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.859976] ? kvfree+0x61/0x70 [ 35.863253] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.868266] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.872336] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.876745] ? kvm_arch_sync_events+0x30/0x30 [ 35.881240] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.886787] ? mmu_notifier_unregister+0x474/0x600 [ 35.891712] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.896121] ? kfree+0x111/0x210 [ 35.899489] ? __mmu_notifier_register+0x30/0x30 [ 35.904242] ? __free_pages+0x10a/0x190 [ 35.908213] ? free_unref_page+0x930/0x930 [ 35.912460] kvm_put_kvm+0x73f/0x1060 [ 35.916270] ? kvm_write_guest_cached+0x40/0x40 [ 35.921026] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.925516] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.930005] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.934589] ? kasan_check_write+0x14/0x20 [ 35.938819] ? do_raw_spin_lock+0xc1/0x200 [ 35.943055] ? kvm_irqfd_release+0xdd/0x120 [ 35.947375] ? kvm_put_kvm+0x1060/0x1060 [ 35.951435] kvm_vm_release+0x42/0x50 [ 35.955245] __fput+0x36e/0x8c0 [ 35.958532] ? __alloc_file+0x400/0x400 [ 35.962513] ? check_same_owner+0x340/0x340 [ 35.966839] ? kasan_check_write+0x14/0x20 [ 35.971070] ? do_raw_spin_lock+0xc1/0x200 [ 35.975305] ____fput+0x15/0x20 [ 35.978581] task_work_run+0x1e8/0x2a0 [ 35.982470] ? task_work_cancel+0x240/0x240 [ 35.986796] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.992331] ? switch_task_namespaces+0xa2/0xd0 [ 35.996998] do_exit+0x1ae4/0x26e0 [ 36.000545] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.005218] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.009460] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.014482] ? kfree+0x1d7/0x210 [ 36.017845] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.022076] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.027783] ? is_bpf_text_address+0xd7/0x170 [ 36.032276] ? kernel_text_address+0x79/0xf0 [ 36.036690] ? __kernel_text_address+0xd/0x40 [ 36.041186] ? unwind_get_return_address+0x61/0xa0 [ 36.046113] ? __save_stack_trace+0x8d/0xf0 [ 36.050438] ? save_stack+0xa9/0xd0 [ 36.054070] ? save_stack+0x43/0xd0 [ 36.057691] ? __kasan_slab_free+0x11a/0x170 [ 36.062100] ? kasan_slab_free+0xe/0x10 [ 36.066071] ? putname+0xf2/0x130 [ 36.069519] ? __x64_sys_openat+0x9d/0x100 [ 36.073755] ? do_syscall_64+0x1b9/0x820 [ 36.077815] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.083174] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.087575] ? kasan_check_read+0x11/0x20 [ 36.091726] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.096128] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.100540] ? initcall_blacklisted+0x9a/0x1e0 [ 36.105123] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.110227] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.115937] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.121476] ? do_vfs_ioctl+0x201/0x1720 [ 36.125531] ? rcu_is_watching+0x8c/0x150 [ 36.129687] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.134027] ? ioctl_preallocate+0x300/0x300 [ 36.138435] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.143983] ? __fget_light+0x2f7/0x440 [ 36.147959] ? fget_raw+0x20/0x20 [ 36.151408] ? putname+0xf2/0x130 [ 36.154873] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.159889] ? kmem_cache_free+0x246/0x280 [ 36.164121] ? putname+0xf7/0x130 [ 36.167575] do_group_exit+0x177/0x440 [ 36.171466] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.175784] ? __ia32_sys_exit+0x50/0x50 [ 36.179842] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.184944] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.190481] ? ksys_ioctl+0x81/0xd0 [ 36.194106] __x64_sys_exit_group+0x3e/0x50 [ 36.198955] do_syscall_64+0x1b9/0x820 [ 36.202844] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.209163] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.214090] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.218937] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.223951] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.228965] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.233813] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.238995] RIP: 0033:0x43ecc8 [ 36.242186] Code: Bad RIP value. [ 36.245545] RSP: 002b:00007fff00d477e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.253249] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.260511] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.267774] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.275039] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.282307] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.289588] [ 36.289593] ====================================================== [ 36.289598] WARNING: possible circular locking dependency detected [ 36.289602] 4.18.0+ #204 Not tainted [ 36.289607] ------------------------------------------------------ [ 36.289611] syz-executor850/4477 is trying to acquire lock: [ 36.289615] 0000000012095786 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.289629] [ 36.289633] but task is already holding lock: [ 36.289636] 00000000d873e088 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.289649] [ 36.289654] which lock already depends on the new lock. [ 36.289656] [ 36.289658] [ 36.289663] the existing dependency chain (in reverse order) is: [ 36.289665] [ 36.289667] -> #3 (report_lock){....}: [ 36.289681] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.289685] kasan_report+0x8e/0x110 [ 36.289689] __asan_report_load8_noabort+0x14/0x20 [ 36.289693] __schedule+0xf54/0x1df0 [ 36.289697] preempt_schedule_common+0x22/0x60 [ 36.289701] _cond_resched+0x1d/0x30 [ 36.289705] wait_for_completion+0xa5/0x8d0 [ 36.289709] __synchronize_srcu+0x189/0x240 [ 36.289712] synchronize_srcu+0x335/0x56f [ 36.289717] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.289727] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.289731] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.289734] kvm_put_kvm+0x73f/0x1060 [ 36.289738] kvm_vm_release+0x42/0x50 [ 36.289741] __fput+0x36e/0x8c0 [ 36.289745] ____fput+0x15/0x20 [ 36.289748] task_work_run+0x1e8/0x2a0 [ 36.289752] do_exit+0x1ae4/0x26e0 [ 36.289756] do_group_exit+0x177/0x440 [ 36.289760] __x64_sys_exit_group+0x3e/0x50 [ 36.289763] do_syscall_64+0x1b9/0x820 [ 36.289768] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.289770] [ 36.289772] -> #2 (&rq->lock){-.-.}: [ 36.289786] _raw_spin_lock+0x2a/0x40 [ 36.289789] task_fork_fair+0x93/0x680 [ 36.289793] sched_fork+0x44b/0xbd0 [ 36.289797] copy_process+0x235e/0x7ad0 [ 36.289800] _do_fork+0x1ca/0x1170 [ 36.289804] kernel_thread+0x34/0x40 [ 36.289807] rest_init+0x22/0xe4 [ 36.289811] start_kernel+0x913/0x94e [ 36.289815] x86_64_start_reservations+0x29/0x2b [ 36.289819] x86_64_start_kernel+0x76/0x79 [ 36.289823] secondary_startup_64+0xa4/0xb0 [ 36.289825] [ 36.289827] -> #1 (&p->pi_lock){-.-.}: [ 36.289841] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.289845] try_to_wake_up+0xd2/0x1250 [ 36.289848] wake_up_process+0x10/0x20 [ 36.289852] __up.isra.1+0x1c0/0x2a0 [ 36.289855] up+0x13c/0x1c0 [ 36.289859] __up_console_sem+0xbe/0x1b0 [ 36.289863] console_unlock+0x506/0x10d0 [ 36.289866] vprintk_emit+0x33a/0x910 [ 36.289870] vprintk_default+0x28/0x30 [ 36.289874] vprintk_func+0x7a/0x117 [ 36.289877] printk+0xa7/0xcf [ 36.289880] load_umh+0x51/0xbd [ 36.289884] do_one_initcall+0x127/0x838 [ 36.289888] kernel_init_freeable+0x4bb/0x5ae [ 36.289892] kernel_init+0x11/0x1b3 [ 36.289895] ret_from_fork+0x3a/0x50 [ 36.289897] [ 36.289900] -> #0 ((console_sem).lock){-...}: [ 36.289913] lock_acquire+0x1e4/0x4f0 [ 36.289918] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.289921] down_trylock+0x13/0x70 [ 36.289925] __down_trylock_console_sem+0xae/0x200 [ 36.289929] console_trylock+0x15/0xa0 [ 36.289933] vprintk_emit+0x31f/0x910 [ 36.289936] vprintk_default+0x28/0x30 [ 36.289940] vprintk_func+0x7a/0x117 [ 36.289943] printk+0xa7/0xcf [ 36.289947] kasan_report+0x9e/0x110 [ 36.289951] __asan_report_load8_noabort+0x14/0x20 [ 36.289955] __schedule+0xf54/0x1df0 [ 36.289959] preempt_schedule_common+0x22/0x60 [ 36.289962] _cond_resched+0x1d/0x30 [ 36.289966] wait_for_completion+0xa5/0x8d0 [ 36.289970] __synchronize_srcu+0x189/0x240 [ 36.289974] synchronize_srcu+0x335/0x56f [ 36.289979] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.289982] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.289986] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.289990] kvm_put_kvm+0x73f/0x1060 [ 36.289994] kvm_vm_release+0x42/0x50 [ 36.289997] __fput+0x36e/0x8c0 [ 36.290000] ____fput+0x15/0x20 [ 36.290004] task_work_run+0x1e8/0x2a0 [ 36.290008] do_exit+0x1ae4/0x26e0 [ 36.290011] do_group_exit+0x177/0x440 [ 36.290015] __x64_sys_exit_group+0x3e/0x50 [ 36.290019] do_syscall_64+0x1b9/0x820 [ 36.290023] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.290026] [ 36.290030] other info that might help us debug this: [ 36.290032] [ 36.290035] Chain exists of: [ 36.290037] (console_sem).lock --> &rq->lock --> report_lock [ 36.290055] [ 36.290058] Possible unsafe locking scenario: [ 36.290061] [ 36.290064] CPU0 CPU1 [ 36.290068] ---- ---- [ 36.290070] lock(report_lock); [ 36.290079] lock(&rq->lock); [ 36.290088] lock(report_lock); [ 36.290096] lock((console_sem).lock); [ 36.290104] [ 36.290107] *** DEADLOCK *** [ 36.290109] [ 36.290113] 2 locks held by syz-executor850/4477: [ 36.290115] #0: 000000001daee410 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.290131] #1: 00000000d873e088 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.290147] [ 36.290150] stack backtrace: [ 36.290156] CPU: 0 PID: 4477 Comm: syz-executor850 Not tainted 4.18.0+ #204 [ 36.290162] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.290165] Call Trace: [ 36.290169] dump_stack+0x1c9/0x2b4 [ 36.290173] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.290177] ? vprintk_func+0x100/0x117 [ 36.290181] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.290185] ? save_trace+0xe0/0x290 [ 36.290189] __lock_acquire+0x3449/0x5020 [ 36.290193] ? mark_held_locks+0x160/0x160 [ 36.290196] ? mark_held_locks+0x160/0x160 [ 36.290201] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.290204] ? is_bpf_text_address+0xd7/0x170 [ 36.290208] ? kernel_text_address+0x79/0xf0 [ 36.290212] ? __kernel_text_address+0xd/0x40 [ 36.290216] ? __save_stack_trace+0x8d/0xf0 [ 36.290221] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.290225] ? save_trace+0x290/0x290 [ 36.290229] ? save_stack_trace+0x1a/0x20 [ 36.290232] ? save_trace+0xe0/0x290 [ 36.290236] ? graph_lock+0x170/0x170 [ 36.290241] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.290244] lock_acquire+0x1e4/0x4f0 [ 36.290248] ? down_trylock+0x13/0x70 [ 36.290251] ? lock_release+0x9f0/0x9f0 [ 36.290255] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.290259] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.290263] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.290267] ? log_store+0x34f/0x4c0 [ 36.290270] ? vprintk_emit+0x31f/0x910 [ 36.290274] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.290278] ? down_trylock+0x13/0x70 [ 36.290282] down_trylock+0x13/0x70 [ 36.290286] __down_trylock_console_sem+0xae/0x200 [ 36.290289] console_trylock+0x15/0xa0 [ 36.290293] vprintk_emit+0x31f/0x910 [ 36.290297] ? wake_up_klogd+0x110/0x110 [ 36.290301] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.290305] ? kasan_check_read+0x11/0x20 [ 36.290309] ? rcu_is_watching+0x8c/0x150 [ 36.290312] ? rcu_pm_notify+0xc0/0xc0 [ 36.290316] ? lock_acquire+0x1e4/0x4f0 [ 36.290319] ? kasan_report+0x8e/0x110 [ 36.290323] ? __schedule+0xf54/0x1df0 [ 36.290327] vprintk_default+0x28/0x30 [ 36.290330] vprintk_func+0x7a/0x117 [ 36.290334] printk+0xa7/0xcf [ 36.290338] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.290342] ? kasan_check_write+0x14/0x20 [ 36.290346] ? do_raw_spin_lock+0xc1/0x200 [ 36.290349] ? do_raw_spin_lock+0xc1/0x200 [ 36.290353] kasan_report+0x9e/0x110 [ 36.290357] __asan_report_load8_noabort+0x14/0x20 [ 36.290361] __schedule+0xf54/0x1df0 [ 36.290365] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.290369] ? __sched_text_start+0x8/0x8 [ 36.290373] ? __call_srcu+0x7e7/0x1040 [ 36.290377] ? check_same_owner+0x340/0x340 [ 36.290380] ? mark_held_locks+0x160/0x160 [ 36.290384] ? find_held_lock+0x36/0x1c0 [ 36.290388] preempt_schedule_common+0x22/0x60 [ 36.290392] _cond_resched+0x1d/0x30 [ 36.290396] wait_for_completion+0xa5/0x8d0 [ 36.290401] ? wait_for_completion_interruptible+0x950/0x950 [ 36.290405] ? __lockdep_init_map+0x105/0x590 [ 36.290409] ? __init_waitqueue_head+0x9e/0x150 [ 36.290413] ? init_wait_entry+0x1c0/0x1c0 [ 36.290416] __synchronize_srcu+0x189/0x240 [ 36.290420] ? call_srcu+0x10/0x10 [ 36.290424] ? rcu_unexpedite_gp+0x20/0x20 [ 36.290428] synchronize_srcu+0x335/0x56f [ 36.290431] ? lock_downgrade+0x8f0/0x8f0 [ 36.290436] ? synchronize_srcu_expedited+0x20/0x20 [ 36.290440] ? kasan_check_read+0x11/0x20 [ 36.290451] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.290455] ? kasan_check_write+0x14/0x20 [ 36.290459] ? do_raw_spin_lock+0xc1/0x200 [ 36.290464] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.290468] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.290472] ? kvfree+0x61/0x70 [ 36.290476] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.290480] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.290484] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.290488] ? kvm_arch_sync_events+0x30/0x30 [ 36.290492] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.290496] ? mmu_notifier_unregister+0x474/0x600 [ 36.290500] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.290504] ? kfree+0x111/0x210 [ 36.290508] ? __mmu_notifier_register+0x30/0x30 [ 36.290512] ? __free_pages+0x10a/0x190 [ 36.290516] ? free_unref_page+0x930/0x930 [ 36.290519] kvm_put_kvm+0x73f/0x1060 [ 36.290523] ? kvm_write_guest_cached+0x40/0x40 [ 36.290527] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.290531] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.290535] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.290539] ? kasan_check_write+0x14/0x20 [ 36.290543] ? do_raw_spin_lock+0xc1/0x200 [ 36.290547] ? kvm_irqfd_release+0xdd/0x120 [ 36.290551] ? kvm_put_kvm+0x1060/0x1060 [ 36.290554] kvm_vm_release+0x42/0x50 [ 36.290558] __fput+0x36e/0x8c0 [ 36.290561] ? __alloc_file+0x400/0x400 [ 36.290565] ? check_same_owner+0x340/0x340 [ 36.290569] ? kasan_check_write+0x14/0x20 [ 36.290573] ? do_raw_spin_lock+0xc1/0x200 [ 36.290576] ____fput+0x15/0x20 [ 36.290580] task_work_run+0x1e8/0x2a0 [ 36.290584] ? task_work_cancel+0x240/0x240 [ 36.290588] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.290593] ? switch_task_namespaces+0xa2/0xd0 [ 36.290596] do_exit+0x1ae4/0x26e0 [ 36.290600] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.290604] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.290608] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.290612] ? kfree+0x1d7/0x210 [ 36.290616] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.290620] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.290624] ? is_bpf_text_address+0xd7/0x170 [ 36.290628] ? kernel_text_address+0x79/0xf0 [ 36.290631] ? __kern [ 36.290638] Lost 53 message(s)! [ 37.368850] Shutting down cpus with NMI [ 38.428519] Dumping ftrace buffer: [ 38.432064] (ftrace buffer empty) [ 38.435755] Kernel Offset: disabled [ 38.439366] Rebooting in 86400 seconds..