[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 21.883447] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.068338] random: sshd: uninitialized urandom read (32 bytes read) [ 24.310741] random: sshd: uninitialized urandom read (32 bytes read) [ 24.850152] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.34' (ECDSA) to the list of known hosts. [ 30.583808] urandom_read: 1 callbacks suppressed [ 30.583814] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 30.684069] 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. [ 30.708847] ================================================================== [ 30.719147] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 30.725376] Read of size 8 at addr ffff8801b6498058 by task syz-executor497/4665 [ 30.732893] [ 30.734518] CPU: 0 PID: 4665 Comm: syz-executor497 Not tainted 4.19.0-rc1+ #216 [ 30.741953] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.751538] Call Trace: [ 30.754136] dump_stack+0x1c9/0x2b4 [ 30.757767] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.762975] ? printk+0xa7/0xcf [ 30.766254] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.771008] ? __schedule+0xf54/0x1df0 [ 30.774891] print_address_description+0x6c/0x20b [ 30.779729] ? __schedule+0xf54/0x1df0 [ 30.783613] kasan_report.cold.7+0x242/0x30d [ 30.788022] __asan_report_load8_noabort+0x14/0x20 [ 30.792946] __schedule+0xf54/0x1df0 [ 30.796660] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 30.801765] ? __sched_text_start+0x8/0x8 [ 30.805909] ? __call_srcu+0x7e7/0x1040 [ 30.809890] ? check_same_owner+0x340/0x340 [ 30.814210] ? mark_held_locks+0x160/0x160 [ 30.818442] ? find_held_lock+0x36/0x1c0 [ 30.822506] preempt_schedule_common+0x22/0x60 [ 30.827083] _cond_resched+0x1d/0x30 [ 30.830805] wait_for_completion+0xa5/0x8d0 [ 30.835138] ? wait_for_completion_interruptible+0x950/0x950 [ 30.840935] ? __lockdep_init_map+0x105/0x590 [ 30.845433] ? __init_waitqueue_head+0x9e/0x150 [ 30.850100] ? init_wait_entry+0x1c0/0x1c0 [ 30.854353] __synchronize_srcu+0x189/0x240 [ 30.858672] ? call_srcu+0x10/0x10 [ 30.862211] ? rcu_unexpedite_gp+0x20/0x20 [ 30.866451] synchronize_srcu+0x335/0x56f [ 30.870595] ? lock_downgrade+0x8f0/0x8f0 [ 30.874739] ? synchronize_srcu_expedited+0x20/0x20 [ 30.879752] ? kasan_check_read+0x11/0x20 [ 30.883901] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 30.888479] ? kasan_check_write+0x14/0x20 [ 30.892713] ? do_raw_spin_lock+0xc1/0x200 [ 30.896949] kvm_page_track_unregister_notifier+0x17d/0x250 [ 30.902659] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 30.908106] ? kvfree+0x61/0x70 [ 30.911402] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.916419] kvm_mmu_uninit_vm+0x1c/0x20 [ 30.920476] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 30.924881] ? kvm_arch_sync_events+0x30/0x30 [ 30.929378] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 30.934915] ? mmu_notifier_unregister+0x474/0x600 [ 30.939838] ? trace_hardirqs_on+0x2c0/0x2c0 [ 30.944243] ? kfree+0x111/0x210 [ 30.947610] ? __mmu_notifier_register+0x30/0x30 [ 30.952364] ? __free_pages+0x10a/0x190 [ 30.956336] ? free_unref_page+0x930/0x930 [ 30.960578] kvm_put_kvm+0x73f/0x1060 [ 30.964382] ? kvm_write_guest_cached+0x40/0x40 [ 30.969054] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.973545] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.978036] ? lockdep_hardirqs_on+0x421/0x5c0 [ 30.982620] ? kasan_check_write+0x14/0x20 [ 30.986852] ? do_raw_spin_lock+0xc1/0x200 [ 30.991085] ? kvm_irqfd_release+0xdd/0x120 [ 30.995411] ? kvm_irqfd_release+0xdd/0x120 [ 30.999735] ? kvm_put_kvm+0x1060/0x1060 [ 31.003793] kvm_vm_release+0x42/0x50 [ 31.007590] __fput+0x38a/0xa40 [ 31.010867] ? __alloc_file+0x400/0x400 [ 31.014842] ? check_same_owner+0x340/0x340 [ 31.019161] ? kasan_check_write+0x14/0x20 [ 31.023390] ? do_raw_spin_lock+0xc1/0x200 [ 31.027619] ____fput+0x15/0x20 [ 31.030896] task_work_run+0x1e8/0x2a0 [ 31.034782] ? task_work_cancel+0x240/0x240 [ 31.039103] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.044651] ? switch_task_namespaces+0xa2/0xd0 [ 31.049318] do_exit+0x1ae4/0x26e0 [ 31.052860] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.057531] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.061763] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.066778] ? kfree+0x1d7/0x210 [ 31.070149] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.074382] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.080092] ? is_bpf_text_address+0xd7/0x170 [ 31.084597] ? kernel_text_address+0x79/0xf0 [ 31.089003] ? __kernel_text_address+0xd/0x40 [ 31.093495] ? unwind_get_return_address+0x61/0xa0 [ 31.098424] ? __save_stack_trace+0x8d/0xf0 [ 31.102747] ? save_stack+0xa9/0xd0 [ 31.106374] ? save_stack+0x43/0xd0 [ 31.110003] ? __kasan_slab_free+0x11a/0x170 [ 31.114408] ? kasan_slab_free+0xe/0x10 [ 31.118379] ? putname+0xf2/0x130 [ 31.121832] ? __x64_sys_openat+0x9d/0x100 [ 31.126066] ? do_syscall_64+0x1b9/0x820 [ 31.130138] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.135504] ? trace_hardirqs_off+0xb8/0x2b0 [ 31.139911] ? kasan_check_read+0x11/0x20 [ 31.144059] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.148467] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.152876] ? initcall_blacklisted+0x9a/0x1e0 [ 31.157459] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 31.162568] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.168278] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.173812] ? do_vfs_ioctl+0x201/0x1720 [ 31.177869] ? rcu_is_watching+0x8c/0x150 [ 31.182011] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.186335] ? ioctl_preallocate+0x300/0x300 [ 31.190745] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.196279] ? __fget_light+0x2f7/0x440 [ 31.200252] ? fget_raw+0x20/0x20 [ 31.203702] ? putname+0xf2/0x130 [ 31.207165] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.212183] ? kmem_cache_free+0x246/0x280 [ 31.216417] ? putname+0xf7/0x130 [ 31.219873] do_group_exit+0x177/0x440 [ 31.223756] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.228074] ? __ia32_sys_exit+0x50/0x50 [ 31.232144] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.237247] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.242782] ? ksys_ioctl+0x81/0xd0 [ 31.246411] __x64_sys_exit_group+0x3e/0x50 [ 31.250732] do_syscall_64+0x1b9/0x820 [ 31.254617] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 31.259990] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.264917] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.269761] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 31.274783] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.279801] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.284645] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.289830] RIP: 0033:0x43ef08 [ 31.293024] Code: Bad RIP value. [ 31.296404] RSP: 002b:00007fff667054c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.304124] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 31.311397] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.318667] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.325934] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 31.333208] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 31.340485] [ 31.342117] Allocated by task 4665: [ 31.345751] save_stack+0x43/0xd0 [ 31.349201] kasan_kmalloc+0xc4/0xe0 [ 31.352911] kasan_slab_alloc+0x12/0x20 [ 31.356879] kmem_cache_alloc+0x12e/0x710 [ 31.361028] vmx_create_vcpu+0xcf/0x2830 [ 31.365082] kvm_arch_vcpu_create+0xe5/0x220 [ 31.369497] kvm_vm_ioctl+0x488/0x1d80 [ 31.373378] do_vfs_ioctl+0x1de/0x1720 [ 31.377261] ksys_ioctl+0xa9/0xd0 [ 31.380708] __x64_sys_ioctl+0x73/0xb0 [ 31.384592] do_syscall_64+0x1b9/0x820 [ 31.388474] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.393653] [ 31.395271] Freed by task 4665: [ 31.398544] save_stack+0x43/0xd0 [ 31.401990] __kasan_slab_free+0x11a/0x170 [ 31.406219] kasan_slab_free+0xe/0x10 [ 31.410012] kmem_cache_free+0x86/0x280 [ 31.413979] vmx_free_vcpu+0x26b/0x300 [ 31.417864] kvm_arch_destroy_vm+0x365/0x7c0 [ 31.422271] kvm_put_kvm+0x73f/0x1060 [ 31.426069] kvm_vm_release+0x42/0x50 [ 31.429863] __fput+0x38a/0xa40 [ 31.433146] ____fput+0x15/0x20 [ 31.436421] task_work_run+0x1e8/0x2a0 [ 31.440301] do_exit+0x1ae4/0x26e0 [ 31.443834] do_group_exit+0x177/0x440 [ 31.447714] __x64_sys_exit_group+0x3e/0x50 [ 31.452031] do_syscall_64+0x1b9/0x820 [ 31.455913] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.461090] [ 31.462720] The buggy address belongs to the object at ffff8801b6498040 [ 31.462720] which belongs to the cache kvm_vcpu of size 23872 [ 31.475287] The buggy address is located 24 bytes inside of [ 31.475287] 23872-byte region [ffff8801b6498040, ffff8801b649dd80) [ 31.487238] The buggy address belongs to the page: [ 31.492166] page:ffffea0006d92600 count:1 mapcount:0 mapping:ffff8801d52f7d80 index:0x0 compound_mapcount: 0 [ 31.502148] flags: 0x2fffc0000008100(slab|head) [ 31.506822] raw: 02fffc0000008100 ffff8801d52f0848 ffff8801d52f0848 ffff8801d52f7d80 [ 31.514699] raw: 0000000000000000 ffff8801b6498040 0000000100000001 0000000000000000 [ 31.522568] page dumped because: kasan: bad access detected [ 31.528268] [ 31.529885] Memory state around the buggy address: [ 31.534812] ffff8801b6497f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.542163] ffff8801b6497f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.549515] >ffff8801b6498000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.556860] ^ [ 31.563082] ffff8801b6498080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.570440] ffff8801b6498100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.577789] ================================================================== [ 31.585146] Kernel panic - not syncing: panic_on_warn set ... [ 31.585146] [ 31.592509] CPU: 0 PID: 4665 Comm: syz-executor497 Tainted: G B 4.19.0-rc1+ #216 [ 31.601336] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.610681] Call Trace: [ 31.613274] dump_stack+0x1c9/0x2b4 [ 31.616902] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.622530] ? lock_downgrade+0x8f0/0x8f0 [ 31.626677] ? __schedule+0xf54/0x1df0 [ 31.630561] panic+0x238/0x4e7 [ 31.633749] ? add_taint.cold.5+0x16/0x16 [ 31.637899] ? print_shadow_for_address+0xba/0x116 [ 31.642825] ? trace_hardirqs_off+0xaf/0x2b0 [ 31.647231] ? trace_hardirqs_off+0x77/0x2b0 [ 31.651637] ? __schedule+0xf54/0x1df0 [ 31.655521] kasan_end_report+0x47/0x4f [ 31.659495] kasan_report.cold.7+0x76/0x30d [ 31.663817] __asan_report_load8_noabort+0x14/0x20 [ 31.668743] __schedule+0xf54/0x1df0 [ 31.672452] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.677556] ? __sched_text_start+0x8/0x8 [ 31.681704] ? __call_srcu+0x7e7/0x1040 [ 31.685683] ? check_same_owner+0x340/0x340 [ 31.690002] ? mark_held_locks+0x160/0x160 [ 31.694238] ? find_held_lock+0x36/0x1c0 [ 31.698299] preempt_schedule_common+0x22/0x60 [ 31.702880] _cond_resched+0x1d/0x30 [ 31.706593] wait_for_completion+0xa5/0x8d0 [ 31.710915] ? wait_for_completion_interruptible+0x950/0x950 [ 31.716713] ? __lockdep_init_map+0x105/0x590 [ 31.721208] ? __init_waitqueue_head+0x9e/0x150 [ 31.725873] ? init_wait_entry+0x1c0/0x1c0 [ 31.730118] __synchronize_srcu+0x189/0x240 [ 31.734442] ? call_srcu+0x10/0x10 [ 31.737985] ? rcu_unexpedite_gp+0x20/0x20 [ 31.742225] synchronize_srcu+0x335/0x56f [ 31.746374] ? lock_downgrade+0x8f0/0x8f0 [ 31.750523] ? synchronize_srcu_expedited+0x20/0x20 [ 31.755541] ? kasan_check_read+0x11/0x20 [ 31.759687] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.764267] ? kasan_check_write+0x14/0x20 [ 31.768498] ? do_raw_spin_lock+0xc1/0x200 [ 31.772738] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.778448] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.783894] ? kvfree+0x61/0x70 [ 31.787175] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.792193] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.796255] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.800661] ? kvm_arch_sync_events+0x30/0x30 [ 31.805165] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.810701] ? mmu_notifier_unregister+0x474/0x600 [ 31.815626] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.820030] ? kfree+0x111/0x210 [ 31.823406] ? __mmu_notifier_register+0x30/0x30 [ 31.828167] ? __free_pages+0x10a/0x190 [ 31.832152] ? free_unref_page+0x930/0x930 [ 31.836399] kvm_put_kvm+0x73f/0x1060 [ 31.840205] ? kvm_write_guest_cached+0x40/0x40 [ 31.844878] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.849370] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.853861] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.858446] ? kasan_check_write+0x14/0x20 [ 31.862682] ? do_raw_spin_lock+0xc1/0x200 [ 31.866919] ? kvm_irqfd_release+0xdd/0x120 [ 31.871241] ? kvm_irqfd_release+0xdd/0x120 [ 31.875566] ? kvm_put_kvm+0x1060/0x1060 [ 31.879628] kvm_vm_release+0x42/0x50 [ 31.883426] __fput+0x38a/0xa40 [ 31.886705] ? __alloc_file+0x400/0x400 [ 31.890682] ? check_same_owner+0x340/0x340 [ 31.895001] ? kasan_check_write+0x14/0x20 [ 31.899236] ? do_raw_spin_lock+0xc1/0x200 [ 31.903491] ____fput+0x15/0x20 [ 31.906766] task_work_run+0x1e8/0x2a0 [ 31.910651] ? task_work_cancel+0x240/0x240 [ 31.914974] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.920508] ? switch_task_namespaces+0xa2/0xd0 [ 31.925196] do_exit+0x1ae4/0x26e0 [ 31.928741] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.933413] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.937646] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.942661] ? kfree+0x1d7/0x210 [ 31.946028] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.950261] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.955971] ? is_bpf_text_address+0xd7/0x170 [ 31.960483] ? kernel_text_address+0x79/0xf0 [ 31.964890] ? __kernel_text_address+0xd/0x40 [ 31.969384] ? unwind_get_return_address+0x61/0xa0 [ 31.974314] ? __save_stack_trace+0x8d/0xf0 [ 31.978641] ? save_stack+0xa9/0xd0 [ 31.982265] ? save_stack+0x43/0xd0 [ 31.985890] ? __kasan_slab_free+0x11a/0x170 [ 31.990293] ? kasan_slab_free+0xe/0x10 [ 31.994263] ? putname+0xf2/0x130 [ 31.997713] ? __x64_sys_openat+0x9d/0x100 [ 32.001946] ? do_syscall_64+0x1b9/0x820 [ 32.006004] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.011365] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.015769] ? kasan_check_read+0x11/0x20 [ 32.019913] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.024317] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.028748] ? initcall_blacklisted+0x9a/0x1e0 [ 32.033329] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.038433] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.044158] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.049693] ? do_vfs_ioctl+0x201/0x1720 [ 32.053751] ? rcu_is_watching+0x8c/0x150 [ 32.057893] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.062212] ? ioctl_preallocate+0x300/0x300 [ 32.066619] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.072157] ? __fget_light+0x2f7/0x440 [ 32.076141] ? fget_raw+0x20/0x20 [ 32.079589] ? putname+0xf2/0x130 [ 32.083042] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.088052] ? kmem_cache_free+0x246/0x280 [ 32.092286] ? putname+0xf7/0x130 [ 32.095742] do_group_exit+0x177/0x440 [ 32.099626] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.103946] ? __ia32_sys_exit+0x50/0x50 [ 32.108003] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.113104] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.118652] ? ksys_ioctl+0x81/0xd0 [ 32.122283] __x64_sys_exit_group+0x3e/0x50 [ 32.126607] do_syscall_64+0x1b9/0x820 [ 32.130495] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.135855] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.140782] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.145624] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.150642] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.155659] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.160506] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.165690] RIP: 0033:0x43ef08 [ 32.168879] Code: Bad RIP value. [ 32.172240] RSP: 002b:00007fff667054c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.179946] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 32.187209] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.194473] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.201739] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.209003] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.216279] [ 32.216285] ====================================================== [ 32.216290] WARNING: possible circular locking dependency detected [ 32.216294] 4.19.0-rc1+ #216 Not tainted [ 32.216299] ------------------------------------------------------ [ 32.216304] syz-executor497/4665 is trying to acquire lock: [ 32.216307] 0000000090edbc4e ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 32.216322] [ 32.216326] but task is already holding lock: [ 32.216330] 000000007a6b489f (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.216344] [ 32.216348] which lock already depends on the new lock. [ 32.216350] [ 32.216353] [ 32.216358] the existing dependency chain (in reverse order) is: [ 32.216360] [ 32.216362] -> #3 (report_lock){....}: [ 32.216377] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.216381] kasan_report+0x8e/0x110 [ 32.216385] __asan_report_load8_noabort+0x14/0x20 [ 32.216389] __schedule+0xf54/0x1df0 [ 32.216393] preempt_schedule_common+0x22/0x60 [ 32.216397] _cond_resched+0x1d/0x30 [ 32.216401] wait_for_completion+0xa5/0x8d0 [ 32.216406] __synchronize_srcu+0x189/0x240 [ 32.216410] synchronize_srcu+0x335/0x56f [ 32.216414] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.216418] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.216423] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.216427] kvm_put_kvm+0x73f/0x1060 [ 32.216430] kvm_vm_release+0x42/0x50 [ 32.216434] __fput+0x38a/0xa40 [ 32.216438] ____fput+0x15/0x20 [ 32.216441] task_work_run+0x1e8/0x2a0 [ 32.216445] do_exit+0x1ae4/0x26e0 [ 32.216449] do_group_exit+0x177/0x440 [ 32.216453] __x64_sys_exit_group+0x3e/0x50 [ 32.216457] do_syscall_64+0x1b9/0x820 [ 32.216462] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.216464] [ 32.216466] -> #2 (&rq->lock){-.-.}: [ 32.216480] _raw_spin_lock+0x2a/0x40 [ 32.216484] task_fork_fair+0x93/0x680 [ 32.216488] sched_fork+0x44b/0xbd0 [ 32.216492] copy_process+0x235e/0x7ad0 [ 32.216496] _do_fork+0x1ca/0x1170 [ 32.216499] kernel_thread+0x34/0x40 [ 32.216503] rest_init+0x22/0xe4 [ 32.216507] start_kernel+0x913/0x94e [ 32.216511] x86_64_start_reservations+0x29/0x2b [ 32.216515] x86_64_start_kernel+0x76/0x79 [ 32.216520] secondary_startup_64+0xa4/0xb0 [ 32.216522] [ 32.216524] -> #1 (&p->pi_lock){-.-.}: [ 32.216538] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.216542] try_to_wake_up+0xd2/0x1250 [ 32.216546] wake_up_process+0x10/0x20 [ 32.216550] __up.isra.1+0x1c0/0x2a0 [ 32.216553] up+0x13c/0x1c0 [ 32.216557] __up_console_sem+0xbe/0x1b0 [ 32.216561] console_unlock+0x506/0x10d0 [ 32.216565] vprintk_emit+0x33a/0x910 [ 32.216569] vprintk_default+0x28/0x30 [ 32.216573] vprintk_func+0x7a/0x117 [ 32.216576] printk+0xa7/0xcf [ 32.216580] load_umh+0x51/0xbd [ 32.216584] do_one_initcall+0x127/0x838 [ 32.216588] kernel_init_freeable+0x4bb/0x5ae [ 32.216592] kernel_init+0x11/0x1b3 [ 32.216595] ret_from_fork+0x3a/0x50 [ 32.216598] [ 32.216600] -> #0 ((console_sem).lock){-...}: [ 32.216614] lock_acquire+0x1e4/0x4f0 [ 32.216619] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.216622] down_trylock+0x13/0x70 [ 32.216627] __down_trylock_console_sem+0xae/0x200 [ 32.216631] console_trylock+0x15/0xa0 [ 32.216634] vprintk_emit+0x31f/0x910 [ 32.216638] vprintk_default+0x28/0x30 [ 32.216641] vprintk_func+0x7a/0x117 [ 32.216644] printk+0xa7/0xcf [ 32.216648] kasan_report+0x9e/0x110 [ 32.216653] __asan_report_load8_noabort+0x14/0x20 [ 32.216656] __schedule+0xf54/0x1df0 [ 32.216661] preempt_schedule_common+0x22/0x60 [ 32.216665] _cond_resched+0x1d/0x30 [ 32.216669] wait_for_completion+0xa5/0x8d0 [ 32.216673] __synchronize_srcu+0x189/0x240 [ 32.216677] synchronize_srcu+0x335/0x56f [ 32.216682] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.216686] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.216690] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.216694] kvm_put_kvm+0x73f/0x1060 [ 32.216698] kvm_vm_release+0x42/0x50 [ 32.216701] __fput+0x38a/0xa40 [ 32.216705] ____fput+0x15/0x20 [ 32.216709] task_work_run+0x1e8/0x2a0 [ 32.216712] do_exit+0x1ae4/0x26e0 [ 32.216716] do_group_exit+0x177/0x440 [ 32.216720] __x64_sys_exit_group+0x3e/0x50 [ 32.216724] do_syscall_64+0x1b9/0x820 [ 32.216729] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.216731] [ 32.216735] other info that might help us debug this: [ 32.216738] [ 32.216741] Chain exists of: [ 32.216743] (console_sem).lock --> &rq->lock --> report_lock [ 32.216761] [ 32.216765] Possible unsafe locking scenario: [ 32.216767] [ 32.216771] CPU0 CPU1 [ 32.216775] ---- ---- [ 32.216778] lock(report_lock); [ 32.216787] lock(&rq->lock); [ 32.216796] lock(report_lock); [ 32.216804] lock((console_sem).lock); [ 32.216812] [ 32.216815] *** DEADLOCK *** [ 32.216817] [ 32.216822] 2 locks held by syz-executor497/4665: [ 32.216824] #0: 000000000fba7761 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 32.216841] #1: 000000007a6b489f (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.216858] [ 32.216861] stack backtrace: [ 32.216867] CPU: 0 PID: 4665 Comm: syz-executor497 Not tainted 4.19.0-rc1+ #216 [ 32.216874] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.216877] Call Trace: [ 32.216881] dump_stack+0x1c9/0x2b4 [ 32.216885] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.216889] ? vprintk_func+0x100/0x117 [ 32.216894] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 32.216898] ? save_trace+0xe0/0x290 [ 32.216902] __lock_acquire+0x3449/0x5020 [ 32.216906] ? mark_held_locks+0x160/0x160 [ 32.216910] ? mark_held_locks+0x160/0x160 [ 32.216914] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.216918] ? is_bpf_text_address+0xd7/0x170 [ 32.216922] ? kernel_text_address+0x79/0xf0 [ 32.216927] ? __kernel_text_address+0xd/0x40 [ 32.216931] ? __save_stack_trace+0x8d/0xf0 [ 32.216935] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 32.216939] ? save_trace+0x290/0x290 [ 32.216943] ? save_stack_trace+0x1a/0x20 [ 32.216947] ? save_trace+0xe0/0x290 [ 32.216951] ? graph_lock+0x170/0x170 [ 32.216955] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.216959] lock_acquire+0x1e4/0x4f0 [ 32.216963] ? down_trylock+0x13/0x70 [ 32.216967] ? lock_release+0x9f0/0x9f0 [ 32.216971] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.216975] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.216979] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.216983] ? log_store+0x34f/0x4c0 [ 32.216987] ? vprintk_emit+0x31f/0x910 [ 32.216991] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.216995] ? down_trylock+0x13/0x70 [ 32.216998] down_trylock+0x13/0x70 [ 32.217003] __down_trylock_console_sem+0xae/0x200 [ 32.217007] console_trylock+0x15/0xa0 [ 32.217011] vprintk_emit+0x31f/0x910 [ 32.217014] ? wake_up_klogd+0x110/0x110 [ 32.217019] ? run_rebalance_domains+0x4c0/0x4c0 [ 32.217023] ? kasan_check_read+0x11/0x20 [ 32.217027] ? rcu_is_watching+0x8c/0x150 [ 32.217031] ? rcu_pm_notify+0xc0/0xc0 [ 32.217035] ? lock_acquire+0x1e4/0x4f0 [ 32.217038] ? kasan_report+0x8e/0x110 [ 32.217042] ? __schedule+0xf54/0x1df0 [ 32.217046] vprintk_default+0x28/0x30 [ 32.217050] vprintk_func+0x7a/0x117 [ 32.217053] printk+0xa7/0xcf [ 32.217057] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.217061] ? kasan_check_write+0x14/0x20 [ 32.217065] ? do_raw_spin_lock+0xc1/0x200 [ 32.217069] ? do_raw_spin_lock+0xc1/0x200 [ 32.217073] kasan_report+0x9e/0x110 [ 32.217078] __asan_report_load8_noabort+0x14/0x20 [ 32.217081] __schedule+0xf54/0x1df0 [ 32.217086] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.217090] ? __sched_text_start+0x8/0x8 [ 32.217094] ? __call_srcu+0x7e7/0x1040 [ 32.217098] ? check_same_owner+0x340/0x340 [ 32.217102] ? mark_held_locks+0x160/0x160 [ 32.217106] ? find_held_lock+0x36/0x1c0 [ 32.217118] preempt_schedule_common+0x22/0x60 [ 32.217122] _cond_resched+0x1d/0x30 [ 32.217126] wait_for_completion+0xa5/0x8d0 [ 32.217131] ? wait_for_completion_interruptible+0x950/0x950 [ 32.217140] ? __lockdep_init_map+0x105/0x590 [ 32.217144] ? __init_waitqueue_head+0x9e/0x150 [ 32.217148] ? init_wait_entry+0x1c0/0x1c0 [ 32.217152] __synchronize_srcu+0x189/0x240 [ 32.217156] ? call_srcu+0x10/0x10 [ 32.217160] ? rcu_unexpedite_gp+0x20/0x20 [ 32.217164] synchronize_srcu+0x335/0x56f [ 32.217168] ? lock_downgrade+0x8f0/0x8f0 [ 32.217173] ? synchronize_srcu_expedited+0x20/0x20 [ 32.217177] ? kasan_check_read+0x11/0x20 [ 32.217181] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.217185] ? kasan_check_write+0x14/0x20 [ 32.217189] ? do_raw_spin_lock+0xc1/0x200 [ 32.217194] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.217199] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.217202] ? kvfree+0x61/0x70 [ 32.217207] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.217211] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.217215] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.217219] ? kvm_arch_sync_events+0x30/0x30 [ 32.217224] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.217229] ? mmu_notifier_unregister+0x474/0x600 [ 32.217233] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.217236] ? kfree+0x111/0x210 [ 32.217241] ? __mmu_notifier_register+0x30/0x30 [ 32.217244] ? __free_pages+0x10a/0x190 [ 32.217249] ? free_unref_page+0x930/0x930 [ 32.217252] kvm_put_kvm+0x73f/0x1060 [ 32.217257] ? kvm_write_guest_cached+0x40/0x40 [ 32.217261] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.217265] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.217269] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.217273] ? kasan_check_write+0x14/0x20 [ 32.217277] ? do_raw_spin_lock+0xc1/0x200 [ 32.217281] ? kvm_irqfd_release+0xdd/0x120 [ 32.217285] ? kvm_irqfd_release+0xdd/0x120 [ 32.217289] ? kvm_put_kvm+0x1060/0x1060 [ 32.217293] kvm_vm_release+0x42/0x50 [ 32.217297] __fput+0x38a/0xa40 [ 32.217301] ? __alloc_file+0x400/0x400 [ 32.217305] ? check_same_owner+0x340/0x340 [ 32.217309] ? kasan_check_write+0x14/0x20 [ 32.217313] ? do_raw_spin_lock+0xc1/0x200 [ 32.217316] ____fput+0x15/0x20 [ 32.217320] task_work_run+0x1e8/0x2a0 [ 32.217324] ? task_work_cancel+0x240/0x240 [ 32.217329] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.217333] ? switch_task_namespaces+0xa2/0xd0 [ 32.217337] do_exit+0x1ae4/0x26e0 [ 32.217341] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.217345] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.217350] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.217353] ? kfree+0x1d7/0x210 [ 32.217357] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.217362] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.217366] ? is_bpf_text_address+0xd7/0x170 [ 32.217369] ? [ 32.217376] Lost 54 message(s)! [ 33.284080] Shutting down cpus with NMI [ 34.343221] Dumping ftrace buffer: [ 34.346747] (ftrace buffer empty) [ 34.350433] Kernel Offset: disabled [ 34.354042] Rebooting in 86400 seconds..