[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.878196] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.602514] random: sshd: uninitialized urandom read (32 bytes read) [ 25.978492] random: sshd: uninitialized urandom read (32 bytes read) [ 26.465247] random: sshd: uninitialized urandom read (32 bytes read) [ 26.629982] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.62' (ECDSA) to the list of known hosts. [ 32.133347] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.234684] 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. [ 32.259047] ================================================================== [ 32.268825] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.275078] Read of size 8 at addr ffff8801abef8058 by task syz-executor258/4466 [ 32.282592] [ 32.284214] CPU: 1 PID: 4466 Comm: syz-executor258 Not tainted 4.19.0-rc1+ #213 [ 32.292538] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.301878] Call Trace: [ 32.304461] dump_stack+0x1c9/0x2b4 [ 32.308085] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.313266] ? printk+0xa7/0xcf [ 32.316541] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.321293] ? __schedule+0xf54/0x1df0 [ 32.325178] print_address_description+0x6c/0x20b [ 32.330025] ? __schedule+0xf54/0x1df0 [ 32.333907] kasan_report.cold.7+0x242/0x30d [ 32.338312] __asan_report_load8_noabort+0x14/0x20 [ 32.343250] __schedule+0xf54/0x1df0 [ 32.346957] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.352067] ? __sched_text_start+0x8/0x8 [ 32.356208] ? __call_srcu+0x7e7/0x1040 [ 32.360184] ? check_same_owner+0x340/0x340 [ 32.364501] ? mark_held_locks+0x160/0x160 [ 32.368735] ? find_held_lock+0x36/0x1c0 [ 32.372794] preempt_schedule_common+0x22/0x60 [ 32.377379] _cond_resched+0x1d/0x30 [ 32.381085] wait_for_completion+0xa5/0x8d0 [ 32.385403] ? wait_for_completion_interruptible+0x950/0x950 [ 32.391194] ? __lockdep_init_map+0x105/0x590 [ 32.395683] ? __init_waitqueue_head+0x9e/0x150 [ 32.400341] ? init_wait_entry+0x1c0/0x1c0 [ 32.404577] __synchronize_srcu+0x189/0x240 [ 32.408902] ? call_srcu+0x10/0x10 [ 32.412436] ? rcu_unexpedite_gp+0x20/0x20 [ 32.416689] synchronize_srcu+0x335/0x56f [ 32.420834] ? lock_downgrade+0x8f0/0x8f0 [ 32.424974] ? synchronize_srcu_expedited+0x20/0x20 [ 32.429986] ? kasan_check_read+0x11/0x20 [ 32.434126] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.438706] ? kasan_check_write+0x14/0x20 [ 32.442934] ? do_raw_spin_lock+0xc1/0x200 [ 32.447178] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.452883] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.458339] ? kvfree+0x61/0x70 [ 32.461612] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.466638] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.470721] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.475119] ? kvm_arch_sync_events+0x30/0x30 [ 32.479615] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.485153] ? mmu_notifier_unregister+0x474/0x600 [ 32.490075] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.494490] ? kfree+0x111/0x210 [ 32.497875] ? __mmu_notifier_register+0x30/0x30 [ 32.502640] ? __free_pages+0x10a/0x190 [ 32.506611] ? free_unref_page+0x930/0x930 [ 32.510846] kvm_put_kvm+0x73f/0x1060 [ 32.514645] ? kvm_write_guest_cached+0x40/0x40 [ 32.519309] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.523797] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.528281] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.532862] ? kasan_check_write+0x14/0x20 [ 32.537101] ? do_raw_spin_lock+0xc1/0x200 [ 32.541328] ? kvm_irqfd_release+0xdd/0x120 [ 32.545652] ? kvm_irqfd_release+0xdd/0x120 [ 32.549968] ? kvm_put_kvm+0x1060/0x1060 [ 32.554031] kvm_vm_release+0x42/0x50 [ 32.557819] __fput+0x36e/0x8c0 [ 32.561089] ? __alloc_file+0x400/0x400 [ 32.565094] ? check_same_owner+0x340/0x340 [ 32.569422] ? kasan_check_write+0x14/0x20 [ 32.573648] ? do_raw_spin_lock+0xc1/0x200 [ 32.577878] ____fput+0x15/0x20 [ 32.581148] task_work_run+0x1e8/0x2a0 [ 32.585027] ? task_work_cancel+0x240/0x240 [ 32.589346] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.594879] ? switch_task_namespaces+0xa2/0xd0 [ 32.599541] do_exit+0x1ae4/0x26e0 [ 32.603075] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.607751] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.611979] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.616984] ? kfree+0x1d7/0x210 [ 32.620342] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.624571] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.630278] ? is_bpf_text_address+0xd7/0x170 [ 32.634761] ? kernel_text_address+0x79/0xf0 [ 32.639166] ? __kernel_text_address+0xd/0x40 [ 32.643655] ? unwind_get_return_address+0x61/0xa0 [ 32.648574] ? __save_stack_trace+0x8d/0xf0 [ 32.652891] ? save_stack+0xa9/0xd0 [ 32.656510] ? save_stack+0x43/0xd0 [ 32.660129] ? __kasan_slab_free+0x11a/0x170 [ 32.664533] ? kasan_slab_free+0xe/0x10 [ 32.668500] ? putname+0xf2/0x130 [ 32.671954] ? __x64_sys_openat+0x9d/0x100 [ 32.676179] ? do_syscall_64+0x1b9/0x820 [ 32.680232] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.685833] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.690235] ? kasan_check_read+0x11/0x20 [ 32.694382] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.698795] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.703211] ? initcall_blacklisted+0x9a/0x1e0 [ 32.707789] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.712885] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.718593] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.724127] ? do_vfs_ioctl+0x201/0x1720 [ 32.728184] ? rcu_is_watching+0x8c/0x150 [ 32.732322] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.736641] ? ioctl_preallocate+0x300/0x300 [ 32.741055] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.746584] ? __fget_light+0x2f7/0x440 [ 32.750550] ? fget_raw+0x20/0x20 [ 32.754008] ? putname+0xf2/0x130 [ 32.757463] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.762468] ? kmem_cache_free+0x246/0x280 [ 32.766692] ? putname+0xf7/0x130 [ 32.770155] do_group_exit+0x177/0x440 [ 32.774037] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.778373] ? __ia32_sys_exit+0x50/0x50 [ 32.782450] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.787541] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.793526] ? ksys_ioctl+0x81/0xd0 [ 32.797153] __x64_sys_exit_group+0x3e/0x50 [ 32.801475] do_syscall_64+0x1b9/0x820 [ 32.805359] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.810718] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.815641] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.820476] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.825482] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.830490] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.835503] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.840344] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.845528] RIP: 0033:0x43f028 [ 32.848715] Code: Bad RIP value. [ 32.852081] RSP: 002b:00007ffd1fb884a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.859780] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 32.867054] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.874312] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.881677] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.888949] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 32.896224] [ 32.897839] Allocated by task 4466: [ 32.901459] save_stack+0x43/0xd0 [ 32.904902] kasan_kmalloc+0xc4/0xe0 [ 32.908609] kasan_slab_alloc+0x12/0x20 [ 32.912575] kmem_cache_alloc+0x12e/0x710 [ 32.916739] vmx_create_vcpu+0xcf/0x2830 [ 32.920791] kvm_arch_vcpu_create+0xe5/0x220 [ 32.925187] kvm_vm_ioctl+0x488/0x1d80 [ 32.929067] do_vfs_ioctl+0x1de/0x1720 [ 32.932945] ksys_ioctl+0xa9/0xd0 [ 32.936387] __x64_sys_ioctl+0x73/0xb0 [ 32.940302] do_syscall_64+0x1b9/0x820 [ 32.944187] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.949356] [ 32.950969] Freed by task 4466: [ 32.954233] save_stack+0x43/0xd0 [ 32.957688] __kasan_slab_free+0x11a/0x170 [ 32.961941] kasan_slab_free+0xe/0x10 [ 32.965734] kmem_cache_free+0x86/0x280 [ 32.969714] vmx_free_vcpu+0x26b/0x300 [ 32.973594] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.978002] kvm_put_kvm+0x73f/0x1060 [ 32.981922] kvm_vm_release+0x42/0x50 [ 32.985733] __fput+0x36e/0x8c0 [ 32.989004] ____fput+0x15/0x20 [ 32.992301] task_work_run+0x1e8/0x2a0 [ 32.996193] do_exit+0x1ae4/0x26e0 [ 32.999727] do_group_exit+0x177/0x440 [ 33.003605] __x64_sys_exit_group+0x3e/0x50 [ 33.007942] do_syscall_64+0x1b9/0x820 [ 33.011849] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.017060] [ 33.018696] The buggy address belongs to the object at ffff8801abef8040 [ 33.018696] which belongs to the cache kvm_vcpu of size 23872 [ 33.031259] The buggy address is located 24 bytes inside of [ 33.031259] 23872-byte region [ffff8801abef8040, ffff8801abefdd80) [ 33.043209] The buggy address belongs to the page: [ 33.048159] page:ffffea0006afbe00 count:1 mapcount:0 mapping:ffff8801d8675040 index:0x0 compound_mapcount: 0 [ 33.058146] flags: 0x2fffc0000008100(slab|head) [ 33.062841] raw: 02fffc0000008100 ffff8801d577d148 ffff8801d577d148 ffff8801d8675040 [ 33.070718] raw: 0000000000000000 ffff8801abef8040 0000000100000001 0000000000000000 [ 33.078710] page dumped because: kasan: bad access detected [ 33.084400] [ 33.086038] Memory state around the buggy address: [ 33.090991] ffff8801abef7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.098440] ffff8801abef7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.105791] >ffff8801abef8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.113134] ^ [ 33.119378] ffff8801abef8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.126728] ffff8801abef8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.134067] ================================================================== [ 33.141413] Kernel panic - not syncing: panic_on_warn set ... [ 33.141413] [ 33.148782] CPU: 1 PID: 4466 Comm: syz-executor258 Tainted: G B 4.19.0-rc1+ #213 [ 33.157600] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.166948] Call Trace: [ 33.169536] dump_stack+0x1c9/0x2b4 [ 33.173161] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.178344] ? lock_downgrade+0x8f0/0x8f0 [ 33.182485] ? __schedule+0xf54/0x1df0 [ 33.186381] panic+0x238/0x4e7 [ 33.189562] ? add_taint.cold.5+0x16/0x16 [ 33.193705] ? print_shadow_for_address+0xba/0x116 [ 33.198628] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.203040] ? trace_hardirqs_off+0x77/0x2b0 [ 33.207458] ? __schedule+0xf54/0x1df0 [ 33.211351] kasan_end_report+0x47/0x4f [ 33.215320] kasan_report.cold.7+0x76/0x30d [ 33.219656] __asan_report_load8_noabort+0x14/0x20 [ 33.224581] __schedule+0xf54/0x1df0 [ 33.228284] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.233377] ? __sched_text_start+0x8/0x8 [ 33.237522] ? __call_srcu+0x7e7/0x1040 [ 33.241497] ? check_same_owner+0x340/0x340 [ 33.245826] ? mark_held_locks+0x160/0x160 [ 33.250076] ? find_held_lock+0x36/0x1c0 [ 33.254132] preempt_schedule_common+0x22/0x60 [ 33.258716] _cond_resched+0x1d/0x30 [ 33.262425] wait_for_completion+0xa5/0x8d0 [ 33.266743] ? wait_for_completion_interruptible+0x950/0x950 [ 33.272534] ? __lockdep_init_map+0x105/0x590 [ 33.277037] ? __init_waitqueue_head+0x9e/0x150 [ 33.281700] ? init_wait_entry+0x1c0/0x1c0 [ 33.285940] __synchronize_srcu+0x189/0x240 [ 33.290253] ? call_srcu+0x10/0x10 [ 33.293788] ? rcu_unexpedite_gp+0x20/0x20 [ 33.298027] synchronize_srcu+0x335/0x56f [ 33.302167] ? lock_downgrade+0x8f0/0x8f0 [ 33.306307] ? synchronize_srcu_expedited+0x20/0x20 [ 33.311319] ? kasan_check_read+0x11/0x20 [ 33.315479] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.320077] ? kasan_check_write+0x14/0x20 [ 33.324305] ? do_raw_spin_lock+0xc1/0x200 [ 33.328541] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.334249] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.339708] ? kvfree+0x61/0x70 [ 33.342996] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.348019] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.352072] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.356475] ? kvm_arch_sync_events+0x30/0x30 [ 33.360968] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.366512] ? mmu_notifier_unregister+0x474/0x600 [ 33.371435] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.375834] ? kfree+0x111/0x210 [ 33.379200] ? __mmu_notifier_register+0x30/0x30 [ 33.383953] ? __free_pages+0x10a/0x190 [ 33.387922] ? free_unref_page+0x930/0x930 [ 33.392174] kvm_put_kvm+0x73f/0x1060 [ 33.395969] ? kvm_write_guest_cached+0x40/0x40 [ 33.400676] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.405173] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.409663] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.414239] ? kasan_check_write+0x14/0x20 [ 33.418494] ? do_raw_spin_lock+0xc1/0x200 [ 33.422728] ? kvm_irqfd_release+0xdd/0x120 [ 33.427041] ? kvm_irqfd_release+0xdd/0x120 [ 33.431358] ? kvm_put_kvm+0x1060/0x1060 [ 33.435426] kvm_vm_release+0x42/0x50 [ 33.439217] __fput+0x36e/0x8c0 [ 33.442491] ? __alloc_file+0x400/0x400 [ 33.446477] ? check_same_owner+0x340/0x340 [ 33.450797] ? kasan_check_write+0x14/0x20 [ 33.455023] ? do_raw_spin_lock+0xc1/0x200 [ 33.459255] ____fput+0x15/0x20 [ 33.462525] task_work_run+0x1e8/0x2a0 [ 33.466410] ? task_work_cancel+0x240/0x240 [ 33.470725] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.476252] ? switch_task_namespaces+0xa2/0xd0 [ 33.480922] do_exit+0x1ae4/0x26e0 [ 33.484457] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.489154] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.493383] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.498394] ? kfree+0x1d7/0x210 [ 33.501759] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.506007] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.511713] ? is_bpf_text_address+0xd7/0x170 [ 33.516198] ? kernel_text_address+0x79/0xf0 [ 33.520602] ? __kernel_text_address+0xd/0x40 [ 33.525097] ? unwind_get_return_address+0x61/0xa0 [ 33.530027] ? __save_stack_trace+0x8d/0xf0 [ 33.534350] ? save_stack+0xa9/0xd0 [ 33.537967] ? save_stack+0x43/0xd0 [ 33.541582] ? __kasan_slab_free+0x11a/0x170 [ 33.546225] ? kasan_slab_free+0xe/0x10 [ 33.550195] ? putname+0xf2/0x130 [ 33.553641] ? __x64_sys_openat+0x9d/0x100 [ 33.557881] ? do_syscall_64+0x1b9/0x820 [ 33.561938] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.567297] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.571699] ? kasan_check_read+0x11/0x20 [ 33.575839] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.580241] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.584643] ? initcall_blacklisted+0x9a/0x1e0 [ 33.589223] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.594328] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.600046] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.605594] ? do_vfs_ioctl+0x201/0x1720 [ 33.609655] ? rcu_is_watching+0x8c/0x150 [ 33.613798] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.618129] ? ioctl_preallocate+0x300/0x300 [ 33.622538] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.628073] ? __fget_light+0x2f7/0x440 [ 33.632054] ? fget_raw+0x20/0x20 [ 33.635498] ? putname+0xf2/0x130 [ 33.638946] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.643952] ? kmem_cache_free+0x246/0x280 [ 33.648183] ? putname+0xf7/0x130 [ 33.651677] do_group_exit+0x177/0x440 [ 33.655565] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.659882] ? __ia32_sys_exit+0x50/0x50 [ 33.663946] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.669042] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.674568] ? ksys_ioctl+0x81/0xd0 [ 33.678197] __x64_sys_exit_group+0x3e/0x50 [ 33.682534] do_syscall_64+0x1b9/0x820 [ 33.686427] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.691793] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.696714] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.701546] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.706557] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.711563] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.716580] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.721418] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.726600] RIP: 0033:0x43f028 [ 33.729791] Code: Bad RIP value. [ 33.733159] RSP: 002b:00007ffd1fb884a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.740868] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 33.748132] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.755408] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.762780] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.770171] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 33.777565] [ 33.777570] ====================================================== [ 33.777575] WARNING: possible circular locking dependency detected [ 33.777578] 4.19.0-rc1+ #213 Not tainted [ 33.777583] ------------------------------------------------------ [ 33.777588] syz-executor258/4466 is trying to acquire lock: [ 33.777591] 00000000736d1ae0 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.777604] [ 33.777608] but task is already holding lock: [ 33.777611] 000000009f33b7f2 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.777623] [ 33.777627] which lock already depends on the new lock. [ 33.777630] [ 33.777632] [ 33.777636] the existing dependency chain (in reverse order) is: [ 33.777638] [ 33.777640] -> #3 (report_lock){....}: [ 33.777654] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.777658] kasan_report+0x8e/0x110 [ 33.777662] __asan_report_load8_noabort+0x14/0x20 [ 33.777665] __schedule+0xf54/0x1df0 [ 33.777669] preempt_schedule_common+0x22/0x60 [ 33.777673] _cond_resched+0x1d/0x30 [ 33.777688] wait_for_completion+0xa5/0x8d0 [ 33.777692] __synchronize_srcu+0x189/0x240 [ 33.777696] synchronize_srcu+0x335/0x56f [ 33.777713] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.777717] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.777721] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.777725] kvm_put_kvm+0x73f/0x1060 [ 33.777729] kvm_vm_release+0x42/0x50 [ 33.777732] __fput+0x36e/0x8c0 [ 33.777735] ____fput+0x15/0x20 [ 33.777739] task_work_run+0x1e8/0x2a0 [ 33.777743] do_exit+0x1ae4/0x26e0 [ 33.777746] do_group_exit+0x177/0x440 [ 33.777751] __x64_sys_exit_group+0x3e/0x50 [ 33.777754] do_syscall_64+0x1b9/0x820 [ 33.777759] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.777761] [ 33.777763] -> #2 (&rq->lock){-.-.}: [ 33.777777] _raw_spin_lock+0x2a/0x40 [ 33.777781] task_fork_fair+0x93/0x680 [ 33.777784] sched_fork+0x44b/0xbd0 [ 33.777788] copy_process+0x235e/0x7ad0 [ 33.777792] _do_fork+0x1ca/0x1170 [ 33.777795] kernel_thread+0x34/0x40 [ 33.777799] rest_init+0x22/0xe4 [ 33.777802] start_kernel+0x913/0x94e [ 33.777807] x86_64_start_reservations+0x29/0x2b [ 33.777811] x86_64_start_kernel+0x76/0x79 [ 33.777815] secondary_startup_64+0xa4/0xb0 [ 33.777817] [ 33.777819] -> #1 (&p->pi_lock){-.-.}: [ 33.777833] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.777837] try_to_wake_up+0xd2/0x1250 [ 33.777841] wake_up_process+0x10/0x20 [ 33.777844] __up.isra.1+0x1c0/0x2a0 [ 33.777848] up+0x13c/0x1c0 [ 33.777852] __up_console_sem+0xbe/0x1b0 [ 33.777855] console_unlock+0x506/0x10d0 [ 33.777859] vprintk_emit+0x33a/0x910 [ 33.777863] vprintk_default+0x28/0x30 [ 33.777867] vprintk_func+0x7a/0x117 [ 33.777870] printk+0xa7/0xcf [ 33.777873] load_umh+0x51/0xbd [ 33.777877] do_one_initcall+0x127/0x838 [ 33.777881] kernel_init_freeable+0x4bb/0x5ae [ 33.777885] kernel_init+0x11/0x1b3 [ 33.777889] ret_from_fork+0x3a/0x50 [ 33.777891] [ 33.777893] -> #0 ((console_sem).lock){-...}: [ 33.777907] lock_acquire+0x1e4/0x4f0 [ 33.777911] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.777915] down_trylock+0x13/0x70 [ 33.777919] __down_trylock_console_sem+0xae/0x200 [ 33.777923] console_trylock+0x15/0xa0 [ 33.777927] vprintk_emit+0x31f/0x910 [ 33.777930] vprintk_default+0x28/0x30 [ 33.777934] vprintk_func+0x7a/0x117 [ 33.777937] printk+0xa7/0xcf [ 33.777941] kasan_report+0x9e/0x110 [ 33.777946] __asan_report_load8_noabort+0x14/0x20 [ 33.777949] __schedule+0xf54/0x1df0 [ 33.777953] preempt_schedule_common+0x22/0x60 [ 33.777957] _cond_resched+0x1d/0x30 [ 33.777961] wait_for_completion+0xa5/0x8d0 [ 33.777965] __synchronize_srcu+0x189/0x240 [ 33.777969] synchronize_srcu+0x335/0x56f [ 33.777974] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.777978] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.777982] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.778002] kvm_put_kvm+0x73f/0x1060 [ 33.778005] kvm_vm_release+0x42/0x50 [ 33.778009] __fput+0x36e/0x8c0 [ 33.778012] ____fput+0x15/0x20 [ 33.778016] task_work_run+0x1e8/0x2a0 [ 33.778019] do_exit+0x1ae4/0x26e0 [ 33.778023] do_group_exit+0x177/0x440 [ 33.778027] __x64_sys_exit_group+0x3e/0x50 [ 33.778030] do_syscall_64+0x1b9/0x820 [ 33.778035] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.778037] [ 33.778041] other info that might help us debug this: [ 33.778043] [ 33.778046] Chain exists of: [ 33.778048] (console_sem).lock --> &rq->lock --> report_lock [ 33.778065] [ 33.778069] Possible unsafe locking scenario: [ 33.778071] [ 33.778075] CPU0 CPU1 [ 33.778079] ---- ---- [ 33.778081] lock(report_lock); [ 33.778089] lock(&rq->lock); [ 33.778098] lock(report_lock); [ 33.778106] lock((console_sem).lock); [ 33.778113] [ 33.778116] *** DEADLOCK *** [ 33.778118] [ 33.778122] 2 locks held by syz-executor258/4466: [ 33.778124] #0: 000000005f979de6 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.778146] #1: 000000009f33b7f2 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.778161] [ 33.778164] stack backtrace: [ 33.778170] CPU: 1 PID: 4466 Comm: syz-executor258 Not tainted 4.19.0-rc1+ #213 [ 33.778177] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.778179] Call Trace: [ 33.778183] dump_stack+0x1c9/0x2b4 [ 33.778187] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.778191] ? vprintk_func+0x100/0x117 [ 33.778195] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.778199] ? save_trace+0xe0/0x290 [ 33.778203] __lock_acquire+0x3449/0x5020 [ 33.778207] ? mark_held_locks+0x160/0x160 [ 33.778210] ? mark_held_locks+0x160/0x160 [ 33.778214] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.778218] ? is_bpf_text_address+0xd7/0x170 [ 33.778222] ? kernel_text_address+0x79/0xf0 [ 33.778226] ? __kernel_text_address+0xd/0x40 [ 33.778230] ? __save_stack_trace+0x8d/0xf0 [ 33.778234] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.778238] ? save_trace+0x290/0x290 [ 33.778242] ? save_stack_trace+0x1a/0x20 [ 33.778245] ? save_trace+0xe0/0x290 [ 33.778249] ? graph_lock+0x170/0x170 [ 33.778253] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.778257] lock_acquire+0x1e4/0x4f0 [ 33.778260] ? down_trylock+0x13/0x70 [ 33.778264] ? lock_release+0x9f0/0x9f0 [ 33.778268] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.778272] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.778276] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.778279] ? log_store+0x34f/0x4c0 [ 33.778283] ? vprintk_emit+0x31f/0x910 [ 33.778287] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.778290] ? down_trylock+0x13/0x70 [ 33.778294] down_trylock+0x13/0x70 [ 33.778298] __down_trylock_console_sem+0xae/0x200 [ 33.778301] console_trylock+0x15/0xa0 [ 33.778305] vprintk_emit+0x31f/0x910 [ 33.778309] ? wake_up_klogd+0x110/0x110 [ 33.778313] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.778317] ? kasan_check_read+0x11/0x20 [ 33.778320] ? rcu_is_watching+0x8c/0x150 [ 33.778324] ? rcu_pm_notify+0xc0/0xc0 [ 33.778328] ? lock_acquire+0x1e4/0x4f0 [ 33.778331] ? kasan_report+0x8e/0x110 [ 33.778335] ? __schedule+0xf54/0x1df0 [ 33.778338] vprintk_default+0x28/0x30 [ 33.778342] vprintk_func+0x7a/0x117 [ 33.778345] printk+0xa7/0xcf [ 33.778349] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.778353] ? kasan_check_write+0x14/0x20 [ 33.778357] ? do_raw_spin_lock+0xc1/0x200 [ 33.778361] ? do_raw_spin_lock+0xc1/0x200 [ 33.778364] kasan_report+0x9e/0x110 [ 33.778368] __asan_report_load8_noabort+0x14/0x20 [ 33.778372] __schedule+0xf54/0x1df0 [ 33.778376] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.778380] ? __sched_text_start+0x8/0x8 [ 33.778384] ? __call_srcu+0x7e7/0x1040 [ 33.778387] ? check_same_owner+0x340/0x340 [ 33.778391] ? mark_held_locks+0x160/0x160 [ 33.778395] ? find_held_lock+0x36/0x1c0 [ 33.778399] preempt_schedule_common+0x22/0x60 [ 33.778402] _cond_resched+0x1d/0x30 [ 33.778406] wait_for_completion+0xa5/0x8d0 [ 33.778411] ? wait_for_completion_interruptible+0x950/0x950 [ 33.778415] ? __lockdep_init_map+0x105/0x590 [ 33.778419] ? __init_waitqueue_head+0x9e/0x150 [ 33.778423] ? init_wait_entry+0x1c0/0x1c0 [ 33.778427] __synchronize_srcu+0x189/0x240 [ 33.778430] ? call_srcu+0x10/0x10 [ 33.778434] ? rcu_unexpedite_gp+0x20/0x20 [ 33.778438] synchronize_srcu+0x335/0x56f [ 33.778441] ? lock_downgrade+0x8f0/0x8f0 [ 33.778446] ? synchronize_srcu_expedited+0x20/0x20 [ 33.778449] ? kasan_check_read+0x11/0x20 [ 33.778453] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.778457] ? kasan_check_write+0x14/0x20 [ 33.778461] ? do_raw_spin_lock+0xc1/0x200 [ 33.778466] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.778470] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.778473] ? kvfree+0x61/0x70 [ 33.778478] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.778481] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.778485] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.778489] ? kvm_arch_sync_events+0x30/0x30 [ 33.778494] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.778498] ? mmu_notifier_unregister+0x474/0x600 [ 33.778502] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.778505] ? kfree+0x111/0x210 [ 33.778509] ? __mmu_notifier_register+0x30/0x30 [ 33.778513] ? __free_pages+0x10a/0x190 [ 33.778517] ? free_unref_page+0x930/0x930 [ 33.778520] kvm_put_kvm+0x73f/0x1060 [ 33.778524] ? kvm_write_guest_cached+0x40/0x40 [ 33.778528] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.778532] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.778536] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.778540] ? kasan_check_write+0x14/0x20 [ 33.778544] ? do_raw_spin_lock+0xc1/0x200 [ 33.778547] ? kvm_irqfd_release+0xdd/0x120 [ 33.778551] ? kvm_irqfd_release+0xdd/0x120 [ 33.778555] ? kvm_put_kvm+0x1060/0x1060 [ 33.778558] kvm_vm_release+0x42/0x50 [ 33.778562] __fput+0x36e/0x8c0 [ 33.778565] ? __alloc_file+0x400/0x400 [ 33.778569] ? check_same_owner+0x340/0x340 [ 33.778573] ? kasan_check_write+0x14/0x20 [ 33.778577] ? do_raw_spin_lock+0xc1/0x200 [ 33.778580] ____fput+0x15/0x20 [ 33.778584] task_work_run+0x1e8/0x2a0 [ 33.778587] ? task_work_cancel+0x240/0x240 [ 33.778592] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.778596] ? switch_task_namespaces+0xa2/0xd0 [ 33.778599] do_exit+0x1ae4/0x26e0 [ 33.778603] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.778607] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.778611] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.778615] ? kfree+0x1d7/0x210 [ 33.778618] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.778623] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.778627] ? is_bpf_text_address+0xd7/0x170 [ 33.778629] ? [ 33.778636] Lost 55 message(s)! [ 34.887800] Shutting down cpus with NMI [ 35.947896] Dumping ftrace buffer: [ 35.951425] (ftrace buffer empty) [ 35.955114] Kernel Offset: disabled [ 35.958723] Rebooting in 86400 seconds..