[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.631251] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.586905] random: sshd: uninitialized urandom read (32 bytes read) [ 29.008549] random: sshd: uninitialized urandom read (32 bytes read) [ 29.609604] random: sshd: uninitialized urandom read (32 bytes read) [ 29.817551] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.25' (ECDSA) to the list of known hosts. [ 35.485647] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.583526] 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. [ 35.608230] ================================================================== [ 35.618095] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 35.624339] Read of size 8 at addr ffff8801ae520058 by task syz-executor594/4465 [ 35.631862] [ 35.633493] CPU: 1 PID: 4465 Comm: syz-executor594 Not tainted 4.19.0-rc1+ #212 [ 35.640932] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.650279] Call Trace: [ 35.652873] dump_stack+0x1c9/0x2b4 [ 35.656505] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.661700] ? printk+0xa7/0xcf [ 35.664984] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.669742] ? __schedule+0xf54/0x1df0 [ 35.673647] print_address_description+0x6c/0x20b [ 35.678492] ? __schedule+0xf54/0x1df0 [ 35.682380] kasan_report.cold.7+0x242/0x30d [ 35.686800] __asan_report_load8_noabort+0x14/0x20 [ 35.692202] __schedule+0xf54/0x1df0 [ 35.695918] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.701023] ? __sched_text_start+0x8/0x8 [ 35.705175] ? __call_srcu+0x7e7/0x1040 [ 35.709156] ? check_same_owner+0x340/0x340 [ 35.713475] ? mark_held_locks+0x160/0x160 [ 35.717709] ? find_held_lock+0x36/0x1c0 [ 35.721780] preempt_schedule_common+0x22/0x60 [ 35.726363] _cond_resched+0x1d/0x30 [ 35.730076] wait_for_completion+0xa5/0x8d0 [ 35.734407] ? wait_for_completion_interruptible+0x950/0x950 [ 35.740297] ? __lockdep_init_map+0x105/0x590 [ 35.744802] ? __init_waitqueue_head+0x9e/0x150 [ 35.749470] ? init_wait_entry+0x1c0/0x1c0 [ 35.753712] __synchronize_srcu+0x189/0x240 [ 35.758034] ? call_srcu+0x10/0x10 [ 35.761576] ? rcu_unexpedite_gp+0x20/0x20 [ 35.765816] synchronize_srcu+0x335/0x56f [ 35.769962] ? lock_downgrade+0x8f0/0x8f0 [ 35.774195] ? synchronize_srcu_expedited+0x20/0x20 [ 35.779215] ? kasan_check_read+0x11/0x20 [ 35.783363] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.787948] ? kasan_check_write+0x14/0x20 [ 35.792182] ? do_raw_spin_lock+0xc1/0x200 [ 35.796419] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.802130] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.807579] ? kvfree+0x61/0x70 [ 35.810878] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.815894] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.819957] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.824366] ? kvm_arch_sync_events+0x30/0x30 [ 35.828865] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.834403] ? mmu_notifier_unregister+0x474/0x600 [ 35.839332] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.843739] ? kfree+0x111/0x210 [ 35.847114] ? __mmu_notifier_register+0x30/0x30 [ 35.851876] ? __free_pages+0x10a/0x190 [ 35.855852] ? free_unref_page+0x930/0x930 [ 35.860093] kvm_put_kvm+0x73f/0x1060 [ 35.863909] ? kvm_write_guest_cached+0x40/0x40 [ 35.868587] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.873084] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.877581] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.882167] ? kasan_check_write+0x14/0x20 [ 35.886408] ? do_raw_spin_lock+0xc1/0x200 [ 35.890645] ? kvm_irqfd_release+0xdd/0x120 [ 35.894963] ? kvm_irqfd_release+0xdd/0x120 [ 35.899287] ? kvm_put_kvm+0x1060/0x1060 [ 35.903354] kvm_vm_release+0x42/0x50 [ 35.907164] __fput+0x36e/0x8c0 [ 35.910449] ? __alloc_file+0x400/0x400 [ 35.914424] ? check_same_owner+0x340/0x340 [ 35.918753] ? kasan_check_write+0x14/0x20 [ 35.923004] ? do_raw_spin_lock+0xc1/0x200 [ 35.927242] ____fput+0x15/0x20 [ 35.930519] task_work_run+0x1e8/0x2a0 [ 35.934416] ? task_work_cancel+0x240/0x240 [ 35.938744] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.944293] ? switch_task_namespaces+0xa2/0xd0 [ 35.948962] do_exit+0x1ae4/0x26e0 [ 35.952504] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.957181] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.961416] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.966429] ? kfree+0x1d7/0x210 [ 35.969800] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.974039] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.979753] ? is_bpf_text_address+0xd7/0x170 [ 35.984253] ? kernel_text_address+0x79/0xf0 [ 35.988661] ? __kernel_text_address+0xd/0x40 [ 35.993156] ? unwind_get_return_address+0x61/0xa0 [ 35.998089] ? __save_stack_trace+0x8d/0xf0 [ 36.002418] ? save_stack+0xa9/0xd0 [ 36.006044] ? save_stack+0x43/0xd0 [ 36.009673] ? __kasan_slab_free+0x11a/0x170 [ 36.014080] ? kasan_slab_free+0xe/0x10 [ 36.018061] ? putname+0xf2/0x130 [ 36.021514] ? __x64_sys_openat+0x9d/0x100 [ 36.025754] ? do_syscall_64+0x1b9/0x820 [ 36.029831] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.035194] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.039602] ? kasan_check_read+0x11/0x20 [ 36.043751] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.048168] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.052578] ? initcall_blacklisted+0x9a/0x1e0 [ 36.057168] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.062278] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.067990] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.073535] ? do_vfs_ioctl+0x201/0x1720 [ 36.077604] ? rcu_is_watching+0x8c/0x150 [ 36.081750] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.086081] ? ioctl_preallocate+0x300/0x300 [ 36.090489] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.096028] ? __fget_light+0x2f7/0x440 [ 36.100003] ? fget_raw+0x20/0x20 [ 36.103453] ? putname+0xf2/0x130 [ 36.106906] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.111920] ? kmem_cache_free+0x246/0x280 [ 36.116153] ? putname+0xf7/0x130 [ 36.119612] do_group_exit+0x177/0x440 [ 36.123499] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.127830] ? __ia32_sys_exit+0x50/0x50 [ 36.131891] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.136999] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.142544] ? ksys_ioctl+0x81/0xd0 [ 36.146175] __x64_sys_exit_group+0x3e/0x50 [ 36.150500] do_syscall_64+0x1b9/0x820 [ 36.154395] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.159761] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.164702] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.169550] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.174569] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.179587] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.184603] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.189450] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.194638] RIP: 0033:0x43ef08 [ 36.197831] Code: Bad RIP value. [ 36.201193] RSP: 002b:00007ffd9fbd5148 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.208899] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.216192] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.223458] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.230723] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.238089] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.245388] [ 36.247018] Allocated by task 4465: [ 36.250649] save_stack+0x43/0xd0 [ 36.254124] kasan_kmalloc+0xc4/0xe0 [ 36.257836] kasan_slab_alloc+0x12/0x20 [ 36.261807] kmem_cache_alloc+0x12e/0x710 [ 36.265954] vmx_create_vcpu+0xcf/0x2830 [ 36.270013] kvm_arch_vcpu_create+0xe5/0x220 [ 36.274426] kvm_vm_ioctl+0x488/0x1d80 [ 36.278311] do_vfs_ioctl+0x1de/0x1720 [ 36.282203] ksys_ioctl+0xa9/0xd0 [ 36.285654] __x64_sys_ioctl+0x73/0xb0 [ 36.289547] do_syscall_64+0x1b9/0x820 [ 36.293436] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.298613] [ 36.300232] Freed by task 4465: [ 36.303507] save_stack+0x43/0xd0 [ 36.306963] __kasan_slab_free+0x11a/0x170 [ 36.311193] kasan_slab_free+0xe/0x10 [ 36.314993] kmem_cache_free+0x86/0x280 [ 36.318963] vmx_free_vcpu+0x26b/0x300 [ 36.322848] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.327257] kvm_put_kvm+0x73f/0x1060 [ 36.331055] kvm_vm_release+0x42/0x50 [ 36.334853] __fput+0x36e/0x8c0 [ 36.338126] ____fput+0x15/0x20 [ 36.341420] task_work_run+0x1e8/0x2a0 [ 36.345307] do_exit+0x1ae4/0x26e0 [ 36.348858] do_group_exit+0x177/0x440 [ 36.352743] __x64_sys_exit_group+0x3e/0x50 [ 36.357073] do_syscall_64+0x1b9/0x820 [ 36.360962] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.366137] [ 36.367765] The buggy address belongs to the object at ffff8801ae520040 [ 36.367765] which belongs to the cache kvm_vcpu of size 23872 [ 36.380349] The buggy address is located 24 bytes inside of [ 36.380349] 23872-byte region [ffff8801ae520040, ffff8801ae525d80) [ 36.392304] The buggy address belongs to the page: [ 36.397235] page:ffffea0006b94800 count:1 mapcount:0 mapping:ffff8801d8752040 index:0x0 compound_mapcount: 0 [ 36.407213] flags: 0x2fffc0000008100(slab|head) [ 36.411885] raw: 02fffc0000008100 ffff8801d4b9c548 ffff8801d4b9c548 ffff8801d8752040 [ 36.419777] raw: 0000000000000000 ffff8801ae520040 0000000100000001 0000000000000000 [ 36.427647] page dumped because: kasan: bad access detected [ 36.433344] [ 36.434964] Memory state around the buggy address: [ 36.439888] ffff8801ae51ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.447243] ffff8801ae51ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.454599] >ffff8801ae520000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.461950] ^ [ 36.468173] ffff8801ae520080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.475537] ffff8801ae520100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.482889] ================================================================== [ 36.490244] Kernel panic - not syncing: panic_on_warn set ... [ 36.490244] [ 36.497614] CPU: 1 PID: 4465 Comm: syz-executor594 Tainted: G B 4.19.0-rc1+ #212 [ 36.506444] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.515797] Call Trace: [ 36.518388] dump_stack+0x1c9/0x2b4 [ 36.522018] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.527211] ? lock_downgrade+0x8f0/0x8f0 [ 36.531360] ? __schedule+0xf54/0x1df0 [ 36.535247] panic+0x238/0x4e7 [ 36.538439] ? add_taint.cold.5+0x16/0x16 [ 36.542591] ? print_shadow_for_address+0xba/0x116 [ 36.547517] ? trace_hardirqs_off+0xaf/0x2b0 [ 36.551926] ? trace_hardirqs_off+0x77/0x2b0 [ 36.556331] ? __schedule+0xf54/0x1df0 [ 36.560216] kasan_end_report+0x47/0x4f [ 36.564192] kasan_report.cold.7+0x76/0x30d [ 36.568516] __asan_report_load8_noabort+0x14/0x20 [ 36.573446] __schedule+0xf54/0x1df0 [ 36.577155] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.582519] ? __sched_text_start+0x8/0x8 [ 36.586676] ? __call_srcu+0x7e7/0x1040 [ 36.590656] ? check_same_owner+0x340/0x340 [ 36.594973] ? mark_held_locks+0x160/0x160 [ 36.599202] ? find_held_lock+0x36/0x1c0 [ 36.603261] preempt_schedule_common+0x22/0x60 [ 36.607839] _cond_resched+0x1d/0x30 [ 36.611553] wait_for_completion+0xa5/0x8d0 [ 36.615875] ? wait_for_completion_interruptible+0x950/0x950 [ 36.621671] ? __lockdep_init_map+0x105/0x590 [ 36.626165] ? __init_waitqueue_head+0x9e/0x150 [ 36.630829] ? init_wait_entry+0x1c0/0x1c0 [ 36.635069] __synchronize_srcu+0x189/0x240 [ 36.639386] ? call_srcu+0x10/0x10 [ 36.642927] ? rcu_unexpedite_gp+0x20/0x20 [ 36.647165] synchronize_srcu+0x335/0x56f [ 36.651308] ? lock_downgrade+0x8f0/0x8f0 [ 36.655453] ? synchronize_srcu_expedited+0x20/0x20 [ 36.660469] ? kasan_check_read+0x11/0x20 [ 36.664612] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.669194] ? kasan_check_write+0x14/0x20 [ 36.673429] ? do_raw_spin_lock+0xc1/0x200 [ 36.677667] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.683376] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.689337] ? kvfree+0x61/0x70 [ 36.692618] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.697636] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.701692] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.706099] ? kvm_arch_sync_events+0x30/0x30 [ 36.710594] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.716130] ? mmu_notifier_unregister+0x474/0x600 [ 36.721056] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.725462] ? kfree+0x111/0x210 [ 36.728832] ? __mmu_notifier_register+0x30/0x30 [ 36.733591] ? __free_pages+0x10a/0x190 [ 36.737565] ? free_unref_page+0x930/0x930 [ 36.741834] kvm_put_kvm+0x73f/0x1060 [ 36.745639] ? kvm_write_guest_cached+0x40/0x40 [ 36.750310] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.754805] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.759295] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.763877] ? kasan_check_write+0x14/0x20 [ 36.768110] ? do_raw_spin_lock+0xc1/0x200 [ 36.772356] ? kvm_irqfd_release+0xdd/0x120 [ 36.776676] ? kvm_irqfd_release+0xdd/0x120 [ 36.780996] ? kvm_put_kvm+0x1060/0x1060 [ 36.785055] kvm_vm_release+0x42/0x50 [ 36.788856] __fput+0x36e/0x8c0 [ 36.792132] ? __alloc_file+0x400/0x400 [ 36.796105] ? check_same_owner+0x340/0x340 [ 36.800423] ? kasan_check_write+0x14/0x20 [ 36.804670] ? do_raw_spin_lock+0xc1/0x200 [ 36.808906] ____fput+0x15/0x20 [ 36.812180] task_work_run+0x1e8/0x2a0 [ 36.816065] ? task_work_cancel+0x240/0x240 [ 36.820400] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.825936] ? switch_task_namespaces+0xa2/0xd0 [ 36.830602] do_exit+0x1ae4/0x26e0 [ 36.834146] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.838816] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.843049] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.848065] ? kfree+0x1d7/0x210 [ 36.851431] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.855666] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.861375] ? is_bpf_text_address+0xd7/0x170 [ 36.865876] ? kernel_text_address+0x79/0xf0 [ 36.870279] ? __kernel_text_address+0xd/0x40 [ 36.874806] ? unwind_get_return_address+0x61/0xa0 [ 36.879734] ? __save_stack_trace+0x8d/0xf0 [ 36.884059] ? save_stack+0xa9/0xd0 [ 36.887683] ? save_stack+0x43/0xd0 [ 36.891305] ? __kasan_slab_free+0x11a/0x170 [ 36.895711] ? kasan_slab_free+0xe/0x10 [ 36.899698] ? putname+0xf2/0x130 [ 36.903149] ? __x64_sys_openat+0x9d/0x100 [ 36.907382] ? do_syscall_64+0x1b9/0x820 [ 36.911443] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.916806] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.921211] ? kasan_check_read+0x11/0x20 [ 36.925360] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.929763] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.934181] ? initcall_blacklisted+0x9a/0x1e0 [ 36.938777] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.943883] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.949591] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.955126] ? do_vfs_ioctl+0x201/0x1720 [ 36.959183] ? rcu_is_watching+0x8c/0x150 [ 36.963325] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.967733] ? ioctl_preallocate+0x300/0x300 [ 36.972137] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.977673] ? __fget_light+0x2f7/0x440 [ 36.981645] ? fget_raw+0x20/0x20 [ 36.985095] ? putname+0xf2/0x130 [ 36.988552] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.993567] ? kmem_cache_free+0x246/0x280 [ 36.997801] ? putname+0xf7/0x130 [ 37.001253] do_group_exit+0x177/0x440 [ 37.005135] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.009457] ? __ia32_sys_exit+0x50/0x50 [ 37.013513] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.018620] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.024154] ? ksys_ioctl+0x81/0xd0 [ 37.027794] __x64_sys_exit_group+0x3e/0x50 [ 37.032117] do_syscall_64+0x1b9/0x820 [ 37.036007] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.041368] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.046295] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.051136] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.056150] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.061167] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.066187] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.071034] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.076222] RIP: 0033:0x43ef08 [ 37.079411] Code: Bad RIP value. [ 37.082776] RSP: 002b:00007ffd9fbd5148 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.090482] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 37.097747] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.105030] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.112297] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.119558] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.126868] [ 37.126873] ====================================================== [ 37.126878] WARNING: possible circular locking dependency detected [ 37.126882] 4.19.0-rc1+ #212 Not tainted [ 37.126887] ------------------------------------------------------ [ 37.126892] syz-executor594/4465 is trying to acquire lock: [ 37.126896] 00000000ab566f41 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.126910] [ 37.126914] but task is already holding lock: [ 37.126917] 00000000a4aca1ee (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.126931] [ 37.126935] which lock already depends on the new lock. [ 37.126937] [ 37.126940] [ 37.126945] the existing dependency chain (in reverse order) is: [ 37.126947] [ 37.126949] -> #3 (report_lock){....}: [ 37.126963] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.126967] kasan_report+0x8e/0x110 [ 37.126971] __asan_report_load8_noabort+0x14/0x20 [ 37.126975] __schedule+0xf54/0x1df0 [ 37.126979] preempt_schedule_common+0x22/0x60 [ 37.126983] _cond_resched+0x1d/0x30 [ 37.126987] wait_for_completion+0xa5/0x8d0 [ 37.126991] __synchronize_srcu+0x189/0x240 [ 37.126995] synchronize_srcu+0x335/0x56f [ 37.127000] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.127004] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.127008] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.127011] kvm_put_kvm+0x73f/0x1060 [ 37.127015] kvm_vm_release+0x42/0x50 [ 37.127019] __fput+0x36e/0x8c0 [ 37.127022] ____fput+0x15/0x20 [ 37.127026] task_work_run+0x1e8/0x2a0 [ 37.127029] do_exit+0x1ae4/0x26e0 [ 37.127033] do_group_exit+0x177/0x440 [ 37.127038] __x64_sys_exit_group+0x3e/0x50 [ 37.127042] do_syscall_64+0x1b9/0x820 [ 37.127046] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.127048] [ 37.127051] -> #2 (&rq->lock){-.-.}: [ 37.127064] _raw_spin_lock+0x2a/0x40 [ 37.127068] task_fork_fair+0x93/0x680 [ 37.127072] sched_fork+0x44b/0xbd0 [ 37.127075] copy_process+0x235e/0x7ad0 [ 37.127079] _do_fork+0x1ca/0x1170 [ 37.127083] kernel_thread+0x34/0x40 [ 37.127086] rest_init+0x22/0xe4 [ 37.127090] start_kernel+0x913/0x94e [ 37.127094] x86_64_start_reservations+0x29/0x2b [ 37.127098] x86_64_start_kernel+0x76/0x79 [ 37.127102] secondary_startup_64+0xa4/0xb0 [ 37.127104] [ 37.127107] -> #1 (&p->pi_lock){-.-.}: [ 37.127121] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.127124] try_to_wake_up+0xd2/0x1250 [ 37.127128] wake_up_process+0x10/0x20 [ 37.127132] __up.isra.1+0x1c0/0x2a0 [ 37.127135] up+0x13c/0x1c0 [ 37.127139] __up_console_sem+0xbe/0x1b0 [ 37.127143] console_unlock+0x506/0x10d0 [ 37.127147] vprintk_emit+0x33a/0x910 [ 37.127151] vprintk_default+0x28/0x30 [ 37.127154] vprintk_func+0x7a/0x117 [ 37.127158] printk+0xa7/0xcf [ 37.127161] load_umh+0x51/0xbd [ 37.127165] do_one_initcall+0x127/0x838 [ 37.127169] kernel_init_freeable+0x4bb/0x5ae [ 37.127173] kernel_init+0x11/0x1b3 [ 37.127176] ret_from_fork+0x3a/0x50 [ 37.127179] [ 37.127181] -> #0 ((console_sem).lock){-...}: [ 37.127195] lock_acquire+0x1e4/0x4f0 [ 37.127199] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.127203] down_trylock+0x13/0x70 [ 37.127207] __down_trylock_console_sem+0xae/0x200 [ 37.127211] console_trylock+0x15/0xa0 [ 37.127214] vprintk_emit+0x31f/0x910 [ 37.127218] vprintk_default+0x28/0x30 [ 37.127222] vprintk_func+0x7a/0x117 [ 37.127225] printk+0xa7/0xcf [ 37.127229] kasan_report+0x9e/0x110 [ 37.127233] __asan_report_load8_noabort+0x14/0x20 [ 37.127237] __schedule+0xf54/0x1df0 [ 37.127241] preempt_schedule_common+0x22/0x60 [ 37.127245] _cond_resched+0x1d/0x30 [ 37.127249] wait_for_completion+0xa5/0x8d0 [ 37.127253] __synchronize_srcu+0x189/0x240 [ 37.127257] synchronize_srcu+0x335/0x56f [ 37.127262] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.127265] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.127270] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.127273] kvm_put_kvm+0x73f/0x1060 [ 37.127277] kvm_vm_release+0x42/0x50 [ 37.127280] __fput+0x36e/0x8c0 [ 37.127284] ____fput+0x15/0x20 [ 37.127288] task_work_run+0x1e8/0x2a0 [ 37.127291] do_exit+0x1ae4/0x26e0 [ 37.127295] do_group_exit+0x177/0x440 [ 37.127299] __x64_sys_exit_group+0x3e/0x50 [ 37.127303] do_syscall_64+0x1b9/0x820 [ 37.127307] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.127310] [ 37.127314] other info that might help us debug this: [ 37.127316] [ 37.127319] Chain exists of: [ 37.127321] (console_sem).lock --> &rq->lock --> report_lock [ 37.127339] [ 37.127343] Possible unsafe locking scenario: [ 37.127345] [ 37.127349] CPU0 CPU1 [ 37.127353] ---- ---- [ 37.127355] lock(report_lock); [ 37.127364] lock(&rq->lock); [ 37.127373] lock(report_lock); [ 37.127381] lock((console_sem).lock); [ 37.127389] [ 37.127392] *** DEADLOCK *** [ 37.127394] [ 37.127398] 2 locks held by syz-executor594/4465: [ 37.127400] #0: 00000000d8f80487 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.127416] #1: 00000000a4aca1ee (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.127433] [ 37.127436] stack backtrace: [ 37.127442] CPU: 1 PID: 4465 Comm: syz-executor594 Not tainted 4.19.0-rc1+ #212 [ 37.127449] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.127452] Call Trace: [ 37.127455] dump_stack+0x1c9/0x2b4 [ 37.127460] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.127463] ? vprintk_func+0x100/0x117 [ 37.127468] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.127472] ? save_trace+0xe0/0x290 [ 37.127476] __lock_acquire+0x3449/0x5020 [ 37.127480] ? mark_held_locks+0x160/0x160 [ 37.127484] ? mark_held_locks+0x160/0x160 [ 37.127488] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.127492] ? is_bpf_text_address+0xd7/0x170 [ 37.127496] ? kernel_text_address+0x79/0xf0 [ 37.127500] ? __kernel_text_address+0xd/0x40 [ 37.127504] ? __save_stack_trace+0x8d/0xf0 [ 37.127508] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.127512] ? save_trace+0x290/0x290 [ 37.127516] ? save_stack_trace+0x1a/0x20 [ 37.127519] ? save_trace+0xe0/0x290 [ 37.127523] ? graph_lock+0x170/0x170 [ 37.127528] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.127538] lock_acquire+0x1e4/0x4f0 [ 37.127542] ? down_trylock+0x13/0x70 [ 37.127546] ? lock_release+0x9f0/0x9f0 [ 37.127550] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.127554] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.127558] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.127561] ? log_store+0x34f/0x4c0 [ 37.127565] ? vprintk_emit+0x31f/0x910 [ 37.127569] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.127573] ? down_trylock+0x13/0x70 [ 37.127577] down_trylock+0x13/0x70 [ 37.127581] __down_trylock_console_sem+0xae/0x200 [ 37.127585] console_trylock+0x15/0xa0 [ 37.127588] vprintk_emit+0x31f/0x910 [ 37.127592] ? wake_up_klogd+0x110/0x110 [ 37.127597] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.127600] ? kasan_check_read+0x11/0x20 [ 37.127604] ? rcu_is_watching+0x8c/0x150 [ 37.127608] ? rcu_pm_notify+0xc0/0xc0 [ 37.127612] ? lock_acquire+0x1e4/0x4f0 [ 37.127616] ? kasan_report+0x8e/0x110 [ 37.127619] ? __schedule+0xf54/0x1df0 [ 37.127623] vprintk_default+0x28/0x30 [ 37.127627] vprintk_func+0x7a/0x117 [ 37.127630] printk+0xa7/0xcf [ 37.127634] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.127638] ? kasan_check_write+0x14/0x20 [ 37.127642] ? do_raw_spin_lock+0xc1/0x200 [ 37.127646] ? do_raw_spin_lock+0xc1/0x200 [ 37.127650] kasan_report+0x9e/0x110 [ 37.127654] __asan_report_load8_noabort+0x14/0x20 [ 37.127658] __schedule+0xf54/0x1df0 [ 37.127662] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.127666] ? __sched_text_start+0x8/0x8 [ 37.127670] ? __call_srcu+0x7e7/0x1040 [ 37.127674] ? check_same_owner+0x340/0x340 [ 37.127678] ? mark_held_locks+0x160/0x160 [ 37.127682] ? find_held_lock+0x36/0x1c0 [ 37.127686] preempt_schedule_common+0x22/0x60 [ 37.127690] _cond_resched+0x1d/0x30 [ 37.127694] wait_for_completion+0xa5/0x8d0 [ 37.127699] ? wait_for_completion_interruptible+0x950/0x950 [ 37.127703] ? __lockdep_init_map+0x105/0x590 [ 37.127707] ? __init_waitqueue_head+0x9e/0x150 [ 37.127711] ? init_wait_entry+0x1c0/0x1c0 [ 37.127715] __synchronize_srcu+0x189/0x240 [ 37.127719] ? call_srcu+0x10/0x10 [ 37.127723] ? rcu_unexpedite_gp+0x20/0x20 [ 37.127727] synchronize_srcu+0x335/0x56f [ 37.127731] ? lock_downgrade+0x8f0/0x8f0 [ 37.127735] ? synchronize_srcu_expedited+0x20/0x20 [ 37.127739] ? kasan_check_read+0x11/0x20 [ 37.127743] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.127747] ? kasan_check_write+0x14/0x20 [ 37.127751] ? do_raw_spin_lock+0xc1/0x200 [ 37.127756] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.127761] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.127764] ? kvfree+0x61/0x70 [ 37.127778] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.127782] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.127786] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.127790] ? kvm_arch_sync_events+0x30/0x30 [ 37.127795] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.127799] ? mmu_notifier_unregister+0x474/0x600 [ 37.127803] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.127807] ? kfree+0x111/0x210 [ 37.127811] ? __mmu_notifier_register+0x30/0x30 [ 37.127814] ? __free_pages+0x10a/0x190 [ 37.127818] ? free_unref_page+0x930/0x930 [ 37.127822] kvm_put_kvm+0x73f/0x1060 [ 37.127826] ? kvm_write_guest_cached+0x40/0x40 [ 37.127830] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.127834] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.127839] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.127843] ? kasan_check_write+0x14/0x20 [ 37.127847] ? do_raw_spin_lock+0xc1/0x200 [ 37.127851] ? kvm_irqfd_release+0xdd/0x120 [ 37.127855] ? kvm_irqfd_release+0xdd/0x120 [ 37.127858] ? kvm_put_kvm+0x1060/0x1060 [ 37.127862] kvm_vm_release+0x42/0x50 [ 37.127866] __fput+0x36e/0x8c0 [ 37.127869] ? __alloc_file+0x400/0x400 [ 37.127873] ? check_same_owner+0x340/0x340 [ 37.127877] ? kasan_check_write+0x14/0x20 [ 37.127881] ? do_raw_spin_lock+0xc1/0x200 [ 37.127885] ____fput+0x15/0x20 [ 37.127888] task_work_run+0x1e8/0x2a0 [ 37.127892] ? task_work_cancel+0x240/0x240 [ 37.127897] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.127901] ? switch_task_namespaces+0xa2/0xd0 [ 37.127905] do_exit+0x1ae4/0x26e0 [ 37.127909] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.127913] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.127917] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.127921] ? kfree+0x1d7/0x210 [ 37.127924] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.127929] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.127933] ? is_bpf_text_address+0xd7/0x170 [ 37.127936] ? [ 37.127943] Lost 55 message(s)! [ 38.199411] Shutting down cpus with NMI [ 39.259699] Dumping ftrace buffer: [ 39.263228] (ftrace buffer empty) [ 39.266941] Kernel Offset: disabled [ 39.270554] Rebooting in 86400 seconds..