[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.620835] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.918137] random: sshd: uninitialized urandom read (32 bytes read) [ 25.173081] sshd (4656) used greatest stack depth: 16856 bytes left [ 25.192043] random: sshd: uninitialized urandom read (32 bytes read) [ 25.732652] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.16' (ECDSA) to the list of known hosts. [ 31.644884] urandom_read: 1 callbacks suppressed [ 31.644891] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.754116] 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.779706] ================================================================== [ 31.789708] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.795934] Read of size 8 at addr ffff8801d95f0058 by task syz-executor270/4672 [ 31.803460] [ 31.805088] CPU: 1 PID: 4672 Comm: syz-executor270 Not tainted 4.19.0-rc1+ #217 [ 31.812525] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.821870] Call Trace: [ 31.824464] dump_stack+0x1c9/0x2b4 [ 31.828103] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.833293] ? printk+0xa7/0xcf [ 31.836923] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.841698] ? __schedule+0xf54/0x1df0 [ 31.845587] print_address_description+0x6c/0x20b [ 31.850433] ? __schedule+0xf54/0x1df0 [ 31.854363] kasan_report.cold.7+0x242/0x30d [ 31.858772] __asan_report_load8_noabort+0x14/0x20 [ 31.863697] __schedule+0xf54/0x1df0 [ 31.867407] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.872516] ? __sched_text_start+0x8/0x8 [ 31.876675] ? __call_srcu+0x7e7/0x1040 [ 31.880653] ? check_same_owner+0x340/0x340 [ 31.884971] ? mark_held_locks+0x160/0x160 [ 31.889214] ? find_held_lock+0x36/0x1c0 [ 31.893291] preempt_schedule_common+0x22/0x60 [ 31.897872] _cond_resched+0x1d/0x30 [ 31.901584] wait_for_completion+0xa5/0x8d0 [ 31.905920] ? wait_for_completion_interruptible+0x950/0x950 [ 31.911724] ? __lockdep_init_map+0x105/0x590 [ 31.916215] ? __init_waitqueue_head+0x9e/0x150 [ 31.920878] ? init_wait_entry+0x1c0/0x1c0 [ 31.925114] __synchronize_srcu+0x189/0x240 [ 31.929427] ? call_srcu+0x10/0x10 [ 31.932971] ? rcu_unexpedite_gp+0x20/0x20 [ 31.937214] synchronize_srcu+0x335/0x56f [ 31.941361] ? lock_downgrade+0x8f0/0x8f0 [ 31.945507] ? synchronize_srcu_expedited+0x20/0x20 [ 31.950525] ? kasan_check_read+0x11/0x20 [ 31.954678] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.959265] ? kasan_check_write+0x14/0x20 [ 31.963518] ? do_raw_spin_lock+0xc1/0x200 [ 31.967776] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.973501] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.978979] ? kvfree+0x61/0x70 [ 31.982258] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.987272] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.991336] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.995755] ? kvm_arch_sync_events+0x30/0x30 [ 32.000699] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.006243] ? mmu_notifier_unregister+0x474/0x600 [ 32.011165] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.015587] ? kfree+0x111/0x210 [ 32.018956] ? __mmu_notifier_register+0x30/0x30 [ 32.023710] ? __free_pages+0x10a/0x190 [ 32.027683] ? free_unref_page+0x930/0x930 [ 32.031923] kvm_put_kvm+0x73f/0x1060 [ 32.035728] ? kvm_write_guest_cached+0x40/0x40 [ 32.040397] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.044894] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.049385] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.053973] ? kasan_check_write+0x14/0x20 [ 32.058204] ? do_raw_spin_lock+0xc1/0x200 [ 32.062441] ? kvm_irqfd_release+0xdd/0x120 [ 32.066758] ? kvm_irqfd_release+0xdd/0x120 [ 32.071080] ? kvm_put_kvm+0x1060/0x1060 [ 32.075145] kvm_vm_release+0x42/0x50 [ 32.078954] __fput+0x38a/0xa40 [ 32.082233] ? __alloc_file+0x400/0x400 [ 32.086214] ? check_same_owner+0x340/0x340 [ 32.090549] ? kasan_check_write+0x14/0x20 [ 32.094785] ? do_raw_spin_lock+0xc1/0x200 [ 32.099046] ____fput+0x15/0x20 [ 32.102345] task_work_run+0x1e8/0x2a0 [ 32.106249] ? task_work_cancel+0x240/0x240 [ 32.110573] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.116109] ? switch_task_namespaces+0xa2/0xd0 [ 32.120776] do_exit+0x1ae4/0x26e0 [ 32.124317] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.129002] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.133235] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.138249] ? kfree+0x1d7/0x210 [ 32.141621] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.145858] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.151575] ? is_bpf_text_address+0xd7/0x170 [ 32.156075] ? kernel_text_address+0x79/0xf0 [ 32.160514] ? __kernel_text_address+0xd/0x40 [ 32.165021] ? unwind_get_return_address+0x61/0xa0 [ 32.169955] ? __save_stack_trace+0x8d/0xf0 [ 32.174282] ? save_stack+0xa9/0xd0 [ 32.177905] ? save_stack+0x43/0xd0 [ 32.181614] ? __kasan_slab_free+0x11a/0x170 [ 32.186019] ? kasan_slab_free+0xe/0x10 [ 32.189990] ? putname+0xf2/0x130 [ 32.193444] ? __x64_sys_openat+0x9d/0x100 [ 32.197684] ? do_syscall_64+0x1b9/0x820 [ 32.201746] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.207112] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.211531] ? kasan_check_read+0x11/0x20 [ 32.215676] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.220080] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.224619] ? initcall_blacklisted+0x9a/0x1e0 [ 32.229233] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.234349] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.240067] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.245599] ? do_vfs_ioctl+0x201/0x1720 [ 32.249673] ? rcu_is_watching+0x8c/0x150 [ 32.253815] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.258136] ? ioctl_preallocate+0x300/0x300 [ 32.262541] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.268077] ? __fget_light+0x2f7/0x440 [ 32.272048] ? fget_raw+0x20/0x20 [ 32.275500] ? putname+0xf2/0x130 [ 32.278959] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.283976] ? kmem_cache_free+0x246/0x280 [ 32.288212] ? putname+0xf7/0x130 [ 32.291668] do_group_exit+0x177/0x440 [ 32.295559] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.299887] ? __ia32_sys_exit+0x50/0x50 [ 32.303951] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.309058] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.314616] ? ksys_ioctl+0x81/0xd0 [ 32.318248] __x64_sys_exit_group+0x3e/0x50 [ 32.322573] do_syscall_64+0x1b9/0x820 [ 32.326464] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.331832] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.336763] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.341615] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.346633] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.351652] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.356676] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.361538] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.366747] RIP: 0033:0x43ecc8 [ 32.369950] Code: Bad RIP value. [ 32.373311] RSP: 002b:00007ffe65825a18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.381022] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 32.388307] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.395659] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.402950] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.410240] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.417518] [ 32.419141] Allocated by task 4672: [ 32.422796] save_stack+0x43/0xd0 [ 32.426252] kasan_kmalloc+0xc4/0xe0 [ 32.429980] kasan_slab_alloc+0x12/0x20 [ 32.433961] kmem_cache_alloc+0x12e/0x710 [ 32.438102] vmx_create_vcpu+0xcf/0x2830 [ 32.442163] kvm_arch_vcpu_create+0xe5/0x220 [ 32.446571] kvm_vm_ioctl+0x488/0x1d80 [ 32.450458] do_vfs_ioctl+0x1de/0x1720 [ 32.454343] ksys_ioctl+0xa9/0xd0 [ 32.457800] __x64_sys_ioctl+0x73/0xb0 [ 32.461694] do_syscall_64+0x1b9/0x820 [ 32.465607] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.470785] [ 32.472414] Freed by task 4672: [ 32.475696] save_stack+0x43/0xd0 [ 32.479148] __kasan_slab_free+0x11a/0x170 [ 32.483407] kasan_slab_free+0xe/0x10 [ 32.487204] kmem_cache_free+0x86/0x280 [ 32.491189] vmx_free_vcpu+0x26b/0x300 [ 32.495088] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.499497] kvm_put_kvm+0x73f/0x1060 [ 32.503300] kvm_vm_release+0x42/0x50 [ 32.507111] __fput+0x38a/0xa40 [ 32.510389] ____fput+0x15/0x20 [ 32.513665] task_work_run+0x1e8/0x2a0 [ 32.517550] do_exit+0x1ae4/0x26e0 [ 32.521091] do_group_exit+0x177/0x440 [ 32.524979] __x64_sys_exit_group+0x3e/0x50 [ 32.529302] do_syscall_64+0x1b9/0x820 [ 32.533194] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.538377] [ 32.540002] The buggy address belongs to the object at ffff8801d95f0040 [ 32.540002] which belongs to the cache kvm_vcpu of size 23872 [ 32.552586] The buggy address is located 24 bytes inside of [ 32.552586] 23872-byte region [ffff8801d95f0040, ffff8801d95f5d80) [ 32.564555] The buggy address belongs to the page: [ 32.569498] page:ffffea0007657c00 count:1 mapcount:0 mapping:ffff8801d6a76040 index:0x0 compound_mapcount: 0 [ 32.579514] flags: 0x2fffc0000008100(slab|head) [ 32.584192] raw: 02fffc0000008100 ffff8801d5386648 ffff8801d5386648 ffff8801d6a76040 [ 32.592083] raw: 0000000000000000 ffff8801d95f0040 0000000100000001 0000000000000000 [ 32.599964] page dumped because: kasan: bad access detected [ 32.605669] [ 32.607291] Memory state around the buggy address: [ 32.612225] ffff8801d95eff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.619585] ffff8801d95eff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.626956] >ffff8801d95f0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.634358] ^ [ 32.640596] ffff8801d95f0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.647968] ffff8801d95f0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.655321] ================================================================== [ 32.662678] Kernel panic - not syncing: panic_on_warn set ... [ 32.662678] [ 32.670046] CPU: 1 PID: 4672 Comm: syz-executor270 Tainted: G B 4.19.0-rc1+ #217 [ 32.678886] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.688227] Call Trace: [ 32.690823] dump_stack+0x1c9/0x2b4 [ 32.694453] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.699642] ? lock_downgrade+0x8f0/0x8f0 [ 32.703786] ? __schedule+0xf54/0x1df0 [ 32.707669] panic+0x238/0x4e7 [ 32.710860] ? add_taint.cold.5+0x16/0x16 [ 32.715011] ? print_shadow_for_address+0xba/0x116 [ 32.719934] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.724359] ? trace_hardirqs_off+0x77/0x2b0 [ 32.728772] ? __schedule+0xf54/0x1df0 [ 32.732657] kasan_end_report+0x47/0x4f [ 32.736638] kasan_report.cold.7+0x76/0x30d [ 32.740963] __asan_report_load8_noabort+0x14/0x20 [ 32.745887] __schedule+0xf54/0x1df0 [ 32.749594] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.754705] ? __sched_text_start+0x8/0x8 [ 32.758862] ? __call_srcu+0x7e7/0x1040 [ 32.762840] ? check_same_owner+0x340/0x340 [ 32.767160] ? mark_held_locks+0x160/0x160 [ 32.771393] ? find_held_lock+0x36/0x1c0 [ 32.775457] preempt_schedule_common+0x22/0x60 [ 32.780041] _cond_resched+0x1d/0x30 [ 32.783752] wait_for_completion+0xa5/0x8d0 [ 32.788085] ? wait_for_completion_interruptible+0x950/0x950 [ 32.793878] ? __lockdep_init_map+0x105/0x590 [ 32.798370] ? __init_waitqueue_head+0x9e/0x150 [ 32.803034] ? init_wait_entry+0x1c0/0x1c0 [ 32.807271] __synchronize_srcu+0x189/0x240 [ 32.811586] ? call_srcu+0x10/0x10 [ 32.815124] ? rcu_unexpedite_gp+0x20/0x20 [ 32.819372] synchronize_srcu+0x335/0x56f [ 32.823517] ? lock_downgrade+0x8f0/0x8f0 [ 32.827664] ? synchronize_srcu_expedited+0x20/0x20 [ 32.832684] ? kasan_check_read+0x11/0x20 [ 32.836831] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.841409] ? kasan_check_write+0x14/0x20 [ 32.845646] ? do_raw_spin_lock+0xc1/0x200 [ 32.849891] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.855609] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.861059] ? kvfree+0x61/0x70 [ 32.864343] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.869389] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.873461] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.877870] ? kvm_arch_sync_events+0x30/0x30 [ 32.882372] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.887911] ? mmu_notifier_unregister+0x474/0x600 [ 32.893157] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.897562] ? kfree+0x111/0x210 [ 32.900931] ? __mmu_notifier_register+0x30/0x30 [ 32.905692] ? __free_pages+0x10a/0x190 [ 32.909665] ? free_unref_page+0x930/0x930 [ 32.913908] kvm_put_kvm+0x73f/0x1060 [ 32.917710] ? kvm_write_guest_cached+0x40/0x40 [ 32.922382] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.926873] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.931365] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.935957] ? kasan_check_write+0x14/0x20 [ 32.940196] ? do_raw_spin_lock+0xc1/0x200 [ 32.944430] ? kvm_irqfd_release+0xdd/0x120 [ 32.948755] ? kvm_irqfd_release+0xdd/0x120 [ 32.953082] ? kvm_put_kvm+0x1060/0x1060 [ 32.957233] kvm_vm_release+0x42/0x50 [ 32.961037] __fput+0x38a/0xa40 [ 32.964335] ? __alloc_file+0x400/0x400 [ 32.968315] ? check_same_owner+0x340/0x340 [ 32.972639] ? kasan_check_write+0x14/0x20 [ 32.976882] ? do_raw_spin_lock+0xc1/0x200 [ 32.981124] ____fput+0x15/0x20 [ 32.984411] task_work_run+0x1e8/0x2a0 [ 32.988301] ? task_work_cancel+0x240/0x240 [ 32.992629] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.998642] ? switch_task_namespaces+0xa2/0xd0 [ 33.003319] do_exit+0x1ae4/0x26e0 [ 33.006868] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.011543] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.015783] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.020800] ? kfree+0x1d7/0x210 [ 33.024169] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.028405] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.034123] ? is_bpf_text_address+0xd7/0x170 [ 33.038615] ? kernel_text_address+0x79/0xf0 [ 33.043018] ? __kernel_text_address+0xd/0x40 [ 33.047510] ? unwind_get_return_address+0x61/0xa0 [ 33.052450] ? __save_stack_trace+0x8d/0xf0 [ 33.056780] ? save_stack+0xa9/0xd0 [ 33.060413] ? save_stack+0x43/0xd0 [ 33.064048] ? __kasan_slab_free+0x11a/0x170 [ 33.068463] ? kasan_slab_free+0xe/0x10 [ 33.072525] ? putname+0xf2/0x130 [ 33.075983] ? __x64_sys_openat+0x9d/0x100 [ 33.080220] ? do_syscall_64+0x1b9/0x820 [ 33.084282] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.089646] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.094056] ? kasan_check_read+0x11/0x20 [ 33.098201] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.102608] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.107106] ? initcall_blacklisted+0x9a/0x1e0 [ 33.111689] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.116794] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.122506] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.128038] ? do_vfs_ioctl+0x201/0x1720 [ 33.132094] ? rcu_is_watching+0x8c/0x150 [ 33.136241] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.140566] ? ioctl_preallocate+0x300/0x300 [ 33.144977] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.150512] ? __fget_light+0x2f7/0x440 [ 33.154483] ? fget_raw+0x20/0x20 [ 33.157934] ? putname+0xf2/0x130 [ 33.161393] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.166404] ? kmem_cache_free+0x246/0x280 [ 33.170649] ? putname+0xf7/0x130 [ 33.174100] do_group_exit+0x177/0x440 [ 33.177981] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.182298] ? __ia32_sys_exit+0x50/0x50 [ 33.186355] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.191463] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.196999] ? ksys_ioctl+0x81/0xd0 [ 33.200628] __x64_sys_exit_group+0x3e/0x50 [ 33.204957] do_syscall_64+0x1b9/0x820 [ 33.208844] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.214210] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.219140] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.223984] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.229001] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.234018] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.239038] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.243886] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.249074] RIP: 0033:0x43ecc8 [ 33.252267] Code: Bad RIP value. [ 33.255625] RSP: 002b:00007ffe65825a18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.263334] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 33.270599] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.277862] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.285129] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.292394] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.299672] [ 33.299678] ====================================================== [ 33.299683] WARNING: possible circular locking dependency detected [ 33.299687] 4.19.0-rc1+ #217 Not tainted [ 33.299693] ------------------------------------------------------ [ 33.299698] syz-executor270/4672 is trying to acquire lock: [ 33.299701] 0000000021ecb82a ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.299717] [ 33.299721] but task is already holding lock: [ 33.299724] 0000000061c428f0 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.299738] [ 33.299743] which lock already depends on the new lock. [ 33.299745] [ 33.299748] [ 33.299753] the existing dependency chain (in reverse order) is: [ 33.299755] [ 33.299757] -> #3 (report_lock){....}: [ 33.299772] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.299776] kasan_report+0x8e/0x110 [ 33.299780] __asan_report_load8_noabort+0x14/0x20 [ 33.299784] __schedule+0xf54/0x1df0 [ 33.299788] preempt_schedule_common+0x22/0x60 [ 33.299792] _cond_resched+0x1d/0x30 [ 33.299796] wait_for_completion+0xa5/0x8d0 [ 33.299800] __synchronize_srcu+0x189/0x240 [ 33.299805] synchronize_srcu+0x335/0x56f [ 33.299810] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.299814] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.299818] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.299822] kvm_put_kvm+0x73f/0x1060 [ 33.299826] kvm_vm_release+0x42/0x50 [ 33.299829] __fput+0x38a/0xa40 [ 33.299833] ____fput+0x15/0x20 [ 33.299837] task_work_run+0x1e8/0x2a0 [ 33.299841] do_exit+0x1ae4/0x26e0 [ 33.299845] do_group_exit+0x177/0x440 [ 33.299849] __x64_sys_exit_group+0x3e/0x50 [ 33.299853] do_syscall_64+0x1b9/0x820 [ 33.299858] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.299860] [ 33.299862] -> #2 (&rq->lock){-.-.}: [ 33.299876] _raw_spin_lock+0x2a/0x40 [ 33.299880] task_fork_fair+0x93/0x680 [ 33.299884] sched_fork+0x44b/0xbd0 [ 33.299888] copy_process+0x235e/0x7ad0 [ 33.299891] _do_fork+0x1ca/0x1170 [ 33.299895] kernel_thread+0x34/0x40 [ 33.299899] rest_init+0x22/0xe4 [ 33.299903] start_kernel+0x913/0x94e [ 33.299907] x86_64_start_reservations+0x29/0x2b [ 33.299911] x86_64_start_kernel+0x76/0x79 [ 33.299915] secondary_startup_64+0xa4/0xb0 [ 33.299918] [ 33.299920] -> #1 (&p->pi_lock){-.-.}: [ 33.299934] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.299938] try_to_wake_up+0xd2/0x1250 [ 33.299942] wake_up_process+0x10/0x20 [ 33.299952] __up.isra.1+0x1c0/0x2a0 [ 33.299956] up+0x13c/0x1c0 [ 33.299960] __up_console_sem+0xbe/0x1b0 [ 33.299964] console_unlock+0x506/0x10d0 [ 33.299968] vprintk_emit+0x33a/0x910 [ 33.299972] vprintk_default+0x28/0x30 [ 33.299976] vprintk_func+0x7a/0x117 [ 33.299979] printk+0xa7/0xcf [ 33.299982] load_umh+0x51/0xbd [ 33.299986] do_one_initcall+0x127/0x838 [ 33.299991] kernel_init_freeable+0x4bb/0x5ae [ 33.299994] kernel_init+0x11/0x1b3 [ 33.299998] ret_from_fork+0x3a/0x50 [ 33.300001] [ 33.300003] -> #0 ((console_sem).lock){-...}: [ 33.300017] lock_acquire+0x1e4/0x4f0 [ 33.300022] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.300025] down_trylock+0x13/0x70 [ 33.300030] __down_trylock_console_sem+0xae/0x200 [ 33.300034] console_trylock+0x15/0xa0 [ 33.300038] vprintk_emit+0x31f/0x910 [ 33.300042] vprintk_default+0x28/0x30 [ 33.300045] vprintk_func+0x7a/0x117 [ 33.300049] printk+0xa7/0xcf [ 33.300053] kasan_report+0x9e/0x110 [ 33.300057] __asan_report_load8_noabort+0x14/0x20 [ 33.300061] __schedule+0xf54/0x1df0 [ 33.300066] preempt_schedule_common+0x22/0x60 [ 33.300070] _cond_resched+0x1d/0x30 [ 33.300074] wait_for_completion+0xa5/0x8d0 [ 33.300078] __synchronize_srcu+0x189/0x240 [ 33.300082] synchronize_srcu+0x335/0x56f [ 33.300087] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.300091] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.300096] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.300099] kvm_put_kvm+0x73f/0x1060 [ 33.300103] kvm_vm_release+0x42/0x50 [ 33.300107] __fput+0x38a/0xa40 [ 33.300111] ____fput+0x15/0x20 [ 33.300114] task_work_run+0x1e8/0x2a0 [ 33.300118] do_exit+0x1ae4/0x26e0 [ 33.300122] do_group_exit+0x177/0x440 [ 33.300126] __x64_sys_exit_group+0x3e/0x50 [ 33.300130] do_syscall_64+0x1b9/0x820 [ 33.300135] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.300137] [ 33.300142] other info that might help us debug this: [ 33.300144] [ 33.300147] Chain exists of: [ 33.300149] (console_sem).lock --> &rq->lock --> report_lock [ 33.300167] [ 33.300171] Possible unsafe locking scenario: [ 33.300174] [ 33.300178] CPU0 CPU1 [ 33.300182] ---- ---- [ 33.300184] lock(report_lock); [ 33.300194] lock(&rq->lock); [ 33.300203] lock(report_lock); [ 33.300211] lock((console_sem).lock); [ 33.300219] [ 33.300222] *** DEADLOCK *** [ 33.300225] [ 33.300229] 2 locks held by syz-executor270/4672: [ 33.300231] #0: 000000004871bbcd (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.300248] #1: 0000000061c428f0 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.300265] [ 33.300269] stack backtrace: [ 33.300274] CPU: 1 PID: 4672 Comm: syz-executor270 Not tainted 4.19.0-rc1+ #217 [ 33.300282] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.300285] Call Trace: [ 33.300288] dump_stack+0x1c9/0x2b4 [ 33.300293] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.300297] ? vprintk_func+0x100/0x117 [ 33.300302] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.300306] ? save_trace+0xe0/0x290 [ 33.300310] __lock_acquire+0x3449/0x5020 [ 33.300314] ? mark_held_locks+0x160/0x160 [ 33.300318] ? mark_held_locks+0x160/0x160 [ 33.300322] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.300326] ? is_bpf_text_address+0xd7/0x170 [ 33.300330] ? kernel_text_address+0x79/0xf0 [ 33.300335] ? __kernel_text_address+0xd/0x40 [ 33.300339] ? __save_stack_trace+0x8d/0xf0 [ 33.300343] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.300347] ? save_trace+0x290/0x290 [ 33.300351] ? save_stack_trace+0x1a/0x20 [ 33.300355] ? save_trace+0xe0/0x290 [ 33.300358] ? graph_lock+0x170/0x170 [ 33.300363] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.300367] lock_acquire+0x1e4/0x4f0 [ 33.300371] ? down_trylock+0x13/0x70 [ 33.300375] ? lock_release+0x9f0/0x9f0 [ 33.300379] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.300383] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.300387] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.300391] ? log_store+0x34f/0x4c0 [ 33.300395] ? vprintk_emit+0x31f/0x910 [ 33.300399] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.300403] ? down_trylock+0x13/0x70 [ 33.300407] down_trylock+0x13/0x70 [ 33.300411] __down_trylock_console_sem+0xae/0x200 [ 33.300415] console_trylock+0x15/0xa0 [ 33.300419] vprintk_emit+0x31f/0x910 [ 33.300422] ? wake_up_klogd+0x110/0x110 [ 33.300427] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.300440] ? kasan_check_read+0x11/0x20 [ 33.300444] ? rcu_is_watching+0x8c/0x150 [ 33.300448] ? rcu_pm_notify+0xc0/0xc0 [ 33.300452] ? lock_acquire+0x1e4/0x4f0 [ 33.300456] ? kasan_report+0x8e/0x110 [ 33.300460] ? __schedule+0xf54/0x1df0 [ 33.300464] vprintk_default+0x28/0x30 [ 33.300468] vprintk_func+0x7a/0x117 [ 33.300471] printk+0xa7/0xcf [ 33.300475] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.300479] ? kasan_check_write+0x14/0x20 [ 33.300483] ? do_raw_spin_lock+0xc1/0x200 [ 33.300487] ? do_raw_spin_lock+0xc1/0x200 [ 33.300491] kasan_report+0x9e/0x110 [ 33.300496] __asan_report_load8_noabort+0x14/0x20 [ 33.300499] __schedule+0xf54/0x1df0 [ 33.300504] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.300508] ? __sched_text_start+0x8/0x8 [ 33.300512] ? __call_srcu+0x7e7/0x1040 [ 33.300516] ? check_same_owner+0x340/0x340 [ 33.300520] ? mark_held_locks+0x160/0x160 [ 33.300524] ? find_held_lock+0x36/0x1c0 [ 33.300528] preempt_schedule_common+0x22/0x60 [ 33.300532] _cond_resched+0x1d/0x30 [ 33.300536] wait_for_completion+0xa5/0x8d0 [ 33.300541] ? wait_for_completion_interruptible+0x950/0x950 [ 33.300545] ? __lockdep_init_map+0x105/0x590 [ 33.300549] ? __init_waitqueue_head+0x9e/0x150 [ 33.300553] ? init_wait_entry+0x1c0/0x1c0 [ 33.300557] __synchronize_srcu+0x189/0x240 [ 33.300561] ? call_srcu+0x10/0x10 [ 33.300565] ? rcu_unexpedite_gp+0x20/0x20 [ 33.300569] synchronize_srcu+0x335/0x56f [ 33.300573] ? lock_downgrade+0x8f0/0x8f0 [ 33.300578] ? synchronize_srcu_expedited+0x20/0x20 [ 33.300582] ? kasan_check_read+0x11/0x20 [ 33.300586] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.300590] ? kasan_check_write+0x14/0x20 [ 33.300594] ? do_raw_spin_lock+0xc1/0x200 [ 33.300599] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.300604] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.300608] ? kvfree+0x61/0x70 [ 33.300612] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.300616] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.300621] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.300625] ? kvm_arch_sync_events+0x30/0x30 [ 33.300630] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.300634] ? mmu_notifier_unregister+0x474/0x600 [ 33.300638] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.300642] ? kfree+0x111/0x210 [ 33.300646] ? __mmu_notifier_register+0x30/0x30 [ 33.300650] ? __free_pages+0x10a/0x190 [ 33.300654] ? free_unref_page+0x930/0x930 [ 33.300658] kvm_put_kvm+0x73f/0x1060 [ 33.300662] ? kvm_write_guest_cached+0x40/0x40 [ 33.300666] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.300671] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.300675] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.300679] ? kasan_check_write+0x14/0x20 [ 33.300683] ? do_raw_spin_lock+0xc1/0x200 [ 33.300687] ? kvm_irqfd_release+0xdd/0x120 [ 33.300691] ? kvm_irqfd_release+0xdd/0x120 [ 33.300695] ? kvm_put_kvm+0x1060/0x1060 [ 33.300699] kvm_vm_release+0x42/0x50 [ 33.300702] __fput+0x38a/0xa40 [ 33.300706] ? __alloc_file+0x400/0x400 [ 33.300710] ? check_same_owner+0x340/0x340 [ 33.300714] ? kasan_check_write+0x14/0x20 [ 33.300719] ? do_raw_spin_lock+0xc1/0x200 [ 33.300722] ____fput+0x15/0x20 [ 33.300726] task_work_run+0x1e8/0x2a0 [ 33.300730] ? task_work_cancel+0x240/0x240 [ 33.300735] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.300739] ? switch_task_namespaces+0xa2/0xd0 [ 33.300743] do_exit+0x1ae4/0x26e0 [ 33.300747] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.300751] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.300756] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.300759] ? kfree+0x1d7/0x210 [ 33.300763] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.300768] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.300772] ? is_bpf_text_address+0xd7/0x170 [ 33.300774] ? [ 33.300782] Lost 55 message(s)! [ 34.384922] Shutting down cpus with NMI [ 35.445335] Dumping ftrace buffer: [ 35.448887] (ftrace buffer empty) [ 35.452579] Kernel Offset: disabled [ 35.456191] Rebooting in 86400 seconds..