[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.053608] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.018813] random: sshd: uninitialized urandom read (32 bytes read) [ 28.315479] random: sshd: uninitialized urandom read (32 bytes read) [ 28.874379] random: sshd: uninitialized urandom read (32 bytes read) [ 29.054944] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.13' (ECDSA) to the list of known hosts. [ 34.693764] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.789867] 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.815929] ================================================================== [ 34.825735] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.831957] Read of size 8 at addr ffff8801b7070058 by task syz-executor843/4657 [ 34.839475] [ 34.841113] CPU: 0 PID: 4657 Comm: syz-executor843 Not tainted 4.19.0-rc2+ #2 [ 34.848401] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.857752] Call Trace: [ 34.860338] dump_stack+0x1c9/0x2b4 [ 34.863962] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.869213] ? printk+0xa7/0xcf [ 34.872483] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.877236] ? __schedule+0xf54/0x1df0 [ 34.881118] print_address_description+0x6c/0x20b [ 34.885957] ? __schedule+0xf54/0x1df0 [ 34.889854] kasan_report.cold.7+0x242/0x30d [ 34.894260] __asan_report_load8_noabort+0x14/0x20 [ 34.899181] __schedule+0xf54/0x1df0 [ 34.902913] ? __sched_text_start+0x8/0x8 [ 34.907064] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 34.912182] ? __call_srcu+0x7e7/0x1040 [ 34.916176] ? check_same_owner+0x340/0x340 [ 34.920492] ? mark_held_locks+0x160/0x160 [ 34.924724] ? find_held_lock+0x36/0x1c0 [ 34.928782] preempt_schedule_common+0x22/0x60 [ 34.933360] _cond_resched+0x1d/0x30 [ 34.937072] wait_for_completion+0xa5/0x8d0 [ 34.941407] ? wait_for_completion_interruptible+0x950/0x950 [ 34.947195] ? __lockdep_init_map+0x105/0x590 [ 34.951689] ? __init_waitqueue_head+0x9e/0x150 [ 34.956352] ? init_wait_entry+0x1c0/0x1c0 [ 34.960594] __synchronize_srcu+0x189/0x240 [ 34.964909] ? call_srcu+0x10/0x10 [ 34.968452] ? rcu_unexpedite_gp+0x20/0x20 [ 34.972687] synchronize_srcu+0x335/0x56f [ 34.976826] ? lock_downgrade+0x8f0/0x8f0 [ 34.980967] ? synchronize_srcu_expedited+0x20/0x20 [ 34.985992] ? kasan_check_read+0x11/0x20 [ 34.990138] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.994715] ? kasan_check_write+0x14/0x20 [ 34.998945] ? do_raw_spin_lock+0xc1/0x200 [ 35.003180] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.008888] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.014336] ? kvfree+0x61/0x70 [ 35.017614] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.022630] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.026695] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.031103] ? kvm_arch_sync_events+0x30/0x30 [ 35.035604] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.041141] ? mmu_notifier_unregister+0x474/0x600 [ 35.046070] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.050501] ? kfree+0x111/0x210 [ 35.053862] ? __mmu_notifier_register+0x30/0x30 [ 35.058614] ? __free_pages+0x10a/0x190 [ 35.062589] ? free_unref_page+0x930/0x930 [ 35.066825] kvm_put_kvm+0x73f/0x1060 [ 35.070626] ? kvm_write_guest_cached+0x40/0x40 [ 35.075292] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.079781] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.084269] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.088849] ? kasan_check_write+0x14/0x20 [ 35.093083] ? do_raw_spin_lock+0xc1/0x200 [ 35.097316] ? kvm_irqfd_release+0xdd/0x120 [ 35.101629] ? kvm_irqfd_release+0xdd/0x120 [ 35.105946] ? kvm_put_kvm+0x1060/0x1060 [ 35.110001] kvm_vm_release+0x42/0x50 [ 35.113807] __fput+0x38a/0xa40 [ 35.117087] ? __alloc_file+0x400/0x400 [ 35.121067] ? check_same_owner+0x340/0x340 [ 35.125383] ? kasan_check_write+0x14/0x20 [ 35.129612] ? do_raw_spin_lock+0xc1/0x200 [ 35.133839] ____fput+0x15/0x20 [ 35.137115] task_work_run+0x1e8/0x2a0 [ 35.140999] ? task_work_cancel+0x240/0x240 [ 35.145321] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.150850] ? switch_task_namespaces+0xa2/0xd0 [ 35.155513] do_exit+0x1ae4/0x26e0 [ 35.159139] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.163809] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.168040] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.173062] ? kfree+0x1d7/0x210 [ 35.176425] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.180661] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.186367] ? is_bpf_text_address+0xd7/0x170 [ 35.190851] ? kernel_text_address+0x79/0xf0 [ 35.195258] ? __kernel_text_address+0xd/0x40 [ 35.199753] ? unwind_get_return_address+0x61/0xa0 [ 35.204691] ? __save_stack_trace+0x8d/0xf0 [ 35.209011] ? save_stack+0xa9/0xd0 [ 35.212631] ? save_stack+0x43/0xd0 [ 35.216247] ? __kasan_slab_free+0x11a/0x170 [ 35.220647] ? kasan_slab_free+0xe/0x10 [ 35.224621] ? putname+0xf2/0x130 [ 35.228076] ? __x64_sys_openat+0x9d/0x100 [ 35.232307] ? do_syscall_64+0x1b9/0x820 [ 35.236364] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.241725] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.246125] ? kasan_check_read+0x11/0x20 [ 35.250266] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.254659] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.259066] ? initcall_blacklisted+0x9a/0x1e0 [ 35.263627] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.268707] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.274399] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.279912] ? do_vfs_ioctl+0x201/0x1720 [ 35.283950] ? rcu_is_watching+0x8c/0x150 [ 35.288073] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.292375] ? ioctl_preallocate+0x300/0x300 [ 35.296764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.302280] ? __fget_light+0x2f7/0x440 [ 35.306236] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.311751] ? smack_file_ioctl+0x210/0x3c0 [ 35.316054] ? fget_raw+0x20/0x20 [ 35.319483] ? smack_file_lock+0x2e0/0x2e0 [ 35.323703] do_group_exit+0x177/0x440 [ 35.327569] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.331875] ? __ia32_sys_exit+0x50/0x50 [ 35.335923] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.341008] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.346520] ? ksys_ioctl+0x81/0xd0 [ 35.350126] __x64_sys_exit_group+0x3e/0x50 [ 35.354494] do_syscall_64+0x1b9/0x820 [ 35.358402] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.363763] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.368702] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.373535] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 35.378544] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.383552] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.388572] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.393418] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.398601] RIP: 0033:0x43f028 [ 35.401791] Code: Bad RIP value. [ 35.405145] RSP: 002b:00007fff9c183638 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.412847] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 35.420107] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.427401] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.434662] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.441921] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 35.449201] [ 35.450817] Allocated by task 4657: [ 35.454439] save_stack+0x43/0xd0 [ 35.457884] kasan_kmalloc+0xc4/0xe0 [ 35.461595] kasan_slab_alloc+0x12/0x20 [ 35.465559] kmem_cache_alloc+0x12e/0x710 [ 35.469704] vmx_create_vcpu+0xcf/0x2830 [ 35.473770] kvm_arch_vcpu_create+0xe5/0x220 [ 35.478172] kvm_vm_ioctl+0x488/0x1d80 [ 35.482050] do_vfs_ioctl+0x1de/0x1720 [ 35.485930] ksys_ioctl+0xa9/0xd0 [ 35.489387] __x64_sys_ioctl+0x73/0xb0 [ 35.493263] do_syscall_64+0x1b9/0x820 [ 35.497149] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.502336] [ 35.503963] Freed by task 4657: [ 35.507247] save_stack+0x43/0xd0 [ 35.510694] __kasan_slab_free+0x11a/0x170 [ 35.514920] kasan_slab_free+0xe/0x10 [ 35.518729] kmem_cache_free+0x86/0x280 [ 35.522698] vmx_free_vcpu+0x26b/0x300 [ 35.526587] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.531002] kvm_put_kvm+0x73f/0x1060 [ 35.534796] kvm_vm_release+0x42/0x50 [ 35.538594] __fput+0x38a/0xa40 [ 35.541862] ____fput+0x15/0x20 [ 35.545137] task_work_run+0x1e8/0x2a0 [ 35.549016] do_exit+0x1ae4/0x26e0 [ 35.552551] do_group_exit+0x177/0x440 [ 35.556437] __x64_sys_exit_group+0x3e/0x50 [ 35.560752] do_syscall_64+0x1b9/0x820 [ 35.564630] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.569802] [ 35.571424] The buggy address belongs to the object at ffff8801b7070040 [ 35.571424] which belongs to the cache kvm_vcpu of size 23872 [ 35.583988] The buggy address is located 24 bytes inside of [ 35.583988] 23872-byte region [ffff8801b7070040, ffff8801b7075d80) [ 35.595939] The buggy address belongs to the page: [ 35.600873] page:ffffea0006dc1c00 count:1 mapcount:0 mapping:ffff8801d4e3ec00 index:0x0 compound_mapcount: 0 [ 35.610839] flags: 0x2fffc0000008100(slab|head) [ 35.615507] raw: 02fffc0000008100 ffff8801d4e3dc48 ffff8801d4e3dc48 ffff8801d4e3ec00 [ 35.623378] raw: 0000000000000000 ffff8801b7070040 0000000100000001 0000000000000000 [ 35.631243] page dumped because: kasan: bad access detected [ 35.636932] [ 35.638542] Memory state around the buggy address: [ 35.643461] ffff8801b706ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.650809] ffff8801b706ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.658185] >ffff8801b7070000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.665530] ^ [ 35.671746] ffff8801b7070080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.679118] ffff8801b7070100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.686494] ================================================================== [ 35.693838] Kernel panic - not syncing: panic_on_warn set ... [ 35.693838] [ 35.701193] CPU: 0 PID: 4657 Comm: syz-executor843 Tainted: G B 4.19.0-rc2+ #2 [ 35.709838] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.719189] Call Trace: [ 35.721776] dump_stack+0x1c9/0x2b4 [ 35.725404] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.730598] ? lock_downgrade+0x8f0/0x8f0 [ 35.734744] ? __schedule+0xf54/0x1df0 [ 35.738661] panic+0x238/0x4e7 [ 35.741847] ? add_taint.cold.5+0x16/0x16 [ 35.745992] ? print_shadow_for_address+0xba/0x116 [ 35.750916] ? trace_hardirqs_off+0xaf/0x2c0 [ 35.755332] ? trace_hardirqs_off+0x77/0x2c0 [ 35.759731] ? __schedule+0xf54/0x1df0 [ 35.763612] kasan_end_report+0x47/0x4f [ 35.767592] kasan_report.cold.7+0x76/0x30d [ 35.771914] __asan_report_load8_noabort+0x14/0x20 [ 35.776834] __schedule+0xf54/0x1df0 [ 35.780542] ? __sched_text_start+0x8/0x8 [ 35.784680] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.789778] ? __call_srcu+0x7e7/0x1040 [ 35.793754] ? check_same_owner+0x340/0x340 [ 35.798075] ? mark_held_locks+0x160/0x160 [ 35.802303] ? find_held_lock+0x36/0x1c0 [ 35.806361] preempt_schedule_common+0x22/0x60 [ 35.810942] _cond_resched+0x1d/0x30 [ 35.814648] wait_for_completion+0xa5/0x8d0 [ 35.818965] ? wait_for_completion_interruptible+0x950/0x950 [ 35.824755] ? __lockdep_init_map+0x105/0x590 [ 35.829246] ? __init_waitqueue_head+0x9e/0x150 [ 35.833904] ? init_wait_entry+0x1c0/0x1c0 [ 35.838149] __synchronize_srcu+0x189/0x240 [ 35.842462] ? call_srcu+0x10/0x10 [ 35.846000] ? rcu_unexpedite_gp+0x20/0x20 [ 35.850235] synchronize_srcu+0x335/0x56f [ 35.854373] ? lock_downgrade+0x8f0/0x8f0 [ 35.858529] ? synchronize_srcu_expedited+0x20/0x20 [ 35.863541] ? kasan_check_read+0x11/0x20 [ 35.867684] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.872260] ? kasan_check_write+0x14/0x20 [ 35.876483] ? do_raw_spin_lock+0xc1/0x200 [ 35.880717] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.886419] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.891862] ? kvfree+0x61/0x70 [ 35.895134] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.900145] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.904209] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.908640] ? kvm_arch_sync_events+0x30/0x30 [ 35.913133] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.918671] ? mmu_notifier_unregister+0x474/0x600 [ 35.923597] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.927993] ? kfree+0x111/0x210 [ 35.931372] ? __mmu_notifier_register+0x30/0x30 [ 35.936129] ? __free_pages+0x10a/0x190 [ 35.940096] ? free_unref_page+0x930/0x930 [ 35.944331] kvm_put_kvm+0x73f/0x1060 [ 35.948127] ? kvm_write_guest_cached+0x40/0x40 [ 35.952794] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.957276] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.961761] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.966339] ? kasan_check_write+0x14/0x20 [ 35.970562] ? do_raw_spin_lock+0xc1/0x200 [ 35.974812] ? kvm_irqfd_release+0xdd/0x120 [ 35.979126] ? kvm_irqfd_release+0xdd/0x120 [ 35.983444] ? kvm_put_kvm+0x1060/0x1060 [ 35.987514] kvm_vm_release+0x42/0x50 [ 35.991320] __fput+0x38a/0xa40 [ 35.994598] ? __alloc_file+0x400/0x400 [ 35.998594] ? check_same_owner+0x340/0x340 [ 36.002923] ? kasan_check_write+0x14/0x20 [ 36.007164] ? do_raw_spin_lock+0xc1/0x200 [ 36.011413] ____fput+0x15/0x20 [ 36.014700] task_work_run+0x1e8/0x2a0 [ 36.018605] ? task_work_cancel+0x240/0x240 [ 36.022946] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.028477] ? switch_task_namespaces+0xa2/0xd0 [ 36.033144] do_exit+0x1ae4/0x26e0 [ 36.036684] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.041350] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.045586] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.050604] ? kfree+0x1d7/0x210 [ 36.053963] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.058189] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.063895] ? is_bpf_text_address+0xd7/0x170 [ 36.068445] ? kernel_text_address+0x79/0xf0 [ 36.072843] ? __kernel_text_address+0xd/0x40 [ 36.077350] ? unwind_get_return_address+0x61/0xa0 [ 36.082278] ? __save_stack_trace+0x8d/0xf0 [ 36.086604] ? save_stack+0xa9/0xd0 [ 36.090223] ? save_stack+0x43/0xd0 [ 36.093844] ? __kasan_slab_free+0x11a/0x170 [ 36.098244] ? kasan_slab_free+0xe/0x10 [ 36.102213] ? putname+0xf2/0x130 [ 36.105667] ? __x64_sys_openat+0x9d/0x100 [ 36.109901] ? do_syscall_64+0x1b9/0x820 [ 36.113957] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.119314] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.123715] ? kasan_check_read+0x11/0x20 [ 36.127862] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.132263] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.136666] ? initcall_blacklisted+0x9a/0x1e0 [ 36.141248] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.146395] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.152103] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.157635] ? do_vfs_ioctl+0x201/0x1720 [ 36.161690] ? rcu_is_watching+0x8c/0x150 [ 36.165832] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.170148] ? ioctl_preallocate+0x300/0x300 [ 36.174562] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.180114] ? __fget_light+0x2f7/0x440 [ 36.184083] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.189619] ? smack_file_ioctl+0x210/0x3c0 [ 36.193931] ? fget_raw+0x20/0x20 [ 36.197378] ? smack_file_lock+0x2e0/0x2e0 [ 36.201621] do_group_exit+0x177/0x440 [ 36.205501] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.209832] ? __ia32_sys_exit+0x50/0x50 [ 36.213889] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.219020] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.224566] ? ksys_ioctl+0x81/0xd0 [ 36.228210] __x64_sys_exit_group+0x3e/0x50 [ 36.232539] do_syscall_64+0x1b9/0x820 [ 36.236419] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.241779] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.246705] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.251553] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 36.256573] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.261600] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.266619] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.271457] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.276638] RIP: 0033:0x43f028 [ 36.279827] Code: Bad RIP value. [ 36.283179] RSP: 002b:00007fff9c183638 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.290881] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 36.298155] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.305413] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.312674] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.320011] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 36.327299] [ 36.327303] ====================================================== [ 36.327306] WARNING: possible circular locking dependency detected [ 36.327308] 4.19.0-rc2+ #2 Not tainted [ 36.327311] ------------------------------------------------------ [ 36.327314] syz-executor843/4657 is trying to acquire lock: [ 36.327316] 000000003a3d748a ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.327324] [ 36.327326] but task is already holding lock: [ 36.327328] 00000000fbc79cc7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.327335] [ 36.327338] which lock already depends on the new lock. [ 36.327339] [ 36.327341] [ 36.327344] the existing dependency chain (in reverse order) is: [ 36.327345] [ 36.327346] -> #3 (report_lock){....}: [ 36.327354] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.327356] kasan_report+0x8e/0x110 [ 36.327359] __asan_report_load8_noabort+0x14/0x20 [ 36.327361] __schedule+0xf54/0x1df0 [ 36.327363] preempt_schedule_common+0x22/0x60 [ 36.327366] _cond_resched+0x1d/0x30 [ 36.327368] wait_for_completion+0xa5/0x8d0 [ 36.327370] __synchronize_srcu+0x189/0x240 [ 36.327373] synchronize_srcu+0x335/0x56f [ 36.327376] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.327378] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.327380] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.327382] kvm_put_kvm+0x73f/0x1060 [ 36.327384] kvm_vm_release+0x42/0x50 [ 36.327386] __fput+0x38a/0xa40 [ 36.327388] ____fput+0x15/0x20 [ 36.327390] task_work_run+0x1e8/0x2a0 [ 36.327392] do_exit+0x1ae4/0x26e0 [ 36.327395] do_group_exit+0x177/0x440 [ 36.327397] __x64_sys_exit_group+0x3e/0x50 [ 36.327399] do_syscall_64+0x1b9/0x820 [ 36.327402] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.327403] [ 36.327404] -> #2 (&rq->lock){-.-.}: [ 36.327412] _raw_spin_lock+0x2a/0x40 [ 36.327414] task_fork_fair+0x93/0x680 [ 36.327416] sched_fork+0x44b/0xbd0 [ 36.327418] copy_process+0x235e/0x7af0 [ 36.327420] _do_fork+0x1ca/0x1170 [ 36.327422] kernel_thread+0x34/0x40 [ 36.327424] rest_init+0x22/0xe4 [ 36.327426] start_kernel+0x913/0x94e [ 36.327429] x86_64_start_reservations+0x29/0x2b [ 36.327431] x86_64_start_kernel+0x76/0x79 [ 36.327433] secondary_startup_64+0xa4/0xb0 [ 36.327434] [ 36.327436] -> #1 (&p->pi_lock){-.-.}: [ 36.327443] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.327446] try_to_wake_up+0xd2/0x1250 [ 36.327448] wake_up_process+0x10/0x20 [ 36.327450] __up.isra.1+0x1c0/0x2a0 [ 36.327452] up+0x13c/0x1c0 [ 36.327454] __up_console_sem+0xbe/0x1b0 [ 36.327456] console_unlock+0x506/0x10e0 [ 36.327458] vprintk_emit+0x33a/0x910 [ 36.327460] vprintk_default+0x28/0x30 [ 36.327462] vprintk_func+0x7a/0x117 [ 36.327464] printk+0xa7/0xcf [ 36.327467] do_exit.cold.22+0x120/0x21f [ 36.327469] do_group_exit+0x177/0x440 [ 36.327471] __x64_sys_exit_group+0x3e/0x50 [ 36.327473] do_syscall_64+0x1b9/0x820 [ 36.327476] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.327477] [ 36.327478] -> #0 ((console_sem).lock){-...}: [ 36.327486] lock_acquire+0x1e4/0x4f0 [ 36.327488] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.327490] down_trylock+0x13/0x70 [ 36.327493] __down_trylock_console_sem+0xae/0x200 [ 36.327495] console_trylock+0x15/0xa0 [ 36.327497] vprintk_emit+0x31f/0x910 [ 36.327500] vprintk_default+0x28/0x30 [ 36.327502] vprintk_func+0x7a/0x117 [ 36.327504] printk+0xa7/0xcf [ 36.327506] kasan_report+0x9e/0x110 [ 36.327508] __asan_report_load8_noabort+0x14/0x20 [ 36.327510] __schedule+0xf54/0x1df0 [ 36.327513] preempt_schedule_common+0x22/0x60 [ 36.327515] _cond_resched+0x1d/0x30 [ 36.327517] wait_for_completion+0xa5/0x8d0 [ 36.327519] __synchronize_srcu+0x189/0x240 [ 36.327522] synchronize_srcu+0x335/0x56f [ 36.327524] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.327527] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.327529] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.327531] kvm_put_kvm+0x73f/0x1060 [ 36.327533] kvm_vm_release+0x42/0x50 [ 36.327535] __fput+0x38a/0xa40 [ 36.327537] ____fput+0x15/0x20 [ 36.327539] task_work_run+0x1e8/0x2a0 [ 36.327542] do_exit+0x1ae4/0x26e0 [ 36.327544] do_group_exit+0x177/0x440 [ 36.327546] __x64_sys_exit_group+0x3e/0x50 [ 36.327548] do_syscall_64+0x1b9/0x820 [ 36.327551] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.327552] [ 36.327555] other info that might help us debug this: [ 36.327556] [ 36.327558] Chain exists of: [ 36.327559] (console_sem).lock --> &rq->lock --> report_lock [ 36.327570] [ 36.327573] Possible unsafe locking scenario: [ 36.327574] [ 36.327584] CPU0 CPU1 [ 36.327586] ---- ---- [ 36.327588] lock(report_lock); [ 36.327593] lock(&rq->lock); [ 36.327598] lock(report_lock); [ 36.327602] lock((console_sem).lock); [ 36.327607] [ 36.327609] *** DEADLOCK *** [ 36.327610] [ 36.327612] 2 locks held by syz-executor843/4657: [ 36.327613] #0: 000000009863dc75 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.327623] #1: 00000000fbc79cc7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.327632] [ 36.327634] stack backtrace: [ 36.327637] CPU: 0 PID: 4657 Comm: syz-executor843 Not tainted 4.19.0-rc2+ #2 [ 36.327642] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.327643] Call Trace: [ 36.327645] dump_stack+0x1c9/0x2b4 [ 36.327648] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.327650] ? vprintk_func+0x100/0x117 [ 36.327653] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.327655] ? save_trace+0xe0/0x290 [ 36.327657] __lock_acquire+0x3449/0x5020 [ 36.327660] ? mark_held_locks+0x160/0x160 [ 36.327662] ? mark_held_locks+0x160/0x160 [ 36.327664] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.327667] ? is_bpf_text_address+0xd7/0x170 [ 36.327669] ? kernel_text_address+0x79/0xf0 [ 36.327671] ? __kernel_text_address+0xd/0x40 [ 36.327674] ? __save_stack_trace+0x8d/0xf0 [ 36.327676] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.327678] ? save_trace+0x290/0x290 [ 36.327681] ? save_stack_trace+0x1a/0x20 [ 36.327683] ? save_trace+0xe0/0x290 [ 36.327685] ? graph_lock+0x170/0x170 [ 36.327688] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.327690] lock_acquire+0x1e4/0x4f0 [ 36.327692] ? down_trylock+0x13/0x70 [ 36.327694] ? lock_release+0x9f0/0x9f0 [ 36.327696] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.327699] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.327701] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.327703] ? log_store+0x34f/0x4c0 [ 36.327705] ? vprintk_emit+0x31f/0x910 [ 36.327708] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.327710] ? down_trylock+0x13/0x70 [ 36.327712] down_trylock+0x13/0x70 [ 36.327714] __down_trylock_console_sem+0xae/0x200 [ 36.327716] console_trylock+0x15/0xa0 [ 36.327718] vprintk_emit+0x31f/0x910 [ 36.327721] ? wake_up_klogd+0x110/0x110 [ 36.327723] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.327725] ? kasan_check_read+0x11/0x20 [ 36.327728] ? rcu_is_watching+0x8c/0x150 [ 36.327730] ? rcu_pm_notify+0xc0/0xc0 [ 36.327732] ? lock_acquire+0x1e4/0x4f0 [ 36.327734] ? kasan_report+0x8e/0x110 [ 36.327736] ? __schedule+0xf54/0x1df0 [ 36.327738] vprintk_default+0x28/0x30 [ 36.327740] vprintk_func+0x7a/0x117 [ 36.327742] printk+0xa7/0xcf [ 36.327745] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.327747] ? kasan_check_write+0x14/0x20 [ 36.327749] ? do_raw_spin_lock+0xc1/0x200 [ 36.327752] ? do_raw_spin_lock+0xc1/0x200 [ 36.327754] kasan_report+0x9e/0x110 [ 36.327756] __asan_report_load8_noabort+0x14/0x20 [ 36.327759] __schedule+0xf54/0x1df0 [ 36.327762] ? __sched_text_start+0x8/0x8 [ 36.327765] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 36.327767] ? __call_srcu+0x7e7/0x1040 [ 36.327770] ? check_same_owner+0x340/0x340 [ 36.327772] ? mark_held_locks+0x160/0x160 [ 36.327774] ? find_held_lock+0x36/0x1c0 [ 36.327777] preempt_schedule_common+0x22/0x60 [ 36.327779] _cond_resched+0x1d/0x30 [ 36.327781] wait_for_completion+0xa5/0x8d0 [ 36.327784] ? wait_for_completion_interruptible+0x950/0x950 [ 36.327786] ? __lockdep_init_map+0x105/0x590 [ 36.327789] ? __init_waitqueue_head+0x9e/0x150 [ 36.327791] ? init_wait_entry+0x1c0/0x1c0 [ 36.327793] __synchronize_srcu+0x189/0x240 [ 36.327795] ? call_srcu+0x10/0x10 [ 36.327798] ? rcu_unexpedite_gp+0x20/0x20 [ 36.327800] synchronize_srcu+0x335/0x56f [ 36.327802] ? lock_downgrade+0x8f0/0x8f0 [ 36.327805] ? synchronize_srcu_expedited+0x20/0x20 [ 36.327807] ? kasan_check_read+0x11/0x20 [ 36.327809] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.327812] ? kasan_check_write+0x14/0x20 [ 36.327814] ? do_raw_spin_lock+0xc1/0x200 [ 36.327817] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.327819] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.327821] ? kvfree+0x61/0x70 [ 36.327824] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.327826] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.327828] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.327831] ? kvm_arch_sync_events+0x30/0x30 [ 36.327833] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.327836] ? mmu_notifier_unregister+0x474/0x600 [ 36.327838] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.327840] ? kfree+0x111/0x210 [ 36.327843] ? __mmu_notifier_register+0x30/0x30 [ 36.327845] ? __free_pages+0x10a/0x190 [ 36.327847] ? free_unref_page+0x930/0x930 [ 36.327849] kvm_put_kvm+0x73f/0x1060 [ 36.327851] ? kvm_write_guest_cached+0x40/0x40 [ 36.327854] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.327856] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.327858] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.327861] ? kasan_check_write+0x14/0x20 [ 36.327863] ? do_raw_spin_lock+0xc1/0x200 [ 36.327865] ? kvm_irqfd_release+0xdd/0x120 [ 36.327867] ? kvm_irqfd_release+0xdd/0x120 [ 36.327869] ? kvm_put_kvm+0x1060/0x1060 [ 36.327872] kvm_vm_release+0x42/0x50 [ 36.327873] __fput+0x38a/0xa40 [ 36.327876] ? __alloc_file+0x400/0x400 [ 36.327878] ? check_same_owner+0x340/0x340 [ 36.327880] ? kasan_check_write+0x14/0x20 [ 36.327882] ? do_raw_spin_lock+0xc1/0x200 [ 36.327884] ____fput+0x15/0x20 [ 36.327886] task_work_run+0x1e8/0x2a0 [ 36.327888] ? task_work_cancel+0x240/0x240 [ 36.327891] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.327894] ? switch_task_namespaces+0xa2/0xd0 [ 36.327895] do_exit+0x1ae4/0x26e0 [ 36.327898] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.327900] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.327903] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.327904] ? kfree+0x1d7/0x210 [ 36.327907] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.327909] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.327911] ? is_bpf_text_ad [ 36.327916] Lost 55 message(s)! [ 37.449588] Shutting down cpus with NMI [ 38.507263] Dumping ftrace buffer: [ 38.510798] (ftrace buffer empty) [ 38.514486] Kernel Offset: disabled [ 38.518093] Rebooting in 86400 seconds..