[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.222553] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.077059] random: sshd: uninitialized urandom read (32 bytes read) [ 26.382342] random: sshd: uninitialized urandom read (32 bytes read) [ 26.907069] random: sshd: uninitialized urandom read (32 bytes read) [ 27.081712] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.50' (ECDSA) to the list of known hosts. [ 32.771870] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.865719] 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.890343] ================================================================== [ 32.900145] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.906371] Read of size 8 at addr ffff8801ac428058 by task syz-executor689/4457 [ 32.913886] [ 32.915509] CPU: 1 PID: 4457 Comm: syz-executor689 Not tainted 4.19.0-rc1+ #211 [ 32.922944] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.932294] Call Trace: [ 32.934877] dump_stack+0x1c9/0x2b4 [ 32.938504] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.943692] ? printk+0xa7/0xcf [ 32.946982] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.951748] ? __schedule+0xf54/0x1df0 [ 32.955633] print_address_description+0x6c/0x20b [ 32.960478] ? __schedule+0xf54/0x1df0 [ 32.964367] kasan_report.cold.7+0x242/0x30d [ 32.968775] __asan_report_load8_noabort+0x14/0x20 [ 32.973702] __schedule+0xf54/0x1df0 [ 32.977410] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.982512] ? __sched_text_start+0x8/0x8 [ 32.986660] ? __call_srcu+0x7e7/0x1040 [ 32.990637] ? check_same_owner+0x340/0x340 [ 32.994952] ? mark_held_locks+0x160/0x160 [ 32.999194] ? find_held_lock+0x36/0x1c0 [ 33.003269] preempt_schedule_common+0x22/0x60 [ 33.007853] _cond_resched+0x1d/0x30 [ 33.011564] wait_for_completion+0xa5/0x8d0 [ 33.015885] ? wait_for_completion_interruptible+0x950/0x950 [ 33.021682] ? __lockdep_init_map+0x105/0x590 [ 33.026176] ? __init_waitqueue_head+0x9e/0x150 [ 33.030839] ? init_wait_entry+0x1c0/0x1c0 [ 33.035083] __synchronize_srcu+0x189/0x240 [ 33.039400] ? call_srcu+0x10/0x10 [ 33.042938] ? rcu_unexpedite_gp+0x20/0x20 [ 33.047183] synchronize_srcu+0x335/0x56f [ 33.051330] ? lock_downgrade+0x8f0/0x8f0 [ 33.055479] ? synchronize_srcu_expedited+0x20/0x20 [ 33.060502] ? kasan_check_read+0x11/0x20 [ 33.064647] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.069229] ? kasan_check_write+0x14/0x20 [ 33.073462] ? do_raw_spin_lock+0xc1/0x200 [ 33.077705] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.083414] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.088861] ? kvfree+0x61/0x70 [ 33.092145] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.097158] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.101217] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.105630] ? kvm_arch_sync_events+0x30/0x30 [ 33.110131] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.115667] ? mmu_notifier_unregister+0x474/0x600 [ 33.120592] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.124996] ? kfree+0x111/0x210 [ 33.128361] ? __mmu_notifier_register+0x30/0x30 [ 33.133119] ? __free_pages+0x10a/0x190 [ 33.137103] ? free_unref_page+0x930/0x930 [ 33.141348] kvm_put_kvm+0x73f/0x1060 [ 33.145154] ? kvm_write_guest_cached+0x40/0x40 [ 33.149825] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.154319] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.158814] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.163395] ? kasan_check_write+0x14/0x20 [ 33.167627] ? do_raw_spin_lock+0xc1/0x200 [ 33.171861] ? kvm_irqfd_release+0xdd/0x120 [ 33.176184] ? kvm_irqfd_release+0xdd/0x120 [ 33.180504] ? kvm_put_kvm+0x1060/0x1060 [ 33.184566] kvm_vm_release+0x42/0x50 [ 33.188361] __fput+0x36e/0x8c0 [ 33.191638] ? __alloc_file+0x400/0x400 [ 33.195629] ? check_same_owner+0x340/0x340 [ 33.199949] ? kasan_check_write+0x14/0x20 [ 33.204191] ? do_raw_spin_lock+0xc1/0x200 [ 33.208425] ____fput+0x15/0x20 [ 33.211698] task_work_run+0x1e8/0x2a0 [ 33.215586] ? task_work_cancel+0x240/0x240 [ 33.219910] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.225442] ? switch_task_namespaces+0xa2/0xd0 [ 33.230118] do_exit+0x1ae4/0x26e0 [ 33.233679] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.238352] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.242586] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.247601] ? kfree+0x1d7/0x210 [ 33.250971] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.255207] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.260914] ? is_bpf_text_address+0xd7/0x170 [ 33.265407] ? kernel_text_address+0x79/0xf0 [ 33.269810] ? __kernel_text_address+0xd/0x40 [ 33.274302] ? unwind_get_return_address+0x61/0xa0 [ 33.279232] ? __save_stack_trace+0x8d/0xf0 [ 33.283557] ? save_stack+0xa9/0xd0 [ 33.287179] ? save_stack+0x43/0xd0 [ 33.290803] ? __kasan_slab_free+0x11a/0x170 [ 33.295207] ? kasan_slab_free+0xe/0x10 [ 33.299176] ? putname+0xf2/0x130 [ 33.302624] ? __x64_sys_openat+0x9d/0x100 [ 33.306854] ? do_syscall_64+0x1b9/0x820 [ 33.310915] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.316273] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.320676] ? kasan_check_read+0x11/0x20 [ 33.324828] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.329237] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.333647] ? initcall_blacklisted+0x9a/0x1e0 [ 33.338235] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.343336] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.349060] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.354593] ? do_vfs_ioctl+0x201/0x1720 [ 33.358649] ? rcu_is_watching+0x8c/0x150 [ 33.362818] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.367137] ? ioctl_preallocate+0x300/0x300 [ 33.371541] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.377084] ? __fget_light+0x2f7/0x440 [ 33.381055] ? fget_raw+0x20/0x20 [ 33.384503] ? putname+0xf2/0x130 [ 33.387954] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.392983] ? kmem_cache_free+0x246/0x280 [ 33.397216] ? putname+0xf7/0x130 [ 33.400667] do_group_exit+0x177/0x440 [ 33.404552] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.409399] ? __ia32_sys_exit+0x50/0x50 [ 33.413453] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.418556] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.424091] ? ksys_ioctl+0x81/0xd0 [ 33.427719] __x64_sys_exit_group+0x3e/0x50 [ 33.432040] do_syscall_64+0x1b9/0x820 [ 33.435925] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.441291] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.446216] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.451053] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.456064] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.461079] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.466095] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.470937] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.476130] RIP: 0033:0x43ef08 [ 33.479324] Code: Bad RIP value. [ 33.482686] RSP: 002b:00007ffd2e629c38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.490389] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 33.497656] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.504917] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.512178] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.519442] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.526713] [ 33.528330] Allocated by task 4457: [ 33.531957] save_stack+0x43/0xd0 [ 33.535419] kasan_kmalloc+0xc4/0xe0 [ 33.539125] kasan_slab_alloc+0x12/0x20 [ 33.543096] kmem_cache_alloc+0x12e/0x710 [ 33.547237] vmx_create_vcpu+0xcf/0x2830 [ 33.551295] kvm_arch_vcpu_create+0xe5/0x220 [ 33.555705] kvm_vm_ioctl+0x488/0x1d80 [ 33.559587] do_vfs_ioctl+0x1de/0x1720 [ 33.563468] ksys_ioctl+0xa9/0xd0 [ 33.566924] __x64_sys_ioctl+0x73/0xb0 [ 33.570811] do_syscall_64+0x1b9/0x820 [ 33.574699] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.579874] [ 33.581492] Freed by task 4457: [ 33.584764] save_stack+0x43/0xd0 [ 33.588211] __kasan_slab_free+0x11a/0x170 [ 33.592441] kasan_slab_free+0xe/0x10 [ 33.596239] kmem_cache_free+0x86/0x280 [ 33.600204] vmx_free_vcpu+0x26b/0x300 [ 33.604085] kvm_arch_destroy_vm+0x365/0x7c0 [ 33.608494] kvm_put_kvm+0x73f/0x1060 [ 33.612293] kvm_vm_release+0x42/0x50 [ 33.616087] __fput+0x36e/0x8c0 [ 33.619356] ____fput+0x15/0x20 [ 33.622627] task_work_run+0x1e8/0x2a0 [ 33.626505] do_exit+0x1ae4/0x26e0 [ 33.630036] do_group_exit+0x177/0x440 [ 33.633915] __x64_sys_exit_group+0x3e/0x50 [ 33.638230] do_syscall_64+0x1b9/0x820 [ 33.642115] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.647287] [ 33.648907] The buggy address belongs to the object at ffff8801ac428040 [ 33.648907] which belongs to the cache kvm_vcpu of size 23872 [ 33.661477] The buggy address is located 24 bytes inside of [ 33.661477] 23872-byte region [ffff8801ac428040, ffff8801ac42dd80) [ 33.673428] The buggy address belongs to the page: [ 33.678353] page:ffffea0006b10a00 count:1 mapcount:0 mapping:ffff8801d502b380 index:0x0 compound_mapcount: 0 [ 33.688318] flags: 0x2fffc0000008100(slab|head) [ 33.692989] raw: 02fffc0000008100 ffff8801d4bc9c48 ffff8801d4bc9c48 ffff8801d502b380 [ 33.700866] raw: 0000000000000000 ffff8801ac428040 0000000100000001 0000000000000000 [ 33.708731] page dumped because: kasan: bad access detected [ 33.714424] [ 33.716042] Memory state around the buggy address: [ 33.720971] ffff8801ac427f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.728323] ffff8801ac427f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.735672] >ffff8801ac428000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.743024] ^ [ 33.749704] ffff8801ac428080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.757058] ffff8801ac428100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.764408] ================================================================== [ 33.771756] Kernel panic - not syncing: panic_on_warn set ... [ 33.771756] [ 33.779122] CPU: 1 PID: 4457 Comm: syz-executor689 Tainted: G B 4.19.0-rc1+ #211 [ 33.787958] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.797304] Call Trace: [ 33.799894] dump_stack+0x1c9/0x2b4 [ 33.803521] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.808706] ? lock_downgrade+0x8f0/0x8f0 [ 33.812848] ? __schedule+0xf54/0x1df0 [ 33.816846] panic+0x238/0x4e7 [ 33.820025] ? add_taint.cold.5+0x16/0x16 [ 33.824160] ? print_shadow_for_address+0xba/0x116 [ 33.829203] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.833610] ? trace_hardirqs_off+0x77/0x2b0 [ 33.838022] ? __schedule+0xf54/0x1df0 [ 33.841916] kasan_end_report+0x47/0x4f [ 33.845894] kasan_report.cold.7+0x76/0x30d [ 33.850218] __asan_report_load8_noabort+0x14/0x20 [ 33.855143] __schedule+0xf54/0x1df0 [ 33.858843] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.863931] ? __sched_text_start+0x8/0x8 [ 33.868508] ? __call_srcu+0x7e7/0x1040 [ 33.872477] ? check_same_owner+0x340/0x340 [ 33.876779] ? mark_held_locks+0x160/0x160 [ 33.880992] ? find_held_lock+0x36/0x1c0 [ 33.885034] preempt_schedule_common+0x22/0x60 [ 33.889605] _cond_resched+0x1d/0x30 [ 33.893305] wait_for_completion+0xa5/0x8d0 [ 33.897616] ? wait_for_completion_interruptible+0x950/0x950 [ 33.903406] ? __lockdep_init_map+0x105/0x590 [ 33.907892] ? __init_waitqueue_head+0x9e/0x150 [ 33.912546] ? init_wait_entry+0x1c0/0x1c0 [ 33.916765] __synchronize_srcu+0x189/0x240 [ 33.921074] ? call_srcu+0x10/0x10 [ 33.924603] ? rcu_unexpedite_gp+0x20/0x20 [ 33.928824] synchronize_srcu+0x335/0x56f [ 33.932956] ? lock_downgrade+0x8f0/0x8f0 [ 33.937095] ? synchronize_srcu_expedited+0x20/0x20 [ 33.942108] ? kasan_check_read+0x11/0x20 [ 33.946267] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.950860] ? kasan_check_write+0x14/0x20 [ 33.955269] ? do_raw_spin_lock+0xc1/0x200 [ 33.959489] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.965186] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.970723] ? kvfree+0x61/0x70 [ 33.974050] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.979058] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.983109] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.987503] ? kvm_arch_sync_events+0x30/0x30 [ 33.991982] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.997502] ? mmu_notifier_unregister+0x474/0x600 [ 34.002456] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.006850] ? kfree+0x111/0x210 [ 34.010201] ? __mmu_notifier_register+0x30/0x30 [ 34.015004] ? __free_pages+0x10a/0x190 [ 34.018976] ? free_unref_page+0x930/0x930 [ 34.023244] kvm_put_kvm+0x73f/0x1060 [ 34.027035] ? kvm_write_guest_cached+0x40/0x40 [ 34.031694] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.036180] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.040664] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.045236] ? kasan_check_write+0x14/0x20 [ 34.049456] ? do_raw_spin_lock+0xc1/0x200 [ 34.053674] ? kvm_irqfd_release+0xdd/0x120 [ 34.057976] ? kvm_irqfd_release+0xdd/0x120 [ 34.062355] ? kvm_put_kvm+0x1060/0x1060 [ 34.066418] kvm_vm_release+0x42/0x50 [ 34.070206] __fput+0x36e/0x8c0 [ 34.073469] ? __alloc_file+0x400/0x400 [ 34.077430] ? check_same_owner+0x340/0x340 [ 34.081736] ? kasan_check_write+0x14/0x20 [ 34.085953] ? do_raw_spin_lock+0xc1/0x200 [ 34.090171] ____fput+0x15/0x20 [ 34.093489] task_work_run+0x1e8/0x2a0 [ 34.097414] ? task_work_cancel+0x240/0x240 [ 34.101739] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.107278] ? switch_task_namespaces+0xa2/0xd0 [ 34.111942] do_exit+0x1ae4/0x26e0 [ 34.115479] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.120137] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.124358] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.129404] ? kfree+0x1d7/0x210 [ 34.132761] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.136990] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.142693] ? is_bpf_text_address+0xd7/0x170 [ 34.147177] ? kernel_text_address+0x79/0xf0 [ 34.151569] ? __kernel_text_address+0xd/0x40 [ 34.156095] ? unwind_get_return_address+0x61/0xa0 [ 34.161027] ? __save_stack_trace+0x8d/0xf0 [ 34.165343] ? save_stack+0xa9/0xd0 [ 34.168966] ? save_stack+0x43/0xd0 [ 34.172580] ? __kasan_slab_free+0x11a/0x170 [ 34.177095] ? kasan_slab_free+0xe/0x10 [ 34.181056] ? putname+0xf2/0x130 [ 34.184505] ? __x64_sys_openat+0x9d/0x100 [ 34.188729] ? do_syscall_64+0x1b9/0x820 [ 34.192780] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.198131] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.202529] ? kasan_check_read+0x11/0x20 [ 34.206667] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.211060] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.215459] ? initcall_blacklisted+0x9a/0x1e0 [ 34.220031] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.225128] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.230832] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.236360] ? do_vfs_ioctl+0x201/0x1720 [ 34.240411] ? rcu_is_watching+0x8c/0x150 [ 34.244539] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.248904] ? ioctl_preallocate+0x300/0x300 [ 34.253301] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.258827] ? __fget_light+0x2f7/0x440 [ 34.262794] ? fget_raw+0x20/0x20 [ 34.266239] ? putname+0xf2/0x130 [ 34.269686] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.274687] ? kmem_cache_free+0x246/0x280 [ 34.278901] ? putname+0xf7/0x130 [ 34.282338] do_group_exit+0x177/0x440 [ 34.286211] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.290519] ? __ia32_sys_exit+0x50/0x50 [ 34.294562] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.299649] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.305165] ? ksys_ioctl+0x81/0xd0 [ 34.308782] __x64_sys_exit_group+0x3e/0x50 [ 34.313095] do_syscall_64+0x1b9/0x820 [ 34.317017] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.322371] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.327285] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.332196] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.337200] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.342205] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.347246] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.352085] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.357312] RIP: 0033:0x43ef08 [ 34.360494] Code: Bad RIP value. [ 34.363840] RSP: 002b:00007ffd2e629c38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.371534] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.378788] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.386043] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.393296] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.400547] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.407802] [ 34.407805] ====================================================== [ 34.407808] WARNING: possible circular locking dependency detected [ 34.407811] 4.19.0-rc1+ #211 Not tainted [ 34.407814] ------------------------------------------------------ [ 34.407817] syz-executor689/4457 is trying to acquire lock: [ 34.407819] 00000000ae496785 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 34.407827] [ 34.407829] but task is already holding lock: [ 34.407831] 00000000c469ea7b (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.407838] [ 34.407841] which lock already depends on the new lock. [ 34.407842] [ 34.407844] [ 34.407847] the existing dependency chain (in reverse order) is: [ 34.407848] [ 34.407849] -> #3 (report_lock){....}: [ 34.407857] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.407859] kasan_report+0x8e/0x110 [ 34.407862] __asan_report_load8_noabort+0x14/0x20 [ 34.407864] __schedule+0xf54/0x1df0 [ 34.407866] preempt_schedule_common+0x22/0x60 [ 34.407869] _cond_resched+0x1d/0x30 [ 34.407871] wait_for_completion+0xa5/0x8d0 [ 34.407873] __synchronize_srcu+0x189/0x240 [ 34.407876] synchronize_srcu+0x335/0x56f [ 34.407878] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.407881] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.407883] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.407885] kvm_put_kvm+0x73f/0x1060 [ 34.407887] kvm_vm_release+0x42/0x50 [ 34.407890] __fput+0x36e/0x8c0 [ 34.407893] ____fput+0x15/0x20 [ 34.407896] task_work_run+0x1e8/0x2a0 [ 34.407898] do_exit+0x1ae4/0x26e0 [ 34.407900] do_group_exit+0x177/0x440 [ 34.407902] __x64_sys_exit_group+0x3e/0x50 [ 34.407904] do_syscall_64+0x1b9/0x820 [ 34.407907] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.407908] [ 34.407909] -> #2 (&rq->lock){-.-.}: [ 34.407917] _raw_spin_lock+0x2a/0x40 [ 34.407919] task_fork_fair+0x93/0x680 [ 34.407921] sched_fork+0x44b/0xbd0 [ 34.407923] copy_process+0x235e/0x7ad0 [ 34.407925] _do_fork+0x1ca/0x1170 [ 34.407928] kernel_thread+0x34/0x40 [ 34.407930] rest_init+0x22/0xe4 [ 34.407932] start_kernel+0x913/0x94e [ 34.407935] x86_64_start_reservations+0x29/0x2b [ 34.407937] x86_64_start_kernel+0x76/0x79 [ 34.407939] secondary_startup_64+0xa4/0xb0 [ 34.407941] [ 34.407942] -> #1 (&p->pi_lock){-.-.}: [ 34.407950] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.407952] try_to_wake_up+0xd2/0x1250 [ 34.407954] wake_up_process+0x10/0x20 [ 34.407956] __up.isra.1+0x1c0/0x2a0 [ 34.407958] up+0x13c/0x1c0 [ 34.407961] __up_console_sem+0xbe/0x1b0 [ 34.407963] console_unlock+0x506/0x10d0 [ 34.407965] vprintk_emit+0x33a/0x910 [ 34.407967] vprintk_default+0x28/0x30 [ 34.407969] vprintk_func+0x7a/0x117 [ 34.407971] printk+0xa7/0xcf [ 34.407973] load_umh+0x51/0xbd [ 34.407975] do_one_initcall+0x127/0x838 [ 34.407978] kernel_init_freeable+0x4bb/0x5ae [ 34.407980] kernel_init+0x11/0x1b3 [ 34.407982] ret_from_fork+0x3a/0x50 [ 34.407983] [ 34.407984] -> #0 ((console_sem).lock){-...}: [ 34.407992] lock_acquire+0x1e4/0x4f0 [ 34.407994] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.407997] down_trylock+0x13/0x70 [ 34.407999] __down_trylock_console_sem+0xae/0x200 [ 34.408001] console_trylock+0x15/0xa0 [ 34.408003] vprintk_emit+0x31f/0x910 [ 34.408006] vprintk_default+0x28/0x30 [ 34.408008] vprintk_func+0x7a/0x117 [ 34.408010] printk+0xa7/0xcf [ 34.408012] kasan_report+0x9e/0x110 [ 34.408014] __asan_report_load8_noabort+0x14/0x20 [ 34.408016] __schedule+0xf54/0x1df0 [ 34.408019] preempt_schedule_common+0x22/0x60 [ 34.408021] _cond_resched+0x1d/0x30 [ 34.408023] wait_for_completion+0xa5/0x8d0 [ 34.408026] __synchronize_srcu+0x189/0x240 [ 34.408028] synchronize_srcu+0x335/0x56f [ 34.408031] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.408033] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.408036] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.408038] kvm_put_kvm+0x73f/0x1060 [ 34.408040] kvm_vm_release+0x42/0x50 [ 34.408042] __fput+0x36e/0x8c0 [ 34.408044] ____fput+0x15/0x20 [ 34.408046] task_work_run+0x1e8/0x2a0 [ 34.408048] do_exit+0x1ae4/0x26e0 [ 34.408051] do_group_exit+0x177/0x440 [ 34.408053] __x64_sys_exit_group+0x3e/0x50 [ 34.408055] do_syscall_64+0x1b9/0x820 [ 34.408058] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.408059] [ 34.408062] other info that might help us debug this: [ 34.408063] [ 34.408065] Chain exists of: [ 34.408066] (console_sem).lock --> &rq->lock --> report_lock [ 34.408075] [ 34.408078] Possible unsafe locking scenario: [ 34.408079] [ 34.408081] CPU0 CPU1 [ 34.408083] ---- ---- [ 34.408085] lock(report_lock); [ 34.408090] lock(&rq->lock); [ 34.408095] lock(report_lock); [ 34.408099] lock((console_sem).lock); [ 34.408103] [ 34.408105] *** DEADLOCK *** [ 34.408106] [ 34.408108] 2 locks held by syz-executor689/4457: [ 34.408110] #0: 00000000ae08de95 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 34.408119] #1: 00000000c469ea7b (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.408128] [ 34.408129] stack backtrace: [ 34.408133] CPU: 1 PID: 4457 Comm: syz-executor689 Not tainted 4.19.0-rc1+ #211 [ 34.408137] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.408138] Call Trace: [ 34.408140] dump_stack+0x1c9/0x2b4 [ 34.408143] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.408145] ? vprintk_func+0x100/0x117 [ 34.408148] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 34.408150] ? save_trace+0xe0/0x290 [ 34.408152] __lock_acquire+0x3449/0x5020 [ 34.408154] ? mark_held_locks+0x160/0x160 [ 34.408157] ? mark_held_locks+0x160/0x160 [ 34.408159] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 34.408161] ? is_bpf_text_address+0xd7/0x170 [ 34.408163] ? kernel_text_address+0x79/0xf0 [ 34.408166] ? __kernel_text_address+0xd/0x40 [ 34.408168] ? __save_stack_trace+0x8d/0xf0 [ 34.408171] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 34.408173] ? save_trace+0x290/0x290 [ 34.408175] ? save_stack_trace+0x1a/0x20 [ 34.408177] ? save_trace+0xe0/0x290 [ 34.408179] ? graph_lock+0x170/0x170 [ 34.408181] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.408184] lock_acquire+0x1e4/0x4f0 [ 34.408186] ? down_trylock+0x13/0x70 [ 34.408188] ? lock_release+0x9f0/0x9f0 [ 34.408190] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.408192] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.408195] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.408197] ? log_store+0x34f/0x4c0 [ 34.408199] ? vprintk_emit+0x31f/0x910 [ 34.408201] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.408203] ? down_trylock+0x13/0x70 [ 34.408205] down_trylock+0x13/0x70 [ 34.408208] __down_trylock_console_sem+0xae/0x200 [ 34.408210] console_trylock+0x15/0xa0 [ 34.408212] vprintk_emit+0x31f/0x910 [ 34.408214] ? wake_up_klogd+0x110/0x110 [ 34.408216] ? run_rebalance_domains+0x4c0/0x4c0 [ 34.408218] ? kasan_check_read+0x11/0x20 [ 34.408221] ? rcu_is_watching+0x8c/0x150 [ 34.408223] ? rcu_pm_notify+0xc0/0xc0 [ 34.408225] ? lock_acquire+0x1e4/0x4f0 [ 34.408227] ? kasan_report+0x8e/0x110 [ 34.408229] ? __schedule+0xf54/0x1df0 [ 34.408231] vprintk_default+0x28/0x30 [ 34.408233] vprintk_func+0x7a/0x117 [ 34.408235] printk+0xa7/0xcf [ 34.408237] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.408240] ? kasan_check_write+0x14/0x20 [ 34.408242] ? do_raw_spin_lock+0xc1/0x200 [ 34.408244] ? do_raw_spin_lock+0xc1/0x200 [ 34.408246] kasan_report+0x9e/0x110 [ 34.408248] __asan_report_load8_noabort+0x14/0x20 [ 34.408251] __schedule+0xf54/0x1df0 [ 34.408253] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.408255] ? __sched_text_start+0x8/0x8 [ 34.408258] ? __call_srcu+0x7e7/0x1040 [ 34.408260] ? check_same_owner+0x340/0x340 [ 34.408262] ? mark_held_locks+0x160/0x160 [ 34.408265] ? find_held_lock+0x36/0x1c0 [ 34.408267] preempt_schedule_common+0x22/0x60 [ 34.408269] _cond_resched+0x1d/0x30 [ 34.408271] wait_for_completion+0xa5/0x8d0 [ 34.408274] ? wait_for_completion_interruptible+0x950/0x950 [ 34.408277] ? __lockdep_init_map+0x105/0x590 [ 34.408279] ? __init_waitqueue_head+0x9e/0x150 [ 34.408281] ? init_wait_entry+0x1c0/0x1c0 [ 34.408284] __synchronize_srcu+0x189/0x240 [ 34.408286] ? call_srcu+0x10/0x10 [ 34.408288] ? rcu_unexpedite_gp+0x20/0x20 [ 34.408290] synchronize_srcu+0x335/0x56f [ 34.408293] ? lock_downgrade+0x8f0/0x8f0 [ 34.408295] ? synchronize_srcu_expedited+0x20/0x20 [ 34.408297] ? kasan_check_read+0x11/0x20 [ 34.408300] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.408302] ? kasan_check_write+0x14/0x20 [ 34.408304] ? do_raw_spin_lock+0xc1/0x200 [ 34.408307] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.408309] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.408311] ? kvfree+0x61/0x70 [ 34.408314] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.408316] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.408318] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.408321] ? kvm_arch_sync_events+0x30/0x30 [ 34.408323] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.408326] ? mmu_notifier_unregister+0x474/0x600 [ 34.408328] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.408330] ? kfree+0x111/0x210 [ 34.408332] ? __mmu_notifier_register+0x30/0x30 [ 34.408335] ? __free_pages+0x10a/0x190 [ 34.408337] ? free_unref_page+0x930/0x930 [ 34.408339] kvm_put_kvm+0x73f/0x1060 [ 34.408341] ? kvm_write_guest_cached+0x40/0x40 [ 34.408343] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.408346] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.408348] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.408350] ? kasan_check_write+0x14/0x20 [ 34.408352] ? do_raw_spin_lock+0xc1/0x200 [ 34.408355] ? kvm_irqfd_release+0xdd/0x120 [ 34.408357] ? kvm_irqfd_release+0xdd/0x120 [ 34.408359] ? kvm_put_kvm+0x1060/0x1060 [ 34.408361] kvm_vm_release+0x42/0x50 [ 34.408363] __fput+0x36e/0x8c0 [ 34.408365] ? __alloc_file+0x400/0x400 [ 34.408367] ? check_same_owner+0x340/0x340 [ 34.408370] ? kasan_check_write+0x14/0x20 [ 34.408372] ? do_raw_spin_lock+0xc1/0x200 [ 34.408374] ____fput+0x15/0x20 [ 34.408376] task_work_run+0x1e8/0x2a0 [ 34.408378] ? task_work_cancel+0x240/0x240 [ 34.408381] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.408383] ? switch_task_namespaces+0xa2/0xd0 [ 34.408385] do_exit+0x1ae4/0x26e0 [ 34.408387] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.408395] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.408398] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.408400] ? kfree+0x1d7/0x210 [ 34.408402] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.408405] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.408407] ? is_bpf_text_address+0xd7/0x170 [ 34.408408] ? [ 34.408413] Lost 55 message(s)! [ 35.468385] Shutting down cpus with NMI [ 36.527444] Dumping ftrace buffer: [ 36.530979] (ftrace buffer empty) [ 36.534669] Kernel Offset: disabled [ 36.538313] Rebooting in 86400 seconds..