[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.436839] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.996536] random: sshd: uninitialized urandom read (32 bytes read) [ 28.295153] random: sshd: uninitialized urandom read (32 bytes read) [ 28.861576] random: sshd: uninitialized urandom read (32 bytes read) [ 29.044741] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.54' (ECDSA) to the list of known hosts. [ 34.599864] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.699931] 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.725910] ================================================================== [ 34.735730] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.741957] Read of size 8 at addr ffff8801d4408058 by task syz-executor299/4721 [ 34.749483] [ 34.751116] CPU: 1 PID: 4721 Comm: syz-executor299 Not tainted 4.19.0-rc1+ #217 [ 34.758557] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.767910] Call Trace: [ 34.770512] dump_stack+0x1c9/0x2b4 [ 34.774140] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.779345] ? printk+0xa7/0xcf [ 34.782633] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.787406] ? __schedule+0xf54/0x1df0 [ 34.791292] print_address_description+0x6c/0x20b [ 34.796136] ? __schedule+0xf54/0x1df0 [ 34.800038] kasan_report.cold.7+0x242/0x30d [ 34.804470] __asan_report_load8_noabort+0x14/0x20 [ 34.809420] __schedule+0xf54/0x1df0 [ 34.813132] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.818241] ? __sched_text_start+0x8/0x8 [ 34.822394] ? __call_srcu+0x7e7/0x1040 [ 34.826389] ? check_same_owner+0x340/0x340 [ 34.830705] ? mark_held_locks+0x160/0x160 [ 34.834940] ? find_held_lock+0x36/0x1c0 [ 34.839014] preempt_schedule_common+0x22/0x60 [ 34.843605] _cond_resched+0x1d/0x30 [ 34.847317] wait_for_completion+0xa5/0x8d0 [ 34.851657] ? wait_for_completion_interruptible+0x950/0x950 [ 34.857478] ? __lockdep_init_map+0x105/0x590 [ 34.861979] ? __init_waitqueue_head+0x9e/0x150 [ 34.866648] ? init_wait_entry+0x1c0/0x1c0 [ 34.870890] __synchronize_srcu+0x189/0x240 [ 34.875215] ? call_srcu+0x10/0x10 [ 34.878758] ? rcu_unexpedite_gp+0x20/0x20 [ 34.883005] synchronize_srcu+0x335/0x56f [ 34.887149] ? lock_downgrade+0x8f0/0x8f0 [ 34.891294] ? synchronize_srcu_expedited+0x20/0x20 [ 34.896320] ? kasan_check_read+0x11/0x20 [ 34.900475] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.905056] ? kasan_check_write+0x14/0x20 [ 34.909304] ? do_raw_spin_lock+0xc1/0x200 [ 34.913577] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.919300] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.924799] ? kvfree+0x61/0x70 [ 34.928085] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.933111] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.937182] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.941588] ? kvm_arch_sync_events+0x30/0x30 [ 34.946095] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.952170] ? mmu_notifier_unregister+0x474/0x600 [ 34.957103] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.961507] ? kfree+0x111/0x210 [ 34.964878] ? __mmu_notifier_register+0x30/0x30 [ 34.969634] ? __free_pages+0x10a/0x190 [ 34.973605] ? free_unref_page+0x930/0x930 [ 34.977884] kvm_put_kvm+0x73f/0x1060 [ 34.981709] ? kvm_write_guest_cached+0x40/0x40 [ 34.986393] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.990881] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.995393] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.000000] ? kasan_check_write+0x14/0x20 [ 35.004234] ? do_raw_spin_lock+0xc1/0x200 [ 35.008467] ? kvm_irqfd_release+0xdd/0x120 [ 35.012805] ? kvm_irqfd_release+0xdd/0x120 [ 35.017142] ? kvm_put_kvm+0x1060/0x1060 [ 35.021201] kvm_vm_release+0x42/0x50 [ 35.025039] __fput+0x38a/0xa40 [ 35.028347] ? __alloc_file+0x400/0x400 [ 35.032326] ? check_same_owner+0x340/0x340 [ 35.036657] ? kasan_check_write+0x14/0x20 [ 35.040891] ? do_raw_spin_lock+0xc1/0x200 [ 35.045125] ____fput+0x15/0x20 [ 35.048405] task_work_run+0x1e8/0x2a0 [ 35.052312] ? task_work_cancel+0x240/0x240 [ 35.056656] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.062192] ? switch_task_namespaces+0xa2/0xd0 [ 35.066865] do_exit+0x1ae4/0x26e0 [ 35.070413] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.075088] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.079323] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.084366] ? kfree+0x1d7/0x210 [ 35.087743] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.091981] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.097696] ? is_bpf_text_address+0xd7/0x170 [ 35.102193] ? kernel_text_address+0x79/0xf0 [ 35.106607] ? __kernel_text_address+0xd/0x40 [ 35.111102] ? unwind_get_return_address+0x61/0xa0 [ 35.116033] ? __save_stack_trace+0x8d/0xf0 [ 35.120360] ? save_stack+0xa9/0xd0 [ 35.123984] ? save_stack+0x43/0xd0 [ 35.127616] ? __kasan_slab_free+0x11a/0x170 [ 35.132020] ? kasan_slab_free+0xe/0x10 [ 35.135993] ? putname+0xf2/0x130 [ 35.139455] ? __x64_sys_openat+0x9d/0x100 [ 35.143708] ? do_syscall_64+0x1b9/0x820 [ 35.147767] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.153141] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.157558] ? kasan_check_read+0x11/0x20 [ 35.161706] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.166110] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.170526] ? initcall_blacklisted+0x9a/0x1e0 [ 35.175159] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.180288] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.186024] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.191569] ? do_vfs_ioctl+0x201/0x1720 [ 35.195630] ? rcu_is_watching+0x8c/0x150 [ 35.199774] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.204106] ? ioctl_preallocate+0x300/0x300 [ 35.208528] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.214067] ? __fget_light+0x2f7/0x440 [ 35.218038] ? fget_raw+0x20/0x20 [ 35.221486] ? putname+0xf2/0x130 [ 35.224949] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.229966] ? kmem_cache_free+0x246/0x280 [ 35.234202] ? putname+0xf7/0x130 [ 35.237654] do_group_exit+0x177/0x440 [ 35.241546] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.245873] ? __ia32_sys_exit+0x50/0x50 [ 35.249937] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.255052] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.260616] ? ksys_ioctl+0x81/0xd0 [ 35.264245] __x64_sys_exit_group+0x3e/0x50 [ 35.268571] do_syscall_64+0x1b9/0x820 [ 35.272459] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.277844] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.282776] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.287625] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.292730] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.297761] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.302788] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.307647] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.312836] RIP: 0033:0x43f028 [ 35.316038] Code: Bad RIP value. [ 35.319399] RSP: 002b:00007fff652487f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.327105] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 35.334382] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.341651] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.348920] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.356193] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 35.363466] [ 35.365090] Allocated by task 4721: [ 35.368726] save_stack+0x43/0xd0 [ 35.372204] kasan_kmalloc+0xc4/0xe0 [ 35.375917] kasan_slab_alloc+0x12/0x20 [ 35.379884] kmem_cache_alloc+0x12e/0x710 [ 35.384027] vmx_create_vcpu+0xcf/0x2830 [ 35.388094] kvm_arch_vcpu_create+0xe5/0x220 [ 35.392501] kvm_vm_ioctl+0x488/0x1d80 [ 35.396384] do_vfs_ioctl+0x1de/0x1720 [ 35.400264] ksys_ioctl+0xa9/0xd0 [ 35.403721] __x64_sys_ioctl+0x73/0xb0 [ 35.407609] do_syscall_64+0x1b9/0x820 [ 35.411494] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.416669] [ 35.418289] Freed by task 4721: [ 35.421576] save_stack+0x43/0xd0 [ 35.425024] __kasan_slab_free+0x11a/0x170 [ 35.429251] kasan_slab_free+0xe/0x10 [ 35.433046] kmem_cache_free+0x86/0x280 [ 35.437020] vmx_free_vcpu+0x26b/0x300 [ 35.440907] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.445314] kvm_put_kvm+0x73f/0x1060 [ 35.449120] kvm_vm_release+0x42/0x50 [ 35.452919] __fput+0x38a/0xa40 [ 35.456194] ____fput+0x15/0x20 [ 35.459470] task_work_run+0x1e8/0x2a0 [ 35.463356] do_exit+0x1ae4/0x26e0 [ 35.466891] do_group_exit+0x177/0x440 [ 35.470779] __x64_sys_exit_group+0x3e/0x50 [ 35.475108] do_syscall_64+0x1b9/0x820 [ 35.478994] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.484169] [ 35.485804] The buggy address belongs to the object at ffff8801d4408040 [ 35.485804] which belongs to the cache kvm_vcpu of size 23872 [ 35.498389] The buggy address is located 24 bytes inside of [ 35.498389] 23872-byte region [ffff8801d4408040, ffff8801d440dd80) [ 35.510367] The buggy address belongs to the page: [ 35.515300] page:ffffea0007510200 count:1 mapcount:0 mapping:ffff8801d51069c0 index:0x0 compound_mapcount: 0 [ 35.525285] flags: 0x2fffc0000008100(slab|head) [ 35.529961] raw: 02fffc0000008100 ffff8801d6f32048 ffff8801d6f32048 ffff8801d51069c0 [ 35.537847] raw: 0000000000000000 ffff8801d4408040 0000000100000001 0000000000000000 [ 35.545731] page dumped because: kasan: bad access detected [ 35.551447] [ 35.553064] Memory state around the buggy address: [ 35.557989] ffff8801d4407f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.565357] ffff8801d4407f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.572714] >ffff8801d4408000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.580073] ^ [ 35.586306] ffff8801d4408080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.593671] ffff8801d4408100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.601026] ================================================================== [ 35.608380] Kernel panic - not syncing: panic_on_warn set ... [ 35.608380] [ 35.615773] CPU: 1 PID: 4721 Comm: syz-executor299 Tainted: G B 4.19.0-rc1+ #217 [ 35.624635] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.633996] Call Trace: [ 35.636599] dump_stack+0x1c9/0x2b4 [ 35.640228] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.645420] ? lock_downgrade+0x8f0/0x8f0 [ 35.649579] ? __schedule+0xf54/0x1df0 [ 35.653475] panic+0x238/0x4e7 [ 35.656665] ? add_taint.cold.5+0x16/0x16 [ 35.660825] ? print_shadow_for_address+0xba/0x116 [ 35.665758] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.670162] ? trace_hardirqs_off+0x77/0x2b0 [ 35.674573] ? __schedule+0xf54/0x1df0 [ 35.678485] kasan_end_report+0x47/0x4f [ 35.682466] kasan_report.cold.7+0x76/0x30d [ 35.686799] __asan_report_load8_noabort+0x14/0x20 [ 35.691733] __schedule+0xf54/0x1df0 [ 35.695445] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.700556] ? __sched_text_start+0x8/0x8 [ 35.704805] ? __call_srcu+0x7e7/0x1040 [ 35.708786] ? check_same_owner+0x340/0x340 [ 35.713115] ? mark_held_locks+0x160/0x160 [ 35.717360] ? find_held_lock+0x36/0x1c0 [ 35.721430] preempt_schedule_common+0x22/0x60 [ 35.726014] _cond_resched+0x1d/0x30 [ 35.729727] wait_for_completion+0xa5/0x8d0 [ 35.734057] ? wait_for_completion_interruptible+0x950/0x950 [ 35.739878] ? __lockdep_init_map+0x105/0x590 [ 35.744380] ? __init_waitqueue_head+0x9e/0x150 [ 35.749047] ? init_wait_entry+0x1c0/0x1c0 [ 35.753290] __synchronize_srcu+0x189/0x240 [ 35.757616] ? call_srcu+0x10/0x10 [ 35.761156] ? rcu_unexpedite_gp+0x20/0x20 [ 35.765403] synchronize_srcu+0x335/0x56f [ 35.769551] ? lock_downgrade+0x8f0/0x8f0 [ 35.773711] ? synchronize_srcu_expedited+0x20/0x20 [ 35.778742] ? kasan_check_read+0x11/0x20 [ 35.782901] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.787485] ? kasan_check_write+0x14/0x20 [ 35.791751] ? do_raw_spin_lock+0xc1/0x200 [ 35.795992] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.801724] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.807196] ? kvfree+0x61/0x70 [ 35.810520] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.815534] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.819603] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.824019] ? kvm_arch_sync_events+0x30/0x30 [ 35.828524] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.834071] ? mmu_notifier_unregister+0x474/0x600 [ 35.838993] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.843715] ? kfree+0x111/0x210 [ 35.847086] ? __mmu_notifier_register+0x30/0x30 [ 35.851843] ? __free_pages+0x10a/0x190 [ 35.855825] ? free_unref_page+0x930/0x930 [ 35.860072] kvm_put_kvm+0x73f/0x1060 [ 35.863892] ? kvm_write_guest_cached+0x40/0x40 [ 35.868564] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.873059] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.877557] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.882153] ? kasan_check_write+0x14/0x20 [ 35.886387] ? do_raw_spin_lock+0xc1/0x200 [ 35.890625] ? kvm_irqfd_release+0xdd/0x120 [ 35.894945] ? kvm_irqfd_release+0xdd/0x120 [ 35.899271] ? kvm_put_kvm+0x1060/0x1060 [ 35.903345] kvm_vm_release+0x42/0x50 [ 35.907185] __fput+0x38a/0xa40 [ 35.910484] ? __alloc_file+0x400/0x400 [ 35.914477] ? check_same_owner+0x340/0x340 [ 35.918805] ? kasan_check_write+0x14/0x20 [ 35.923042] ? do_raw_spin_lock+0xc1/0x200 [ 35.927280] ____fput+0x15/0x20 [ 35.930566] task_work_run+0x1e8/0x2a0 [ 35.934490] ? task_work_cancel+0x240/0x240 [ 35.938825] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.944368] ? switch_task_namespaces+0xa2/0xd0 [ 35.949050] do_exit+0x1ae4/0x26e0 [ 35.953094] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.957767] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.962010] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.967050] ? kfree+0x1d7/0x210 [ 35.970419] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.974653] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.980371] ? is_bpf_text_address+0xd7/0x170 [ 35.984875] ? kernel_text_address+0x79/0xf0 [ 35.989280] ? __kernel_text_address+0xd/0x40 [ 35.993788] ? unwind_get_return_address+0x61/0xa0 [ 35.998746] ? __save_stack_trace+0x8d/0xf0 [ 36.003076] ? save_stack+0xa9/0xd0 [ 36.006698] ? save_stack+0x43/0xd0 [ 36.010320] ? __kasan_slab_free+0x11a/0x170 [ 36.014731] ? kasan_slab_free+0xe/0x10 [ 36.018710] ? putname+0xf2/0x130 [ 36.022170] ? __x64_sys_openat+0x9d/0x100 [ 36.026403] ? do_syscall_64+0x1b9/0x820 [ 36.030461] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.035852] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.040271] ? kasan_check_read+0x11/0x20 [ 36.044423] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.048830] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.053249] ? initcall_blacklisted+0x9a/0x1e0 [ 36.057839] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.062945] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.068684] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.074224] ? do_vfs_ioctl+0x201/0x1720 [ 36.078287] ? rcu_is_watching+0x8c/0x150 [ 36.082434] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.086769] ? ioctl_preallocate+0x300/0x300 [ 36.091190] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.096726] ? __fget_light+0x2f7/0x440 [ 36.100697] ? fget_raw+0x20/0x20 [ 36.104152] ? putname+0xf2/0x130 [ 36.107607] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.112619] ? kmem_cache_free+0x246/0x280 [ 36.116865] ? putname+0xf7/0x130 [ 36.120326] do_group_exit+0x177/0x440 [ 36.124218] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.128546] ? __ia32_sys_exit+0x50/0x50 [ 36.132604] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.137719] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.143258] ? ksys_ioctl+0x81/0xd0 [ 36.146889] __x64_sys_exit_group+0x3e/0x50 [ 36.151212] do_syscall_64+0x1b9/0x820 [ 36.155109] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.160481] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.165411] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.170282] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.175304] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.180323] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.185352] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.190214] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.195404] RIP: 0033:0x43f028 [ 36.198608] Code: Bad RIP value. [ 36.201966] RSP: 002b:00007fff652487f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.209679] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 36.216948] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.224236] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.231514] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.238780] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 36.246073] [ 36.246079] ====================================================== [ 36.246084] WARNING: possible circular locking dependency detected [ 36.246087] 4.19.0-rc1+ #217 Not tainted [ 36.246093] ------------------------------------------------------ [ 36.246098] syz-executor299/4721 is trying to acquire lock: [ 36.246101] 00000000cc2224ae ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.246116] [ 36.246120] but task is already holding lock: [ 36.246123] 00000000e1366349 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.246136] [ 36.246141] which lock already depends on the new lock. [ 36.246143] [ 36.246145] [ 36.246150] the existing dependency chain (in reverse order) is: [ 36.246152] [ 36.246155] -> #3 (report_lock){....}: [ 36.246169] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.246172] kasan_report+0x8e/0x110 [ 36.246177] __asan_report_load8_noabort+0x14/0x20 [ 36.246180] __schedule+0xf54/0x1df0 [ 36.246185] preempt_schedule_common+0x22/0x60 [ 36.246188] _cond_resched+0x1d/0x30 [ 36.246192] wait_for_completion+0xa5/0x8d0 [ 36.246196] __synchronize_srcu+0x189/0x240 [ 36.246200] synchronize_srcu+0x335/0x56f [ 36.246205] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.246209] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.246213] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.246217] kvm_put_kvm+0x73f/0x1060 [ 36.246221] kvm_vm_release+0x42/0x50 [ 36.246224] __fput+0x38a/0xa40 [ 36.246228] ____fput+0x15/0x20 [ 36.246232] task_work_run+0x1e8/0x2a0 [ 36.246235] do_exit+0x1ae4/0x26e0 [ 36.246239] do_group_exit+0x177/0x440 [ 36.246243] __x64_sys_exit_group+0x3e/0x50 [ 36.246247] do_syscall_64+0x1b9/0x820 [ 36.246251] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.246254] [ 36.246256] -> #2 (&rq->lock){-.-.}: [ 36.246269] _raw_spin_lock+0x2a/0x40 [ 36.246273] task_fork_fair+0x93/0x680 [ 36.246277] sched_fork+0x44b/0xbd0 [ 36.246281] copy_process+0x235e/0x7ad0 [ 36.246284] _do_fork+0x1ca/0x1170 [ 36.246288] kernel_thread+0x34/0x40 [ 36.246291] rest_init+0x22/0xe4 [ 36.246295] start_kernel+0x913/0x94e [ 36.246299] x86_64_start_reservations+0x29/0x2b [ 36.246303] x86_64_start_kernel+0x76/0x79 [ 36.246307] secondary_startup_64+0xa4/0xb0 [ 36.246309] [ 36.246312] -> #1 (&p->pi_lock){-.-.}: [ 36.246326] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.246330] try_to_wake_up+0xd2/0x1250 [ 36.246339] wake_up_process+0x10/0x20 [ 36.246343] __up.isra.1+0x1c0/0x2a0 [ 36.246346] up+0x13c/0x1c0 [ 36.246350] __up_console_sem+0xbe/0x1b0 [ 36.246354] console_unlock+0x506/0x10d0 [ 36.246358] vprintk_emit+0x33a/0x910 [ 36.246361] vprintk_default+0x28/0x30 [ 36.246365] vprintk_func+0x7a/0x117 [ 36.246368] printk+0xa7/0xcf [ 36.246372] do_exit.cold.22+0x120/0x21f [ 36.246376] do_group_exit+0x177/0x440 [ 36.246380] __x64_sys_exit_group+0x3e/0x50 [ 36.246384] do_syscall_64+0x1b9/0x820 [ 36.246388] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.246390] [ 36.246393] -> #0 ((console_sem).lock){-...}: [ 36.246407] lock_acquire+0x1e4/0x4f0 [ 36.246411] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.246414] down_trylock+0x13/0x70 [ 36.246419] __down_trylock_console_sem+0xae/0x200 [ 36.246423] console_trylock+0x15/0xa0 [ 36.246426] vprintk_emit+0x31f/0x910 [ 36.246430] vprintk_default+0x28/0x30 [ 36.246434] vprintk_func+0x7a/0x117 [ 36.246437] printk+0xa7/0xcf [ 36.246441] kasan_report+0x9e/0x110 [ 36.246445] __asan_report_load8_noabort+0x14/0x20 [ 36.246449] __schedule+0xf54/0x1df0 [ 36.246453] preempt_schedule_common+0x22/0x60 [ 36.246457] _cond_resched+0x1d/0x30 [ 36.246461] wait_for_completion+0xa5/0x8d0 [ 36.246465] __synchronize_srcu+0x189/0x240 [ 36.246469] synchronize_srcu+0x335/0x56f [ 36.246474] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.246478] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.246482] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.246486] kvm_put_kvm+0x73f/0x1060 [ 36.246489] kvm_vm_release+0x42/0x50 [ 36.246493] __fput+0x38a/0xa40 [ 36.246496] ____fput+0x15/0x20 [ 36.246500] task_work_run+0x1e8/0x2a0 [ 36.246503] do_exit+0x1ae4/0x26e0 [ 36.246507] do_group_exit+0x177/0x440 [ 36.246511] __x64_sys_exit_group+0x3e/0x50 [ 36.246515] do_syscall_64+0x1b9/0x820 [ 36.246519] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.246522] [ 36.246526] other info that might help us debug this: [ 36.246528] [ 36.246531] Chain exists of: [ 36.246533] (console_sem).lock --> &rq->lock --> report_lock [ 36.246551] [ 36.246555] Possible unsafe locking scenario: [ 36.246557] [ 36.246561] CPU0 CPU1 [ 36.246565] ---- ---- [ 36.246567] lock(report_lock); [ 36.246576] lock(&rq->lock); [ 36.246585] lock(report_lock); [ 36.246593] lock((console_sem).lock); [ 36.246601] [ 36.246604] *** DEADLOCK *** [ 36.246606] [ 36.246610] 2 locks held by syz-executor299/4721: [ 36.246612] #0: 00000000504e0251 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.246629] #1: 00000000e1366349 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.246645] [ 36.246648] stack backtrace: [ 36.246654] CPU: 1 PID: 4721 Comm: syz-executor299 Not tainted 4.19.0-rc1+ #217 [ 36.246660] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.246663] Call Trace: [ 36.246667] dump_stack+0x1c9/0x2b4 [ 36.246671] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.246675] ? vprintk_func+0x100/0x117 [ 36.246680] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.246684] ? save_trace+0xe0/0x290 [ 36.246688] __lock_acquire+0x3449/0x5020 [ 36.246691] ? mark_held_locks+0x160/0x160 [ 36.246695] ? mark_held_locks+0x160/0x160 [ 36.246699] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.246703] ? is_bpf_text_address+0xd7/0x170 [ 36.246707] ? kernel_text_address+0x79/0xf0 [ 36.246712] ? __kernel_text_address+0xd/0x40 [ 36.246716] ? __save_stack_trace+0x8d/0xf0 [ 36.246720] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.246723] ? save_trace+0x290/0x290 [ 36.246727] ? save_stack_trace+0x1a/0x20 [ 36.246731] ? save_trace+0xe0/0x290 [ 36.246735] ? graph_lock+0x170/0x170 [ 36.246739] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.246743] lock_acquire+0x1e4/0x4f0 [ 36.246747] ? down_trylock+0x13/0x70 [ 36.246750] ? lock_release+0x9f0/0x9f0 [ 36.246754] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.246758] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.246762] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.246766] ? log_store+0x34f/0x4c0 [ 36.246770] ? vprintk_emit+0x31f/0x910 [ 36.246774] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.246777] ? down_trylock+0x13/0x70 [ 36.246781] down_trylock+0x13/0x70 [ 36.246785] __down_trylock_console_sem+0xae/0x200 [ 36.246789] console_trylock+0x15/0xa0 [ 36.246802] vprintk_emit+0x31f/0x910 [ 36.246806] ? wake_up_klogd+0x110/0x110 [ 36.246810] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.246814] ? kasan_check_read+0x11/0x20 [ 36.246818] ? rcu_is_watching+0x8c/0x150 [ 36.246822] ? rcu_pm_notify+0xc0/0xc0 [ 36.246825] ? lock_acquire+0x1e4/0x4f0 [ 36.246829] ? kasan_report+0x8e/0x110 [ 36.246833] ? __schedule+0xf54/0x1df0 [ 36.246837] vprintk_default+0x28/0x30 [ 36.246841] vprintk_func+0x7a/0x117 [ 36.246844] printk+0xa7/0xcf [ 36.246848] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.246852] ? kasan_check_write+0x14/0x20 [ 36.246856] ? do_raw_spin_lock+0xc1/0x200 [ 36.246860] ? do_raw_spin_lock+0xc1/0x200 [ 36.246864] kasan_report+0x9e/0x110 [ 36.246868] __asan_report_load8_noabort+0x14/0x20 [ 36.246872] __schedule+0xf54/0x1df0 [ 36.246876] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.246880] ? __sched_text_start+0x8/0x8 [ 36.246884] ? __call_srcu+0x7e7/0x1040 [ 36.246888] ? check_same_owner+0x340/0x340 [ 36.246891] ? mark_held_locks+0x160/0x160 [ 36.246895] ? find_held_lock+0x36/0x1c0 [ 36.246899] preempt_schedule_common+0x22/0x60 [ 36.246903] _cond_resched+0x1d/0x30 [ 36.246907] wait_for_completion+0xa5/0x8d0 [ 36.246912] ? wait_for_completion_interruptible+0x950/0x950 [ 36.246916] ? __lockdep_init_map+0x105/0x590 [ 36.246920] ? __init_waitqueue_head+0x9e/0x150 [ 36.246924] ? init_wait_entry+0x1c0/0x1c0 [ 36.246928] __synchronize_srcu+0x189/0x240 [ 36.246931] ? call_srcu+0x10/0x10 [ 36.246935] ? rcu_unexpedite_gp+0x20/0x20 [ 36.246939] synchronize_srcu+0x335/0x56f [ 36.246943] ? lock_downgrade+0x8f0/0x8f0 [ 36.246948] ? synchronize_srcu_expedited+0x20/0x20 [ 36.246952] ? kasan_check_read+0x11/0x20 [ 36.246956] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.246960] ? kasan_check_write+0x14/0x20 [ 36.246963] ? do_raw_spin_lock+0xc1/0x200 [ 36.246968] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.246973] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.246976] ? kvfree+0x61/0x70 [ 36.246981] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.246985] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.246989] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.246993] ? kvm_arch_sync_events+0x30/0x30 [ 36.246997] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.247002] ? mmu_notifier_unregister+0x474/0x600 [ 36.247006] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.247009] ? kfree+0x111/0x210 [ 36.247013] ? __mmu_notifier_register+0x30/0x30 [ 36.247017] ? __free_pages+0x10a/0x190 [ 36.247021] ? free_unref_page+0x930/0x930 [ 36.247024] kvm_put_kvm+0x73f/0x1060 [ 36.247029] ? kvm_write_guest_cached+0x40/0x40 [ 36.247033] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.247037] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.247041] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.247044] ? kasan_check_write+0x14/0x20 [ 36.247049] ? do_raw_spin_lock+0xc1/0x200 [ 36.247053] ? kvm_irqfd_release+0xdd/0x120 [ 36.247057] ? kvm_irqfd_release+0xdd/0x120 [ 36.247060] ? kvm_put_kvm+0x1060/0x1060 [ 36.247064] kvm_vm_release+0x42/0x50 [ 36.247067] __fput+0x38a/0xa40 [ 36.247071] ? __alloc_file+0x400/0x400 [ 36.247075] ? check_same_owner+0x340/0x340 [ 36.247079] ? kasan_check_write+0x14/0x20 [ 36.247083] ? do_raw_spin_lock+0xc1/0x200 [ 36.247086] ____fput+0x15/0x20 [ 36.247090] task_work_run+0x1e8/0x2a0 [ 36.247094] ? task_work_cancel+0x240/0x240 [ 36.247099] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.247103] ? switch_task_namespaces+0xa2/0xd0 [ 36.247106] do_exit+0x1ae4/0x26e0 [ 36.247110] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.247114] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.247119] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.247122] ? kfree+0x1d7/0x210 [ 36.247126] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.247131] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.247133] ? is_bpf_tex [ 36.247142] Lost 56 message(s)! [ 37.333787] Shutting down cpus with NMI [ 38.392157] Dumping ftrace buffer: [ 38.395684] (ftrace buffer empty) [ 38.399375] Kernel Offset: disabled [ 38.403006] Rebooting in 86400 seconds..