[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.847874] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.783808] random: sshd: uninitialized urandom read (32 bytes read) [ 28.130916] random: sshd: uninitialized urandom read (32 bytes read) [ 28.688423] random: sshd: uninitialized urandom read (32 bytes read) [ 28.883795] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.23' (ECDSA) to the list of known hosts. [ 34.516512] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.614366] 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.639464] ================================================================== [ 34.649370] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.655618] Read of size 8 at addr ffff8801aef38058 by task syz-executor934/4468 [ 34.663142] [ 34.664773] CPU: 1 PID: 4468 Comm: syz-executor934 Not tainted 4.19.0-rc1+ #212 [ 34.672220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.681566] Call Trace: [ 34.684149] dump_stack+0x1c9/0x2b4 [ 34.687776] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.692986] ? printk+0xa7/0xcf [ 34.696268] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.701029] ? __schedule+0xf54/0x1df0 [ 34.704914] print_address_description+0x6c/0x20b [ 34.710228] ? __schedule+0xf54/0x1df0 [ 34.714120] kasan_report.cold.7+0x242/0x30d [ 34.718529] __asan_report_load8_noabort+0x14/0x20 [ 34.723457] __schedule+0xf54/0x1df0 [ 34.727170] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.732280] ? __sched_text_start+0x8/0x8 [ 34.736428] ? __call_srcu+0x7e7/0x1040 [ 34.740409] ? check_same_owner+0x340/0x340 [ 34.744724] ? mark_held_locks+0x160/0x160 [ 34.748963] ? find_held_lock+0x36/0x1c0 [ 34.753037] preempt_schedule_common+0x22/0x60 [ 34.757613] _cond_resched+0x1d/0x30 [ 34.761322] wait_for_completion+0xa5/0x8d0 [ 34.765646] ? wait_for_completion_interruptible+0x950/0x950 [ 34.771441] ? __lockdep_init_map+0x105/0x590 [ 34.775948] ? __init_waitqueue_head+0x9e/0x150 [ 34.780630] ? init_wait_entry+0x1c0/0x1c0 [ 34.784904] __synchronize_srcu+0x189/0x240 [ 34.789219] ? call_srcu+0x10/0x10 [ 34.792787] ? rcu_unexpedite_gp+0x20/0x20 [ 34.797041] synchronize_srcu+0x335/0x56f [ 34.801186] ? lock_downgrade+0x8f0/0x8f0 [ 34.805341] ? synchronize_srcu_expedited+0x20/0x20 [ 34.810360] ? kasan_check_read+0x11/0x20 [ 34.814505] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.819095] ? kasan_check_write+0x14/0x20 [ 34.823331] ? do_raw_spin_lock+0xc1/0x200 [ 34.827572] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.833281] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.838727] ? kvfree+0x61/0x70 [ 34.842013] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.847030] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.851088] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.855673] ? kvm_arch_sync_events+0x30/0x30 [ 34.860174] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.865768] ? mmu_notifier_unregister+0x474/0x600 [ 34.870701] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.875133] ? kfree+0x111/0x210 [ 34.878501] ? __mmu_notifier_register+0x30/0x30 [ 34.883258] ? __free_pages+0x10a/0x190 [ 34.887235] ? free_unref_page+0x930/0x930 [ 34.891475] kvm_put_kvm+0x73f/0x1060 [ 34.895306] ? kvm_write_guest_cached+0x40/0x40 [ 34.899991] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.904485] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.908985] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.913571] ? kasan_check_write+0x14/0x20 [ 34.917804] ? do_raw_spin_lock+0xc1/0x200 [ 34.922049] ? kvm_irqfd_release+0xdd/0x120 [ 34.926367] ? kvm_irqfd_release+0xdd/0x120 [ 34.930687] ? kvm_put_kvm+0x1060/0x1060 [ 34.934752] kvm_vm_release+0x42/0x50 [ 34.938559] __fput+0x36e/0x8c0 [ 34.941847] ? __alloc_file+0x400/0x400 [ 34.945831] ? check_same_owner+0x340/0x340 [ 34.950148] ? kasan_check_write+0x14/0x20 [ 34.954381] ? do_raw_spin_lock+0xc1/0x200 [ 34.958788] ____fput+0x15/0x20 [ 34.962079] task_work_run+0x1e8/0x2a0 [ 34.965983] ? task_work_cancel+0x240/0x240 [ 34.970315] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.975851] ? switch_task_namespaces+0xa2/0xd0 [ 34.980530] do_exit+0x1ae4/0x26e0 [ 34.984075] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.988753] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.992995] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.998010] ? kfree+0x1d7/0x210 [ 35.001376] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.005609] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.011329] ? is_bpf_text_address+0xd7/0x170 [ 35.015818] ? kernel_text_address+0x79/0xf0 [ 35.020224] ? __kernel_text_address+0xd/0x40 [ 35.024716] ? unwind_get_return_address+0x61/0xa0 [ 35.029648] ? __save_stack_trace+0x8d/0xf0 [ 35.033981] ? save_stack+0xa9/0xd0 [ 35.037604] ? save_stack+0x43/0xd0 [ 35.041226] ? __kasan_slab_free+0x11a/0x170 [ 35.045643] ? kasan_slab_free+0xe/0x10 [ 35.049616] ? putname+0xf2/0x130 [ 35.053065] ? __x64_sys_openat+0x9d/0x100 [ 35.057293] ? do_syscall_64+0x1b9/0x820 [ 35.061353] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.066727] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.071133] ? kasan_check_read+0x11/0x20 [ 35.075302] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.079717] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.084129] ? initcall_blacklisted+0x9a/0x1e0 [ 35.088711] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.093817] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.099533] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.105069] ? do_vfs_ioctl+0x201/0x1720 [ 35.109127] ? rcu_is_watching+0x8c/0x150 [ 35.113272] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.117615] ? ioctl_preallocate+0x300/0x300 [ 35.122047] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.127592] ? __fget_light+0x2f7/0x440 [ 35.131561] ? fget_raw+0x20/0x20 [ 35.135011] ? putname+0xf2/0x130 [ 35.138475] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.143486] ? kmem_cache_free+0x246/0x280 [ 35.147716] ? putname+0xf7/0x130 [ 35.151172] do_group_exit+0x177/0x440 [ 35.155058] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.159375] ? __ia32_sys_exit+0x50/0x50 [ 35.163430] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.168529] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.174069] ? ksys_ioctl+0x81/0xd0 [ 35.177710] __x64_sys_exit_group+0x3e/0x50 [ 35.182035] do_syscall_64+0x1b9/0x820 [ 35.185924] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.191287] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.196212] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.201055] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.206079] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.211093] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.215935] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.221130] RIP: 0033:0x43ef08 [ 35.224326] Code: Bad RIP value. [ 35.227683] RSP: 002b:00007ffeed7e09e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.235395] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 35.242665] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.249941] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.257212] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.264486] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.271844] [ 35.273463] Allocated by task 4468: [ 35.277091] save_stack+0x43/0xd0 [ 35.280538] kasan_kmalloc+0xc4/0xe0 [ 35.284253] kasan_slab_alloc+0x12/0x20 [ 35.288219] kmem_cache_alloc+0x12e/0x710 [ 35.292361] vmx_create_vcpu+0xcf/0x2830 [ 35.296419] kvm_arch_vcpu_create+0xe5/0x220 [ 35.300826] kvm_vm_ioctl+0x488/0x1d80 [ 35.304707] do_vfs_ioctl+0x1de/0x1720 [ 35.308594] ksys_ioctl+0xa9/0xd0 [ 35.312057] __x64_sys_ioctl+0x73/0xb0 [ 35.315951] do_syscall_64+0x1b9/0x820 [ 35.319844] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.325017] [ 35.326634] Freed by task 4468: [ 35.329920] save_stack+0x43/0xd0 [ 35.333367] __kasan_slab_free+0x11a/0x170 [ 35.337598] kasan_slab_free+0xe/0x10 [ 35.341404] kmem_cache_free+0x86/0x280 [ 35.345376] vmx_free_vcpu+0x26b/0x300 [ 35.349257] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.353660] kvm_put_kvm+0x73f/0x1060 [ 35.357455] kvm_vm_release+0x42/0x50 [ 35.361250] __fput+0x36e/0x8c0 [ 35.364519] ____fput+0x15/0x20 [ 35.367790] task_work_run+0x1e8/0x2a0 [ 35.371671] do_exit+0x1ae4/0x26e0 [ 35.375220] do_group_exit+0x177/0x440 [ 35.379103] __x64_sys_exit_group+0x3e/0x50 [ 35.383420] do_syscall_64+0x1b9/0x820 [ 35.387308] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.392480] [ 35.394104] The buggy address belongs to the object at ffff8801aef38040 [ 35.394104] which belongs to the cache kvm_vcpu of size 23872 [ 35.406672] The buggy address is located 24 bytes inside of [ 35.406672] 23872-byte region [ffff8801aef38040, ffff8801aef3dd80) [ 35.418622] The buggy address belongs to the page: [ 35.423544] page:ffffea0006bbce00 count:1 mapcount:0 mapping:ffff8801d4c8c900 index:0x0 compound_mapcount: 0 [ 35.433510] flags: 0x2fffc0000008100(slab|head) [ 35.438180] raw: 02fffc0000008100 ffff8801d73aa248 ffff8801d73aa248 ffff8801d4c8c900 [ 35.446060] raw: 0000000000000000 ffff8801aef38040 0000000100000001 0000000000000000 [ 35.453927] page dumped because: kasan: bad access detected [ 35.459623] [ 35.461236] Memory state around the buggy address: [ 35.466154] ffff8801aef37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.473503] ffff8801aef37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.480856] >ffff8801aef38000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.488201] ^ [ 35.494424] ffff8801aef38080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.501777] ffff8801aef38100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.509120] ================================================================== [ 35.516471] Kernel panic - not syncing: panic_on_warn set ... [ 35.516471] [ 35.523836] CPU: 1 PID: 4468 Comm: syz-executor934 Tainted: G B 4.19.0-rc1+ #212 [ 35.532672] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.542017] Call Trace: [ 35.544604] dump_stack+0x1c9/0x2b4 [ 35.548231] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.553421] ? lock_downgrade+0x8f0/0x8f0 [ 35.557564] ? __schedule+0xf54/0x1df0 [ 35.561450] panic+0x238/0x4e7 [ 35.564637] ? add_taint.cold.5+0x16/0x16 [ 35.568788] ? print_shadow_for_address+0xba/0x116 [ 35.573713] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.578123] ? trace_hardirqs_off+0x77/0x2b0 [ 35.582531] ? __schedule+0xf54/0x1df0 [ 35.586416] kasan_end_report+0x47/0x4f [ 35.590391] kasan_report.cold.7+0x76/0x30d [ 35.594712] __asan_report_load8_noabort+0x14/0x20 [ 35.599658] __schedule+0xf54/0x1df0 [ 35.603368] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.608469] ? __sched_text_start+0x8/0x8 [ 35.612617] ? __call_srcu+0x7e7/0x1040 [ 35.616595] ? check_same_owner+0x340/0x340 [ 35.620909] ? mark_held_locks+0x160/0x160 [ 35.625137] ? find_held_lock+0x36/0x1c0 [ 35.629197] preempt_schedule_common+0x22/0x60 [ 35.633775] _cond_resched+0x1d/0x30 [ 35.637486] wait_for_completion+0xa5/0x8d0 [ 35.641819] ? wait_for_completion_interruptible+0x950/0x950 [ 35.647612] ? __lockdep_init_map+0x105/0x590 [ 35.652110] ? __init_waitqueue_head+0x9e/0x150 [ 35.656778] ? init_wait_entry+0x1c0/0x1c0 [ 35.661016] __synchronize_srcu+0x189/0x240 [ 35.665343] ? call_srcu+0x10/0x10 [ 35.668884] ? rcu_unexpedite_gp+0x20/0x20 [ 35.673121] synchronize_srcu+0x335/0x56f [ 35.677261] ? lock_downgrade+0x8f0/0x8f0 [ 35.681407] ? synchronize_srcu_expedited+0x20/0x20 [ 35.686424] ? kasan_check_read+0x11/0x20 [ 35.690571] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.695153] ? kasan_check_write+0x14/0x20 [ 35.699386] ? do_raw_spin_lock+0xc1/0x200 [ 35.703626] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.709795] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.715257] ? kvfree+0x61/0x70 [ 35.718540] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.723563] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.727620] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.732044] ? kvm_arch_sync_events+0x30/0x30 [ 35.736543] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.742083] ? mmu_notifier_unregister+0x474/0x600 [ 35.747014] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.751421] ? kfree+0x111/0x210 [ 35.754786] ? __mmu_notifier_register+0x30/0x30 [ 35.759544] ? __free_pages+0x10a/0x190 [ 35.763519] ? free_unref_page+0x930/0x930 [ 35.767768] kvm_put_kvm+0x73f/0x1060 [ 35.771570] ? kvm_write_guest_cached+0x40/0x40 [ 35.776248] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.780748] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.785242] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.789849] ? kasan_check_write+0x14/0x20 [ 35.794079] ? do_raw_spin_lock+0xc1/0x200 [ 35.798312] ? kvm_irqfd_release+0xdd/0x120 [ 35.802626] ? kvm_irqfd_release+0xdd/0x120 [ 35.806949] ? kvm_put_kvm+0x1060/0x1060 [ 35.811017] kvm_vm_release+0x42/0x50 [ 35.814903] __fput+0x36e/0x8c0 [ 35.818183] ? __alloc_file+0x400/0x400 [ 35.822164] ? check_same_owner+0x340/0x340 [ 35.826485] ? kasan_check_write+0x14/0x20 [ 35.830720] ? do_raw_spin_lock+0xc1/0x200 [ 35.834976] ____fput+0x15/0x20 [ 35.838254] task_work_run+0x1e8/0x2a0 [ 35.842142] ? task_work_cancel+0x240/0x240 [ 35.846465] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.852010] ? switch_task_namespaces+0xa2/0xd0 [ 35.856682] do_exit+0x1ae4/0x26e0 [ 35.860227] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.864904] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.869139] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.874151] ? kfree+0x1d7/0x210 [ 35.877517] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.881757] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.887472] ? is_bpf_text_address+0xd7/0x170 [ 35.891974] ? kernel_text_address+0x79/0xf0 [ 35.896381] ? __kernel_text_address+0xd/0x40 [ 35.900878] ? unwind_get_return_address+0x61/0xa0 [ 35.905804] ? __save_stack_trace+0x8d/0xf0 [ 35.910130] ? save_stack+0xa9/0xd0 [ 35.913755] ? save_stack+0x43/0xd0 [ 35.917379] ? __kasan_slab_free+0x11a/0x170 [ 35.921786] ? kasan_slab_free+0xe/0x10 [ 35.925759] ? putname+0xf2/0x130 [ 35.929222] ? __x64_sys_openat+0x9d/0x100 [ 35.933467] ? do_syscall_64+0x1b9/0x820 [ 35.937527] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.942885] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.947312] ? kasan_check_read+0x11/0x20 [ 35.951457] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.955862] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.960268] ? initcall_blacklisted+0x9a/0x1e0 [ 35.964855] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.969959] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.975681] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.981230] ? do_vfs_ioctl+0x201/0x1720 [ 35.985315] ? rcu_is_watching+0x8c/0x150 [ 35.989461] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.993782] ? ioctl_preallocate+0x300/0x300 [ 35.998194] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.003749] ? __fget_light+0x2f7/0x440 [ 36.007719] ? fget_raw+0x20/0x20 [ 36.011172] ? putname+0xf2/0x130 [ 36.014625] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.019636] ? kmem_cache_free+0x246/0x280 [ 36.023870] ? putname+0xf7/0x130 [ 36.027328] do_group_exit+0x177/0x440 [ 36.031215] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.035533] ? __ia32_sys_exit+0x50/0x50 [ 36.039595] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.044708] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.050250] ? ksys_ioctl+0x81/0xd0 [ 36.053875] __x64_sys_exit_group+0x3e/0x50 [ 36.058194] do_syscall_64+0x1b9/0x820 [ 36.062084] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.067447] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.072371] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.077211] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.082230] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.087269] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.092120] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.097314] RIP: 0033:0x43ef08 [ 36.100504] Code: Bad RIP value. [ 36.103867] RSP: 002b:00007ffeed7e09e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.111570] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.118832] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.126094] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.133356] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.140624] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.147899] [ 36.147905] ====================================================== [ 36.147910] WARNING: possible circular locking dependency detected [ 36.147927] 4.19.0-rc1+ #212 Not tainted [ 36.147932] ------------------------------------------------------ [ 36.147936] syz-executor934/4468 is trying to acquire lock: [ 36.147940] 00000000dd0ec42d ((console_sem).lock){-.-.}, at: down_trylock+0x13/0x70 [ 36.147976] [ 36.147981] but task is already holding lock: [ 36.147984] 00000000f1e1ffb8 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.147998] [ 36.148002] which lock already depends on the new lock. [ 36.148005] [ 36.148007] [ 36.148012] the existing dependency chain (in reverse order) is: [ 36.148014] [ 36.148017] -> #3 (report_lock){....}: [ 36.148031] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.148035] kasan_report+0x8e/0x110 [ 36.148039] __asan_report_load8_noabort+0x14/0x20 [ 36.148043] __schedule+0xf54/0x1df0 [ 36.148048] preempt_schedule_common+0x22/0x60 [ 36.148051] _cond_resched+0x1d/0x30 [ 36.148056] wait_for_completion+0xa5/0x8d0 [ 36.148060] __synchronize_srcu+0x189/0x240 [ 36.148064] synchronize_srcu+0x335/0x56f [ 36.148068] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.148072] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.148077] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.148080] kvm_put_kvm+0x73f/0x1060 [ 36.148084] kvm_vm_release+0x42/0x50 [ 36.148088] __fput+0x36e/0x8c0 [ 36.148091] ____fput+0x15/0x20 [ 36.148095] task_work_run+0x1e8/0x2a0 [ 36.148098] do_exit+0x1ae4/0x26e0 [ 36.148102] do_group_exit+0x177/0x440 [ 36.148106] __x64_sys_exit_group+0x3e/0x50 [ 36.148110] do_syscall_64+0x1b9/0x820 [ 36.148115] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.148117] [ 36.148119] -> #2 (&rq->lock){-.-.}: [ 36.148133] _raw_spin_lock+0x2a/0x40 [ 36.148137] task_fork_fair+0x93/0x680 [ 36.148140] sched_fork+0x44b/0xbd0 [ 36.148144] copy_process+0x235e/0x7ad0 [ 36.148148] _do_fork+0x1ca/0x1170 [ 36.148152] kernel_thread+0x34/0x40 [ 36.148155] rest_init+0x22/0xe4 [ 36.148159] start_kernel+0x913/0x94e [ 36.148163] x86_64_start_reservations+0x29/0x2b [ 36.148167] x86_64_start_kernel+0x76/0x79 [ 36.148171] secondary_startup_64+0xa4/0xb0 [ 36.148173] [ 36.148176] -> #1 (&p->pi_lock){-.-.}: [ 36.148190] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.148194] try_to_wake_up+0xd2/0x1250 [ 36.148198] wake_up_process+0x10/0x20 [ 36.148201] __up.isra.1+0x1c0/0x2a0 [ 36.148205] up+0x13c/0x1c0 [ 36.148209] __up_console_sem+0xbe/0x1b0 [ 36.148212] console_unlock+0x506/0x10d0 [ 36.148216] con_write+0x9e/0xc0 [ 36.148220] n_tty_write+0x6c1/0x11a0 [ 36.148223] tty_write+0x3f1/0x880 [ 36.148227] __vfs_write+0x117/0x9d0 [ 36.148231] vfs_write+0x1fc/0x560 [ 36.148234] ksys_write+0x101/0x260 [ 36.148239] __x64_sys_write+0x73/0xb0 [ 36.148243] do_syscall_64+0x1b9/0x820 [ 36.148247] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.148249] [ 36.148252] -> #0 ((console_sem).lock){-.-.}: [ 36.148266] lock_acquire+0x1e4/0x4f0 [ 36.148270] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.148274] down_trylock+0x13/0x70 [ 36.148291] __down_trylock_console_sem+0xae/0x200 [ 36.148295] console_trylock+0x15/0xa0 [ 36.148299] vprintk_emit+0x31f/0x910 [ 36.148302] vprintk_default+0x28/0x30 [ 36.148318] vprintk_func+0x7a/0x117 [ 36.148322] printk+0xa7/0xcf [ 36.148326] kasan_report+0x9e/0x110 [ 36.148330] __asan_report_load8_noabort+0x14/0x20 [ 36.148334] __schedule+0xf54/0x1df0 [ 36.148351] preempt_schedule_common+0x22/0x60 [ 36.148354] _cond_resched+0x1d/0x30 [ 36.148358] wait_for_completion+0xa5/0x8d0 [ 36.148362] __synchronize_srcu+0x189/0x240 [ 36.148366] synchronize_srcu+0x335/0x56f [ 36.148383] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.148387] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.148391] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.148395] kvm_put_kvm+0x73f/0x1060 [ 36.148399] kvm_vm_release+0x42/0x50 [ 36.148403] __fput+0x36e/0x8c0 [ 36.148406] ____fput+0x15/0x20 [ 36.148410] task_work_run+0x1e8/0x2a0 [ 36.148414] do_exit+0x1ae4/0x26e0 [ 36.148417] do_group_exit+0x177/0x440 [ 36.148422] __x64_sys_exit_group+0x3e/0x50 [ 36.148425] do_syscall_64+0x1b9/0x820 [ 36.148430] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.148432] [ 36.148437] other info that might help us debug this: [ 36.148439] [ 36.148442] Chain exists of: [ 36.148444] (console_sem).lock --> &rq->lock --> report_lock [ 36.148462] [ 36.148466] Possible unsafe locking scenario: [ 36.148469] [ 36.148472] CPU0 CPU1 [ 36.148476] ---- ---- [ 36.148479] lock(report_lock); [ 36.148488] lock(&rq->lock); [ 36.148497] lock(report_lock); [ 36.148505] lock((console_sem).lock); [ 36.148526] [ 36.148529] *** DEADLOCK *** [ 36.148531] [ 36.148535] 2 locks held by syz-executor934/4468: [ 36.148537] #0: 00000000237b7a96 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.148554] #1: 00000000f1e1ffb8 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.148570] [ 36.148573] stack backtrace: [ 36.148578] CPU: 1 PID: 4468 Comm: syz-executor934 Not tainted 4.19.0-rc1+ #212 [ 36.148598] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.148601] Call Trace: [ 36.148604] dump_stack+0x1c9/0x2b4 [ 36.148608] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.148612] ? vprintk_func+0x100/0x117 [ 36.148616] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.148620] ? save_trace+0xe0/0x290 [ 36.148623] __lock_acquire+0x3449/0x5020 [ 36.148627] ? mark_held_locks+0x160/0x160 [ 36.148631] ? mark_held_locks+0x160/0x160 [ 36.148635] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.148638] ? is_bpf_text_address+0xd7/0x170 [ 36.148642] ? kernel_text_address+0x79/0xf0 [ 36.148646] ? __kernel_text_address+0xd/0x40 [ 36.148650] ? __save_stack_trace+0x8d/0xf0 [ 36.148654] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.148657] ? save_trace+0x290/0x290 [ 36.148661] ? save_stack_trace+0x1a/0x20 [ 36.148665] ? save_trace+0xe0/0x290 [ 36.148668] ? graph_lock+0x170/0x170 [ 36.148672] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.148676] lock_acquire+0x1e4/0x4f0 [ 36.148679] ? down_trylock+0x13/0x70 [ 36.148683] ? lock_release+0x9f0/0x9f0 [ 36.148687] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.148691] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.148694] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.148698] ? log_store+0x34f/0x4c0 [ 36.148701] ? vprintk_emit+0x31f/0x910 [ 36.148705] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.148709] ? down_trylock+0x13/0x70 [ 36.148712] down_trylock+0x13/0x70 [ 36.148716] __down_trylock_console_sem+0xae/0x200 [ 36.148720] console_trylock+0x15/0xa0 [ 36.148723] vprintk_emit+0x31f/0x910 [ 36.148727] ? wake_up_klogd+0x110/0x110 [ 36.148736] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.148740] ? kasan_check_read+0x11/0x20 [ 36.148744] ? rcu_is_watching+0x8c/0x150 [ 36.148748] ? rcu_pm_notify+0xc0/0xc0 [ 36.148751] ? lock_acquire+0x1e4/0x4f0 [ 36.148755] ? kasan_report+0x8e/0x110 [ 36.148758] ? __schedule+0xf54/0x1df0 [ 36.148762] vprintk_default+0x28/0x30 [ 36.148765] vprintk_func+0x7a/0x117 [ 36.148768] printk+0xa7/0xcf [ 36.148772] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.148776] ? kasan_check_write+0x14/0x20 [ 36.148780] ? do_raw_spin_lock+0xc1/0x200 [ 36.148783] ? do_raw_spin_lock+0xc1/0x200 [ 36.148787] kasan_report+0x9e/0x110 [ 36.148791] __asan_report_load8_noabort+0x14/0x20 [ 36.148794] __schedule+0xf54/0x1df0 [ 36.148798] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.148802] ? __sched_text_start+0x8/0x8 [ 36.148806] ? __call_srcu+0x7e7/0x1040 [ 36.148809] ? check_same_owner+0x340/0x340 [ 36.148813] ? mark_held_locks+0x160/0x160 [ 36.148817] ? find_held_lock+0x36/0x1c0 [ 36.148821] preempt_schedule_common+0x22/0x60 [ 36.148837] _cond_resched+0x1d/0x30 [ 36.148840] wait_for_completion+0xa5/0x8d0 [ 36.148845] ? wait_for_completion_interruptible+0x950/0x950 [ 36.148849] ? __lockdep_init_map+0x105/0x590 [ 36.148853] ? __init_waitqueue_head+0x9e/0x150 [ 36.148857] ? init_wait_entry+0x1c0/0x1c0 [ 36.148861] __synchronize_srcu+0x189/0x240 [ 36.148865] ? call_srcu+0x10/0x10 [ 36.148868] ? rcu_unexpedite_gp+0x20/0x20 [ 36.148872] synchronize_srcu+0x335/0x56f [ 36.148876] ? lock_downgrade+0x8f0/0x8f0 [ 36.148880] ? synchronize_srcu_expedited+0x20/0x20 [ 36.148884] ? kasan_check_read+0x11/0x20 [ 36.148888] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.148892] ? kasan_check_write+0x14/0x20 [ 36.148896] ? do_raw_spin_lock+0xc1/0x200 [ 36.148901] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.148905] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.148909] ? kvfree+0x61/0x70 [ 36.148913] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.148917] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.148921] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.148924] ? kvm_arch_sync_events+0x30/0x30 [ 36.148929] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.148933] ? mmu_notifier_unregister+0x474/0x600 [ 36.148937] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.148941] ? kfree+0x111/0x210 [ 36.148945] ? __mmu_notifier_register+0x30/0x30 [ 36.148949] ? __free_pages+0x10a/0x190 [ 36.148952] ? free_unref_page+0x930/0x930 [ 36.148956] kvm_put_kvm+0x73f/0x1060 [ 36.148960] ? kvm_write_guest_cached+0x40/0x40 [ 36.148964] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.148977] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.148994] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.148998] ? kasan_check_write+0x14/0x20 [ 36.149002] ? do_raw_spin_lock+0xc1/0x200 [ 36.149006] ? kvm_irqfd_release+0xdd/0x120 [ 36.149010] ? kvm_irqfd_release+0xdd/0x120 [ 36.149014] ? kvm_put_kvm+0x1060/0x1060 [ 36.149018] kvm_vm_release+0x42/0x50 [ 36.149021] __fput+0x36e/0x8c0 [ 36.149025] ? __alloc_file+0x400/0x400 [ 36.149029] ? check_same_owner+0x340/0x340 [ 36.149033] ? kasan_check_write+0x14/0x20 [ 36.149037] ? do_raw_spin_lock+0xc1/0x200 [ 36.149040] ____fput+0x15/0x20 [ 36.149044] task_work_run+0x1e8/0x2a0 [ 36.149048] ? task_work_cancel+0x240/0x240 [ 36.149053] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.149057] ? switch_task_namespaces+0xa2/0xd0 [ 36.149060] do_exit+0x1ae4/0x26e0 [ 36.149065] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.149069] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.149073] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.149077] ? kfree+0x1d7/0x210 [ 36.149080] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.149085] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.149089] ? is_bpf_text_address+0xd7/ [ 36.149096] Lost 55 message(s)! [ 37.255899] Shutting down cpus with NMI [ 38.314004] Dumping ftrace buffer: [ 38.317531] (ftrace buffer empty) [ 38.321220] Kernel Offset: disabled [ 38.324831] Rebooting in 86400 seconds..