[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 25.058205] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 29.031759] random: sshd: uninitialized urandom read (32 bytes read) [ 29.529057] random: sshd: uninitialized urandom read (32 bytes read) [ 30.083676] random: sshd: uninitialized urandom read (32 bytes read) [ 30.264299] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.55' (ECDSA) to the list of known hosts. [ 35.918832] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 36.019952] 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. [ 36.047914] ================================================================== [ 36.056676] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 36.063006] Read of size 8 at addr ffff8801d9498058 by task syz-executor866/4693 [ 36.070514] [ 36.072136] CPU: 1 PID: 4693 Comm: syz-executor866 Not tainted 4.19.0-rc1+ #216 [ 36.079690] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.089027] Call Trace: [ 36.091606] dump_stack+0x1c9/0x2b4 [ 36.095220] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.100430] ? printk+0xa7/0xcf [ 36.103772] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.108560] ? __schedule+0xf54/0x1df0 [ 36.112439] print_address_description+0x6c/0x20b [ 36.117275] ? __schedule+0xf54/0x1df0 [ 36.121151] kasan_report.cold.7+0x242/0x30d [ 36.125570] __asan_report_load8_noabort+0x14/0x20 [ 36.130514] __schedule+0xf54/0x1df0 [ 36.134218] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.139314] ? __sched_text_start+0x8/0x8 [ 36.143453] ? __call_srcu+0x7e7/0x1040 [ 36.147420] ? check_same_owner+0x340/0x340 [ 36.151724] ? mark_held_locks+0x160/0x160 [ 36.155939] ? find_held_lock+0x36/0x1c0 [ 36.159981] preempt_schedule_common+0x22/0x60 [ 36.164799] _cond_resched+0x1d/0x30 [ 36.168499] wait_for_completion+0xa5/0x8d0 [ 36.172811] ? wait_for_completion_interruptible+0x950/0x950 [ 36.178598] ? __lockdep_init_map+0x105/0x590 [ 36.183081] ? __init_waitqueue_head+0x9e/0x150 [ 36.187737] ? init_wait_entry+0x1c0/0x1c0 [ 36.191955] __synchronize_srcu+0x189/0x240 [ 36.196282] ? call_srcu+0x10/0x10 [ 36.199832] ? rcu_unexpedite_gp+0x20/0x20 [ 36.204056] synchronize_srcu+0x335/0x56f [ 36.208191] ? lock_downgrade+0x8f0/0x8f0 [ 36.212331] ? synchronize_srcu_expedited+0x20/0x20 [ 36.217339] ? kasan_check_read+0x11/0x20 [ 36.221476] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.226039] ? kasan_check_write+0x14/0x20 [ 36.230262] ? do_raw_spin_lock+0xc1/0x200 [ 36.234507] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.240213] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.245748] ? kvfree+0x61/0x70 [ 36.249014] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.254016] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.258063] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.262460] ? kvm_arch_sync_events+0x30/0x30 [ 36.266942] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.272540] ? mmu_notifier_unregister+0x474/0x600 [ 36.277457] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.281888] ? kfree+0x111/0x210 [ 36.285269] ? __mmu_notifier_register+0x30/0x30 [ 36.290026] ? __free_pages+0x10a/0x190 [ 36.293985] ? free_unref_page+0x930/0x930 [ 36.298215] kvm_put_kvm+0x73f/0x1060 [ 36.302129] ? kvm_write_guest_cached+0x40/0x40 [ 36.306788] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.311273] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.315860] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.320429] ? kasan_check_write+0x14/0x20 [ 36.324733] ? do_raw_spin_lock+0xc1/0x200 [ 36.328957] ? kvm_irqfd_release+0xdd/0x120 [ 36.333264] ? kvm_irqfd_release+0xdd/0x120 [ 36.337580] ? kvm_put_kvm+0x1060/0x1060 [ 36.341636] kvm_vm_release+0x42/0x50 [ 36.345437] __fput+0x38a/0xa40 [ 36.348705] ? __alloc_file+0x400/0x400 [ 36.352666] ? check_same_owner+0x340/0x340 [ 36.356972] ? kasan_check_write+0x14/0x20 [ 36.361190] ? do_raw_spin_lock+0xc1/0x200 [ 36.365416] ____fput+0x15/0x20 [ 36.368679] task_work_run+0x1e8/0x2a0 [ 36.372647] ? task_work_cancel+0x240/0x240 [ 36.376957] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.382589] ? switch_task_namespaces+0xa2/0xd0 [ 36.387386] do_exit+0x1ae4/0x26e0 [ 36.390929] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.395626] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.399862] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.404862] ? kfree+0x1d7/0x210 [ 36.408232] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.412472] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.418171] ? is_bpf_text_address+0xd7/0x170 [ 36.422662] ? kernel_text_address+0x79/0xf0 [ 36.427057] ? __kernel_text_address+0xd/0x40 [ 36.431541] ? unwind_get_return_address+0x61/0xa0 [ 36.436468] ? __save_stack_trace+0x8d/0xf0 [ 36.440791] ? save_stack+0xa9/0xd0 [ 36.444421] ? save_stack+0x43/0xd0 [ 36.448046] ? __kasan_slab_free+0x11a/0x170 [ 36.452439] ? kasan_slab_free+0xe/0x10 [ 36.456409] ? putname+0xf2/0x130 [ 36.459852] ? __x64_sys_openat+0x9d/0x100 [ 36.464083] ? do_syscall_64+0x1b9/0x820 [ 36.468128] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.473479] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.477893] ? kasan_check_read+0x11/0x20 [ 36.482023] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.486422] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.490814] ? initcall_blacklisted+0x9a/0x1e0 [ 36.495381] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.500476] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.506209] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.511734] ? do_vfs_ioctl+0x201/0x1720 [ 36.515780] ? rcu_is_watching+0x8c/0x150 [ 36.519911] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.524228] ? ioctl_preallocate+0x300/0x300 [ 36.528639] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.534161] ? __fget_light+0x2f7/0x440 [ 36.538130] ? fget_raw+0x20/0x20 [ 36.541565] ? putname+0xf2/0x130 [ 36.545106] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.550107] ? kmem_cache_free+0x246/0x280 [ 36.554427] ? putname+0xf7/0x130 [ 36.557915] do_group_exit+0x177/0x440 [ 36.561826] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.566130] ? __ia32_sys_exit+0x50/0x50 [ 36.570215] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.575314] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.580834] ? ksys_ioctl+0x81/0xd0 [ 36.584447] __x64_sys_exit_group+0x3e/0x50 [ 36.588756] do_syscall_64+0x1b9/0x820 [ 36.592629] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.597978] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.602893] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.607721] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.612723] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.617726] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.622729] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.627561] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.632733] RIP: 0033:0x43ecc8 [ 36.635911] Code: Bad RIP value. [ 36.639266] RSP: 002b:00007ffe25063428 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.646959] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.654208] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.661461] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.668757] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.676025] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.683301] [ 36.684914] Allocated by task 4693: [ 36.688526] save_stack+0x43/0xd0 [ 36.691961] kasan_kmalloc+0xc4/0xe0 [ 36.695658] kasan_slab_alloc+0x12/0x20 [ 36.699617] kmem_cache_alloc+0x12e/0x710 [ 36.703753] vmx_create_vcpu+0xcf/0x2830 [ 36.707839] kvm_arch_vcpu_create+0xe5/0x220 [ 36.712244] kvm_vm_ioctl+0x488/0x1d80 [ 36.716379] do_vfs_ioctl+0x1de/0x1720 [ 36.720281] ksys_ioctl+0xa9/0xd0 [ 36.723723] __x64_sys_ioctl+0x73/0xb0 [ 36.727594] do_syscall_64+0x1b9/0x820 [ 36.731482] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.736647] [ 36.738262] Freed by task 4693: [ 36.741528] save_stack+0x43/0xd0 [ 36.744966] __kasan_slab_free+0x11a/0x170 [ 36.749186] kasan_slab_free+0xe/0x10 [ 36.752967] kmem_cache_free+0x86/0x280 [ 36.756925] vmx_free_vcpu+0x26b/0x300 [ 36.760798] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.765192] kvm_put_kvm+0x73f/0x1060 [ 36.768978] kvm_vm_release+0x42/0x50 [ 36.772761] __fput+0x38a/0xa40 [ 36.776022] ____fput+0x15/0x20 [ 36.779285] task_work_run+0x1e8/0x2a0 [ 36.783155] do_exit+0x1ae4/0x26e0 [ 36.786678] do_group_exit+0x177/0x440 [ 36.790548] __x64_sys_exit_group+0x3e/0x50 [ 36.794852] do_syscall_64+0x1b9/0x820 [ 36.798724] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.803969] [ 36.805591] The buggy address belongs to the object at ffff8801d9498040 [ 36.805591] which belongs to the cache kvm_vcpu of size 23872 [ 36.818247] The buggy address is located 24 bytes inside of [ 36.818247] 23872-byte region [ffff8801d9498040, ffff8801d949dd80) [ 36.830216] The buggy address belongs to the page: [ 36.835139] page:ffffea0007652600 count:1 mapcount:0 mapping:ffff8801d526f9c0 index:0x0 compound_mapcount: 0 [ 36.845093] flags: 0x2fffc0000008100(slab|head) [ 36.849750] raw: 02fffc0000008100 ffff8801d526c548 ffff8801d526c548 ffff8801d526f9c0 [ 36.857619] raw: 0000000000000000 ffff8801d9498040 0000000100000001 0000000000000000 [ 36.865499] page dumped because: kasan: bad access detected [ 36.871186] [ 36.872805] Memory state around the buggy address: [ 36.877738] ffff8801d9497f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.885090] ffff8801d9497f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.892443] >ffff8801d9498000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.899886] ^ [ 36.906098] ffff8801d9498080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.913437] ffff8801d9498100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.920775] ================================================================== [ 36.928115] Kernel panic - not syncing: panic_on_warn set ... [ 36.928115] [ 36.935463] CPU: 1 PID: 4693 Comm: syz-executor866 Tainted: G B 4.19.0-rc1+ #216 [ 36.944280] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.953614] Call Trace: [ 36.956188] dump_stack+0x1c9/0x2b4 [ 36.959805] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.964982] ? lock_downgrade+0x8f0/0x8f0 [ 36.969157] ? __schedule+0xf54/0x1df0 [ 36.973034] panic+0x238/0x4e7 [ 36.976212] ? add_taint.cold.5+0x16/0x16 [ 36.980349] ? print_shadow_for_address+0xba/0x116 [ 36.985289] ? trace_hardirqs_off+0xaf/0x2b0 [ 36.989684] ? trace_hardirqs_off+0x77/0x2b0 [ 36.994080] ? __schedule+0xf54/0x1df0 [ 36.998088] kasan_end_report+0x47/0x4f [ 37.002063] kasan_report.cold.7+0x76/0x30d [ 37.006369] __asan_report_load8_noabort+0x14/0x20 [ 37.011299] __schedule+0xf54/0x1df0 [ 37.015014] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.020118] ? __sched_text_start+0x8/0x8 [ 37.024251] ? __call_srcu+0x7e7/0x1040 [ 37.028214] ? check_same_owner+0x340/0x340 [ 37.032518] ? mark_held_locks+0x160/0x160 [ 37.036740] ? find_held_lock+0x36/0x1c0 [ 37.040849] preempt_schedule_common+0x22/0x60 [ 37.045482] _cond_resched+0x1d/0x30 [ 37.049188] wait_for_completion+0xa5/0x8d0 [ 37.053492] ? wait_for_completion_interruptible+0x950/0x950 [ 37.059280] ? __lockdep_init_map+0x105/0x590 [ 37.063802] ? __init_waitqueue_head+0x9e/0x150 [ 37.068468] ? init_wait_entry+0x1c0/0x1c0 [ 37.072691] __synchronize_srcu+0x189/0x240 [ 37.076993] ? call_srcu+0x10/0x10 [ 37.080515] ? rcu_unexpedite_gp+0x20/0x20 [ 37.084781] synchronize_srcu+0x335/0x56f [ 37.088922] ? lock_downgrade+0x8f0/0x8f0 [ 37.093053] ? synchronize_srcu_expedited+0x20/0x20 [ 37.098053] ? kasan_check_read+0x11/0x20 [ 37.102244] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.106821] ? kasan_check_write+0x14/0x20 [ 37.111039] ? do_raw_spin_lock+0xc1/0x200 [ 37.115318] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.121017] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.126451] ? kvfree+0x61/0x70 [ 37.129719] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.134758] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.138810] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.143250] ? kvm_arch_sync_events+0x30/0x30 [ 37.147739] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.153258] ? mmu_notifier_unregister+0x474/0x600 [ 37.158169] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.162606] ? kfree+0x111/0x210 [ 37.165962] ? __mmu_notifier_register+0x30/0x30 [ 37.170702] ? __free_pages+0x10a/0x190 [ 37.174658] ? free_unref_page+0x930/0x930 [ 37.178879] kvm_put_kvm+0x73f/0x1060 [ 37.182665] ? kvm_write_guest_cached+0x40/0x40 [ 37.187322] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.191797] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.196278] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.200854] ? kasan_check_write+0x14/0x20 [ 37.205071] ? do_raw_spin_lock+0xc1/0x200 [ 37.209291] ? kvm_irqfd_release+0xdd/0x120 [ 37.213693] ? kvm_irqfd_release+0xdd/0x120 [ 37.218003] ? kvm_put_kvm+0x1060/0x1060 [ 37.222083] kvm_vm_release+0x42/0x50 [ 37.225871] __fput+0x38a/0xa40 [ 37.229131] ? __alloc_file+0x400/0x400 [ 37.233089] ? check_same_owner+0x340/0x340 [ 37.237406] ? kasan_check_write+0x14/0x20 [ 37.241623] ? do_raw_spin_lock+0xc1/0x200 [ 37.245842] ____fput+0x15/0x20 [ 37.249113] task_work_run+0x1e8/0x2a0 [ 37.252983] ? task_work_cancel+0x240/0x240 [ 37.257287] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.262811] ? switch_task_namespaces+0xa2/0xd0 [ 37.267470] do_exit+0x1ae4/0x26e0 [ 37.270994] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.275646] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.279975] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.284980] ? kfree+0x1d7/0x210 [ 37.288335] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.292555] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.298359] ? is_bpf_text_address+0xd7/0x170 [ 37.302947] ? kernel_text_address+0x79/0xf0 [ 37.307341] ? __kernel_text_address+0xd/0x40 [ 37.311826] ? unwind_get_return_address+0x61/0xa0 [ 37.316746] ? __save_stack_trace+0x8d/0xf0 [ 37.321063] ? save_stack+0xa9/0xd0 [ 37.324673] ? save_stack+0x43/0xd0 [ 37.328451] ? __kasan_slab_free+0x11a/0x170 [ 37.332843] ? kasan_slab_free+0xe/0x10 [ 37.336802] ? putname+0xf2/0x130 [ 37.340237] ? __x64_sys_openat+0x9d/0x100 [ 37.344456] ? do_syscall_64+0x1b9/0x820 [ 37.348591] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.353947] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.358339] ? kasan_check_read+0x11/0x20 [ 37.362470] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.366862] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.371261] ? initcall_blacklisted+0x9a/0x1e0 [ 37.375828] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.380922] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.386621] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.392152] ? do_vfs_ioctl+0x201/0x1720 [ 37.396196] ? rcu_is_watching+0x8c/0x150 [ 37.400330] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.404640] ? ioctl_preallocate+0x300/0x300 [ 37.409031] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.414558] ? __fget_light+0x2f7/0x440 [ 37.418524] ? fget_raw+0x20/0x20 [ 37.421961] ? putname+0xf2/0x130 [ 37.425406] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.430492] ? kmem_cache_free+0x246/0x280 [ 37.434714] ? putname+0xf7/0x130 [ 37.438156] do_group_exit+0x177/0x440 [ 37.442026] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.446331] ? __ia32_sys_exit+0x50/0x50 [ 37.450374] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.455576] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.461097] ? ksys_ioctl+0x81/0xd0 [ 37.464706] __x64_sys_exit_group+0x3e/0x50 [ 37.469013] do_syscall_64+0x1b9/0x820 [ 37.472884] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.478239] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.483153] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.488071] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.493074] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.498073] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.503071] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.507898] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.513168] RIP: 0033:0x43ecc8 [ 37.516359] Code: Bad RIP value. [ 37.519704] RSP: 002b:00007ffe25063428 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.527402] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 37.534672] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.541926] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.549181] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.556434] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.564133] [ 37.564137] ====================================================== [ 37.564140] WARNING: possible circular locking dependency detected [ 37.564142] 4.19.0-rc1+ #216 Not tainted [ 37.564145] ------------------------------------------------------ [ 37.564148] syz-executor866/4693 is trying to acquire lock: [ 37.564150] 00000000efa98992 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.564159] [ 37.564161] but task is already holding lock: [ 37.564163] 00000000dd8c5b58 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.564170] [ 37.564173] which lock already depends on the new lock. [ 37.564174] [ 37.564176] [ 37.564179] the existing dependency chain (in reverse order) is: [ 37.564180] [ 37.564181] -> #3 (report_lock){....}: [ 37.564189] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.564191] kasan_report+0x8e/0x110 [ 37.564194] __asan_report_load8_noabort+0x14/0x20 [ 37.564196] __schedule+0xf54/0x1df0 [ 37.564199] preempt_schedule_common+0x22/0x60 [ 37.564201] _cond_resched+0x1d/0x30 [ 37.564203] wait_for_completion+0xa5/0x8d0 [ 37.564206] __synchronize_srcu+0x189/0x240 [ 37.564208] synchronize_srcu+0x335/0x56f [ 37.564211] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.564214] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.564216] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.564218] kvm_put_kvm+0x73f/0x1060 [ 37.564221] kvm_vm_release+0x42/0x50 [ 37.564223] __fput+0x38a/0xa40 [ 37.564225] ____fput+0x15/0x20 [ 37.564227] task_work_run+0x1e8/0x2a0 [ 37.564229] do_exit+0x1ae4/0x26e0 [ 37.564232] do_group_exit+0x177/0x440 [ 37.564234] __x64_sys_exit_group+0x3e/0x50 [ 37.564236] do_syscall_64+0x1b9/0x820 [ 37.564239] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.564240] [ 37.564241] -> #2 (&rq->lock){-.-.}: [ 37.564249] _raw_spin_lock+0x2a/0x40 [ 37.564251] task_fork_fair+0x93/0x680 [ 37.564253] sched_fork+0x44b/0xbd0 [ 37.564255] copy_process+0x235e/0x7ad0 [ 37.564257] _do_fork+0x1ca/0x1170 [ 37.564260] kernel_thread+0x34/0x40 [ 37.564262] rest_init+0x22/0xe4 [ 37.564264] start_kernel+0x913/0x94e [ 37.564266] x86_64_start_reservations+0x29/0x2b [ 37.564269] x86_64_start_kernel+0x76/0x79 [ 37.564271] secondary_startup_64+0xa4/0xb0 [ 37.564272] [ 37.564273] -> #1 (&p->pi_lock){-.-.}: [ 37.564281] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.564284] try_to_wake_up+0xd2/0x1250 [ 37.564286] wake_up_process+0x10/0x20 [ 37.564288] __up.isra.1+0x1c0/0x2a0 [ 37.564290] up+0x13c/0x1c0 [ 37.564292] __up_console_sem+0xbe/0x1b0 [ 37.564294] console_unlock+0x506/0x10d0 [ 37.564297] vprintk_emit+0x33a/0x910 [ 37.564299] vprintk_default+0x28/0x30 [ 37.564301] vprintk_func+0x7a/0x117 [ 37.564303] printk+0xa7/0xcf [ 37.564305] load_umh+0x51/0xbd [ 37.564307] do_one_initcall+0x127/0x838 [ 37.564310] kernel_init_freeable+0x4bb/0x5ae [ 37.564312] kernel_init+0x11/0x1b3 [ 37.564314] ret_from_fork+0x3a/0x50 [ 37.564315] [ 37.564316] -> #0 ((console_sem).lock){-...}: [ 37.564329] lock_acquire+0x1e4/0x4f0 [ 37.564332] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.564334] down_trylock+0x13/0x70 [ 37.564337] __down_trylock_console_sem+0xae/0x200 [ 37.564339] console_trylock+0x15/0xa0 [ 37.564341] vprintk_emit+0x31f/0x910 [ 37.564343] vprintk_default+0x28/0x30 [ 37.564345] vprintk_func+0x7a/0x117 [ 37.564347] printk+0xa7/0xcf [ 37.564349] kasan_report+0x9e/0x110 [ 37.564352] __asan_report_load8_noabort+0x14/0x20 [ 37.564354] __schedule+0xf54/0x1df0 [ 37.564357] preempt_schedule_common+0x22/0x60 [ 37.564359] _cond_resched+0x1d/0x30 [ 37.564361] wait_for_completion+0xa5/0x8d0 [ 37.564364] __synchronize_srcu+0x189/0x240 [ 37.564366] synchronize_srcu+0x335/0x56f [ 37.564369] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.564371] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.564374] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.564376] kvm_put_kvm+0x73f/0x1060 [ 37.564378] kvm_vm_release+0x42/0x50 [ 37.564380] __fput+0x38a/0xa40 [ 37.564382] ____fput+0x15/0x20 [ 37.564384] task_work_run+0x1e8/0x2a0 [ 37.564387] do_exit+0x1ae4/0x26e0 [ 37.564395] do_group_exit+0x177/0x440 [ 37.564398] __x64_sys_exit_group+0x3e/0x50 [ 37.564400] do_syscall_64+0x1b9/0x820 [ 37.564403] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.564404] [ 37.564407] other info that might help us debug this: [ 37.564408] [ 37.564410] Chain exists of: [ 37.564411] (console_sem).lock --> &rq->lock --> report_lock [ 37.564421] [ 37.564423] Possible unsafe locking scenario: [ 37.564424] [ 37.564427] CPU0 CPU1 [ 37.564429] ---- ---- [ 37.564430] lock(report_lock); [ 37.564435] lock(&rq->lock); [ 37.564440] lock(report_lock); [ 37.564445] lock((console_sem).lock); [ 37.564449] [ 37.564451] *** DEADLOCK *** [ 37.564452] [ 37.564454] 2 locks held by syz-executor866/4693: [ 37.564456] #0: 00000000905e11f8 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.564465] #1: 00000000dd8c5b58 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.564474] [ 37.564476] stack backtrace: [ 37.564479] CPU: 1 PID: 4693 Comm: syz-executor866 Not tainted 4.19.0-rc1+ #216 [ 37.564483] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.564485] Call Trace: [ 37.564487] dump_stack+0x1c9/0x2b4 [ 37.564490] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.564492] ? vprintk_func+0x100/0x117 [ 37.564495] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.564497] ? save_trace+0xe0/0x290 [ 37.564499] __lock_acquire+0x3449/0x5020 [ 37.564502] ? mark_held_locks+0x160/0x160 [ 37.564504] ? mark_held_locks+0x160/0x160 [ 37.564506] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.564509] ? is_bpf_text_address+0xd7/0x170 [ 37.564511] ? kernel_text_address+0x79/0xf0 [ 37.564513] ? __kernel_text_address+0xd/0x40 [ 37.564516] ? __save_stack_trace+0x8d/0xf0 [ 37.564518] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.564520] ? save_trace+0x290/0x290 [ 37.564523] ? save_stack_trace+0x1a/0x20 [ 37.564525] ? save_trace+0xe0/0x290 [ 37.564527] ? graph_lock+0x170/0x170 [ 37.564530] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.564532] lock_acquire+0x1e4/0x4f0 [ 37.564534] ? down_trylock+0x13/0x70 [ 37.564536] ? lock_release+0x9f0/0x9f0 [ 37.564538] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.564541] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.564543] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.564545] ? log_store+0x34f/0x4c0 [ 37.564547] ? vprintk_emit+0x31f/0x910 [ 37.564550] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.564552] ? down_trylock+0x13/0x70 [ 37.564554] down_trylock+0x13/0x70 [ 37.564556] __down_trylock_console_sem+0xae/0x200 [ 37.564558] console_trylock+0x15/0xa0 [ 37.564561] vprintk_emit+0x31f/0x910 [ 37.564563] ? wake_up_klogd+0x110/0x110 [ 37.564565] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.564567] ? kasan_check_read+0x11/0x20 [ 37.564570] ? rcu_is_watching+0x8c/0x150 [ 37.564572] ? rcu_pm_notify+0xc0/0xc0 [ 37.564574] ? lock_acquire+0x1e4/0x4f0 [ 37.564576] ? kasan_report+0x8e/0x110 [ 37.564578] ? __schedule+0xf54/0x1df0 [ 37.564580] vprintk_default+0x28/0x30 [ 37.564582] vprintk_func+0x7a/0x117 [ 37.564584] printk+0xa7/0xcf [ 37.564587] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.564589] ? kasan_check_write+0x14/0x20 [ 37.564591] ? do_raw_spin_lock+0xc1/0x200 [ 37.564593] ? do_raw_spin_lock+0xc1/0x200 [ 37.564595] kasan_report+0x9e/0x110 [ 37.564598] __asan_report_load8_noabort+0x14/0x20 [ 37.564600] __schedule+0xf54/0x1df0 [ 37.564603] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.564605] ? __sched_text_start+0x8/0x8 [ 37.564607] ? __call_srcu+0x7e7/0x1040 [ 37.564610] ? check_same_owner+0x340/0x340 [ 37.564612] ? mark_held_locks+0x160/0x160 [ 37.564614] ? find_held_lock+0x36/0x1c0 [ 37.564616] preempt_schedule_common+0x22/0x60 [ 37.564618] _cond_resched+0x1d/0x30 [ 37.564621] wait_for_completion+0xa5/0x8d0 [ 37.564624] ? wait_for_completion_interruptible+0x950/0x950 [ 37.564626] ? __lockdep_init_map+0x105/0x590 [ 37.564628] ? __init_waitqueue_head+0x9e/0x150 [ 37.564631] ? init_wait_entry+0x1c0/0x1c0 [ 37.564633] __synchronize_srcu+0x189/0x240 [ 37.564635] ? call_srcu+0x10/0x10 [ 37.564638] ? rcu_unexpedite_gp+0x20/0x20 [ 37.564640] synchronize_srcu+0x335/0x56f [ 37.564642] ? lock_downgrade+0x8f0/0x8f0 [ 37.564645] ? synchronize_srcu_expedited+0x20/0x20 [ 37.564647] ? kasan_check_read+0x11/0x20 [ 37.564650] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.564652] ? kasan_check_write+0x14/0x20 [ 37.564654] ? do_raw_spin_lock+0xc1/0x200 [ 37.564657] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.564660] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.564662] ? kvfree+0x61/0x70 [ 37.564665] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.564667] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.564669] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.564672] ? kvm_arch_sync_events+0x30/0x30 [ 37.564674] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.564677] ? mmu_notifier_unregister+0x474/0x600 [ 37.564679] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.564681] ? kfree+0x111/0x210 [ 37.564684] ? __mmu_notifier_register+0x30/0x30 [ 37.564686] ? __free_pages+0x10a/0x190 [ 37.564688] ? free_unref_page+0x930/0x930 [ 37.564690] kvm_put_kvm+0x73f/0x1060 [ 37.564693] ? kvm_write_guest_cached+0x40/0x40 [ 37.564695] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.564697] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.564700] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.564702] ? kasan_check_write+0x14/0x20 [ 37.564704] ? do_raw_spin_lock+0xc1/0x200 [ 37.564706] ? kvm_irqfd_release+0xdd/0x120 [ 37.564709] ? kvm_irqfd_release+0xdd/0x120 [ 37.564711] ? kvm_put_kvm+0x1060/0x1060 [ 37.564713] kvm_vm_release+0x42/0x50 [ 37.564715] __fput+0x38a/0xa40 [ 37.564717] ? __alloc_file+0x400/0x400 [ 37.564719] ? check_same_owner+0x340/0x340 [ 37.564722] ? kasan_check_write+0x14/0x20 [ 37.564724] ? do_raw_spin_lock+0xc1/0x200 [ 37.564726] ____fput+0x15/0x20 [ 37.564728] task_work_run+0x1e8/0x2a0 [ 37.564730] ? task_work_cancel+0x240/0x240 [ 37.564733] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.564735] ? switch_task_namespaces+0xa2/0xd0 [ 37.564737] do_exit+0x1ae4/0x26e0 [ 37.564740] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.564742] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.564745] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.564747] ? kfree+0x1d7/0x210 [ 37.564749] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.564752] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.564754] ? is_bpf_text_address+0xd7/0x170 [ 37.564755] ? [ 37.564760] Lost 55 message(s)! [ 37.565112] Dumping ftrace buffer: [ 38.623632] (ftrace buffer empty) [ 38.627326] Kernel Offset: disabled [ 38.630938] Rebooting in 86400 seconds..